@golstats/gsc-players-tracking 1.0.38 → 1.0.39
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-246b27d8-DvIp7izA-C_CdxIYS.js → FilterConditions-246b27d8-C0R54Ro6-CYAxRTLQ.js} +1 -1
- package/dist/{FilterConditions-246b27d8-b9b9845a-BBUjhoOO.js → FilterConditions-246b27d8-ba57b219-rMZgyIX4.js} +1 -1
- package/dist/{FilterField-44e377ba-BA05Tl_G-CwWg8Yfd.js → FilterField-44e377ba-6JA1k7Um-Bd1k_9RU.js} +1 -1
- package/dist/{FilterField-44e377ba-93bb2fb2-BRRiYsZF.js → FilterField-44e377ba-c76ec6e1-CQW3YWGd.js} +1 -1
- package/dist/{FilterSubcategories-a1dae85c-81f1c4a7-CiUBLUmx.js → FilterSubcategories-a1dae85c-50fd7d8f-BVv1SHR8.js} +1 -1
- package/dist/{FilterSubcategories-a1dae85c-CzU7mB89-CG0SWLkX.js → FilterSubcategories-a1dae85c-B5atd0ed-TkQPjgYg.js} +1 -1
- package/dist/gsc-players-tracking.es.js +1 -1
- package/dist/gsc-players-tracking.umd.js +2 -2
- package/dist/{index-DUKdqA_E.js → index-Bg2mL1Xm.js} +18 -18
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ft,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(ft=typeof globalThis<"u"?globalThis:ft||self,e(ft.GSCPlayersTracking={},ft.Vue))})(this,function(ft,e){"use strict";const Mp=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Oi={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ml=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},yl=Oi.setup;Oi.setup=yl?(t,i)=>(ml(),yl(t,i)):ml;const Lp=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Dp=["src"],Rp={key:1,class:"text"},Op=["src"],jp={class:"stats"},vp=Lp(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Wp={class:"numstats"},Up={class:"leyend"};function Gp(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Dp)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",Rp,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Op)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",jp,[vp,e.createElementVNode("div",Wp,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",Up,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const Hp=Mp(Oi,[["render",Gp],["__scopeId","data-v-f3ee6b2b"]]),Jp={class:"gsc-dropdown__main-container__item-selected"},qp=["height","width"],Zp=["stroke"],Yp={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kp=["fill"],Xp={class:"gsc-dropdown__items-container"},Qp=["onClick"],e1={key:0,class:"gsc-dropdown__items-footer"},t1={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref({}),s=e.ref(null),l=e.ref(a.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>a.items,(c,u)=>{if(!a.modelValue&&(!a.onlyFirstTime||!u||!u.length)&&c&&c.length){if(a.defaultItemByProp){const m=a.items.findIndex(g=>g[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(l.value=m,o.value=c[m]):(l.value=0,o.value=c[0])}else o.value=c[a.defaultItemByIndex];i("input",o.value)}},{immediate:!0}),e.watch(()=>a.modelValue,c=>{if(c){const u=a.items.findIndex(m=>typeof c=="object"?JSON.stringify(m)===JSON.stringify(c):m===c);u!==-1&&(l.value=u,o.value=a.items[u],i("update:modelValue",o.value))}},{immediate:!0});const n=e.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-container-padding":a.listContainerPadding,"--list-item-padding":a.listItemPadding,"--list-item-margin":a.listItemMargin,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-border-radius":a.listItemBorderRadius,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--list-margin-top":a.listMarginTop,"--list-left":a.listAlignment==="left"?"0":"auto","--list-right":a.listAlignment==="right"?"0":"auto","--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),d=e.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function p(){a.isDisabled||(r.value=!r.value)}function f(c){s.value&&!s.value.contains(c.target)&&(r.value=!1)}function y(c,u){a.isMultipleOption?l.value=-1:(l.value=u,r.value=!1),o.value=c,i("input",o.value),i("update:modelValue",o.value)}function h(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",f)}),e.onBeforeMount(()=>{document.removeEventListener("click",f)}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:p},[e.createElementVNode("div",Jp,[e.renderSlot(c.$slots,"default",{selectedItem:o.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(d.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,Zp)],8,qp)):(e.openBlock(),e.createElementBlock("svg",Yp,[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,Kp)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Xp,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===l.value}]),key:g,onClick:_=>y(m,g)},[e.renderSlot(c.$slots,"availableItem",{item:m})],10,Qp)),[[e.vShow,!m.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",e1,[e.createVNode(e.unref(Hp),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:h})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},a1=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},ji={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},hl=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},ul=ji.setup;ji.setup=ul?(t,i)=>(hl(),ul(t,i)):hl;const i1=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),o1=["src"],s1={key:1,class:"text"},l1=["src"],r1={class:"stats"},n1=i1(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),d1={class:"numstats"},c1={class:"leyend"};function p1(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,o1)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",s1,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,l1)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",r1,[n1,e.createElementVNode("div",d1,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",c1,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const m1=a1(ji,[["render",p1],["__scopeId","data-v-f3ee6b2b"]]),y1={class:"gsc-dropdown__main-container__item-selected"},h1=["height","width"],u1=["stroke"],f1={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g1=["fill"],_1={class:"gsc-dropdown__items-container"},b1=["onClick"],S1={key:0,class:"gsc-dropdown__items-footer"},C1={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref({}),s=e.ref(null),l=e.ref(a.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>a.items,(c,u)=>{if(!a.modelValue&&(!a.onlyFirstTime||!u||!u.length)&&c&&c.length){if(a.defaultItemByProp){const m=a.items.findIndex(g=>g[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(l.value=m,o.value=c[m]):(l.value=0,o.value=c[0])}else o.value=c[a.defaultItemByIndex];i("input",o.value)}},{immediate:!0}),e.watch(()=>a.modelValue,c=>{if(c){const u=a.items.findIndex(m=>typeof c=="object"?JSON.stringify(m)===JSON.stringify(c):m===c);u!==-1&&(l.value=u,o.value=a.items[u],i("update:modelValue",o.value))}},{immediate:!0});const n=e.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-container-padding":a.listContainerPadding,"--list-item-padding":a.listItemPadding,"--list-item-margin":a.listItemMargin,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-border-radius":a.listItemBorderRadius,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--list-margin-top":a.listMarginTop,"--list-left":a.listAlignment==="left"?"0":"auto","--list-right":a.listAlignment==="right"?"0":"auto","--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),d=e.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function p(){a.isDisabled||(r.value=!r.value)}function f(c){s.value&&!s.value.contains(c.target)&&(r.value=!1)}function y(c,u){a.isMultipleOption?l.value=-1:(l.value=u,r.value=!1),o.value=c,i("input",o.value),i("update:modelValue",o.value)}function h(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",f)}),e.onBeforeMount(()=>{document.removeEventListener("click",f)}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:p},[e.createElementVNode("div",y1,[e.renderSlot(c.$slots,"default",{selectedItem:o.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(d.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,u1)],8,h1)):(e.openBlock(),e.createElementBlock("svg",f1,[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,g1)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",_1,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===l.value}]),key:g,onClick:_=>y(m,g)},[e.renderSlot(c.$slots,"availableItem",{item:m})],10,b1)),[[e.vShow,!m.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",S1,[e.createVNode(e.unref(m1),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:h})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},w1=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},k1={class:"tournament-select__selected-tournament"},E1={class:"tournament-select__selected-tournament__logo"},V1=["src"],x1={class:"tournament-select__selected-tournament__name"},N1="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",T1={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://golstatsimages.blob.core.windows.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},currentSeasonId:{type:Number,default:0},tournamentsIdsToInclude:{type:Set,default:()=>new Set},isClubesActive:{type:Boolean,default:!0},routeName:{type:String,default:""},avoidTournamentFilter:{type:Boolean,default:!1}},emits:["input","change-tournaments"],setup(t,{emit:i}){const a=t,o=new Set(["tops","table","dataia"]),s=e.ref([]),l=e.computed(()=>{const u={};return a.fontFamily&&(u["font-family"]=`${a.fontFamily}`),u}),r=e.computed(()=>s.value.filter(u=>!u.isHidden)),n=e.computed(()=>r.value.find(u=>u.seasonsIds.has(a.currentSeasonId))||r.value[0]);e.watch(()=>a.isClubesActive,()=>{d()},{immediate:!0}),e.watch(()=>a.routeName,()=>{console.log("watcher, routeName",a.routeName),d()},{immediate:!0});function d(){s.value.forEach(u=>{u.isHidden=!a.isClubesActive&&u.isClub||a.isClubesActive&&!u.isClub||a.routeName&&u.tournament_type===4&&o.has(a.routeName)})}async function p(){try{if(a.items&&a.items.length)s.value=[...a.items];else{const u=await y();i("change-tournaments",u),s.value=u.sort((m,g)=>m.tournament.order-g.tournament.order).reduce((m,g)=>{if(a.tournamentsIdsToInclude&&a.tournamentsIdsToInclude.size&&!a.tournamentsIdsToInclude.has(g.id))return m;const _={...g.tournament,seasons:g.seasons,seasonsIds:g.seasons.reduce((k,W)=>(k.add(W.id),k),new Set),isClub:g.tournament.international_tournament===0,isFriendlies:g.tournament.tournament_type===3};return _.isHidden=!a.avoidTournamentFilter&&(!a.isClubesActive&&_.isClub||a.isClubesActive&&!_.isClub),m.push(_),m},[])}}catch(u){throw new Error(u)}}function f(u){const m=new XMLHttpRequest,g=`${a.logosUrl}${u}.${a.logoFileType}`;return m.open("HEAD",g,!1),m.send(),m.status!==404}async function y(){try{return(await fetch(a.apiUrl||N1)).json()}catch(u){return Promise.reject(u)}}function h(u){i("input",u)}function c(u){i("input",u)}return e.onMounted(()=>{p()}),(u,m)=>(e.openBlock(),e.createElementBlock("div",{class:"tournament-select",style:e.normalizeStyle(l.value)},[e.createVNode(e.unref(C1),e.mergeProps(a,{"model-value":n.value,items:s.value,onInput:h,"onUpdate:modelValue":c}),{default:e.withCtx(({selectedItem:g})=>[e.createElementVNode("div",k1,[e.createElementVNode("div",E1,[f(g.id)?(e.openBlock(),e.createElementBlock("img",{key:0,src:`${a.logosUrl}${g.id}.${a.logoFileType}`,alt:""},null,8,V1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",x1,e.toDisplayString(g.name),1)])]),availableItem:e.withCtx(({item:g})=>[e.createElementVNode("div",null,e.toDisplayString(g.name),1)]),_:1},16,["model-value","items"])],4))}},B1=w1(T1,[["__scopeId","data-v-8ab1a3c5"]]);function F1(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 P1=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},vi={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)}}},fl=()=>{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}))},gl=vi.setup;vi.setup=gl?(t,i)=>(fl(),gl(t,i)):fl;const $1={ref:"gscScrollableContainer",class:"scrollable-container"},A1={class:"scrollable-arrows"},z1=["width","height","viewBox"],I1=["stroke"],M1={class:"scrollable-wrapper"},L1={class:"scrollable-arrows"},D1=["width","height","viewBox"],R1=["stroke"];function O1(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",$1,[a.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",l.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>l.scrollLeft&&l.scrollLeft(...r))},[e.createElementVNode("div",A1,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:l.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:a.arrowsColor},null,8,I1)],8,z1))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>l.getScroll&&l.getScroll(...r))},[e.createElementVNode("div",M1,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),a.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",l.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>l.scrollRight&&l.scrollRight(...r))},[e.createElementVNode("div",L1,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:l.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:a.arrowsColor},null,8,R1)],8,D1))])],2)):e.createCommentVNode("",!0)],512)}const j1=P1(vi,[["render",O1],["__scopeId","data-v-b548a08d"]]),v1=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Wi={components:{GSCSlider:j1},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}=F1(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}}},_l=()=>{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}))},bl=Wi.setup;Wi.setup=bl?(t,i)=>(_l(),bl(t,i)):_l;const W1={ref:"myDivRef"},U1={key:0,class:"gs-switch-container"},G1=["onClick"],H1={key:1,class:"gs-switch-container-type"},J1=["onClick"],q1={key:2,class:"gs-switch-container-carousel"},Z1=["onClick"];function Y1(t,i,a,o,s,l){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",W1,[a.type==0?(e.openBlock(),e.createElementBlock("div",U1,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([l.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,d)=>(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:d,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,G1))),128))],4),e.renderSlot(t.$slots,a.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",H1,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([l.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,d)=>(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:d,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,J1))),128))],4)])):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",q1,[e.createVNode(r,{arrows:a.arrow,"background-color":a.background,"px-scroll":a.pxScroll,"scroll-color":a.scrollColor,"arrows-position":a.arrowsPosition,arrowsScrollHide:a.arrowsScrollHide,"arrows-background":a.arrowsBackground,"arrows-container-bg-l":a.arrowsContainerBgL,"arrows-container-bg-r":a.arrowsContainerBgR,"arrows-margin":a.arrowsMargin,"arrows-radius":a.arrowsRadius,"arrows-border":a.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,d)=>(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:d,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,Z1))),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 K1=v1(Wi,[["render",Y1],["__scopeId","data-v-8a86dfaf"]]),X1=[{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"}],Q1=new Map(X1.map(t=>[t.id,t.name])),Qt=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},em={class:"player-card__image"},tm=["src"],am={class:"player-card__number"},im={class:"player-card__right-data"},om={class:"player-card__age"},sm={class:"player-card__flag"},lm={class:"player-card__details"},rm={class:"player-card__name"},nm={class:"player-card__position"},dm=Qt({__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(()=>Q1.get(a.player.position_id));function s(){i("click-player",a.player)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"player-card",onClick:s},[e.createElementVNode("div",em,[e.createElementVNode("img",{class:e.normalizeClass(["player-card__photo",{"full-width":t.isImgFullWidth}]),src:t.player.photo,alt:"Player Image"},null,10,tm),e.createElementVNode("div",am,e.toDisplayString(t.player.jersey),1),e.createElementVNode("div",im,[e.createElementVNode("div",om,e.toDisplayString(t.player.age)+" años",1),e.createElementVNode("div",sm,[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",lm,[e.createElementVNode("p",rm,e.toDisplayString(t.player.name),1),e.createElementVNode("p",nm,e.toDisplayString(o.value),1)])]))}},[["__scopeId","data-v-5921e0af"]]),cm=t=>(e.pushScopeId("data-v-fc760df8"),t=t(),e.popScopeId(),t),pm={class:"ultima-convocatoria"},mm=cm(()=>e.createElementVNode("div",{class:"section-title"},"México",-1)),ym=Qt({__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",pm,[mm,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,l=>(e.openBlock(),e.createBlock(dm,{key:l.player_id,player:l,onClickPlayer:a},null,8,["player"]))),128))],2)]))}},[["__scopeId","data-v-fc760df8"]]),Ui=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Gi={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1},title:{type:String,default:"Zona de origen del balón:"},quarters:{type:Array,default:()=>[1,2,3,4]}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,lastSelectedSections:[]}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){if(this.lastSelectedSections.every(a=>t.has(a)))return;const i=Array.from(t).map(Number).sort((a,o)=>a-o);this.lastSelectedSections=[...i],this.$emit("sections-changed",i)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const i=Math.ceil(t/4);this.isQuarterEnabled(i)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const i=Math.ceil(t/4);this.isQuarterEnabled(i)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const i=Math.ceil(t/4);if(!this.isQuarterEnabled(i))return;const a=t.toString();this.selectedSections.size===1&&this.selectedSections.has(a)||(this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState())},toggleAllSections(){if(this.selectAll)for(let t=1;t<=16;t++)this.selectedSections.add(t.toString());else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{this.selectAll=this.selectedSections.size===16})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t){if(this.displayMode)return;const i=Date.now();if(i-this.lastUpdateTime<16)return;this.lastUpdateTime=i;const a=t.toString(),o=Math.ceil(t/4);if(this.isQuarterEnabled(o)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(a)),this.dragSelectMode)this.selectedSections.add(a);else{if(this.selectedSections.size===1&&this.selectedSections.has(a))return;this.selectedSections.delete(a)}this.updateSelectAllState()}},getSectionNumber(t,i){return(t-1)*4+i},getSectionIndex(t,i){return(t-1)*4+i},selectColumn(t){if(!this.isQuarterEnabled(t))return;const i=(t-1)*4+1,a=t*4;if(Array.from({length:4},(o,s)=>(i+s).toString()).every(o=>this.selectedSections.has(o))&&this.selectedSections.size>4)for(let o=i;o<=a;o++)this.selectedSections.delete(o.toString());else for(let o=i;o<=a;o++)this.selectedSections.add(o.toString());this.updateSelectAllState()},isQuarterSelected(t){const i=(t-1)*4+1;return Array.from({length:4},(a,o)=>(i+o).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},Sl=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Cl=Gi.setup;Gi.setup=Cl?(t,i)=>(Sl(),Cl(t,i)):Sl;const hm={class:"field-template-element"},um={class:"field-container"},fm=["onMouseenter","onMousedown"],gm={class:"column-buttons"},_m=["onClick","disabled"];function bm(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",hm,[e.createElementVNode("div",um,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":a.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:i[0]||(i[0]=(...r)=>l.startDragging&&l.startDragging(...r)),onMouseup:i[1]||(i[1]=(...r)=>l.stopDragging&&l.stopDragging(...r)),onMouseleave:i[2]||(i[2]=(...r)=>l.stopDragging&&l.stopDragging(...r))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,r=>e.createElementVNode("div",{key:r,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${r}-${n}`,class:e.normalizeClass(["field-section",{selected:l.isSelected(l.getSectionIndex(r,n)),"display-mode":a.displayMode}]),onMouseenter:d=>s.isDragging&&l.handleDragSelect(l.getSectionIndex(r,n)),onMousedown:e.withModifiers(d=>!a.displayMode&&l.toggleSection(l.getSectionIndex(r,n)),["prevent"])},null,42,fm)),64))])),64))],32),e.createElementVNode("div",gm,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,r=>e.createElementVNode("div",{key:r,class:"column-label"},e.toDisplayString(r)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,r=>e.createElementVNode("button",{key:r,class:e.normalizeClass(["column-button",{selected:l.isQuarterSelected(r),disabled:!l.isQuarterEnabled(r)}]),onClick:n=>l.selectColumn(r),disabled:!l.isQuarterEnabled(r)},e.toDisplayString(r)+"/4 tos ",11,_m)),64))])])])}const Sm=Ui(Gi,[["render",bm],["__scopeId","data-v-1f6351a4"]]),Hi={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,selectedCells:new Array(72).fill(!0)}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){const i=Array.from(t).map(l=>{const[r,n]=l.split("-").map(Number);return{row:r,col:n,value:this.getSequentialNumber(r,n)}}),a={};i.forEach(l=>{a[l.col]||(a[l.col]=[]),a[l.col].push(l)});const o=[];Object.values(a).forEach(l=>{l.sort((n,d)=>d.row-n.row);let r=[l[0]];for(let n=1;n<l.length;n++){const d=l[n];l[n-1].row-d.row===1?r.push(d):(r.length>0&&o.push(r),r=[d])}r.length>0&&o.push(r)});const s=o.sort((l,r)=>{const n=Math.min(...l.map(p=>p.value)),d=Math.min(...r.map(p=>p.value));return n-d}).map(l=>{const r=l.map(n=>n.value).sort((n,d)=>d-n);return r.length===1?[r[0],r[0]]:[r[0],r[r.length-1]]});this.$emit("sections-changed",s)},deep:!0}},methods:{initializeSections(){if(this.initialSections&&this.initialSections.length>0)this.selectedSections.clear(),this.initialSections.forEach(t=>{if(Array.isArray(t)&&t.length===2){const[i,a]=t,o=17-Math.floor((i-1)/21),s=(i-1)%21+1,l=17-Math.floor((a-1)/21),r=(a-1)%21+1;if(s===r){const n=Math.min(o,l),d=Math.max(o,l);for(let p=n;p<=d;p++)this.selectedSections.add(this.getSectionId(p,s))}else{const n=Math.min(s,r),d=Math.max(s,r);for(let p=n;p<=d;p++){const f=p===s?o:1,y=p===r?l:17;for(let h=Math.min(f,y);h<=Math.max(f,y);h++)this.selectedSections.add(this.getSectionId(h,p))}}}});else for(let t=1;t<=17;t++)for(let i=1;i<=21;i++)this.selectedSections.add(this.getSectionId(t,i));this.updateSelectAllState()},getSectionId(t,i){return`${t}-${i}`},isSelected(t,i){return this.selectedSections.has(this.getSectionId(t,i))},toggleSection(t,i){const a=this.getSectionId(t,i);this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let i=1;i<=21;i++)this.selectedSections.add(this.getSectionId(t,i));else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{let t=357;this.selectAll=this.selectedSections.size===t})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t,i){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const o=this.getSectionId(t,i);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(o)),this.dragSelectMode?this.selectedSections.add(o):this.selectedSections.delete(o),this.updateSelectAllState()},getSequentialNumber(t,i){return(17-t)*21+i}}},wl=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},kl=Hi.setup;Hi.setup=kl?(t,i)=>(wl(),kl(t,i)):wl;const Cm={class:"field-template-element"},wm={class:"field-container"},km={key:0,class:"select-all-container"},Em={class:"select-all-label"},Vm=["onMouseenter","onMousedown"];function xm(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",Cm,[e.createElementVNode("div",wm,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",km,[e.createElementVNode("label",Em,[i[5]||(i[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>s.selectAll=r),onChange:i[1]||(i[1]=(...r)=>l.toggleAllSections&&l.toggleAllSections(...r))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:i[2]||(i[2]=(...r)=>l.startDragging&&l.startDragging(...r)),onMouseup:i[3]||(i[3]=(...r)=>l.stopDragging&&l.stopDragging(...r)),onMouseleave:i[4]||(i[4]=(...r)=>l.stopDragging&&l.stopDragging(...r))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${r}-${n}`,class:e.normalizeClass(["field-section",{selected:l.isSelected(r,n),"display-mode":a.displayMode}]),onMouseenter:d=>s.isDragging&&l.handleDragSelect(r,n),onMousedown:e.withModifiers(d=>!a.displayMode&&l.toggleSection(r,n),["prevent"])},null,42,Vm)),64))],64))),64))],32),i[6]||(i[6]=e.createStaticVNode('<div class="attack-direction" data-v-389c50fa><div class="arrow-line" data-v-389c50fa></div><span class="attack-text" data-v-389c50fa>Ataca</span><div class="arrow-line" data-v-389c50fa></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-389c50fa><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-389c50fa></polygon></svg></div>',1))])])}const Nm=Ui(Hi,[["render",xm],["__scopeId","data-v-389c50fa"]]),Tm={components:{FieldGolStatsTemplates:Sm,FieldTemplatesElement:Nm},name:"ModalPassConditions",props:{isVisible:{type:Boolean,required:!0},parameters:{type:Object,required:!0}},data(){return{quarters:[1,2],userId:24254,originSelection:[],destinationSelection:[],selectAllOrigin:!1,selectAllDestination:!1,minDistanceX:.5,minDistanceY:.5,minDistanceTotal:.5}},methods:{isArrayOfArrays(t){return Array.isArray(t)&&t.length>0&&t.every(i=>Array.isArray(i))},closeModal(){this.$emit("update:isVisible",!1)},updateOriginSelection(t){this.originSelection=t},updateDestinationSelection(t){this.destinationSelection=t},clearFilters(){this.originSelection=[],this.destinationSelection=[],this.selectAllOrigin=!1,this.selectAllDestination=!1,this.minDistanceX=0,this.minDistanceY=0,this.minDistanceTotal=0},applyFilters(){this.$emit("update:isVisible",!1)}}},Bm={key:0,class:"modal-wrapper"},Fm={class:"modal-overlay"},Pm={class:"modal-container"},$m={class:"modal-content"},Am={class:"modal-header"},zm={class:"fields-container"},Im={class:"field-section"},Mm={class:"field-section"},Lm={class:"distance-section"},Dm={class:"distance-info"},Rm={class:"info-row"},Om={class:"info-value"},jm={class:"info-row"},vm={class:"info-value"},Wm={class:"info-row"},Um={class:"info-value"},Gm={class:"distance-section"},Hm={class:"distance-info"},Jm={class:"info-row"},qm={class:"info-value"},Zm={class:"info-row"},Ym={class:"info-value"},Km={class:"info-row"},Xm={class:"info-value"};function Qm(t,i,a,o,s,l){var r,n,d,p,f,y,h,c,u,m,g,_;const k=e.resolveComponent("FieldGolStatsTemplates"),W=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",Bm,[e.createElementVNode("div",Fm,[e.createElementVNode("div",Pm,[e.createElementVNode("div",$m,[e.createElementVNode("div",Am,[i[2]||(i[2]=e.createStaticVNode('<div class="header-content" data-v-834c0128><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-inspector="src/components/GSCTemplates.vue:100:15" data-v-a08c9209="" data-v-834c0128><path d="M5.18088 2.68185L3.12463 4.74435L2.31838 3.93185C2.20069 3.81416 2.04107 3.74805 1.87463 3.74805C1.70819 3.74805 1.54857 3.81416 1.43088 3.93185C1.31319 4.04954 1.24707 4.20917 1.24707 4.3756C1.24707 4.54204 1.31319 4.70166 1.43088 4.81935L2.68088 6.06935C2.73898 6.12793 2.80811 6.17443 2.88427 6.20616C2.96043 6.23789 3.04212 6.25423 3.12463 6.25423C3.20714 6.25423 3.28883 6.23789 3.36499 6.20616C3.44115 6.17443 3.51028 6.12793 3.56838 6.06935L6.06838 3.56935C6.12665 3.51108 6.17288 3.4419 6.20442 3.36576C6.23595 3.28962 6.25218 3.20802 6.25218 3.1256C6.25218 3.04319 6.23595 2.96159 6.20442 2.88545C6.17288 2.80931 6.12665 2.74013 6.06838 2.68185C6.0101 2.62358 5.94092 2.57735 5.86478 2.54582C5.78864 2.51428 5.70704 2.49805 5.62463 2.49805C5.54222 2.49805 5.46061 2.51428 5.38447 2.54582C5.30833 2.57735 5.23915 2.62358 5.18088 2.68185Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:101:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 8.125H2.5C2.33424 8.125 2.17527 8.19085 2.05806 8.30806C1.94085 8.42527 1.875 8.58424 1.875 8.75V11.25C1.875 11.4158 1.94085 11.5747 2.05806 11.6919C2.17527 11.8092 2.33424 11.875 2.5 11.875H5C5.16576 11.875 5.32473 11.8092 5.44194 11.6919C5.55915 11.5747 5.625 11.4158 5.625 11.25V8.75C5.625 8.58424 5.55915 8.42527 5.44194 8.30806C5.32473 8.19085 5.16576 8.125 5 8.125ZM4.375 10.625H3.125V9.375H4.375V10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:104:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 13.75H2.5C2.33424 13.75 2.17527 13.8158 2.05806 13.9331C1.94085 14.0503 1.875 14.2092 1.875 14.375V16.875C1.875 17.0408 1.94085 17.1997 2.05806 17.3169C2.17527 17.4342 2.33424 17.5 2.5 17.5H5C5.16576 17.5 5.32473 17.4342 5.44194 17.3169C5.55915 17.1997 5.625 17.0408 5.625 16.875V14.375C5.625 14.2092 5.55915 14.0503 5.44194 13.9331C5.32473 13.8158 5.16576 13.75 5 13.75ZM4.375 16.25H3.125V15H4.375V16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:107:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 9.375H13.125C13.2908 9.375 13.4497 9.30915 13.5669 9.19194C13.6842 9.07473 13.75 8.91576 13.75 8.75C13.75 8.58424 13.6842 8.42527 13.5669 8.30806C13.4497 8.19085 13.2908 8.125 13.125 8.125H8.125C7.95924 8.125 7.80027 8.19085 7.68306 8.30806C7.56585 8.42527 7.5 8.58424 7.5 8.75C7.5 8.91576 7.56585 9.07473 7.68306 9.19194C7.80027 9.30915 7.95924 9.375 8.125 9.375Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:110:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 10.625H8.125C7.95924 10.625 7.80027 10.6908 7.68306 10.8081C7.56585 10.9253 7.5 11.0842 7.5 11.25C7.5 11.4158 7.56585 11.5747 7.68306 11.6919C7.80027 11.8092 7.95924 11.875 8.125 11.875H18.125C18.2908 11.875 18.4497 11.8092 18.5669 11.6919C18.6842 11.5747 18.75 11.4158 18.75 11.25C18.75 11.0842 18.6842 10.9253 18.5669 10.8081C18.4497 10.6908 18.2908 10.625 18.125 10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:113:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 15H13.125C13.2908 15 13.4497 14.9342 13.5669 14.8169C13.6842 14.6997 13.75 14.5408 13.75 14.375C13.75 14.2092 13.6842 14.0503 13.5669 13.9331C13.4497 13.8158 13.2908 13.75 13.125 13.75H8.125C7.95924 13.75 7.80027 13.8158 7.68306 13.9331C7.56585 14.0503 7.5 14.2092 7.5 14.375C7.5 14.5408 7.56585 14.6997 7.68306 14.8169C7.80027 14.9342 7.95924 15 8.125 15Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:116:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 16.25H8.125C7.95924 16.25 7.80027 16.3158 7.68306 16.4331C7.56585 16.5503 7.5 16.7092 7.5 16.875C7.5 17.0408 7.56585 17.1997 7.68306 17.3169C7.80027 17.4342 7.95924 17.5 8.125 17.5H18.125C18.2908 17.5 18.4497 17.4342 18.5669 17.3169C18.6842 17.1997 18.75 17.0408 18.75 16.875C18.75 16.7092 18.6842 16.5503 18.5669 16.4331C18.4497 16.3158 18.2908 16.25 18.125 16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:119:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 3.75H13.125C13.2908 3.75 13.4497 3.68415 13.5669 3.56694C13.6842 3.44973 13.75 3.29076 13.75 3.125C13.75 2.95924 13.6842 2.80027 13.5669 2.68306C13.4497 2.56585 13.2908 2.5 13.125 2.5H8.125C7.95924 2.5 7.80027 2.56585 7.68306 2.68306C7.56585 2.80027 7.5 2.95924 7.5 3.125C7.5 3.29076 7.56585 3.44973 7.68306 3.56694C7.80027 3.68415 7.95924 3.75 8.125 3.75Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:122:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 6.25H18.125C18.2908 6.25 18.4497 6.18415 18.5669 6.06694C18.6842 5.94973 18.75 5.79076 18.75 5.625C18.75 5.45924 18.6842 5.30027 18.5669 5.18306C18.4497 5.06585 18.2908 5 18.125 5H8.125C7.95924 5 7.80027 5.06585 7.68306 5.18306C7.56585 5.30027 7.5 5.45924 7.5 5.625C7.5 5.79076 7.56585 5.94973 7.68306 6.06694C7.80027 6.18415 7.95924 6.25 8.125 6.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:125:17" data-v-a08c9209="" data-v-834c0128></path></svg><span data-v-834c0128>Elige las condiciones del pase</span></div>',1)),e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=J=>t.$emit("update:isVisible",!1))},i[1]||(i[1]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})],-1)]))]),e.createElementVNode("div",zm,[e.createElementVNode("div",Im,[l.isArrayOfArrays((r=a.parameters)==null?void 0:r.origin_zones)?(e.openBlock(),e.createBlock(W,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(d=a.parameters)==null?void 0:d.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(k,{key:0,title:"Elige la zona de origen del balón:","initial-sections":(n=a.parameters)==null?void 0:n.origin_zones,"display-mode":!0},null,8,["initial-sections"]))]),e.createElementVNode("div",Mm,[l.isArrayOfArrays((p=a.parameters)==null?void 0:p.destiny_zones)?(e.openBlock(),e.createBlock(W,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(y=a.parameters)==null?void 0:y.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(k,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(f=a.parameters)==null?void 0:f.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",Lm,[i[6]||(i[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",Dm,[e.createElementVNode("div",Rm,[i[3]||(i[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Om,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_distance_x)+" m",1)]),e.createElementVNode("div",jm,[i[4]||(i[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",vm,e.toDisplayString((c=a.parameters)==null?void 0:c.minimum_distance_y)+" m",1)]),e.createElementVNode("div",Wm,[i[5]||(i[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Um,e.toDisplayString((u=a.parameters)==null?void 0:u.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",Gm,[i[10]||(i[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",Hm,[e.createElementVNode("div",Jm,[i[7]||(i[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",qm,e.toDisplayString((m=a.parameters)==null?void 0:m.maximum_distance_x)+" m",1)]),e.createElementVNode("div",Zm,[i[8]||(i[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Ym,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",Km,[i[9]||(i[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Xm,e.toDisplayString((_=a.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const El=Ui(Tm,[["render",Qm],["__scopeId","data-v-834c0128"]]),Ye=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},ey={class:"player-card"},ty={class:"player-card__image"},ay={key:0,class:"checkbox-container"},iy=["checked"],oy=["src"],sy={class:"player-card__right-data"},ly={class:"player-card__age"},ry={class:"player-card__flag"},ny={class:"player-card__details"},dy={class:"player-card__name"},cy={class:"player-card__position"},py={key:0,class:"button-row"},my={class:"stat-header"},yy={class:"stat-left"},hy=["onClick"],uy={class:"stat-label"},fy={class:"stat-value"},gy={class:"stat-bar-container"},_y={key:1,class:"loading-overlay"},by={__name:"GscPlayerCard",props:{player:{type:Object,default:()=>({})},loading:{type:Boolean,default:!0},countryFlag:{type:String,default:""},jersey:{type:Number,default:0},player_id:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position:{type:String,default:"-"},photo:{type:String,default:""},is_female:{type:Number,default:0},isImgFullWidth:{type:Boolean,default:!1},stats:{type:Object,default:()=>({})},additionalData:{type:Object,default:()=>({})},deleteActive:{type:Boolean,default:!1},categories:{type:Array,default:()=>[],required:!0},statsPromise:{type:Promise,required:!0},isSelected:{type:Boolean,default:!1}},setup(t){const i=t,a=e.ref(null),o=e.ref(!1),s=e.ref(null);e.onMounted(async()=>{try{a.value=await i.statsPromise}catch(d){console.error("Error cargando estadísticas:",d)}});const l=d=>{if(!d)return 0;const p=d.max;return d.value*100/p};e.computed(()=>i.stats&&Object.keys(i.stats).length>0);const r=d=>{s.value=d,o.value=!0},n=()=>{o.value=!1,s.value=null};return(d,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ey,[e.createElementVNode("div",ty,[t.deleteActive?(e.openBlock(),e.createElementBlock("div",ay,[e.createElementVNode("input",{type:"checkbox",class:"player-checkbox",checked:t.isSelected,onChange:p[0]||(p[0]=f=>d.$emit("toggleSelection")),onClick:p[1]||(p[1]=e.withModifiers(()=>{},["stop"]))},null,40,iy)])):e.createCommentVNode("",!0),e.createElementVNode("img",{class:e.normalizeClass(["player-card__photo",{"full-width":t.isImgFullWidth}]),src:t.photo,alt:"Player Image"},null,10,oy),e.createElementVNode("div",sy,[e.createElementVNode("div",ly,e.toDisplayString(t.age)+" años ",1),e.createElementVNode("div",ry,[e.createElementVNode("div",{class:"player-card__flag-container",style:e.normalizeStyle({"background-image":`url(${i.countryFlag})`})},null,4)])])]),e.createElementVNode("div",ny,[e.createElementVNode("p",dy,e.toDisplayString(t.name),1),e.createElementVNode("p",cy,e.toDisplayString(t.position),1)]),e.createElementVNode("div",{class:e.normalizeClass(["player-card__actions",{"hide-buttons":t.deleteActive}])},[t.deleteActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",py,[e.createElementVNode("button",{class:"action-button graph-button",onClick:p[2]||(p[2]=e.withModifiers(f=>d.$emit("showGraph",{player_id:i.player_id,name:i.name,position:i.position,stats:i.stats}),["stop"]))},p[6]||(p[6]=[e.createStaticVNode(' Gráfica <span class="button-icon" data-v-e864176a><svg fill="none" height="16" viewBox="0 0 17 16" width="17" xmlns="http://www.w3.org/2000/svg" data-v-e864176a><g clip-path="url(#clip0_3514_71971)" data-v-e864176a><path d="M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z" fill="white" data-v-e864176a></path></g><defs data-v-e864176a><clipPath id="clip0_3514_71971" data-v-e864176a><rect fill="white" height="16" transform="translate(0.5)" width="16" data-v-e864176a></rect></clipPath></defs></svg></span>',2)])),e.createElementVNode("button",{class:"action-button delete-button",onClick:p[3]||(p[3]=e.withModifiers(f=>d.$emit("deletePlayer",{player_id:i.player_id,name:i.name,position:i.position}),["stop"]))},p[7]||(p[7]=[e.createStaticVNode(' Eliminar <span class="button-icon" data-v-e864176a><svg width="17" height="15" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e864176a><path d="M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-e864176a></path><path d="M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-e864176a></path><path d="M18.332 8.16663H13.332" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-e864176a></path></svg></span>',2)]))])),t.deleteActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,class:"action-button profile-button",onClick:p[4]||(p[4]=e.withModifiers(f=>d.$emit("showProfile",{player_id:i.player_id,season_id:i.additionalData.season_id,team_id:i.additionalData.team_id,name:i.name,position:i.position,age:i.age,nationality:i.nationality,photo:i.photo,stats:i.stats}),["stop"]))}," Ver perfil "))],2),e.createElementVNode("div",{class:e.normalizeClass(["player-card__stats",{"disabled-stats":t.deleteActive}])},[t.loading?(e.openBlock(),e.createElementBlock("div",_y,p[9]||(p[9]=[e.createElementVNode("div",{class:"loading-animation"},null,-1)]))):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:"stat-row",key:y},[e.createElementVNode("div",my,[e.createElementVNode("div",yy,[f.parametros!="no"?(e.openBlock(),e.createElementBlock("button",{key:0,class:"stat-info-button",onClick:h=>r(f.parametros)},p[8]||(p[8]=[e.createElementVNode("svg",{width:"8",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.17355 0.761719C6.44909 0.761719 5.77355 1.23716 5.56275 1.90573L0.887836 1.90458C0.572235 1.90458 0.316406 2.16058 0.316406 2.47601C0.316406 2.79144 0.572235 3.04744 0.887836 3.04744L5.56275 3.04688C5.8188 3.74688 6.44909 4.1903 7.17355 4.1903C7.89801 4.1903 8.53475 3.74574 8.79527 3.04231L10.0307 3.04744C10.3463 3.04744 10.6021 2.79144 10.6021 2.47601C10.6021 2.16058 10.3463 1.90458 10.0307 1.90458H8.79041C8.51527 1.20801 7.89801 0.761719 7.17355 0.761719ZM7.17355 1.90458C7.48915 1.90458 7.74498 2.16058 7.74498 2.47601C7.74498 2.79144 7.48915 3.04744 7.17355 3.04744C6.85795 3.04744 6.60212 2.79144 6.60212 2.47601C6.60212 2.16058 6.85795 1.90458 7.17355 1.90458ZM3.74498 5.04744C2.99184 5.04744 2.36144 5.51602 2.13127 6.19142C2.05092 6.19657 0.887836 6.19028 0.887836 6.19028C0.572235 6.19028 0.316406 6.44628 0.316406 6.76171C0.316406 7.07714 0.572235 7.33314 0.887836 7.33314C0.887836 7.33314 2.06064 7.32114 2.13372 7.32857C2.3639 8.004 2.99184 8.476 3.74498 8.476C4.46943 8.476 5.09023 8.032 5.36177 7.33485L10.0307 7.33314C10.3463 7.33314 10.6021 7.07714 10.6021 6.76171C10.6021 6.44628 10.3463 6.19028 10.0307 6.19028L5.3588 6.18519C5.10835 5.50346 4.46943 5.04744 3.74498 5.04744ZM3.74498 6.19028C4.06058 6.19028 4.31641 6.44628 4.31641 6.76171C4.31641 7.07714 4.06058 7.33314 3.74498 7.33314C3.42938 7.33314 3.17355 7.07714 3.17355 6.76171C3.17355 6.44628 3.42938 6.19028 3.74498 6.19028ZM7.17355 9.33314C6.44909 9.33314 5.7864 9.81029 5.56235 10.4703L0.887836 10.476C0.572235 10.476 0.316406 10.732 0.316406 11.0474C0.316406 11.3629 0.572235 11.6189 0.887836 11.6189L5.55389 11.6194C5.79098 12.2966 6.44909 12.7617 7.17355 12.7617C7.89801 12.7617 8.52264 12.3086 8.79784 11.6194L10.0307 11.6189C10.3463 11.6189 10.6021 11.3629 10.6021 11.0474C10.6021 10.732 10.3463 10.476 10.0307 10.476L8.79264 10.4726C8.54595 9.79663 7.89801 9.33314 7.17355 9.33314ZM7.17355 10.476C7.48915 10.476 7.74498 10.732 7.74498 11.0474C7.74498 11.3629 7.48915 11.6189 7.17355 11.6189C6.85795 11.6189 6.60212 11.3629 6.60212 11.0474C6.60212 10.732 6.85795 10.476 7.17355 10.476Z",fill:"white"})],-1)]),8,hy)):e.createCommentVNode("",!0),e.createElementVNode("span",uy,e.toDisplayString(y),1)]),e.createElementVNode("span",fy,e.toDisplayString(t.stats[f.variable]?t.stats[f.variable].value:"-"),1)]),e.createElementVNode("div",gy,[e.createElementVNode("div",{style:e.normalizeStyle({width:`${l(t.stats[f.variable])}%`}),class:"stat-bar"},null,4)])]))),128))],2)]),e.createVNode(e.unref(El),{isVisible:o.value,"onUpdate:isVisible":p[5]||(p[5]=f=>o.value=f),onClose:n,parameters:s.value},null,8,["isVisible","parameters"])],64))}},Sy=Ye(by,[["__scopeId","data-v-e864176a"]]),Ji={name:"GridView",components:{GscPlayerCard:Sy},props:{categories:{type:Array,default:()=>[],required:!0},deleteActive:{type:Boolean,default:!1},players:{type:Array,default:()=>[]},playerStats:{type:Object,default:()=>({})},playerAddtionalData:{type:Object,default:()=>({})},statsLoaded:{type:Boolean,default:!1}},data(){return{currentSlide:0,containerWidth:0,cardGap:9,touchStartX:0,touchEndX:0,isDragging:!1,dragStartX:0,dragCurrentX:0,selectedPlayers:[]}},computed:{showSlider(){return this.containerWidth<610},isSingleCardView(){return this.containerWidth<440},visiblePlayers(){const t=this.isSingleCardView?1:2;return this.players.slice(this.currentSlide,this.currentSlide+t)},columnsCount(){const t=this.containerWidth;return t>=1500?5:t>=1200?4:t>=900?3:2},cardWidth(){if(!this.containerWidth||!this.columnsCount)return 0;const t=this.containerWidth,i=this.cardGap*(this.columnsCount-1);return Math.floor((t-i)/this.columnsCount)},sliderCardWidth(){return this.isSingleCardView?Math.floor(this.containerWidth-this.cardGap*2):Math.floor((this.containerWidth-this.cardGap*3)/2)},layoutClass(){return{"grid-container":!this.showSlider,"slider-container":this.showSlider}},totalPages(){const t=this.isSingleCardView?1:2;return Math.ceil(this.players.length/t)},currentPage(){const t=this.isSingleCardView?1:2;return Math.floor(this.currentSlide/t)},isLastPage(){const t=this.isSingleCardView?1:2;return this.currentSlide+t>=this.players.length}},methods:{handleShowGraph(t){this.$emit("showGraph",t)},getPlayerStats(t){return this.statsLoaded?this.playerStats[t]||{}:null},getPlayerAdditionalData(t){return this.statsLoaded?this.playerAddtionalData[t]||{}:null},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},transformCategoriesToStats(t){return new Promise(i=>{const a={};t.forEach(o=>{a[o.name]={variable:o.id_variable,parametros:o.parameters}}),i(a)})},setupSliderListeners(){if(this.removeSliderListeners(),this.showSlider){const t=this.$el.querySelector(".slider-content");t&&(t.addEventListener("touchstart",this.handleTouchStart),t.addEventListener("touchend",this.handleTouchEnd),t.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp))}},removeSliderListeners(){const t=this.$el.querySelector(".slider-content");t&&(t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp))},updateContainerWidth(){this.$el&&(this.containerWidth=this.$el.offsetWidth,this.$nextTick(()=>{this.setupSliderListeners()}))},nextSlide(){const t=this.isSingleCardView?1:2,i=this.currentSlide+t;i<this.players.length?this.currentSlide=i:i>this.players.length&&this.currentSlide+1<this.players.length&&(this.currentSlide=this.players.length-1)},prevSlide(){const t=this.isSingleCardView?1:2;this.currentSlide>0&&(this.currentSlide-=t)},goToPage(t){const i=this.isSingleCardView?1:2;this.currentSlide=t*i},handleKeyPress(t){this.showSlider&&(t.key==="ArrowLeft"?this.prevSlide():t.key==="ArrowRight"&&this.nextSlide())},handleTouchStart(t){this.showSlider&&(this.touchStartX=t.touches[0].clientX)},handleTouchEnd(t){this.showSlider&&(this.touchEndX=t.changedTouches[0].clientX,this.handleSwipe())},handleSwipe(){const t=this.touchStartX-this.touchEndX;Math.abs(t)>50&&(t>0?this.nextSlide():this.prevSlide())},handleMouseDown(t){this.showSlider&&(this.isDragging=!0,this.dragStartX=t.clientX,this.dragCurrentX=t.clientX,t.preventDefault())},handleMouseMove(t){this.isDragging&&(this.dragCurrentX=t.clientX)},handleMouseUp(){if(!this.isDragging)return;const t=this.dragStartX-this.dragCurrentX;Math.abs(t)>50&&(t>0?this.nextSlide():this.prevSlide()),this.isDragging=!1},shouldShowDot(t){if(this.isSingleCardView){if(t===0||t===this.totalPages-1)return!0;const i=this.currentPage;return Math.abs(t-i)<=1}return!0},togglePlayerSelection(t){const i=this.selectedPlayers.findIndex(a=>a.player_id===t.player_id);i===-1?this.selectedPlayers.push(t):this.selectedPlayers.splice(i,1),this.$emit("selectedPlayersToDelete",this.selectedPlayers),this.$emit("updateSelection",this.selectedPlayers.length>0)},isPlayerSelected(t){return this.selectedPlayers.some(i=>i.player_id===t.player_id)},handleDeletePlayer(t){this.$emit("delete-player",t)},handleShowProfile(t){this.$emit("showProfile",t)}},mounted(){this.$nextTick(()=>{this.updateContainerWidth(),window.addEventListener("resize",this.updateContainerWidth),window.addEventListener("keydown",this.handleKeyPress)})},beforeDestroy(){window.removeEventListener("resize",this.updateContainerWidth),window.removeEventListener("keydown",this.handleKeyPress),this.removeSliderListeners()},watch:{showSlider:{handler(t){this.$nextTick(()=>{this.setupSliderListeners()})}},deleteActive(t){t||(this.selectedPlayers=[],this.$emit("selectedPlayersToDelete",[]),this.$emit("updateSelection",!1))}}},Vl=()=>{e.useCssVars(t=>({d428e65e:t.cardGap+"px"}))},xl=Ji.setup;Ji.setup=xl?(t,i)=>(Vl(),xl(t,i)):Vl;const Cy={class:"grid-view"},wy={key:1,class:"slider"},ky={class:"slider-content"},Ey={class:"slider-navigation"},Vy=["disabled"],xy={class:"slider-pagination"},Ny=["onClick"],Ty=["disabled"];function By(t,i,a,o,s,l){const r=e.resolveComponent("GscPlayerCard");return e.openBlock(),e.createElementBlock("div",Cy,[e.createElementVNode("div",{class:e.normalizeClass(l.layoutClass)},[l.showSlider?(e.openBlock(),e.createElementBlock("div",wy,[e.createElementVNode("div",ky,[e.createVNode(e.TransitionGroup,{name:"slide"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.visiblePlayers,(n,d)=>(e.openBlock(),e.createBlock(r,e.mergeProps({key:n.id||d,onShowGraph:l.handleShowGraph,onDeletePlayer:l.handleDeletePlayer,onShowProfile:l.handleShowProfile,ref_for:!0},n,{age:l.calculateAge(n.dob),stats:l.getPlayerStats(n.player_id),additionalData:l.getPlayerAdditionalData(n.player_id),loading:!a.statsLoaded,"stats-promise":l.transformCategoriesToStats(a.categories),deleteActive:a.deleteActive,isSelected:l.isPlayerSelected(n),onToggleSelection:p=>l.togglePlayerSelection(n),class:"slider-item",style:{width:l.sliderCardWidth+"px"}}),null,16,["onShowGraph","onDeletePlayer","onShowProfile","age","stats","additionalData","loading","stats-promise","deleteActive","isSelected","onToggleSelection","style"]))),128))]),_:1})]),e.createElementVNode("div",Ey,[e.createElementVNode("button",{class:"slider-btn prev",onClick:i[0]||(i[0]=(...n)=>l.prevSlide&&l.prevSlide(...n)),disabled:s.currentSlide===0},i[2]||(i[2]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/flecla-left.png",alt:"prev",class:"nav-icon"},null,-1)]),8,Vy),e.createElementVNode("div",xy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.totalPages,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n},[l.shouldShowDot(n-1)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["pagination-dot",{active:l.currentPage===n-1}]),onClick:d=>l.goToPage(n-1)},null,10,Ny)):e.createCommentVNode("",!0)],64))),128))]),e.createElementVNode("button",{class:"slider-btn next",onClick:i[1]||(i[1]=(...n)=>l.nextSlide&&l.nextSlide(...n)),disabled:l.isLastPage},i[3]||(i[3]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/flecha-rigth.png",alt:"next",class:"nav-icon"},null,-1)]),8,Ty)])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.players,(n,d)=>(e.openBlock(),e.createBlock(r,e.mergeProps({key:d,onShowGraph:l.handleShowGraph,onDeletePlayer:l.handleDeletePlayer,onShowProfile:l.handleShowProfile,ref_for:!0},n,{player:n,age:l.calculateAge(n.dob),stats:l.getPlayerStats(n.player_id),additionalData:l.getPlayerAdditionalData(n.player_id),loading:!a.statsLoaded,"stats-promise":l.transformCategoriesToStats(a.categories),style:{width:l.cardWidth+"px"},deleteActive:a.deleteActive,isSelected:l.isPlayerSelected(n),onToggleSelection:p=>l.togglePlayerSelection(n)}),null,16,["onShowGraph","onDeletePlayer","onShowProfile","player","age","stats","additionalData","loading","stats-promise","style","deleteActive","isSelected","onToggleSelection"]))),128))],2)])}const Fy=Ye(Ji,[["render",By],["__scopeId","data-v-f6994525"]]),Py=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},$y={key:1},Ay={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zy=["fill"],Iy={key:0,class:"checkbox__teams"},My={class:"checkbox__teams__logo"},Ly=["src"],Dy={class:"checkbox__teams__logo"},Ry=["src"],Oy={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(t){return["left","right","top","bottom"].includes(t)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function d(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",$y,[(e.openBlock(),e.createElementBlock("svg",Ay,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:t.boxValueColor},null,8,zy)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",Iy,[e.createElementVNode("div",My,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,Ly)]),e.createElementVNode("div",Dy,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,Ry)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},jy=Py(Oy,[["__scopeId","data-v-b6f124d8"]]),vy=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},qi={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Nl=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Tl=qi.setup;qi.setup=Tl?(t,i)=>(Nl(),Tl(t,i)):Nl;const Wy=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Uy=["src"],Gy={key:1,class:"text"},Hy=["src"],Jy={class:"stats"},qy=Wy(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Zy={class:"numstats"},Yy={class:"leyend"};function Ky(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Uy)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",Gy,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Hy)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",Jy,[qy,e.createElementVNode("div",Zy,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",Yy,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const Xy=vy(qi,[["render",Ky],["__scopeId","data-v-f3ee6b2b"]]),Bl=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Fl=t=>(e.pushScopeId("data-v-7023d006"),t=t(),e.popScopeId(),t),Qy={key:0,class:"overlay"},eh={class:"name"},th=["onClick"],ah=Fl(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),ih=[ah],oh=Fl(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),sh=["onClick"],lh={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(null),r=e.ref(0);e.ref(!1);const n=e.computed(()=>{const c=o.availablePlayers[0];return c?c.stats:[]}),d=e.computed(()=>{const c=`repeat(${n.value.length}, max-content) 36px`;let u="";return r.value>0&&document.querySelectorAll(".column-title-2").forEach(m=>{u+=`${m.offsetWidth}px `}),{"--grid-template-columns":c,"--grid-template-columns-totals":u||c}});function p(){s.value=new ResizeObserver(c=>{for(const u of c){const{width:m}=u.contentRect;r.value=m}}),s.value.observe(l.value)}function f(c,u){const m=document.querySelectorAll(".scrollable-row-totals")[c+1];m&&(m.style.marginTop=`${u}px`)}function y({player:c,stat:u}){!u.total||u==="0%"||!u.seasons||!u.seasons.length||a("open-media",{...c,stat:u})}function h(c){!c||c==="no"||a("click-parameters",c)}return e.onMounted(()=>{p()}),i({setMarginTopDetails:f}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(d.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",Qy)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:l,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${g}`,class:"column-title-2"},[e.createElementVNode("div",eh,e.toDisplayString(m.name),1),m.parameters&&m.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:_=>h(m.parameters)},ih,8,th)):e.createCommentVNode("",!0)]))),128)),oh],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${m.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.stats,_=>(e.openBlock(),e.createElementBlock("div",{key:_.category_id,class:e.normalizeClass(["row data-info",{odd:g%2!==0,underline:!!_.total&&_.total!=="0%"&&_.seasons&&_.seasons.length}]),onClick:k=>y({player:m,stat:_})},e.toDisplayString(_.total),11,sh))),128))]))),128))],4))}},rh=Bl(lh,[["__scopeId","data-v-7023d006"]]),Be=t=>(e.pushScopeId("data-v-510e4abc"),t=t(),e.popScopeId(),t),nh={class:"table__static-column"},dh=Be(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),ch={class:"container"},ph={class:"details-row__info"},mh={class:"details-row__info__personal"},yh={class:"bold"},hh={class:"bold"},uh={class:"bold"},fh={class:"bold"},gh={class:"details-row__info__games"},_h={class:"bold"},bh={class:"bold"},Sh=["onClick"],Ch=Be(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),wh=Be(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),kh=[Ch,wh],Eh=["onClick"],Vh=Be(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),xh=Be(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Nh=[Vh,xh],Th=["onClick"],Bh=Be(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),Fh=Be(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Ph=[Bh,Fh],$h=["onClick"],Ah=Be(()=>e.createElementVNode("div",null,"Ver perfil",-1)),zh=[Ah],Ih={class:"static-row__info-player"},Mh={class:"position"},Lh=["onClick"],Dh=Be(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Rh=Be(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Oh=Be(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),jh=[Dh,Rh,Oh],vh=["onClick"],Wh=Be(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Uh=Be(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Gh=Be(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Hh=[Wh,Uh,Gh],Jh={class:"player-photo"},qh=["src"],Zh={class:"player-name"},Yh={class:"arrow"},Kh=["onClick"],Xh=Be(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),Qh=[Xh],eu=e.createStaticVNode('<div class="titles scrollable-row" data-v-510e4abc><div class="column-title" data-v-510e4abc>Equipo</div><div class="column-title" data-v-510e4abc>Posición</div><div class="column-title" data-v-510e4abc>Edad</div><div class="column-title" data-v-510e4abc>País</div><div class="column-title" data-v-510e4abc>Partidos Jugados</div><div class="column-title" data-v-510e4abc>Minutos Jugados</div><div class="column-title" data-v-510e4abc>Liga</div><div class="column-title" data-v-510e4abc>Videos</div><div class="column-title" data-v-510e4abc></div></div>',1),tu={class:"team-logo"},au=["src"],iu={class:"team-name data-info"},ou=["src"],su={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters"],setup(t,{emit:i}){const a=t;let o=null,s=null;const l=e.ref([]),r=e.ref(null),n=e.ref(null),d=e.ref(0),p=e.ref(0),f=e.ref(-1);e.ref(!1);const y=e.ref(null),h=e.ref(null),c=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${u.value?"8px":"18px"}`,"--width-static-column":`${u.value?"50%":"256px"}`})),u=e.computed(()=>d.value<600);e.watch(()=>a.players,x=>{x&&x.length&&(l.value=x.map((w,S)=>{const F=S+1,V={...w,position:F<10?`0${F}`:`${F}`,isSelected:!1,isExpanded:!1,isOdd:S%2!==0,index:S};return V.parameters&&Object.entries(V.parameters).forEach(([j,P])=>{const U=V.stats.find(O=>O.custom_category_id===Number(j));U&&(U.parameters=P)}),V}))},{immediate:!0,deep:!0}),e.watch(()=>a.isEditMode,x=>{x&&l.value.forEach(w=>{w.isSelected=!1})}),e.watch(p,x=>{const w=document.querySelectorAll(".static-row")[f.value+1];w&&(w.style.marginTop=`${x}px`),a.isGeneral?m(f.value,x):n.value&&n.value.setMarginTopDetails(f.value,x),x===0&&y.value&&R(y.value)});function m(x,w){const S=document.querySelectorAll(".scrollable-row")[x+2];S&&(S.style.marginTop=`${w}px`)}function g(x){i("click-parameters",x)}function _(x){const w=x.player||x.objeto_player,S=w?w.player_id||w.id||w.playerId:x.id||x.player_id,F=w?w.team_id||w.teamId:x.team_id||x.teamId,V={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:S?[S]:[],goalkeeperIds:[],teamId:F||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(x.stat&&x.stat.seasons&&x.stat.seasons.length||x.seasons&&x.seasons.length){const j=[...x.stat&&x.stat.seasons&&x.stat.seasons.length?x.stat.seasons:x.seasons];j.sort((P,U)=>P-U),V.seasonId=j.shift(),V.seasonsIds=j}else(x.season_id||x.seasonId)&&(V.seasonId=x.season_id||x.seasonId);x.stat?x.stat.category_id?V.categoryIds=x.stat.category_id:x.stat.custom_category_id&&(V.customCategoryIds=[x.stat.custom_category_id]):V.categoryIds=J(x.player_position),i("open-media",V)}function k(){o=new ResizeObserver(x=>{for(const w of x)d.value=w.contentRect.width}),o.observe(r.value)}function W(x){s=new ResizeObserver(w=>{for(const S of w)p.value=S.contentRect.height}),s.observe(x)}function J(x){return x==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function L(x,w){w.isSelected=x;const S=l.value.filter(F=>F.isSelected);i("change-selected-players",S)}function G(x){i("view-profile",x)}function Z(x){i("delete-from-list",x)}function q(x){i("add-to-list",x)}function Y(x){i("show-graph",x)}function R(x){if(x.isExpanded){x.isExpanded=!1,y.value=null;return}const w=l.value.find(F=>F.isExpanded);if(w&&(w.isExpanded=!1),w){y.value=x;return}const S=document.querySelectorAll(".details-row")[x.index];f.value=x.index,W(S),x.isExpanded=!0}let N=!1,D,$,H=function(x){N=!0,D=x.pageX-h.value.offsetLeft,$=h.value.scrollLeft},K=function(){N=!1};function ce(){h.value&&(h.value.addEventListener("mousemove",x=>{if(!N)return;const w=x.pageX-h.value.offsetLeft-D;h.value.scrollLeft=$-w}),h.value.addEventListener("mousedown",H,!1),h.value.addEventListener("mouseup",K,!1),h.value.addEventListener("mouseleave",K,!1))}return e.onMounted(()=>{k(),ce()}),e.onBeforeUnmount(()=>{o&&o.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",H,!1),h.value.removeEventListener("mouseup",K,!1),h.value.removeEventListener("mouseleave",K,!1))}),(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:r,style:e.normalizeStyle(c.value)},[e.createElementVNode("div",nh,[dh,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`s-${S.id}`,class:e.normalizeClass(["row static-row",{odd:S.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:S.isOdd}])},[e.createElementVNode("div",ch,[e.createElementVNode("div",ph,[e.createElementVNode("div",mh,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",yh,e.toDisplayString(S.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",hh,e.toDisplayString(S.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",uh,e.toDisplayString(S.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",fh,e.toDisplayString(S.position_name),1)])]),e.createElementVNode("div",gh,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",_h,e.toDisplayString(S.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",bh,e.toDisplayString(S.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(u.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:F=>Y(S)},kh,8,Sh),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:F=>Z(S)},Nh,8,Eh)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:F=>q(S)},Ph,8,Th)),e.createElementVNode("div",{role:"button",class:"button green",onClick:F=>G(S)},zh,8,$h)],4)])],2),[[e.vShow,S.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(jy),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":S.isSelected,"onUpdate:modelValue":F=>L(F,S)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ih,[e.createElementVNode("div",Mh,e.toDisplayString(S.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>Z(S)},jh,8,Lh)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>q(S)},Hh,8,vh)),e.createElementVNode("div",Jh,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:S.player_photo,alt:"player photo"},null,8,qh)])]),e.createElementVNode("div",Zh,e.toDisplayString(S.player_name),1)]),e.createElementVNode("div",Yh,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:S.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:F=>R(S)},Qh,10,Kh))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:h,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[eu,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`i-${S.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:S.isOdd}])},[e.createElementVNode("div",tu,[e.createElementVNode("img",{src:S.team_logo,alt:"team logo"},null,8,au)]),e.createElementVNode("div",iu,e.toDisplayString(S.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createElementVNode("img",{src:S.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,ou)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createVNode(e.unref(Xy),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:F=>_(S)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(rh,{key:1,ref_key:"scrollColumns",ref:n,"available-players":l.value,"is-edit-mode":t.isEditMode,onOpenMedia:_,onClickParameters:g},null,8,["available-players","is-edit-mode"]))],512)],4))}},lu=Bl(su,[["__scopeId","data-v-510e4abc"]]),Zi={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"},ru={name:"ListView",components:{GSCTableScrollable:lu,ModalViewVarGolstats:El},props:{categories:{type:Array,default:()=>[],required:!0},isGeneral:{type:Boolean,default:!1},players:{type:Array,default:()=>[]},deleteActive:{type:Boolean,default:!1},playerAddtionalData:{type:Object,default:()=>({})},playerStats:{type:Object,default:()=>({})},statsLoaded:{type:Boolean,default:!1}},data(){return{showModal:!1,currentParameters:{},playersFormatted:[]}},watch:{players:{immediate:!0,handler(t){this.isGeneral?this.playersFormatted=t.map(i=>this.formatPlayerDataGeneral(i)):this.playersFormatted=t.map(i=>this.formatPlayerData(i))}},playerStats:{handler(t,i){t!==i&&(this.playersFormatted=this.players.map(a=>this.formatPlayerData(a)))},deep:!0}},methods:{onClickParameters(t){this.currentParameters=t,this.showModal=!0},closeModal(){this.showModal=!1},showProfile(t){this.$emit("view-profile",t)},deleteFromList(t){this.$emit("delete-from-list",t)},showGraph(t){this.$emit("show-graph",t)},onOpenMedia(t){this.$emit("open-media",t)},formatPlayerDataGeneral(t){var i,a,o,s,l;return{objeto_player:t,player_photo:t.photo,player_name:t.name,player_id:t.player_id,player_age:this.calculateAge(t.dob),team_name:((i=this.playerAddtionalData[t.player_id])==null?void 0:i.team_name)||"-",team_id:t.team_id,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t.team_id+".png",position_name:t.position,player_position:t.position,player_country:Zi[`${t.nationality_id}`]||t.nationality,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t.nationality_id+".jpg",player_games:((a=this.playerAddtionalData[t.player_id])==null?void 0:a.games_played)||0,player_min:((o=this.playerAddtionalData[t.player_id])==null?void 0:o.minutes)||0,league_name:(s=this.playerAddtionalData[t.player_id])==null?void 0:s.tournament_name,seasons:[...new Set(this.categories.map(r=>{var n,d;return((d=(n=this.playerStats[t.player_id])==null?void 0:n[r.id_variable])==null?void 0:d.season)||[]}).flat())].filter(r=>r&&r!==0),season_id:((l=this.playerAddtionalData[t.player_id])==null?void 0:l.season_id)||0,stats:this.categories.map(r=>{var n,d,p,f,y,h,c,u;return{category_id:((d=(n=this.playerStats[t.player_id])==null?void 0:n[r.id_variable])==null?void 0:d.categories)||null,custom_category_id:((f=(p=this.playerStats[t.player_id])==null?void 0:p[r.id_variable])==null?void 0:f.variable_id)||null,name:r.name,parameters:r.parameters,total:((h=(y=this.playerStats[t.player_id])==null?void 0:y[r.id_variable])==null?void 0:h.value)||0,seasons:((u=(c=this.playerStats[t.player_id])==null?void 0:c[r.id_variable])==null?void 0:u.season)||null}})}},formatPlayerData(t){var i,a,o,s;return Object.keys(this.playerStats[t.player_id])[0],{objeto_player:t,player_photo:t.photo,player_name:t.name,player_id:t.player_id,player_age:this.calculateAge(t.dob),team_name:((i=this.playerAddtionalData[t.player_id])==null?void 0:i.team_name)||"-",team_id:t.team_id,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t.team_id+".png",position_name:t.position,player_position:t.position,player_country:Zi[`${t.nationality_id}`]||t.nationality,player_country_flag:t.countryFlag,player_games:((a=this.playerAddtionalData[t.player_id])==null?void 0:a.games_played)||0,player_min:((o=this.playerAddtionalData[t.player_id])==null?void 0:o.minutes)||0,league_name:"-",seasons:[...new Set(this.categories.map(l=>{var r,n;return((n=(r=this.playerStats[t.player_id])==null?void 0:r[l.id_variable])==null?void 0:n.season)||[]}).flat())].filter(l=>l&&l!==0),season_id:((s=this.playerAddtionalData[t.player_id])==null?void 0:s.season_id)||0,stats:this.categories.map(l=>{var r,n,d,p,f,y,h,c;return{category_id:((n=(r=this.playerStats[t.player_id])==null?void 0:r[l.id_variable])==null?void 0:n.categories)||null,custom_category_id:((p=(d=this.playerStats[t.player_id])==null?void 0:d[l.id_variable])==null?void 0:p.variable_id)||null,name:l.name,parameters:l.parameters,total:((y=(f=this.playerStats[t.player_id])==null?void 0:f[l.id_variable])==null?void 0:y.value)||0,seasons:((c=(h=this.playerStats[t.player_id])==null?void 0:h[l.id_variable])==null?void 0:c.season)||null}})}},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},handleSelectedPlayers(t){const i=t.map(a=>a.objeto_player);this.$emit("change-selected-players",i)}}},nu={class:"list-view"};function du(t,i,a,o,s,l){const r=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("GSCTableScrollable");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{isVisible:s.showModal,"onUpdate:isVisible":i[0]||(i[0]=d=>s.showModal=d),onClose:l.closeModal,parameters:s.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",nu,[e.createVNode(n,{players:s.playersFormatted,"is-general":a.isGeneral,"is-edit-mode":a.deleteActive,"is-table-from-list":!0,onChangeSelectedPlayers:l.handleSelectedPlayers,onViewProfile:l.showProfile,onDeleteFromList:l.deleteFromList,onShowGraph:l.showGraph,onOpenMedia:l.onOpenMedia,onClickParameters:l.onClickParameters},null,8,["players","is-general","is-edit-mode","onChangeSelectedPlayers","onViewProfile","onDeleteFromList","onShowGraph","onOpenMedia","onClickParameters"])])],64)}const cu=Ye(ru,[["render",du],["__scopeId","data-v-b865218d"]]);function Pl(t,i){return function(){return t.apply(i,arguments)}}const{toString:pu}=Object.prototype,{getPrototypeOf:Yi}=Object,xa=(t=>i=>{const a=pu.call(i);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),ve=t=>(t=t.toLowerCase(),i=>xa(i)===t),Na=t=>i=>typeof i===t,{isArray:Mt}=Array,ea=Na("undefined");function mu(t){return t!==null&&!ea(t)&&t.constructor!==null&&!ea(t.constructor)&&Me(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $l=ve("ArrayBuffer");function yu(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&$l(t.buffer),i}const hu=Na("string"),Me=Na("function"),Al=Na("number"),Ta=t=>t!==null&&typeof t=="object",uu=t=>t===!0||t===!1,Ba=t=>{if(xa(t)!=="object")return!1;const i=Yi(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},fu=ve("Date"),gu=ve("File"),_u=ve("Blob"),bu=ve("FileList"),Su=t=>Ta(t)&&Me(t.pipe),Cu=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||Me(t.append)&&((i=xa(t))==="formdata"||i==="object"&&Me(t.toString)&&t.toString()==="[object FormData]"))},wu=ve("URLSearchParams"),[ku,Eu,Vu,xu]=["ReadableStream","Request","Response","Headers"].map(ve),Nu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ta(t,i,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,s;if(typeof t!="object"&&(t=[t]),Mt(t))for(o=0,s=t.length;o<s;o++)i.call(null,t[o],o,t);else{const l=a?Object.getOwnPropertyNames(t):Object.keys(t),r=l.length;let n;for(o=0;o<r;o++)n=l[o],i.call(null,t[n],n,t)}}function zl(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 gt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Il=t=>!ea(t)&&t!==gt;function Ki(){const{caseless:t}=Il(this)&&this||{},i={},a=(o,s)=>{const l=t&&zl(i,s)||s;Ba(i[l])&&Ba(o)?i[l]=Ki(i[l],o):Ba(o)?i[l]=Ki({},o):Mt(o)?i[l]=o.slice():i[l]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ta(arguments[o],a);return i}const Tu=(t,i,a,{allOwnKeys:o}={})=>(ta(i,(s,l)=>{a&&Me(s)?t[l]=Pl(s,a):t[l]=s},{allOwnKeys:o}),t),Bu=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Fu=(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)},Pu=(t,i,a,o)=>{let s,l,r;const n={};if(i=i||{},t==null)return i;do{for(s=Object.getOwnPropertyNames(t),l=s.length;l-- >0;)r=s[l],(!o||o(r,t,i))&&!n[r]&&(i[r]=t[r],n[r]=!0);t=a!==!1&&Yi(t)}while(t&&(!a||a(t,i))&&t!==Object.prototype);return i},$u=(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},Au=t=>{if(!t)return null;if(Mt(t))return t;let i=t.length;if(!Al(i))return null;const a=new Array(i);for(;i-- >0;)a[i]=t[i];return a},zu=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Yi(Uint8Array)),Iu=(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])}},Mu=(t,i)=>{let a;const o=[];for(;(a=t.exec(i))!==null;)o.push(a);return o},Lu=ve("HTMLFormElement"),Du=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,a,o){return a.toUpperCase()+o}),Ml=(({hasOwnProperty:t})=>(i,a)=>t.call(i,a))(Object.prototype),Ru=ve("RegExp"),Ll=(t,i)=>{const a=Object.getOwnPropertyDescriptors(t),o={};ta(a,(s,l)=>{let r;(r=i(s,l,t))!==!1&&(o[l]=r||s)}),Object.defineProperties(t,o)},Ou=t=>{Ll(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+"'")})}})},ju=(t,i)=>{const a={},o=s=>{s.forEach(l=>{a[l]=!0})};return Mt(t)?o(t):o(String(t).split(i)),a},vu=()=>{},Wu=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Uu(t){return!!(t&&Me(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Gu=t=>{const i=new Array(10),a=(o,s)=>{if(Ta(o)){if(i.indexOf(o)>=0)return;if(!("toJSON"in o)){i[s]=o;const l=Mt(o)?[]:{};return ta(o,(r,n)=>{const d=a(r,s+1);!ea(d)&&(l[n]=d)}),i[s]=void 0,l}}return o};return a(t,0)},Hu=ve("AsyncFunction"),Ju=t=>t&&(Ta(t)||Me(t))&&Me(t.then)&&Me(t.catch),Dl=((t,i)=>t?setImmediate:i?((a,o)=>(gt.addEventListener("message",({source:s,data:l})=>{s===gt&&l===a&&o.length&&o.shift()()},!1),s=>{o.push(s),gt.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Me(gt.postMessage)),qu=typeof queueMicrotask<"u"?queueMicrotask.bind(gt):typeof process<"u"&&process.nextTick||Dl,A={isArray:Mt,isArrayBuffer:$l,isBuffer:mu,isFormData:Cu,isArrayBufferView:yu,isString:hu,isNumber:Al,isBoolean:uu,isObject:Ta,isPlainObject:Ba,isReadableStream:ku,isRequest:Eu,isResponse:Vu,isHeaders:xu,isUndefined:ea,isDate:fu,isFile:gu,isBlob:_u,isRegExp:Ru,isFunction:Me,isStream:Su,isURLSearchParams:wu,isTypedArray:zu,isFileList:bu,forEach:ta,merge:Ki,extend:Tu,trim:Nu,stripBOM:Bu,inherits:Fu,toFlatObject:Pu,kindOf:xa,kindOfTest:ve,endsWith:$u,toArray:Au,forEachEntry:Iu,matchAll:Mu,isHTMLForm:Lu,hasOwnProperty:Ml,hasOwnProp:Ml,reduceDescriptors:Ll,freezeMethods:Ou,toObjectSet:ju,toCamelCase:Du,noop:vu,toFiniteNumber:Wu,findKey:zl,global:gt,isContextDefined:Il,isSpecCompliantForm:Uu,toJSONObject:Gu,isAsyncFn:Hu,isThenable:Ju,setImmediate:Dl,asap:qu};function ee(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)}A.inherits(ee,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:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Rl=ee.prototype,Ol={};["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=>{Ol[t]={value:t}}),Object.defineProperties(ee,Ol),Object.defineProperty(Rl,"isAxiosError",{value:!0}),ee.from=(t,i,a,o,s,l)=>{const r=Object.create(Rl);return A.toFlatObject(t,r,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),ee.call(r,t.message,i,a,o,s),r.cause=t,r.name=t.name,l&&Object.assign(r,l),r};const Zu=null;function Xi(t){return A.isPlainObject(t)||A.isArray(t)}function jl(t){return A.endsWith(t,"[]")?t.slice(0,-2):t}function vl(t,i,a){return t?t.concat(i).map(function(o,s){return o=jl(o),!a&&s?"["+o+"]":o}).join(a?".":""):i}function Yu(t){return A.isArray(t)&&!t.some(Xi)}const Ku=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Fa(t,i,a){if(!A.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,a=A.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,u){return!A.isUndefined(u[c])});const o=a.metaTokens,s=a.visitor||p,l=a.dots,r=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(i);if(!A.isFunction(s))throw new TypeError("visitor must be a function");function d(c){if(c===null)return"";if(A.isDate(c))return c.toISOString();if(!n&&A.isBlob(c))throw new ee("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(c)||A.isTypedArray(c)?n&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function p(c,u,m){let g=c;if(c&&!m&&typeof c=="object"){if(A.endsWith(u,"{}"))u=o?u:u.slice(0,-2),c=JSON.stringify(c);else if(A.isArray(c)&&Yu(c)||(A.isFileList(c)||A.endsWith(u,"[]"))&&(g=A.toArray(c)))return u=jl(u),g.forEach(function(_,k){!(A.isUndefined(_)||_===null)&&i.append(r===!0?vl([u],k,l):r===null?u:u+"[]",d(_))}),!1}return Xi(c)?!0:(i.append(vl(m,u,l),d(c)),!1)}const f=[],y=Object.assign(Ku,{defaultVisitor:p,convertValue:d,isVisitable:Xi});function h(c,u){if(!A.isUndefined(c)){if(f.indexOf(c)!==-1)throw Error("Circular reference detected in "+u.join("."));f.push(c),A.forEach(c,function(m,g){(!(A.isUndefined(m)||m===null)&&s.call(i,m,A.isString(g)?g.trim():g,u,y))===!0&&h(m,u?u.concat(g):[g])}),f.pop()}}if(!A.isObject(t))throw new TypeError("data must be an object");return h(t),i}function Wl(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Qi(t,i){this._pairs=[],t&&Fa(t,this,i)}const Ul=Qi.prototype;Ul.append=function(t,i){this._pairs.push([t,i])},Ul.toString=function(t){const i=t?function(a){return t.call(this,a,Wl)}:Wl;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function Xu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gl(t,i,a){if(!i)return t;const o=a&&a.encode||Xu;A.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let l;if(s?l=s(i,a):l=A.isURLSearchParams(i)?i.toString():new Qi(i,a).toString(o),l){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}let Hl=class{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){A.forEach(this.handlers,function(a){a!==null&&i(a)})}};const Jl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qu=typeof URLSearchParams<"u"?URLSearchParams:Qi,ef=typeof FormData<"u"?FormData:null,tf=typeof Blob<"u"?Blob:null,af={isBrowser:!0,classes:{URLSearchParams:Qu,FormData:ef,Blob:tf},protocols:["http","https","file","blob","url","data"]},eo=typeof window<"u"&&typeof document<"u",to=typeof navigator=="object"&&navigator||void 0,of=eo&&(!to||["ReactNative","NativeScript","NS"].indexOf(to.product)<0),sf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lf=eo&&window.location.href||"http://localhost",rf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eo,hasStandardBrowserEnv:of,hasStandardBrowserWebWorkerEnv:sf,navigator:to,origin:lf},Symbol.toStringTag,{value:"Module"})),Ve={...rf,...af};function nf(t,i){return Fa(t,new Ve.classes.URLSearchParams,Object.assign({visitor:function(a,o,s,l){return Ve.isNode&&A.isBuffer(a)?(this.append(o,a.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},i))}function df(t){return A.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function cf(t){const i={},a=Object.keys(t);let o;const s=a.length;let l;for(o=0;o<s;o++)l=a[o],i[l]=t[l];return i}function ql(t){function i(a,o,s,l){let r=a[l++];if(r==="__proto__")return!0;const n=Number.isFinite(+r),d=l>=a.length;return r=!r&&A.isArray(s)?s.length:r,d?(A.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!n):((!s[r]||!A.isObject(s[r]))&&(s[r]=[]),i(a,o,s[r],l)&&A.isArray(s[r])&&(s[r]=cf(s[r])),!n)}if(A.isFormData(t)&&A.isFunction(t.entries)){const a={};return A.forEachEntry(t,(o,s)=>{i(df(o),s,a,0)}),a}return null}function pf(t,i,a){if(A.isString(t))try{return(i||JSON.parse)(t),A.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const aa={transitional:Jl,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const a=i.getContentType()||"",o=a.indexOf("application/json")>-1,s=A.isObject(t);if(s&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o?JSON.stringify(ql(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return nf(t,this.formSerializer).toString();if((l=A.isFileList(t))||a.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Fa(l?{"files[]":t}:t,r&&new r,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),pf(t)):t}],transformResponse:[function(t){const i=this.transitional||aa.transitional,a=i&&i.forcedJSONParsing,o=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(a&&!this.responseType||o)){const s=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?ee.from(l,ee.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],t=>{aa.headers[t]={}});const mf=A.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"]),yf=t=>{const i={};let a,o,s;return t&&t.split(`
|
|
1
|
+
(function(ft,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(ft=typeof globalThis<"u"?globalThis:ft||self,e(ft.GSCPlayersTracking={},ft.Vue))})(this,function(ft,e){"use strict";const Mp=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Oi={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ml=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},yl=Oi.setup;Oi.setup=yl?(t,i)=>(ml(),yl(t,i)):ml;const Lp=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Dp=["src"],Rp={key:1,class:"text"},Op=["src"],jp={class:"stats"},vp=Lp(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Wp={class:"numstats"},Up={class:"leyend"};function Gp(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Dp)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",Rp,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Op)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",jp,[vp,e.createElementVNode("div",Wp,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",Up,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const Hp=Mp(Oi,[["render",Gp],["__scopeId","data-v-f3ee6b2b"]]),Jp={class:"gsc-dropdown__main-container__item-selected"},qp=["height","width"],Zp=["stroke"],Yp={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kp=["fill"],Xp={class:"gsc-dropdown__items-container"},Qp=["onClick"],e1={key:0,class:"gsc-dropdown__items-footer"},t1={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref({}),s=e.ref(null),l=e.ref(a.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>a.items,(c,u)=>{if(!a.modelValue&&(!a.onlyFirstTime||!u||!u.length)&&c&&c.length){if(a.defaultItemByProp){const m=a.items.findIndex(g=>g[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(l.value=m,o.value=c[m]):(l.value=0,o.value=c[0])}else o.value=c[a.defaultItemByIndex];i("input",o.value)}},{immediate:!0}),e.watch(()=>a.modelValue,c=>{if(c){const u=a.items.findIndex(m=>typeof c=="object"?JSON.stringify(m)===JSON.stringify(c):m===c);u!==-1&&(l.value=u,o.value=a.items[u],i("update:modelValue",o.value))}},{immediate:!0});const n=e.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-container-padding":a.listContainerPadding,"--list-item-padding":a.listItemPadding,"--list-item-margin":a.listItemMargin,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-border-radius":a.listItemBorderRadius,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--list-margin-top":a.listMarginTop,"--list-left":a.listAlignment==="left"?"0":"auto","--list-right":a.listAlignment==="right"?"0":"auto","--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),d=e.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function p(){a.isDisabled||(r.value=!r.value)}function f(c){s.value&&!s.value.contains(c.target)&&(r.value=!1)}function y(c,u){a.isMultipleOption?l.value=-1:(l.value=u,r.value=!1),o.value=c,i("input",o.value),i("update:modelValue",o.value)}function h(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",f)}),e.onBeforeMount(()=>{document.removeEventListener("click",f)}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:p},[e.createElementVNode("div",Jp,[e.renderSlot(c.$slots,"default",{selectedItem:o.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(d.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,Zp)],8,qp)):(e.openBlock(),e.createElementBlock("svg",Yp,[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,Kp)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Xp,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===l.value}]),key:g,onClick:_=>y(m,g)},[e.renderSlot(c.$slots,"availableItem",{item:m})],10,Qp)),[[e.vShow,!m.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",e1,[e.createVNode(e.unref(Hp),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:h})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},a1=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},ji={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},hl=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},ul=ji.setup;ji.setup=ul?(t,i)=>(hl(),ul(t,i)):hl;const i1=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),o1=["src"],s1={key:1,class:"text"},l1=["src"],r1={class:"stats"},n1=i1(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),d1={class:"numstats"},c1={class:"leyend"};function p1(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,o1)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",s1,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,l1)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",r1,[n1,e.createElementVNode("div",d1,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",c1,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const m1=a1(ji,[["render",p1],["__scopeId","data-v-f3ee6b2b"]]),y1={class:"gsc-dropdown__main-container__item-selected"},h1=["height","width"],u1=["stroke"],f1={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g1=["fill"],_1={class:"gsc-dropdown__items-container"},b1=["onClick"],S1={key:0,class:"gsc-dropdown__items-footer"},C1={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref({}),s=e.ref(null),l=e.ref(a.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>a.items,(c,u)=>{if(!a.modelValue&&(!a.onlyFirstTime||!u||!u.length)&&c&&c.length){if(a.defaultItemByProp){const m=a.items.findIndex(g=>g[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(l.value=m,o.value=c[m]):(l.value=0,o.value=c[0])}else o.value=c[a.defaultItemByIndex];i("input",o.value)}},{immediate:!0}),e.watch(()=>a.modelValue,c=>{if(c){const u=a.items.findIndex(m=>typeof c=="object"?JSON.stringify(m)===JSON.stringify(c):m===c);u!==-1&&(l.value=u,o.value=a.items[u],i("update:modelValue",o.value))}},{immediate:!0});const n=e.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-container-padding":a.listContainerPadding,"--list-item-padding":a.listItemPadding,"--list-item-margin":a.listItemMargin,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-border-radius":a.listItemBorderRadius,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--list-margin-top":a.listMarginTop,"--list-left":a.listAlignment==="left"?"0":"auto","--list-right":a.listAlignment==="right"?"0":"auto","--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),d=e.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function p(){a.isDisabled||(r.value=!r.value)}function f(c){s.value&&!s.value.contains(c.target)&&(r.value=!1)}function y(c,u){a.isMultipleOption?l.value=-1:(l.value=u,r.value=!1),o.value=c,i("input",o.value),i("update:modelValue",o.value)}function h(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",f)}),e.onBeforeMount(()=>{document.removeEventListener("click",f)}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:p},[e.createElementVNode("div",y1,[e.renderSlot(c.$slots,"default",{selectedItem:o.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(d.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,u1)],8,h1)):(e.openBlock(),e.createElementBlock("svg",f1,[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,g1)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",_1,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(m,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===l.value}]),key:g,onClick:_=>y(m,g)},[e.renderSlot(c.$slots,"availableItem",{item:m})],10,b1)),[[e.vShow,!m.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",S1,[e.createVNode(e.unref(m1),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:h})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},w1=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},k1={class:"tournament-select__selected-tournament"},E1={class:"tournament-select__selected-tournament__logo"},V1=["src"],x1={class:"tournament-select__selected-tournament__name"},N1="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",T1={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://golstatsimages.blob.core.windows.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},currentSeasonId:{type:Number,default:0},tournamentsIdsToInclude:{type:Set,default:()=>new Set},isClubesActive:{type:Boolean,default:!0},routeName:{type:String,default:""},avoidTournamentFilter:{type:Boolean,default:!1}},emits:["input","change-tournaments"],setup(t,{emit:i}){const a=t,o=new Set(["tops","table","dataia"]),s=e.ref([]),l=e.computed(()=>{const u={};return a.fontFamily&&(u["font-family"]=`${a.fontFamily}`),u}),r=e.computed(()=>s.value.filter(u=>!u.isHidden)),n=e.computed(()=>r.value.find(u=>u.seasonsIds.has(a.currentSeasonId))||r.value[0]);e.watch(()=>a.isClubesActive,()=>{d()},{immediate:!0}),e.watch(()=>a.routeName,()=>{console.log("watcher, routeName",a.routeName),d()},{immediate:!0});function d(){s.value.forEach(u=>{u.isHidden=!a.isClubesActive&&u.isClub||a.isClubesActive&&!u.isClub||a.routeName&&u.tournament_type===4&&o.has(a.routeName)})}async function p(){try{if(a.items&&a.items.length)s.value=[...a.items];else{const u=await y();i("change-tournaments",u),s.value=u.sort((m,g)=>m.tournament.order-g.tournament.order).reduce((m,g)=>{if(a.tournamentsIdsToInclude&&a.tournamentsIdsToInclude.size&&!a.tournamentsIdsToInclude.has(g.id))return m;const _={...g.tournament,seasons:g.seasons,seasonsIds:g.seasons.reduce((k,W)=>(k.add(W.id),k),new Set),isClub:g.tournament.international_tournament===0,isFriendlies:g.tournament.tournament_type===3};return _.isHidden=!a.avoidTournamentFilter&&(!a.isClubesActive&&_.isClub||a.isClubesActive&&!_.isClub),m.push(_),m},[])}}catch(u){throw new Error(u)}}function f(u){const m=new XMLHttpRequest,g=`${a.logosUrl}${u}.${a.logoFileType}`;return m.open("HEAD",g,!1),m.send(),m.status!==404}async function y(){try{return(await fetch(a.apiUrl||N1)).json()}catch(u){return Promise.reject(u)}}function h(u){i("input",u)}function c(u){i("input",u)}return e.onMounted(()=>{p()}),(u,m)=>(e.openBlock(),e.createElementBlock("div",{class:"tournament-select",style:e.normalizeStyle(l.value)},[e.createVNode(e.unref(C1),e.mergeProps(a,{"model-value":n.value,items:s.value,onInput:h,"onUpdate:modelValue":c}),{default:e.withCtx(({selectedItem:g})=>[e.createElementVNode("div",k1,[e.createElementVNode("div",E1,[f(g.id)?(e.openBlock(),e.createElementBlock("img",{key:0,src:`${a.logosUrl}${g.id}.${a.logoFileType}`,alt:""},null,8,V1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",x1,e.toDisplayString(g.name),1)])]),availableItem:e.withCtx(({item:g})=>[e.createElementVNode("div",null,e.toDisplayString(g.name),1)]),_:1},16,["model-value","items"])],4))}},B1=w1(T1,[["__scopeId","data-v-8ab1a3c5"]]);function F1(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 P1=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},vi={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)}}},fl=()=>{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}))},gl=vi.setup;vi.setup=gl?(t,i)=>(fl(),gl(t,i)):fl;const $1={ref:"gscScrollableContainer",class:"scrollable-container"},A1={class:"scrollable-arrows"},z1=["width","height","viewBox"],I1=["stroke"],M1={class:"scrollable-wrapper"},L1={class:"scrollable-arrows"},D1=["width","height","viewBox"],R1=["stroke"];function O1(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",$1,[a.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",l.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>l.scrollLeft&&l.scrollLeft(...r))},[e.createElementVNode("div",A1,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:l.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:a.arrowsColor},null,8,I1)],8,z1))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>l.getScroll&&l.getScroll(...r))},[e.createElementVNode("div",M1,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),a.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",l.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>l.scrollRight&&l.scrollRight(...r))},[e.createElementVNode("div",L1,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:l.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:a.arrowsColor},null,8,R1)],8,D1))])],2)):e.createCommentVNode("",!0)],512)}const j1=P1(vi,[["render",O1],["__scopeId","data-v-b548a08d"]]),v1=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Wi={components:{GSCSlider:j1},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}=F1(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}}},_l=()=>{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}))},bl=Wi.setup;Wi.setup=bl?(t,i)=>(_l(),bl(t,i)):_l;const W1={ref:"myDivRef"},U1={key:0,class:"gs-switch-container"},G1=["onClick"],H1={key:1,class:"gs-switch-container-type"},J1=["onClick"],q1={key:2,class:"gs-switch-container-carousel"},Z1=["onClick"];function Y1(t,i,a,o,s,l){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",W1,[a.type==0?(e.openBlock(),e.createElementBlock("div",U1,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([l.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,d)=>(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:d,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,G1))),128))],4),e.renderSlot(t.$slots,a.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",H1,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([l.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,d)=>(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:d,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,J1))),128))],4)])):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",q1,[e.createVNode(r,{arrows:a.arrow,"background-color":a.background,"px-scroll":a.pxScroll,"scroll-color":a.scrollColor,"arrows-position":a.arrowsPosition,arrowsScrollHide:a.arrowsScrollHide,"arrows-background":a.arrowsBackground,"arrows-container-bg-l":a.arrowsContainerBgL,"arrows-container-bg-r":a.arrowsContainerBgR,"arrows-margin":a.arrowsMargin,"arrows-radius":a.arrowsRadius,"arrows-border":a.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,d)=>(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:d,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,Z1))),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 K1=v1(Wi,[["render",Y1],["__scopeId","data-v-8a86dfaf"]]),X1=[{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"}],Q1=new Map(X1.map(t=>[t.id,t.name])),Qt=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},em={class:"player-card__image"},tm=["src"],am={class:"player-card__number"},im={class:"player-card__right-data"},om={class:"player-card__age"},sm={class:"player-card__flag"},lm={class:"player-card__details"},rm={class:"player-card__name"},nm={class:"player-card__position"},dm=Qt({__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(()=>Q1.get(a.player.position_id));function s(){i("click-player",a.player)}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"player-card",onClick:s},[e.createElementVNode("div",em,[e.createElementVNode("img",{class:e.normalizeClass(["player-card__photo",{"full-width":t.isImgFullWidth}]),src:t.player.photo,alt:"Player Image"},null,10,tm),e.createElementVNode("div",am,e.toDisplayString(t.player.jersey),1),e.createElementVNode("div",im,[e.createElementVNode("div",om,e.toDisplayString(t.player.age)+" años",1),e.createElementVNode("div",sm,[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",lm,[e.createElementVNode("p",rm,e.toDisplayString(t.player.name),1),e.createElementVNode("p",nm,e.toDisplayString(o.value),1)])]))}},[["__scopeId","data-v-5921e0af"]]),cm=t=>(e.pushScopeId("data-v-fc760df8"),t=t(),e.popScopeId(),t),pm={class:"ultima-convocatoria"},mm=cm(()=>e.createElementVNode("div",{class:"section-title"},"México",-1)),ym=Qt({__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",pm,[mm,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,l=>(e.openBlock(),e.createBlock(dm,{key:l.player_id,player:l,onClickPlayer:a},null,8,["player"]))),128))],2)]))}},[["__scopeId","data-v-fc760df8"]]),Ui=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Gi={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1},title:{type:String,default:"Zona de origen del balón:"},quarters:{type:Array,default:()=>[1,2,3,4]}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,lastSelectedSections:[]}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){if(this.lastSelectedSections.every(a=>t.has(a)))return;const i=Array.from(t).map(Number).sort((a,o)=>a-o);this.lastSelectedSections=[...i],this.$emit("sections-changed",i)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const i=Math.ceil(t/4);this.isQuarterEnabled(i)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const i=Math.ceil(t/4);this.isQuarterEnabled(i)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const i=Math.ceil(t/4);if(!this.isQuarterEnabled(i))return;const a=t.toString();this.selectedSections.size===1&&this.selectedSections.has(a)||(this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState())},toggleAllSections(){if(this.selectAll)for(let t=1;t<=16;t++)this.selectedSections.add(t.toString());else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{this.selectAll=this.selectedSections.size===16})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t){if(this.displayMode)return;const i=Date.now();if(i-this.lastUpdateTime<16)return;this.lastUpdateTime=i;const a=t.toString(),o=Math.ceil(t/4);if(this.isQuarterEnabled(o)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(a)),this.dragSelectMode)this.selectedSections.add(a);else{if(this.selectedSections.size===1&&this.selectedSections.has(a))return;this.selectedSections.delete(a)}this.updateSelectAllState()}},getSectionNumber(t,i){return(t-1)*4+i},getSectionIndex(t,i){return(t-1)*4+i},selectColumn(t){if(!this.isQuarterEnabled(t))return;const i=(t-1)*4+1,a=t*4;if(Array.from({length:4},(o,s)=>(i+s).toString()).every(o=>this.selectedSections.has(o))&&this.selectedSections.size>4)for(let o=i;o<=a;o++)this.selectedSections.delete(o.toString());else for(let o=i;o<=a;o++)this.selectedSections.add(o.toString());this.updateSelectAllState()},isQuarterSelected(t){const i=(t-1)*4+1;return Array.from({length:4},(a,o)=>(i+o).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},Sl=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Cl=Gi.setup;Gi.setup=Cl?(t,i)=>(Sl(),Cl(t,i)):Sl;const hm={class:"field-template-element"},um={class:"field-container"},fm=["onMouseenter","onMousedown"],gm={class:"column-buttons"},_m=["onClick","disabled"];function bm(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",hm,[e.createElementVNode("div",um,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":a.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:i[0]||(i[0]=(...r)=>l.startDragging&&l.startDragging(...r)),onMouseup:i[1]||(i[1]=(...r)=>l.stopDragging&&l.stopDragging(...r)),onMouseleave:i[2]||(i[2]=(...r)=>l.stopDragging&&l.stopDragging(...r))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,r=>e.createElementVNode("div",{key:r,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${r}-${n}`,class:e.normalizeClass(["field-section",{selected:l.isSelected(l.getSectionIndex(r,n)),"display-mode":a.displayMode}]),onMouseenter:d=>s.isDragging&&l.handleDragSelect(l.getSectionIndex(r,n)),onMousedown:e.withModifiers(d=>!a.displayMode&&l.toggleSection(l.getSectionIndex(r,n)),["prevent"])},null,42,fm)),64))])),64))],32),e.createElementVNode("div",gm,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,r=>e.createElementVNode("div",{key:r,class:"column-label"},e.toDisplayString(r)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,r=>e.createElementVNode("button",{key:r,class:e.normalizeClass(["column-button",{selected:l.isQuarterSelected(r),disabled:!l.isQuarterEnabled(r)}]),onClick:n=>l.selectColumn(r),disabled:!l.isQuarterEnabled(r)},e.toDisplayString(r)+"/4 tos ",11,_m)),64))])])])}const Sm=Ui(Gi,[["render",bm],["__scopeId","data-v-1f6351a4"]]),Hi={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,selectedCells:new Array(72).fill(!0)}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){const i=Array.from(t).map(l=>{const[r,n]=l.split("-").map(Number);return{row:r,col:n,value:this.getSequentialNumber(r,n)}}),a={};i.forEach(l=>{a[l.col]||(a[l.col]=[]),a[l.col].push(l)});const o=[];Object.values(a).forEach(l=>{l.sort((n,d)=>d.row-n.row);let r=[l[0]];for(let n=1;n<l.length;n++){const d=l[n];l[n-1].row-d.row===1?r.push(d):(r.length>0&&o.push(r),r=[d])}r.length>0&&o.push(r)});const s=o.sort((l,r)=>{const n=Math.min(...l.map(p=>p.value)),d=Math.min(...r.map(p=>p.value));return n-d}).map(l=>{const r=l.map(n=>n.value).sort((n,d)=>d-n);return r.length===1?[r[0],r[0]]:[r[0],r[r.length-1]]});this.$emit("sections-changed",s)},deep:!0}},methods:{initializeSections(){if(this.initialSections&&this.initialSections.length>0)this.selectedSections.clear(),this.initialSections.forEach(t=>{if(Array.isArray(t)&&t.length===2){const[i,a]=t,o=17-Math.floor((i-1)/21),s=(i-1)%21+1,l=17-Math.floor((a-1)/21),r=(a-1)%21+1;if(s===r){const n=Math.min(o,l),d=Math.max(o,l);for(let p=n;p<=d;p++)this.selectedSections.add(this.getSectionId(p,s))}else{const n=Math.min(s,r),d=Math.max(s,r);for(let p=n;p<=d;p++){const f=p===s?o:1,y=p===r?l:17;for(let h=Math.min(f,y);h<=Math.max(f,y);h++)this.selectedSections.add(this.getSectionId(h,p))}}}});else for(let t=1;t<=17;t++)for(let i=1;i<=21;i++)this.selectedSections.add(this.getSectionId(t,i));this.updateSelectAllState()},getSectionId(t,i){return`${t}-${i}`},isSelected(t,i){return this.selectedSections.has(this.getSectionId(t,i))},toggleSection(t,i){const a=this.getSectionId(t,i);this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let i=1;i<=21;i++)this.selectedSections.add(this.getSectionId(t,i));else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{let t=357;this.selectAll=this.selectedSections.size===t})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t,i){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const o=this.getSectionId(t,i);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(o)),this.dragSelectMode?this.selectedSections.add(o):this.selectedSections.delete(o),this.updateSelectAllState()},getSequentialNumber(t,i){return(17-t)*21+i}}},wl=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},kl=Hi.setup;Hi.setup=kl?(t,i)=>(wl(),kl(t,i)):wl;const Cm={class:"field-template-element"},wm={class:"field-container"},km={key:0,class:"select-all-container"},Em={class:"select-all-label"},Vm=["onMouseenter","onMousedown"];function xm(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",Cm,[e.createElementVNode("div",wm,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",km,[e.createElementVNode("label",Em,[i[5]||(i[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>s.selectAll=r),onChange:i[1]||(i[1]=(...r)=>l.toggleAllSections&&l.toggleAllSections(...r))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:i[2]||(i[2]=(...r)=>l.startDragging&&l.startDragging(...r)),onMouseup:i[3]||(i[3]=(...r)=>l.stopDragging&&l.stopDragging(...r)),onMouseleave:i[4]||(i[4]=(...r)=>l.stopDragging&&l.stopDragging(...r))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${r}-${n}`,class:e.normalizeClass(["field-section",{selected:l.isSelected(r,n),"display-mode":a.displayMode}]),onMouseenter:d=>s.isDragging&&l.handleDragSelect(r,n),onMousedown:e.withModifiers(d=>!a.displayMode&&l.toggleSection(r,n),["prevent"])},null,42,Vm)),64))],64))),64))],32),i[6]||(i[6]=e.createStaticVNode('<div class="attack-direction" data-v-389c50fa><div class="arrow-line" data-v-389c50fa></div><span class="attack-text" data-v-389c50fa>Ataca</span><div class="arrow-line" data-v-389c50fa></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-389c50fa><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-389c50fa></polygon></svg></div>',1))])])}const Nm=Ui(Hi,[["render",xm],["__scopeId","data-v-389c50fa"]]),Tm={components:{FieldGolStatsTemplates:Sm,FieldTemplatesElement:Nm},name:"ModalPassConditions",props:{isVisible:{type:Boolean,required:!0},parameters:{type:Object,required:!0}},data(){return{quarters:[1,2],userId:24254,originSelection:[],destinationSelection:[],selectAllOrigin:!1,selectAllDestination:!1,minDistanceX:.5,minDistanceY:.5,minDistanceTotal:.5}},methods:{isArrayOfArrays(t){return Array.isArray(t)&&t.length>0&&t.every(i=>Array.isArray(i))},closeModal(){this.$emit("update:isVisible",!1)},updateOriginSelection(t){this.originSelection=t},updateDestinationSelection(t){this.destinationSelection=t},clearFilters(){this.originSelection=[],this.destinationSelection=[],this.selectAllOrigin=!1,this.selectAllDestination=!1,this.minDistanceX=0,this.minDistanceY=0,this.minDistanceTotal=0},applyFilters(){this.$emit("update:isVisible",!1)}}},Bm={key:0,class:"modal-wrapper"},Fm={class:"modal-overlay"},Pm={class:"modal-container"},$m={class:"modal-content"},Am={class:"modal-header"},zm={class:"fields-container"},Im={class:"field-section"},Mm={class:"field-section"},Lm={class:"distance-section"},Dm={class:"distance-info"},Rm={class:"info-row"},Om={class:"info-value"},jm={class:"info-row"},vm={class:"info-value"},Wm={class:"info-row"},Um={class:"info-value"},Gm={class:"distance-section"},Hm={class:"distance-info"},Jm={class:"info-row"},qm={class:"info-value"},Zm={class:"info-row"},Ym={class:"info-value"},Km={class:"info-row"},Xm={class:"info-value"};function Qm(t,i,a,o,s,l){var r,n,d,p,f,y,h,c,u,m,g,_;const k=e.resolveComponent("FieldGolStatsTemplates"),W=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",Bm,[e.createElementVNode("div",Fm,[e.createElementVNode("div",Pm,[e.createElementVNode("div",$m,[e.createElementVNode("div",Am,[i[2]||(i[2]=e.createStaticVNode('<div class="header-content" data-v-834c0128><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-inspector="src/components/GSCTemplates.vue:100:15" data-v-a08c9209="" data-v-834c0128><path d="M5.18088 2.68185L3.12463 4.74435L2.31838 3.93185C2.20069 3.81416 2.04107 3.74805 1.87463 3.74805C1.70819 3.74805 1.54857 3.81416 1.43088 3.93185C1.31319 4.04954 1.24707 4.20917 1.24707 4.3756C1.24707 4.54204 1.31319 4.70166 1.43088 4.81935L2.68088 6.06935C2.73898 6.12793 2.80811 6.17443 2.88427 6.20616C2.96043 6.23789 3.04212 6.25423 3.12463 6.25423C3.20714 6.25423 3.28883 6.23789 3.36499 6.20616C3.44115 6.17443 3.51028 6.12793 3.56838 6.06935L6.06838 3.56935C6.12665 3.51108 6.17288 3.4419 6.20442 3.36576C6.23595 3.28962 6.25218 3.20802 6.25218 3.1256C6.25218 3.04319 6.23595 2.96159 6.20442 2.88545C6.17288 2.80931 6.12665 2.74013 6.06838 2.68185C6.0101 2.62358 5.94092 2.57735 5.86478 2.54582C5.78864 2.51428 5.70704 2.49805 5.62463 2.49805C5.54222 2.49805 5.46061 2.51428 5.38447 2.54582C5.30833 2.57735 5.23915 2.62358 5.18088 2.68185Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:101:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 8.125H2.5C2.33424 8.125 2.17527 8.19085 2.05806 8.30806C1.94085 8.42527 1.875 8.58424 1.875 8.75V11.25C1.875 11.4158 1.94085 11.5747 2.05806 11.6919C2.17527 11.8092 2.33424 11.875 2.5 11.875H5C5.16576 11.875 5.32473 11.8092 5.44194 11.6919C5.55915 11.5747 5.625 11.4158 5.625 11.25V8.75C5.625 8.58424 5.55915 8.42527 5.44194 8.30806C5.32473 8.19085 5.16576 8.125 5 8.125ZM4.375 10.625H3.125V9.375H4.375V10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:104:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 13.75H2.5C2.33424 13.75 2.17527 13.8158 2.05806 13.9331C1.94085 14.0503 1.875 14.2092 1.875 14.375V16.875C1.875 17.0408 1.94085 17.1997 2.05806 17.3169C2.17527 17.4342 2.33424 17.5 2.5 17.5H5C5.16576 17.5 5.32473 17.4342 5.44194 17.3169C5.55915 17.1997 5.625 17.0408 5.625 16.875V14.375C5.625 14.2092 5.55915 14.0503 5.44194 13.9331C5.32473 13.8158 5.16576 13.75 5 13.75ZM4.375 16.25H3.125V15H4.375V16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:107:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 9.375H13.125C13.2908 9.375 13.4497 9.30915 13.5669 9.19194C13.6842 9.07473 13.75 8.91576 13.75 8.75C13.75 8.58424 13.6842 8.42527 13.5669 8.30806C13.4497 8.19085 13.2908 8.125 13.125 8.125H8.125C7.95924 8.125 7.80027 8.19085 7.68306 8.30806C7.56585 8.42527 7.5 8.58424 7.5 8.75C7.5 8.91576 7.56585 9.07473 7.68306 9.19194C7.80027 9.30915 7.95924 9.375 8.125 9.375Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:110:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 10.625H8.125C7.95924 10.625 7.80027 10.6908 7.68306 10.8081C7.56585 10.9253 7.5 11.0842 7.5 11.25C7.5 11.4158 7.56585 11.5747 7.68306 11.6919C7.80027 11.8092 7.95924 11.875 8.125 11.875H18.125C18.2908 11.875 18.4497 11.8092 18.5669 11.6919C18.6842 11.5747 18.75 11.4158 18.75 11.25C18.75 11.0842 18.6842 10.9253 18.5669 10.8081C18.4497 10.6908 18.2908 10.625 18.125 10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:113:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 15H13.125C13.2908 15 13.4497 14.9342 13.5669 14.8169C13.6842 14.6997 13.75 14.5408 13.75 14.375C13.75 14.2092 13.6842 14.0503 13.5669 13.9331C13.4497 13.8158 13.2908 13.75 13.125 13.75H8.125C7.95924 13.75 7.80027 13.8158 7.68306 13.9331C7.56585 14.0503 7.5 14.2092 7.5 14.375C7.5 14.5408 7.56585 14.6997 7.68306 14.8169C7.80027 14.9342 7.95924 15 8.125 15Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:116:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 16.25H8.125C7.95924 16.25 7.80027 16.3158 7.68306 16.4331C7.56585 16.5503 7.5 16.7092 7.5 16.875C7.5 17.0408 7.56585 17.1997 7.68306 17.3169C7.80027 17.4342 7.95924 17.5 8.125 17.5H18.125C18.2908 17.5 18.4497 17.4342 18.5669 17.3169C18.6842 17.1997 18.75 17.0408 18.75 16.875C18.75 16.7092 18.6842 16.5503 18.5669 16.4331C18.4497 16.3158 18.2908 16.25 18.125 16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:119:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 3.75H13.125C13.2908 3.75 13.4497 3.68415 13.5669 3.56694C13.6842 3.44973 13.75 3.29076 13.75 3.125C13.75 2.95924 13.6842 2.80027 13.5669 2.68306C13.4497 2.56585 13.2908 2.5 13.125 2.5H8.125C7.95924 2.5 7.80027 2.56585 7.68306 2.68306C7.56585 2.80027 7.5 2.95924 7.5 3.125C7.5 3.29076 7.56585 3.44973 7.68306 3.56694C7.80027 3.68415 7.95924 3.75 8.125 3.75Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:122:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 6.25H18.125C18.2908 6.25 18.4497 6.18415 18.5669 6.06694C18.6842 5.94973 18.75 5.79076 18.75 5.625C18.75 5.45924 18.6842 5.30027 18.5669 5.18306C18.4497 5.06585 18.2908 5 18.125 5H8.125C7.95924 5 7.80027 5.06585 7.68306 5.18306C7.56585 5.30027 7.5 5.45924 7.5 5.625C7.5 5.79076 7.56585 5.94973 7.68306 6.06694C7.80027 6.18415 7.95924 6.25 8.125 6.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:125:17" data-v-a08c9209="" data-v-834c0128></path></svg><span data-v-834c0128>Elige las condiciones del pase</span></div>',1)),e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=J=>t.$emit("update:isVisible",!1))},i[1]||(i[1]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})],-1)]))]),e.createElementVNode("div",zm,[e.createElementVNode("div",Im,[l.isArrayOfArrays((r=a.parameters)==null?void 0:r.origin_zones)?(e.openBlock(),e.createBlock(W,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(d=a.parameters)==null?void 0:d.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(k,{key:0,title:"Elige la zona de origen del balón:","initial-sections":(n=a.parameters)==null?void 0:n.origin_zones,"display-mode":!0},null,8,["initial-sections"]))]),e.createElementVNode("div",Mm,[l.isArrayOfArrays((p=a.parameters)==null?void 0:p.destiny_zones)?(e.openBlock(),e.createBlock(W,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(y=a.parameters)==null?void 0:y.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(k,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(f=a.parameters)==null?void 0:f.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",Lm,[i[6]||(i[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",Dm,[e.createElementVNode("div",Rm,[i[3]||(i[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Om,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_distance_x)+" m",1)]),e.createElementVNode("div",jm,[i[4]||(i[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",vm,e.toDisplayString((c=a.parameters)==null?void 0:c.minimum_distance_y)+" m",1)]),e.createElementVNode("div",Wm,[i[5]||(i[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Um,e.toDisplayString((u=a.parameters)==null?void 0:u.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",Gm,[i[10]||(i[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",Hm,[e.createElementVNode("div",Jm,[i[7]||(i[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",qm,e.toDisplayString((m=a.parameters)==null?void 0:m.maximum_distance_x)+" m",1)]),e.createElementVNode("div",Zm,[i[8]||(i[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Ym,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",Km,[i[9]||(i[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Xm,e.toDisplayString((_=a.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const El=Ui(Tm,[["render",Qm],["__scopeId","data-v-834c0128"]]),Ye=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},ey={class:"player-card"},ty={class:"player-card__image"},ay={key:0,class:"checkbox-container"},iy=["checked"],oy=["src"],sy={class:"player-card__right-data"},ly={class:"player-card__age"},ry={class:"player-card__flag"},ny={class:"player-card__details"},dy={class:"player-card__name"},cy={class:"player-card__position"},py={key:0,class:"button-row"},my={class:"stat-header"},yy={class:"stat-left"},hy=["onClick"],uy={class:"stat-label"},fy={class:"stat-value"},gy={class:"stat-bar-container"},_y={key:1,class:"loading-overlay"},by={__name:"GscPlayerCard",props:{player:{type:Object,default:()=>({})},loading:{type:Boolean,default:!0},countryFlag:{type:String,default:""},jersey:{type:Number,default:0},player_id:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position:{type:String,default:"-"},photo:{type:String,default:""},is_female:{type:Number,default:0},isImgFullWidth:{type:Boolean,default:!1},stats:{type:Object,default:()=>({})},additionalData:{type:Object,default:()=>({})},deleteActive:{type:Boolean,default:!1},categories:{type:Array,default:()=>[],required:!0},statsPromise:{type:Promise,required:!0},isSelected:{type:Boolean,default:!1}},setup(t){const i=t,a=e.ref(null),o=e.ref(!1),s=e.ref(null);e.onMounted(async()=>{try{a.value=await i.statsPromise}catch(d){console.error("Error cargando estadísticas:",d)}});const l=d=>{if(!d)return 0;const p=d.max;return d.value*100/p};e.computed(()=>i.stats&&Object.keys(i.stats).length>0);const r=d=>{s.value=d,o.value=!0},n=()=>{o.value=!1,s.value=null};return(d,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ey,[e.createElementVNode("div",ty,[t.deleteActive?(e.openBlock(),e.createElementBlock("div",ay,[e.createElementVNode("input",{type:"checkbox",class:"player-checkbox",checked:t.isSelected,onChange:p[0]||(p[0]=f=>d.$emit("toggleSelection")),onClick:p[1]||(p[1]=e.withModifiers(()=>{},["stop"]))},null,40,iy)])):e.createCommentVNode("",!0),e.createElementVNode("img",{class:e.normalizeClass(["player-card__photo",{"full-width":t.isImgFullWidth}]),src:t.photo,alt:"Player Image"},null,10,oy),e.createElementVNode("div",sy,[e.createElementVNode("div",ly,e.toDisplayString(t.age)+" años ",1),e.createElementVNode("div",ry,[e.createElementVNode("div",{class:"player-card__flag-container",style:e.normalizeStyle({"background-image":`url(${i.countryFlag})`})},null,4)])])]),e.createElementVNode("div",ny,[e.createElementVNode("p",dy,e.toDisplayString(t.name),1),e.createElementVNode("p",cy,e.toDisplayString(t.position),1)]),e.createElementVNode("div",{class:e.normalizeClass(["player-card__actions",{"hide-buttons":t.deleteActive}])},[t.deleteActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",py,[e.createElementVNode("button",{class:"action-button graph-button",onClick:p[2]||(p[2]=e.withModifiers(f=>d.$emit("showGraph",{player_id:i.player_id,name:i.name,position:i.position,stats:i.stats}),["stop"]))},p[6]||(p[6]=[e.createStaticVNode(' Gráfica <span class="button-icon" data-v-e864176a><svg fill="none" height="16" viewBox="0 0 17 16" width="17" xmlns="http://www.w3.org/2000/svg" data-v-e864176a><g clip-path="url(#clip0_3514_71971)" data-v-e864176a><path d="M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z" fill="white" data-v-e864176a></path></g><defs data-v-e864176a><clipPath id="clip0_3514_71971" data-v-e864176a><rect fill="white" height="16" transform="translate(0.5)" width="16" data-v-e864176a></rect></clipPath></defs></svg></span>',2)])),e.createElementVNode("button",{class:"action-button delete-button",onClick:p[3]||(p[3]=e.withModifiers(f=>d.$emit("deletePlayer",{player_id:i.player_id,name:i.name,position:i.position}),["stop"]))},p[7]||(p[7]=[e.createStaticVNode(' Eliminar <span class="button-icon" data-v-e864176a><svg width="17" height="15" viewBox="0 0 20 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-e864176a><path d="M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-e864176a></path><path d="M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-e864176a></path><path d="M18.332 8.16663H13.332" stroke="white" stroke-opacity="0.5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-v-e864176a></path></svg></span>',2)]))])),t.deleteActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:1,class:"action-button profile-button",onClick:p[4]||(p[4]=e.withModifiers(f=>d.$emit("showProfile",{player_id:i.player_id,season_id:i.additionalData.season_id,team_id:i.additionalData.team_id,name:i.name,position:i.position,age:i.age,nationality:i.nationality,photo:i.photo,stats:i.stats}),["stop"]))}," Ver perfil "))],2),e.createElementVNode("div",{class:e.normalizeClass(["player-card__stats",{"disabled-stats":t.deleteActive}])},[t.loading?(e.openBlock(),e.createElementBlock("div",_y,p[9]||(p[9]=[e.createElementVNode("div",{class:"loading-animation"},null,-1)]))):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.value,(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:"stat-row",key:y},[e.createElementVNode("div",my,[e.createElementVNode("div",yy,[f.parametros!="no"?(e.openBlock(),e.createElementBlock("button",{key:0,class:"stat-info-button",onClick:h=>r(f.parametros)},p[8]||(p[8]=[e.createElementVNode("svg",{width:"8",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.17355 0.761719C6.44909 0.761719 5.77355 1.23716 5.56275 1.90573L0.887836 1.90458C0.572235 1.90458 0.316406 2.16058 0.316406 2.47601C0.316406 2.79144 0.572235 3.04744 0.887836 3.04744L5.56275 3.04688C5.8188 3.74688 6.44909 4.1903 7.17355 4.1903C7.89801 4.1903 8.53475 3.74574 8.79527 3.04231L10.0307 3.04744C10.3463 3.04744 10.6021 2.79144 10.6021 2.47601C10.6021 2.16058 10.3463 1.90458 10.0307 1.90458H8.79041C8.51527 1.20801 7.89801 0.761719 7.17355 0.761719ZM7.17355 1.90458C7.48915 1.90458 7.74498 2.16058 7.74498 2.47601C7.74498 2.79144 7.48915 3.04744 7.17355 3.04744C6.85795 3.04744 6.60212 2.79144 6.60212 2.47601C6.60212 2.16058 6.85795 1.90458 7.17355 1.90458ZM3.74498 5.04744C2.99184 5.04744 2.36144 5.51602 2.13127 6.19142C2.05092 6.19657 0.887836 6.19028 0.887836 6.19028C0.572235 6.19028 0.316406 6.44628 0.316406 6.76171C0.316406 7.07714 0.572235 7.33314 0.887836 7.33314C0.887836 7.33314 2.06064 7.32114 2.13372 7.32857C2.3639 8.004 2.99184 8.476 3.74498 8.476C4.46943 8.476 5.09023 8.032 5.36177 7.33485L10.0307 7.33314C10.3463 7.33314 10.6021 7.07714 10.6021 6.76171C10.6021 6.44628 10.3463 6.19028 10.0307 6.19028L5.3588 6.18519C5.10835 5.50346 4.46943 5.04744 3.74498 5.04744ZM3.74498 6.19028C4.06058 6.19028 4.31641 6.44628 4.31641 6.76171C4.31641 7.07714 4.06058 7.33314 3.74498 7.33314C3.42938 7.33314 3.17355 7.07714 3.17355 6.76171C3.17355 6.44628 3.42938 6.19028 3.74498 6.19028ZM7.17355 9.33314C6.44909 9.33314 5.7864 9.81029 5.56235 10.4703L0.887836 10.476C0.572235 10.476 0.316406 10.732 0.316406 11.0474C0.316406 11.3629 0.572235 11.6189 0.887836 11.6189L5.55389 11.6194C5.79098 12.2966 6.44909 12.7617 7.17355 12.7617C7.89801 12.7617 8.52264 12.3086 8.79784 11.6194L10.0307 11.6189C10.3463 11.6189 10.6021 11.3629 10.6021 11.0474C10.6021 10.732 10.3463 10.476 10.0307 10.476L8.79264 10.4726C8.54595 9.79663 7.89801 9.33314 7.17355 9.33314ZM7.17355 10.476C7.48915 10.476 7.74498 10.732 7.74498 11.0474C7.74498 11.3629 7.48915 11.6189 7.17355 11.6189C6.85795 11.6189 6.60212 11.3629 6.60212 11.0474C6.60212 10.732 6.85795 10.476 7.17355 10.476Z",fill:"white"})],-1)]),8,hy)):e.createCommentVNode("",!0),e.createElementVNode("span",uy,e.toDisplayString(y),1)]),e.createElementVNode("span",fy,e.toDisplayString(t.stats[f.variable]?t.stats[f.variable].value:"-"),1)]),e.createElementVNode("div",gy,[e.createElementVNode("div",{style:e.normalizeStyle({width:`${l(t.stats[f.variable])}%`}),class:"stat-bar"},null,4)])]))),128))],2)]),e.createVNode(e.unref(El),{isVisible:o.value,"onUpdate:isVisible":p[5]||(p[5]=f=>o.value=f),onClose:n,parameters:s.value},null,8,["isVisible","parameters"])],64))}},Sy=Ye(by,[["__scopeId","data-v-e864176a"]]),Ji={name:"GridView",components:{GscPlayerCard:Sy},props:{categories:{type:Array,default:()=>[],required:!0},deleteActive:{type:Boolean,default:!1},players:{type:Array,default:()=>[]},playerStats:{type:Object,default:()=>({})},playerAddtionalData:{type:Object,default:()=>({})},statsLoaded:{type:Boolean,default:!1}},data(){return{currentSlide:0,containerWidth:0,cardGap:9,touchStartX:0,touchEndX:0,isDragging:!1,dragStartX:0,dragCurrentX:0,selectedPlayers:[]}},computed:{showSlider(){return this.containerWidth<610},isSingleCardView(){return this.containerWidth<440},visiblePlayers(){const t=this.isSingleCardView?1:2;return this.players.slice(this.currentSlide,this.currentSlide+t)},columnsCount(){const t=this.containerWidth;return t>=1500?5:t>=1200?4:t>=900?3:2},cardWidth(){if(!this.containerWidth||!this.columnsCount)return 0;const t=this.containerWidth,i=this.cardGap*(this.columnsCount-1);return Math.floor((t-i)/this.columnsCount)},sliderCardWidth(){return this.isSingleCardView?Math.floor(this.containerWidth-this.cardGap*2):Math.floor((this.containerWidth-this.cardGap*3)/2)},layoutClass(){return{"grid-container":!this.showSlider,"slider-container":this.showSlider}},totalPages(){const t=this.isSingleCardView?1:2;return Math.ceil(this.players.length/t)},currentPage(){const t=this.isSingleCardView?1:2;return Math.floor(this.currentSlide/t)},isLastPage(){const t=this.isSingleCardView?1:2;return this.currentSlide+t>=this.players.length}},methods:{handleShowGraph(t){this.$emit("showGraph",t)},getPlayerStats(t){return this.statsLoaded?this.playerStats[t]||{}:null},getPlayerAdditionalData(t){return this.statsLoaded?this.playerAddtionalData[t]||{}:null},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},transformCategoriesToStats(t){return new Promise(i=>{const a={};t.forEach(o=>{a[o.name]={variable:o.id_variable,parametros:o.parameters}}),i(a)})},setupSliderListeners(){if(this.removeSliderListeners(),this.showSlider){const t=this.$el.querySelector(".slider-content");t&&(t.addEventListener("touchstart",this.handleTouchStart),t.addEventListener("touchend",this.handleTouchEnd),t.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("mouseup",this.handleMouseUp))}},removeSliderListeners(){const t=this.$el.querySelector(".slider-content");t&&(t.removeEventListener("touchstart",this.handleTouchStart),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("mouseup",this.handleMouseUp))},updateContainerWidth(){this.$el&&(this.containerWidth=this.$el.offsetWidth,this.$nextTick(()=>{this.setupSliderListeners()}))},nextSlide(){const t=this.isSingleCardView?1:2,i=this.currentSlide+t;i<this.players.length?this.currentSlide=i:i>this.players.length&&this.currentSlide+1<this.players.length&&(this.currentSlide=this.players.length-1)},prevSlide(){const t=this.isSingleCardView?1:2;this.currentSlide>0&&(this.currentSlide-=t)},goToPage(t){const i=this.isSingleCardView?1:2;this.currentSlide=t*i},handleKeyPress(t){this.showSlider&&(t.key==="ArrowLeft"?this.prevSlide():t.key==="ArrowRight"&&this.nextSlide())},handleTouchStart(t){this.showSlider&&(this.touchStartX=t.touches[0].clientX)},handleTouchEnd(t){this.showSlider&&(this.touchEndX=t.changedTouches[0].clientX,this.handleSwipe())},handleSwipe(){const t=this.touchStartX-this.touchEndX;Math.abs(t)>50&&(t>0?this.nextSlide():this.prevSlide())},handleMouseDown(t){this.showSlider&&(this.isDragging=!0,this.dragStartX=t.clientX,this.dragCurrentX=t.clientX,t.preventDefault())},handleMouseMove(t){this.isDragging&&(this.dragCurrentX=t.clientX)},handleMouseUp(){if(!this.isDragging)return;const t=this.dragStartX-this.dragCurrentX;Math.abs(t)>50&&(t>0?this.nextSlide():this.prevSlide()),this.isDragging=!1},shouldShowDot(t){if(this.isSingleCardView){if(t===0||t===this.totalPages-1)return!0;const i=this.currentPage;return Math.abs(t-i)<=1}return!0},togglePlayerSelection(t){const i=this.selectedPlayers.findIndex(a=>a.player_id===t.player_id);i===-1?this.selectedPlayers.push(t):this.selectedPlayers.splice(i,1),this.$emit("selectedPlayersToDelete",this.selectedPlayers),this.$emit("updateSelection",this.selectedPlayers.length>0)},isPlayerSelected(t){return this.selectedPlayers.some(i=>i.player_id===t.player_id)},handleDeletePlayer(t){this.$emit("delete-player",t)},handleShowProfile(t){this.$emit("showProfile",t)}},mounted(){this.$nextTick(()=>{this.updateContainerWidth(),window.addEventListener("resize",this.updateContainerWidth),window.addEventListener("keydown",this.handleKeyPress)})},beforeDestroy(){window.removeEventListener("resize",this.updateContainerWidth),window.removeEventListener("keydown",this.handleKeyPress),this.removeSliderListeners()},watch:{showSlider:{handler(t){this.$nextTick(()=>{this.setupSliderListeners()})}},deleteActive(t){t||(this.selectedPlayers=[],this.$emit("selectedPlayersToDelete",[]),this.$emit("updateSelection",!1))}}},Vl=()=>{e.useCssVars(t=>({d428e65e:t.cardGap+"px"}))},xl=Ji.setup;Ji.setup=xl?(t,i)=>(Vl(),xl(t,i)):Vl;const Cy={class:"grid-view"},wy={key:1,class:"slider"},ky={class:"slider-content"},Ey={class:"slider-navigation"},Vy=["disabled"],xy={class:"slider-pagination"},Ny=["onClick"],Ty=["disabled"];function By(t,i,a,o,s,l){const r=e.resolveComponent("GscPlayerCard");return e.openBlock(),e.createElementBlock("div",Cy,[e.createElementVNode("div",{class:e.normalizeClass(l.layoutClass)},[l.showSlider?(e.openBlock(),e.createElementBlock("div",wy,[e.createElementVNode("div",ky,[e.createVNode(e.TransitionGroup,{name:"slide"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.visiblePlayers,(n,d)=>(e.openBlock(),e.createBlock(r,e.mergeProps({key:n.id||d,onShowGraph:l.handleShowGraph,onDeletePlayer:l.handleDeletePlayer,onShowProfile:l.handleShowProfile,ref_for:!0},n,{age:l.calculateAge(n.dob),stats:l.getPlayerStats(n.player_id),additionalData:l.getPlayerAdditionalData(n.player_id),loading:!a.statsLoaded,"stats-promise":l.transformCategoriesToStats(a.categories),deleteActive:a.deleteActive,isSelected:l.isPlayerSelected(n),onToggleSelection:p=>l.togglePlayerSelection(n),class:"slider-item",style:{width:l.sliderCardWidth+"px"}}),null,16,["onShowGraph","onDeletePlayer","onShowProfile","age","stats","additionalData","loading","stats-promise","deleteActive","isSelected","onToggleSelection","style"]))),128))]),_:1})]),e.createElementVNode("div",Ey,[e.createElementVNode("button",{class:"slider-btn prev",onClick:i[0]||(i[0]=(...n)=>l.prevSlide&&l.prevSlide(...n)),disabled:s.currentSlide===0},i[2]||(i[2]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/flecla-left.png",alt:"prev",class:"nav-icon"},null,-1)]),8,Vy),e.createElementVNode("div",xy,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.totalPages,n=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:n},[l.shouldShowDot(n-1)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["pagination-dot",{active:l.currentPage===n-1}]),onClick:d=>l.goToPage(n-1)},null,10,Ny)):e.createCommentVNode("",!0)],64))),128))]),e.createElementVNode("button",{class:"slider-btn next",onClick:i[1]||(i[1]=(...n)=>l.nextSlide&&l.nextSlide(...n)),disabled:l.isLastPage},i[3]||(i[3]=[e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/flecha-rigth.png",alt:"next",class:"nav-icon"},null,-1)]),8,Ty)])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(a.players,(n,d)=>(e.openBlock(),e.createBlock(r,e.mergeProps({key:d,onShowGraph:l.handleShowGraph,onDeletePlayer:l.handleDeletePlayer,onShowProfile:l.handleShowProfile,ref_for:!0},n,{player:n,age:l.calculateAge(n.dob),stats:l.getPlayerStats(n.player_id),additionalData:l.getPlayerAdditionalData(n.player_id),loading:!a.statsLoaded,"stats-promise":l.transformCategoriesToStats(a.categories),style:{width:l.cardWidth+"px"},deleteActive:a.deleteActive,isSelected:l.isPlayerSelected(n),onToggleSelection:p=>l.togglePlayerSelection(n)}),null,16,["onShowGraph","onDeletePlayer","onShowProfile","player","age","stats","additionalData","loading","stats-promise","style","deleteActive","isSelected","onToggleSelection"]))),128))],2)])}const Fy=Ye(Ji,[["render",By],["__scopeId","data-v-f6994525"]]),Py=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},$y={key:1},Ay={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zy=["fill"],Iy={key:0,class:"checkbox__teams"},My={class:"checkbox__teams__logo"},Ly=["src"],Dy={class:"checkbox__teams__logo"},Ry=["src"],Oy={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(t){return["left","right","top","bottom"].includes(t)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function d(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",$y,[(e.openBlock(),e.createElementBlock("svg",Ay,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:t.boxValueColor},null,8,zy)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",Iy,[e.createElementVNode("div",My,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,Ly)]),e.createElementVNode("div",Dy,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,Ry)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},jy=Py(Oy,[["__scopeId","data-v-b6f124d8"]]),vy=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},qi={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Nl=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Tl=qi.setup;qi.setup=Tl?(t,i)=>(Nl(),Tl(t,i)):Nl;const Wy=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),Uy=["src"],Gy={key:1,class:"text"},Hy=["src"],Jy={class:"stats"},qy=Wy(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),Zy={class:"numstats"},Yy={class:"leyend"};function Ky(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Uy)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",Gy,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,Hy)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",Jy,[qy,e.createElementVNode("div",Zy,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",Yy,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const Xy=vy(qi,[["render",Ky],["__scopeId","data-v-f3ee6b2b"]]),Bl=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Fl=t=>(e.pushScopeId("data-v-943c6e4b"),t=t(),e.popScopeId(),t),Qy={key:0,class:"overlay"},eh={class:"name"},th=["onClick"],ah=Fl(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),ih=[ah],oh=Fl(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),sh=["onClick"],lh={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media","click-parameters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(null),r=e.ref(0);e.ref(!1);const n=e.computed(()=>{const c=o.availablePlayers[0];return c?c.stats:[]}),d=e.computed(()=>{const c=`repeat(${n.value.length}, max-content) 36px`;let u="";return r.value>0&&document.querySelectorAll(".column-title-2").forEach(m=>{u+=`${m.offsetWidth}px `}),{"--grid-template-columns":c,"--grid-template-columns-totals":u||c}});function p(){s.value=new ResizeObserver(c=>{for(const u of c){const{width:m}=u.contentRect;r.value=m}}),s.value.observe(l.value)}function f(c,u){const m=document.querySelectorAll(".scrollable-row-totals")[c+1];m&&(m.style.marginTop=`${u}px`)}function y({player:c,stat:u}){!u.total||u==="0%"||!u.seasons||!u.seasons.length||a("open-media",{...c,stat:u})}function h(c){!c||c==="no"||a("click-parameters",c)}return e.onMounted(()=>{p()}),i({setMarginTopDetails:f}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(d.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",Qy)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:l,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${g}`,class:"column-title-2"},[e.createElementVNode("div",eh,e.toDisplayString(m.name),1),m.parameters&&m.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:_=>h(m.parameters)},ih,8,th)):e.createCommentVNode("",!0)]))),128)),oh],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${m.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.stats,_=>(e.openBlock(),e.createElementBlock("div",{key:_.category_id,class:e.normalizeClass(["row data-info",{odd:g%2!==0,underline:!!_.total&&_.total!=="0%"&&_.seasons&&_.seasons.length}]),onClick:k=>y({player:m,stat:_})},e.toDisplayString(_.total),11,sh))),128))]))),128))],4))}},rh=Bl(lh,[["__scopeId","data-v-943c6e4b"]]),Be=t=>(e.pushScopeId("data-v-d89df432"),t=t(),e.popScopeId(),t),nh={class:"table__static-column"},dh=Be(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),ch={class:"container"},ph={class:"details-row__info"},mh={class:"details-row__info__personal"},yh={class:"bold"},hh={class:"bold"},uh={class:"bold"},fh={class:"bold"},gh={class:"details-row__info__games"},_h={class:"bold"},bh={class:"bold"},Sh=["onClick"],Ch=Be(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),wh=Be(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),kh=[Ch,wh],Eh=["onClick"],Vh=Be(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),xh=Be(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Nh=[Vh,xh],Th=["onClick"],Bh=Be(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),Fh=Be(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Ph=[Bh,Fh],$h=["onClick"],Ah=Be(()=>e.createElementVNode("div",null,"Ver perfil",-1)),zh=[Ah],Ih={class:"static-row__info-player"},Mh={class:"position"},Lh=["onClick"],Dh=Be(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Rh=Be(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Oh=Be(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),jh=[Dh,Rh,Oh],vh=["onClick"],Wh=Be(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Uh=Be(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Gh=Be(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Hh=[Wh,Uh,Gh],Jh={class:"player-photo"},qh=["src"],Zh={class:"player-name"},Yh={class:"arrow"},Kh=["onClick"],Xh=Be(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),Qh=[Xh],eu=e.createStaticVNode('<div class="titles scrollable-row" data-v-d89df432><div class="column-title" data-v-d89df432>Equipo</div><div class="column-title" data-v-d89df432>Posición</div><div class="column-title" data-v-d89df432>Edad</div><div class="column-title" data-v-d89df432>País</div><div class="column-title" data-v-d89df432>Partidos Jugados</div><div class="column-title" data-v-d89df432>Minutos Jugados</div><div class="column-title" data-v-d89df432>Liga</div><div class="column-title" data-v-d89df432>Videos</div><div class="column-title" data-v-d89df432></div></div>',1),tu={class:"team-logo"},au=["src"],iu={class:"team-name data-info"},ou=["src"],su={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters"],setup(t,{emit:i}){const a=t;let o=null,s=null;const l=e.ref([]),r=e.ref(null),n=e.ref(null),d=e.ref(0),p=e.ref(0),f=e.ref(-1);e.ref(!1);const y=e.ref(null),h=e.ref(null),c=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${u.value?"8px":"18px"}`,"--width-static-column":`${u.value?"50%":"256px"}`})),u=e.computed(()=>d.value<600);e.watch(()=>a.players,x=>{x&&x.length&&(l.value=x.map((w,S)=>{const F=S+1,V={...w,position:F<10?`0${F}`:`${F}`,isSelected:!1,isExpanded:!1,isOdd:S%2!==0,index:S};return V.parameters&&Object.entries(V.parameters).forEach(([j,P])=>{const U=V.stats.find(O=>O.custom_category_id===Number(j));U&&(U.parameters=P)}),V}))},{immediate:!0,deep:!0}),e.watch(()=>a.isEditMode,x=>{x&&l.value.forEach(w=>{w.isSelected=!1})}),e.watch(p,x=>{const w=document.querySelectorAll(".static-row")[f.value+1];w&&(w.style.marginTop=`${x}px`),a.isGeneral?m(f.value,x):n.value&&n.value.setMarginTopDetails(f.value,x),x===0&&y.value&&R(y.value)});function m(x,w){const S=document.querySelectorAll(".scrollable-row")[x+2];S&&(S.style.marginTop=`${w}px`)}function g(x){i("click-parameters",x)}function _(x){const w=x.player||x.objeto_player,S=w?w.player_id||w.id||w.playerId:x.id||x.player_id,F=w?w.team_id||w.teamId:x.team_id||x.teamId,V={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:S?[S]:[],goalkeeperIds:[],teamId:F||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(x.stat&&x.stat.parameters&&(V.parameters=x.stat.parameters),x.stat&&x.stat.seasons&&x.stat.seasons.length||x.seasons&&x.seasons.length){const j=[...x.stat&&x.stat.seasons&&x.stat.seasons.length?x.stat.seasons:x.seasons];j.sort((P,U)=>P-U),V.seasonId=j.shift(),V.seasonsIds=j}else(x.season_id||x.seasonId)&&(V.seasonId=x.season_id||x.seasonId);x.stat?x.stat.category_id?V.categoryIds=x.stat.category_id:x.stat.custom_category_id&&(V.customCategoryIds=[x.stat.custom_category_id]):V.categoryIds=J(x.player_position),i("open-media",V)}function k(){o=new ResizeObserver(x=>{for(const w of x)d.value=w.contentRect.width}),o.observe(r.value)}function W(x){s=new ResizeObserver(w=>{for(const S of w)p.value=S.contentRect.height}),s.observe(x)}function J(x){return x==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function L(x,w){w.isSelected=x;const S=l.value.filter(F=>F.isSelected);i("change-selected-players",S)}function G(x){i("view-profile",x)}function Z(x){i("delete-from-list",x)}function q(x){i("add-to-list",x)}function Y(x){i("show-graph",x)}function R(x){if(x.isExpanded){x.isExpanded=!1,y.value=null;return}const w=l.value.find(F=>F.isExpanded);if(w&&(w.isExpanded=!1),w){y.value=x;return}const S=document.querySelectorAll(".details-row")[x.index];f.value=x.index,W(S),x.isExpanded=!0}let N=!1,D,$,H=function(x){N=!0,D=x.pageX-h.value.offsetLeft,$=h.value.scrollLeft},K=function(){N=!1};function ce(){h.value&&(h.value.addEventListener("mousemove",x=>{if(!N)return;const w=x.pageX-h.value.offsetLeft-D;h.value.scrollLeft=$-w}),h.value.addEventListener("mousedown",H,!1),h.value.addEventListener("mouseup",K,!1),h.value.addEventListener("mouseleave",K,!1))}return e.onMounted(()=>{k(),ce()}),e.onBeforeUnmount(()=>{o&&o.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",H,!1),h.value.removeEventListener("mouseup",K,!1),h.value.removeEventListener("mouseleave",K,!1))}),(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:r,style:e.normalizeStyle(c.value)},[e.createElementVNode("div",nh,[dh,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`s-${S.id}`,class:e.normalizeClass(["row static-row",{odd:S.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:S.isOdd}])},[e.createElementVNode("div",ch,[e.createElementVNode("div",ph,[e.createElementVNode("div",mh,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",yh,e.toDisplayString(S.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",hh,e.toDisplayString(S.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",uh,e.toDisplayString(S.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",fh,e.toDisplayString(S.position_name),1)])]),e.createElementVNode("div",gh,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",_h,e.toDisplayString(S.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",bh,e.toDisplayString(S.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(u.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:F=>Y(S)},kh,8,Sh),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:F=>Z(S)},Nh,8,Eh)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:F=>q(S)},Ph,8,Th)),e.createElementVNode("div",{role:"button",class:"button green",onClick:F=>G(S)},zh,8,$h)],4)])],2),[[e.vShow,S.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(jy),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":S.isSelected,"onUpdate:modelValue":F=>L(F,S)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Ih,[e.createElementVNode("div",Mh,e.toDisplayString(S.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>Z(S)},jh,8,Lh)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>q(S)},Hh,8,vh)),e.createElementVNode("div",Jh,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:S.player_photo,alt:"player photo"},null,8,qh)])]),e.createElementVNode("div",Zh,e.toDisplayString(S.player_name),1)]),e.createElementVNode("div",Yh,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:S.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:F=>R(S)},Qh,10,Kh))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:h,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[eu,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`i-${S.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:S.isOdd}])},[e.createElementVNode("div",tu,[e.createElementVNode("img",{src:S.team_logo,alt:"team logo"},null,8,au)]),e.createElementVNode("div",iu,e.toDisplayString(S.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createElementVNode("img",{src:S.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,ou)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createVNode(e.unref(Xy),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:F=>_(S)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(rh,{key:1,ref_key:"scrollColumns",ref:n,"available-players":l.value,"is-edit-mode":t.isEditMode,onOpenMedia:_,onClickParameters:g},null,8,["available-players","is-edit-mode"]))],512)],4))}},lu=Bl(su,[["__scopeId","data-v-d89df432"]]),Zi={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"},ru={name:"ListView",components:{GSCTableScrollable:lu,ModalViewVarGolstats:El},props:{categories:{type:Array,default:()=>[],required:!0},isGeneral:{type:Boolean,default:!1},players:{type:Array,default:()=>[]},deleteActive:{type:Boolean,default:!1},playerAddtionalData:{type:Object,default:()=>({})},playerStats:{type:Object,default:()=>({})},statsLoaded:{type:Boolean,default:!1}},data(){return{showModal:!1,currentParameters:{},playersFormatted:[]}},watch:{players:{immediate:!0,handler(t){this.isGeneral?this.playersFormatted=t.map(i=>this.formatPlayerDataGeneral(i)):this.playersFormatted=t.map(i=>this.formatPlayerData(i))}},playerStats:{handler(t,i){t!==i&&(this.playersFormatted=this.players.map(a=>this.formatPlayerData(a)))},deep:!0}},methods:{onClickParameters(t){this.currentParameters=t,this.showModal=!0},closeModal(){this.showModal=!1},showProfile(t){this.$emit("view-profile",t)},deleteFromList(t){this.$emit("delete-from-list",t)},showGraph(t){this.$emit("show-graph",t)},onOpenMedia(t){this.$emit("open-media",t)},formatPlayerDataGeneral(t){var i,a,o,s,l;return{objeto_player:t,player_photo:t.photo,player_name:t.name,player_id:t.player_id,player_age:this.calculateAge(t.dob),team_name:((i=this.playerAddtionalData[t.player_id])==null?void 0:i.team_name)||"-",team_id:t.team_id,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t.team_id+".png",position_name:t.position,player_position:t.position,player_country:Zi[`${t.nationality_id}`]||t.nationality,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t.nationality_id+".jpg",player_games:((a=this.playerAddtionalData[t.player_id])==null?void 0:a.games_played)||0,player_min:((o=this.playerAddtionalData[t.player_id])==null?void 0:o.minutes)||0,league_name:(s=this.playerAddtionalData[t.player_id])==null?void 0:s.tournament_name,seasons:[...new Set(this.categories.map(r=>{var n,d;return((d=(n=this.playerStats[t.player_id])==null?void 0:n[r.id_variable])==null?void 0:d.season)||[]}).flat())].filter(r=>r&&r!==0),season_id:((l=this.playerAddtionalData[t.player_id])==null?void 0:l.season_id)||0,stats:this.categories.map(r=>{var n,d,p,f,y,h,c,u;return{category_id:((d=(n=this.playerStats[t.player_id])==null?void 0:n[r.id_variable])==null?void 0:d.categories)||null,custom_category_id:((f=(p=this.playerStats[t.player_id])==null?void 0:p[r.id_variable])==null?void 0:f.variable_id)||null,name:r.name,parameters:r.parameters,total:((h=(y=this.playerStats[t.player_id])==null?void 0:y[r.id_variable])==null?void 0:h.value)||0,seasons:((u=(c=this.playerStats[t.player_id])==null?void 0:c[r.id_variable])==null?void 0:u.season)||null}})}},formatPlayerData(t){var i,a,o,s;return Object.keys(this.playerStats[t.player_id])[0],{objeto_player:t,player_photo:t.photo,player_name:t.name,player_id:t.player_id,player_age:this.calculateAge(t.dob),team_name:((i=this.playerAddtionalData[t.player_id])==null?void 0:i.team_name)||"-",team_id:t.team_id,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+t.team_id+".png",position_name:t.position,player_position:t.position,player_country:Zi[`${t.nationality_id}`]||t.nationality,player_country_flag:t.countryFlag,player_games:((a=this.playerAddtionalData[t.player_id])==null?void 0:a.games_played)||0,player_min:((o=this.playerAddtionalData[t.player_id])==null?void 0:o.minutes)||0,league_name:"-",seasons:[...new Set(this.categories.map(l=>{var r,n;return((n=(r=this.playerStats[t.player_id])==null?void 0:r[l.id_variable])==null?void 0:n.season)||[]}).flat())].filter(l=>l&&l!==0),season_id:((s=this.playerAddtionalData[t.player_id])==null?void 0:s.season_id)||0,stats:this.categories.map(l=>{var r,n,d,p,f,y,h,c;return{category_id:((n=(r=this.playerStats[t.player_id])==null?void 0:r[l.id_variable])==null?void 0:n.categories)||null,custom_category_id:((p=(d=this.playerStats[t.player_id])==null?void 0:d[l.id_variable])==null?void 0:p.variable_id)||null,name:l.name,parameters:l.parameters,total:((y=(f=this.playerStats[t.player_id])==null?void 0:f[l.id_variable])==null?void 0:y.value)||0,seasons:((c=(h=this.playerStats[t.player_id])==null?void 0:h[l.id_variable])==null?void 0:c.season)||null}})}},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},handleSelectedPlayers(t){const i=t.map(a=>a.objeto_player);this.$emit("change-selected-players",i)}}},nu={class:"list-view"};function du(t,i,a,o,s,l){const r=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("GSCTableScrollable");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{isVisible:s.showModal,"onUpdate:isVisible":i[0]||(i[0]=d=>s.showModal=d),onClose:l.closeModal,parameters:s.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",nu,[e.createVNode(n,{players:s.playersFormatted,"is-general":a.isGeneral,"is-edit-mode":a.deleteActive,"is-table-from-list":!0,onChangeSelectedPlayers:l.handleSelectedPlayers,onViewProfile:l.showProfile,onDeleteFromList:l.deleteFromList,onShowGraph:l.showGraph,onOpenMedia:l.onOpenMedia,onClickParameters:l.onClickParameters},null,8,["players","is-general","is-edit-mode","onChangeSelectedPlayers","onViewProfile","onDeleteFromList","onShowGraph","onOpenMedia","onClickParameters"])])],64)}const cu=Ye(ru,[["render",du],["__scopeId","data-v-b865218d"]]);function Pl(t,i){return function(){return t.apply(i,arguments)}}const{toString:pu}=Object.prototype,{getPrototypeOf:Yi}=Object,xa=(t=>i=>{const a=pu.call(i);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),ve=t=>(t=t.toLowerCase(),i=>xa(i)===t),Na=t=>i=>typeof i===t,{isArray:Mt}=Array,ea=Na("undefined");function mu(t){return t!==null&&!ea(t)&&t.constructor!==null&&!ea(t.constructor)&&Me(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $l=ve("ArrayBuffer");function yu(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&$l(t.buffer),i}const hu=Na("string"),Me=Na("function"),Al=Na("number"),Ta=t=>t!==null&&typeof t=="object",uu=t=>t===!0||t===!1,Ba=t=>{if(xa(t)!=="object")return!1;const i=Yi(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},fu=ve("Date"),gu=ve("File"),_u=ve("Blob"),bu=ve("FileList"),Su=t=>Ta(t)&&Me(t.pipe),Cu=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||Me(t.append)&&((i=xa(t))==="formdata"||i==="object"&&Me(t.toString)&&t.toString()==="[object FormData]"))},wu=ve("URLSearchParams"),[ku,Eu,Vu,xu]=["ReadableStream","Request","Response","Headers"].map(ve),Nu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ta(t,i,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,s;if(typeof t!="object"&&(t=[t]),Mt(t))for(o=0,s=t.length;o<s;o++)i.call(null,t[o],o,t);else{const l=a?Object.getOwnPropertyNames(t):Object.keys(t),r=l.length;let n;for(o=0;o<r;o++)n=l[o],i.call(null,t[n],n,t)}}function zl(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 gt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Il=t=>!ea(t)&&t!==gt;function Ki(){const{caseless:t}=Il(this)&&this||{},i={},a=(o,s)=>{const l=t&&zl(i,s)||s;Ba(i[l])&&Ba(o)?i[l]=Ki(i[l],o):Ba(o)?i[l]=Ki({},o):Mt(o)?i[l]=o.slice():i[l]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ta(arguments[o],a);return i}const Tu=(t,i,a,{allOwnKeys:o}={})=>(ta(i,(s,l)=>{a&&Me(s)?t[l]=Pl(s,a):t[l]=s},{allOwnKeys:o}),t),Bu=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Fu=(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)},Pu=(t,i,a,o)=>{let s,l,r;const n={};if(i=i||{},t==null)return i;do{for(s=Object.getOwnPropertyNames(t),l=s.length;l-- >0;)r=s[l],(!o||o(r,t,i))&&!n[r]&&(i[r]=t[r],n[r]=!0);t=a!==!1&&Yi(t)}while(t&&(!a||a(t,i))&&t!==Object.prototype);return i},$u=(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},Au=t=>{if(!t)return null;if(Mt(t))return t;let i=t.length;if(!Al(i))return null;const a=new Array(i);for(;i-- >0;)a[i]=t[i];return a},zu=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Yi(Uint8Array)),Iu=(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])}},Mu=(t,i)=>{let a;const o=[];for(;(a=t.exec(i))!==null;)o.push(a);return o},Lu=ve("HTMLFormElement"),Du=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,a,o){return a.toUpperCase()+o}),Ml=(({hasOwnProperty:t})=>(i,a)=>t.call(i,a))(Object.prototype),Ru=ve("RegExp"),Ll=(t,i)=>{const a=Object.getOwnPropertyDescriptors(t),o={};ta(a,(s,l)=>{let r;(r=i(s,l,t))!==!1&&(o[l]=r||s)}),Object.defineProperties(t,o)},Ou=t=>{Ll(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+"'")})}})},ju=(t,i)=>{const a={},o=s=>{s.forEach(l=>{a[l]=!0})};return Mt(t)?o(t):o(String(t).split(i)),a},vu=()=>{},Wu=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Uu(t){return!!(t&&Me(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Gu=t=>{const i=new Array(10),a=(o,s)=>{if(Ta(o)){if(i.indexOf(o)>=0)return;if(!("toJSON"in o)){i[s]=o;const l=Mt(o)?[]:{};return ta(o,(r,n)=>{const d=a(r,s+1);!ea(d)&&(l[n]=d)}),i[s]=void 0,l}}return o};return a(t,0)},Hu=ve("AsyncFunction"),Ju=t=>t&&(Ta(t)||Me(t))&&Me(t.then)&&Me(t.catch),Dl=((t,i)=>t?setImmediate:i?((a,o)=>(gt.addEventListener("message",({source:s,data:l})=>{s===gt&&l===a&&o.length&&o.shift()()},!1),s=>{o.push(s),gt.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Me(gt.postMessage)),qu=typeof queueMicrotask<"u"?queueMicrotask.bind(gt):typeof process<"u"&&process.nextTick||Dl,A={isArray:Mt,isArrayBuffer:$l,isBuffer:mu,isFormData:Cu,isArrayBufferView:yu,isString:hu,isNumber:Al,isBoolean:uu,isObject:Ta,isPlainObject:Ba,isReadableStream:ku,isRequest:Eu,isResponse:Vu,isHeaders:xu,isUndefined:ea,isDate:fu,isFile:gu,isBlob:_u,isRegExp:Ru,isFunction:Me,isStream:Su,isURLSearchParams:wu,isTypedArray:zu,isFileList:bu,forEach:ta,merge:Ki,extend:Tu,trim:Nu,stripBOM:Bu,inherits:Fu,toFlatObject:Pu,kindOf:xa,kindOfTest:ve,endsWith:$u,toArray:Au,forEachEntry:Iu,matchAll:Mu,isHTMLForm:Lu,hasOwnProperty:Ml,hasOwnProp:Ml,reduceDescriptors:Ll,freezeMethods:Ou,toObjectSet:ju,toCamelCase:Du,noop:vu,toFiniteNumber:Wu,findKey:zl,global:gt,isContextDefined:Il,isSpecCompliantForm:Uu,toJSONObject:Gu,isAsyncFn:Hu,isThenable:Ju,setImmediate:Dl,asap:qu};function ee(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)}A.inherits(ee,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:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Rl=ee.prototype,Ol={};["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=>{Ol[t]={value:t}}),Object.defineProperties(ee,Ol),Object.defineProperty(Rl,"isAxiosError",{value:!0}),ee.from=(t,i,a,o,s,l)=>{const r=Object.create(Rl);return A.toFlatObject(t,r,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),ee.call(r,t.message,i,a,o,s),r.cause=t,r.name=t.name,l&&Object.assign(r,l),r};const Zu=null;function Xi(t){return A.isPlainObject(t)||A.isArray(t)}function jl(t){return A.endsWith(t,"[]")?t.slice(0,-2):t}function vl(t,i,a){return t?t.concat(i).map(function(o,s){return o=jl(o),!a&&s?"["+o+"]":o}).join(a?".":""):i}function Yu(t){return A.isArray(t)&&!t.some(Xi)}const Ku=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Fa(t,i,a){if(!A.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,a=A.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,u){return!A.isUndefined(u[c])});const o=a.metaTokens,s=a.visitor||p,l=a.dots,r=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(i);if(!A.isFunction(s))throw new TypeError("visitor must be a function");function d(c){if(c===null)return"";if(A.isDate(c))return c.toISOString();if(!n&&A.isBlob(c))throw new ee("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(c)||A.isTypedArray(c)?n&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function p(c,u,m){let g=c;if(c&&!m&&typeof c=="object"){if(A.endsWith(u,"{}"))u=o?u:u.slice(0,-2),c=JSON.stringify(c);else if(A.isArray(c)&&Yu(c)||(A.isFileList(c)||A.endsWith(u,"[]"))&&(g=A.toArray(c)))return u=jl(u),g.forEach(function(_,k){!(A.isUndefined(_)||_===null)&&i.append(r===!0?vl([u],k,l):r===null?u:u+"[]",d(_))}),!1}return Xi(c)?!0:(i.append(vl(m,u,l),d(c)),!1)}const f=[],y=Object.assign(Ku,{defaultVisitor:p,convertValue:d,isVisitable:Xi});function h(c,u){if(!A.isUndefined(c)){if(f.indexOf(c)!==-1)throw Error("Circular reference detected in "+u.join("."));f.push(c),A.forEach(c,function(m,g){(!(A.isUndefined(m)||m===null)&&s.call(i,m,A.isString(g)?g.trim():g,u,y))===!0&&h(m,u?u.concat(g):[g])}),f.pop()}}if(!A.isObject(t))throw new TypeError("data must be an object");return h(t),i}function Wl(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Qi(t,i){this._pairs=[],t&&Fa(t,this,i)}const Ul=Qi.prototype;Ul.append=function(t,i){this._pairs.push([t,i])},Ul.toString=function(t){const i=t?function(a){return t.call(this,a,Wl)}:Wl;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function Xu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gl(t,i,a){if(!i)return t;const o=a&&a.encode||Xu;A.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let l;if(s?l=s(i,a):l=A.isURLSearchParams(i)?i.toString():new Qi(i,a).toString(o),l){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}let Hl=class{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){A.forEach(this.handlers,function(a){a!==null&&i(a)})}};const Jl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qu=typeof URLSearchParams<"u"?URLSearchParams:Qi,ef=typeof FormData<"u"?FormData:null,tf=typeof Blob<"u"?Blob:null,af={isBrowser:!0,classes:{URLSearchParams:Qu,FormData:ef,Blob:tf},protocols:["http","https","file","blob","url","data"]},eo=typeof window<"u"&&typeof document<"u",to=typeof navigator=="object"&&navigator||void 0,of=eo&&(!to||["ReactNative","NativeScript","NS"].indexOf(to.product)<0),sf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lf=eo&&window.location.href||"http://localhost",rf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:eo,hasStandardBrowserEnv:of,hasStandardBrowserWebWorkerEnv:sf,navigator:to,origin:lf},Symbol.toStringTag,{value:"Module"})),Ve={...rf,...af};function nf(t,i){return Fa(t,new Ve.classes.URLSearchParams,Object.assign({visitor:function(a,o,s,l){return Ve.isNode&&A.isBuffer(a)?(this.append(o,a.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},i))}function df(t){return A.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function cf(t){const i={},a=Object.keys(t);let o;const s=a.length;let l;for(o=0;o<s;o++)l=a[o],i[l]=t[l];return i}function ql(t){function i(a,o,s,l){let r=a[l++];if(r==="__proto__")return!0;const n=Number.isFinite(+r),d=l>=a.length;return r=!r&&A.isArray(s)?s.length:r,d?(A.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!n):((!s[r]||!A.isObject(s[r]))&&(s[r]=[]),i(a,o,s[r],l)&&A.isArray(s[r])&&(s[r]=cf(s[r])),!n)}if(A.isFormData(t)&&A.isFunction(t.entries)){const a={};return A.forEachEntry(t,(o,s)=>{i(df(o),s,a,0)}),a}return null}function pf(t,i,a){if(A.isString(t))try{return(i||JSON.parse)(t),A.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const aa={transitional:Jl,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const a=i.getContentType()||"",o=a.indexOf("application/json")>-1,s=A.isObject(t);if(s&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return o?JSON.stringify(ql(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return nf(t,this.formSerializer).toString();if((l=A.isFileList(t))||a.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Fa(l?{"files[]":t}:t,r&&new r,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),pf(t)):t}],transformResponse:[function(t){const i=this.transitional||aa.transitional,a=i&&i.forcedJSONParsing,o=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(a&&!this.responseType||o)){const s=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?ee.from(l,ee.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ve.classes.FormData,Blob:Ve.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],t=>{aa.headers[t]={}});const mf=A.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"]),yf=t=>{const i={};let a,o,s;return t&&t.split(`
|
|
2
2
|
`).forEach(function(l){s=l.indexOf(":"),a=l.substring(0,s).trim().toLowerCase(),o=l.substring(s+1).trim(),!(!a||i[a]&&mf[a])&&(a==="set-cookie"?i[a]?i[a].push(o):i[a]=[o]:i[a]=i[a]?i[a]+", "+o:o)}),i},Zl=Symbol("internals");function ia(t){return t&&String(t).trim().toLowerCase()}function Pa(t){return t===!1||t==null?t:A.isArray(t)?t.map(Pa):String(t)}function hf(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 uf=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ao(t,i,a,o,s){if(A.isFunction(o))return o.call(this,i,a);if(s&&(i=a),!!A.isString(i)){if(A.isString(o))return i.indexOf(o)!==-1;if(A.isRegExp(o))return o.test(i)}}function ff(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,a,o)=>a.toUpperCase()+o)}function gf(t,i){const a=A.toCamelCase(" "+i);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+a,{value:function(s,l,r){return this[o].call(this,i,s,l,r)},configurable:!0})})}let Pe=class{constructor(i){i&&this.set(i)}set(i,a,o){const s=this;function l(n,d,p){const f=ia(d);if(!f)throw new Error("header name must be a non-empty string");const y=A.findKey(s,f);(!y||s[y]===void 0||p===!0||p===void 0&&s[y]!==!1)&&(s[y||d]=Pa(n))}const r=(n,d)=>A.forEach(n,(p,f)=>l(p,f,d));if(A.isPlainObject(i)||i instanceof this.constructor)r(i,a);else if(A.isString(i)&&(i=i.trim())&&!uf(i))r(yf(i),a);else if(A.isHeaders(i))for(const[n,d]of i.entries())l(d,n,o);else i!=null&&l(a,i,o);return this}get(i,a){if(i=ia(i),i){const o=A.findKey(this,i);if(o){const s=this[o];if(!a)return s;if(a===!0)return hf(s);if(A.isFunction(a))return a.call(this,s,o);if(A.isRegExp(a))return a.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,a){if(i=ia(i),i){const o=A.findKey(this,i);return!!(o&&this[o]!==void 0&&(!a||ao(this,this[o],o,a)))}return!1}delete(i,a){const o=this;let s=!1;function l(r){if(r=ia(r),r){const n=A.findKey(o,r);n&&(!a||ao(o,o[n],n,a))&&(delete o[n],s=!0)}}return A.isArray(i)?i.forEach(l):l(i),s}clear(i){const a=Object.keys(this);let o=a.length,s=!1;for(;o--;){const l=a[o];(!i||ao(this,this[l],l,i,!0))&&(delete this[l],s=!0)}return s}normalize(i){const a=this,o={};return A.forEach(this,(s,l)=>{const r=A.findKey(o,l);if(r){a[r]=Pa(s),delete a[l];return}const n=i?ff(l):String(l).trim();n!==l&&delete a[l],a[n]=Pa(s),o[n]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const a=Object.create(null);return A.forEach(this,(o,s)=>{o!=null&&o!==!1&&(a[s]=i&&A.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[Zl]=this[Zl]={accessors:{}}).accessors,o=this.prototype;function s(l){const r=ia(l);a[r]||(gf(o,l),a[r]=!0)}return A.isArray(i)?i.forEach(s):s(i),this}};Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(Pe.prototype,({value:t},i)=>{let a=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(o){this[a]=o}}}),A.freezeMethods(Pe);function io(t,i){const a=this||aa,o=i||a,s=Pe.from(o.headers);let l=o.data;return A.forEach(t,function(r){l=r.call(a,l,s.normalize(),i?i.status:void 0)}),s.normalize(),l}function Yl(t){return!!(t&&t.__CANCEL__)}function Lt(t,i,a){ee.call(this,t??"canceled",ee.ERR_CANCELED,i,a),this.name="CanceledError"}A.inherits(Lt,ee,{__CANCEL__:!0});function Kl(t,i,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):i(new ee("Request failed with status code "+a.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function _f(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function bf(t,i){t=t||10;const a=new Array(t),o=new Array(t);let s=0,l=0,r;return i=i!==void 0?i:1e3,function(n){const d=Date.now(),p=o[l];r||(r=d),a[s]=n,o[s]=d;let f=l,y=0;for(;f!==s;)y+=a[f++],f=f%t;if(s=(s+1)%t,s===l&&(l=(l+1)%t),d-r<i)return;const h=p&&d-p;return h?Math.round(y*1e3/h):void 0}}function Sf(t,i){let a=0,o=1e3/i,s,l;const r=(n,d=Date.now())=>{a=d,s=null,l&&(clearTimeout(l),l=null),t.apply(null,n)};return[(...n)=>{const d=Date.now(),p=d-a;p>=o?r(n,d):(s=n,l||(l=setTimeout(()=>{l=null,r(s)},o-p)))},()=>s&&r(s)]}const $a=(t,i,a=3)=>{let o=0;const s=bf(50,250);return Sf(l=>{const r=l.loaded,n=l.lengthComputable?l.total:void 0,d=r-o,p=s(d),f=r<=n;o=r;const y={loaded:r,total:n,progress:n?r/n:void 0,bytes:d,rate:p||void 0,estimated:p&&n&&f?(n-r)/p:void 0,event:l,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(y)},a)},Xl=(t,i)=>{const a=t!=null;return[o=>i[0]({lengthComputable:a,total:t,loaded:o}),i[1]]},Ql=t=>(...i)=>A.asap(()=>t(...i)),Cf=Ve.hasStandardBrowserEnv?((t,i)=>a=>(a=new URL(a,Ve.origin),t.protocol===a.protocol&&t.host===a.host&&(i||t.port===a.port)))(new URL(Ve.origin),Ve.navigator&&/(msie|trident)/i.test(Ve.navigator.userAgent)):()=>!0,wf=Ve.hasStandardBrowserEnv?{write(t,i,a,o,s,l){const r=[t+"="+encodeURIComponent(i)];A.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),A.isString(o)&&r.push("path="+o),A.isString(s)&&r.push("domain="+s),l===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kf(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ef(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function er(t,i,a){let o=!kf(i);return t&&(o||a==!1)?Ef(t,i):i}const tr=t=>t instanceof Pe?{...t}:t;function _t(t,i){i=i||{};const a={};function o(p,f,y,h){return A.isPlainObject(p)&&A.isPlainObject(f)?A.merge.call({caseless:h},p,f):A.isPlainObject(f)?A.merge({},f):A.isArray(f)?f.slice():f}function s(p,f,y,h){if(A.isUndefined(f)){if(!A.isUndefined(p))return o(void 0,p,y,h)}else return o(p,f,y,h)}function l(p,f){if(!A.isUndefined(f))return o(void 0,f)}function r(p,f){if(A.isUndefined(f)){if(!A.isUndefined(p))return o(void 0,p)}else return o(void 0,f)}function n(p,f,y){if(y in i)return o(p,f);if(y in t)return o(void 0,p)}const d={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:n,headers:(p,f,y)=>s(tr(p),tr(f),y,!0)};return A.forEach(Object.keys(Object.assign({},t,i)),function(p){const f=d[p]||s,y=f(t[p],i[p],p);A.isUndefined(y)&&f!==n||(a[p]=y)}),a}const ar=t=>{const i=_t({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:l,headers:r,auth:n}=i;i.headers=r=Pe.from(r),i.url=Gl(er(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&r.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let d;if(A.isFormData(a)){if(Ve.hasStandardBrowserEnv||Ve.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((d=r.getContentType())!==!1){const[p,...f]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];r.setContentType([p||"multipart/form-data",...f].join("; "))}}if(Ve.hasStandardBrowserEnv&&(o&&A.isFunction(o)&&(o=o(i)),o||o!==!1&&Cf(i.url))){const p=s&&l&&wf.read(l);p&&r.set(s,p)}return i},Vf=typeof XMLHttpRequest<"u",xf=Vf&&function(t){return new Promise(function(i,a){const o=ar(t);let s=o.data;const l=Pe.from(o.headers).normalize();let{responseType:r,onUploadProgress:n,onDownloadProgress:d}=o,p,f,y,h,c;function u(){h&&h(),c&&c(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function g(){if(!m)return;const k=Pe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),W={data:!r||r==="text"||r==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:k,config:t,request:m};Kl(function(J){i(J),u()},function(J){a(J),u()},W),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(a(new ee("Request aborted",ee.ECONNABORTED,t,m)),m=null)},m.onerror=function(){a(new ee("Network Error",ee.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const W=o.transitional||Jl;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),a(new ee(k,W.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,t,m)),m=null},s===void 0&&l.setContentType(null),"setRequestHeader"in m&&A.forEach(l.toJSON(),function(k,W){m.setRequestHeader(W,k)}),A.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),r&&r!=="json"&&(m.responseType=o.responseType),d&&([y,c]=$a(d,!0),m.addEventListener("progress",y)),n&&m.upload&&([f,h]=$a(n),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(p=k=>{m&&(a(!k||k.type?new Lt(null,t,m):k),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const _=_f(o.url);if(_&&Ve.protocols.indexOf(_)===-1){a(new ee("Unsupported protocol "+_+":",ee.ERR_BAD_REQUEST,t));return}m.send(s||null)})},Nf=(t,i)=>{const{length:a}=t=t?t.filter(Boolean):[];if(i||a){let o=new AbortController,s;const l=function(p){if(!s){s=!0,n();const f=p instanceof Error?p:this.reason;o.abort(f instanceof ee?f:new Lt(f instanceof Error?f.message:f))}};let r=i&&setTimeout(()=>{r=null,l(new ee(`timeout ${i} of ms exceeded`,ee.ETIMEDOUT))},i);const n=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(l):p.removeEventListener("abort",l)}),t=null)};t.forEach(p=>p.addEventListener("abort",l));const{signal:d}=o;return d.unsubscribe=()=>A.asap(n),d}},Tf=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},Bf=async function*(t,i){for await(const a of Ff(t))yield*Tf(a,i)},Ff=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()}},ir=(t,i,a,o)=>{const s=Bf(t,i);let l=0,r,n=d=>{r||(r=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:p,value:f}=await s.next();if(p){n(),d.close();return}let y=f.byteLength;if(a){let h=l+=y;a(h)}d.enqueue(new Uint8Array(f))}catch(p){throw n(p),p}},cancel(d){return n(d),s.return()}},{highWaterMark:2})},Aa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",or=Aa&&typeof ReadableStream=="function",Pf=Aa&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),sr=(t,...i)=>{try{return!!t(...i)}catch{return!1}},$f=or&&sr(()=>{let t=!1;const i=new Request(Ve.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),lr=64*1024,oo=or&&sr(()=>A.isReadableStream(new Response("").body)),za={stream:oo&&(t=>t.body)};Aa&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!za[i]&&(za[i]=A.isFunction(t[i])?a=>a[i]():(a,o)=>{throw new ee(`Response type '${i}' is not supported`,ee.ERR_NOT_SUPPORT,o)})})})(new Response);const Af=async t=>{if(t==null)return 0;if(A.isBlob(t))return t.size;if(A.isSpecCompliantForm(t))return(await new Request(Ve.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(A.isArrayBufferView(t)||A.isArrayBuffer(t))return t.byteLength;if(A.isURLSearchParams(t)&&(t=t+""),A.isString(t))return(await Pf(t)).byteLength},zf=async(t,i)=>A.toFiniteNumber(t.getContentLength())??Af(i),If=Aa&&(async t=>{let{url:i,method:a,data:o,signal:s,cancelToken:l,timeout:r,onDownloadProgress:n,onUploadProgress:d,responseType:p,headers:f,withCredentials:y="same-origin",fetchOptions:h}=ar(t);p=p?(p+"").toLowerCase():"text";let c=Nf([s,l&&l.toAbortSignal()],r),u;const m=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let g;try{if(d&&$f&&a!=="get"&&a!=="head"&&(g=await zf(f,o))!==0){let L=new Request(i,{method:"POST",body:o,duplex:"half"}),G;if(A.isFormData(o)&&(G=L.headers.get("content-type"))&&f.setContentType(G),L.body){const[Z,q]=Xl(g,$a(Ql(d)));o=ir(L.body,lr,Z,q)}}A.isString(y)||(y=y?"include":"omit");const _="credentials"in Request.prototype;u=new Request(i,{...h,signal:c,method:a.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:_?y:void 0});let k=await fetch(u);const W=oo&&(p==="stream"||p==="response");if(oo&&(n||W&&m)){const L={};["status","statusText","headers"].forEach(Y=>{L[Y]=k[Y]});const G=A.toFiniteNumber(k.headers.get("content-length")),[Z,q]=n&&Xl(G,$a(Ql(n),!0))||[];k=new Response(ir(k.body,lr,Z,()=>{q&&q(),m&&m()}),L)}p=p||"text";let J=await za[A.findKey(za,p)||"text"](k,t);return!W&&m&&m(),await new Promise((L,G)=>{Kl(L,G,{data:J,headers:Pe.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:u})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new ee("Network Error",ee.ERR_NETWORK,t,u),{cause:_.cause||_}):ee.from(_,_&&_.code,t,u)}}),so={http:Zu,xhr:xf,fetch:If};A.forEach(so,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const rr=t=>`- ${t}`,Mf=t=>A.isFunction(t)||t===null||t===!1,nr={getAdapter:t=>{t=A.isArray(t)?t:[t];const{length:i}=t;let a,o;const s={};for(let l=0;l<i;l++){a=t[l];let r;if(o=a,!Mf(a)&&(o=so[(r=String(a)).toLowerCase()],o===void 0))throw new ee(`Unknown adapter '${r}'`);if(o)break;s[r||"#"+l]=o}if(!o){const l=Object.entries(s).map(([n,d])=>`adapter ${n} `+(d===!1?"is not supported by the environment":"is not available in the build"));let r=i?l.length>1?`since :
|
|
4
4
|
`+l.map(rr).join(`
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const a=new this(t);return i.forEach(o=>a.set(o)),a}static accessor(t){const i=(this[Pc]=this[Pc]={accessors:{}}).accessors,a=this.prototype;function o(s){const l=Sa(s);i[l]||(Nj(a,s),i[l]=!0)}return M.isArray(t)?t.forEach(o):o(t),this}};Ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),M.reduceDescriptors(Ei.prototype,({value:t},i)=>{let a=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(o){this[a]=o}}}),M.freezeMethods(Ei);const Ze=Ei;function Is(t,i){const a=this||As,o=i||a,s=Ze.from(o.headers);let l=o.data;return M.forEach(t,function(r){l=r.call(a,l,s.normalize(),i?i.status:void 0)}),s.normalize(),l}function $c(t){return!!(t&&t.__CANCEL__)}function qt(t,i,a){ie.call(this,t??"canceled",ie.ERR_CANCELED,i,a),this.name="CanceledError"}M.inherits(qt,ie,{__CANCEL__:!0});function Ac(t,i,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):i(new ie("Request failed with status code "+a.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Tj(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Bj(t,i){t=t||10;const a=new Array(t),o=new Array(t);let s=0,l=0,r;return i=i!==void 0?i:1e3,function(n){const d=Date.now(),p=o[l];r||(r=d),a[s]=n,o[s]=d;let f=l,y=0;for(;f!==s;)y+=a[f++],f=f%t;if(s=(s+1)%t,s===l&&(l=(l+1)%t),d-r<i)return;const h=p&&d-p;return h?Math.round(y*1e3/h):void 0}}function Fj(t,i){let a=0,o=1e3/i,s,l;const r=(n,d=Date.now())=>{a=d,s=null,l&&(clearTimeout(l),l=null),t.apply(null,n)};return[(...n)=>{const d=Date.now(),p=d-a;p>=o?r(n,d):(s=n,l||(l=setTimeout(()=>{l=null,r(s)},o-p)))},()=>s&&r(s)]}const Vi=(t,i,a=3)=>{let o=0;const s=Bj(50,250);return Fj(l=>{const r=l.loaded,n=l.lengthComputable?l.total:void 0,d=r-o,p=s(d),f=r<=n;o=r;const y={loaded:r,total:n,progress:n?r/n:void 0,bytes:d,rate:p||void 0,estimated:p&&n&&f?(n-r)/p:void 0,event:l,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(y)},a)},zc=(t,i)=>{const a=t!=null;return[o=>i[0]({lengthComputable:a,total:t,loaded:o}),i[1]]},Ic=t=>(...i)=>M.asap(()=>t(...i)),Pj=Te.hasStandardBrowserEnv?((t,i)=>a=>(a=new URL(a,Te.origin),t.protocol===a.protocol&&t.host===a.host&&(i||t.port===a.port)))(new URL(Te.origin),Te.navigator&&/(msie|trident)/i.test(Te.navigator.userAgent)):()=>!0,$j=Te.hasStandardBrowserEnv?{write(t,i,a,o,s,l){const r=[t+"="+encodeURIComponent(i)];M.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),M.isString(o)&&r.push("path="+o),M.isString(s)&&r.push("domain="+s),l===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Aj(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function zj(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function Mc(t,i,a){let o=!Aj(i);return t&&(o||a==!1)?zj(t,i):i}const Lc=t=>t instanceof Ze?{...t}:t;function Ft(t,i){i=i||{};const a={};function o(p,f,y,h){return M.isPlainObject(p)&&M.isPlainObject(f)?M.merge.call({caseless:h},p,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function s(p,f,y,h){if(M.isUndefined(f)){if(!M.isUndefined(p))return o(void 0,p,y,h)}else return o(p,f,y,h)}function l(p,f){if(!M.isUndefined(f))return o(void 0,f)}function r(p,f){if(M.isUndefined(f)){if(!M.isUndefined(p))return o(void 0,p)}else return o(void 0,f)}function n(p,f,y){if(y in i)return o(p,f);if(y in t)return o(void 0,p)}const d={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:n,headers:(p,f,y)=>s(Lc(p),Lc(f),y,!0)};return M.forEach(Object.keys(Object.assign({},t,i)),function(p){const f=d[p]||s,y=f(t[p],i[p],p);M.isUndefined(y)&&f!==n||(a[p]=y)}),a}const Dc=t=>{const i=Ft({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:l,headers:r,auth:n}=i;i.headers=r=Ze.from(r),i.url=Nc(Mc(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&r.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let d;if(M.isFormData(a)){if(Te.hasStandardBrowserEnv||Te.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((d=r.getContentType())!==!1){const[p,...f]=d?d.split(";").map(y=>y.trim()).filter(Boolean):[];r.setContentType([p||"multipart/form-data",...f].join("; "))}}if(Te.hasStandardBrowserEnv&&(o&&M.isFunction(o)&&(o=o(i)),o||o!==!1&&Pj(i.url))){const p=s&&l&&$j.read(l);p&&r.set(s,p)}return i},Ij=typeof XMLHttpRequest<"u",Mj=Ij&&function(t){return new Promise(function(i,a){const o=Dc(t);let s=o.data;const l=Ze.from(o.headers).normalize();let{responseType:r,onUploadProgress:n,onDownloadProgress:d}=o,p,f,y,h,c;function u(){h&&h(),c&&c(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function g(){if(!m)return;const k=Ze.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),W={data:!r||r==="text"||r==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:k,config:t,request:m};Ac(function(J){i(J),u()},function(J){a(J),u()},W),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(a(new ie("Request aborted",ie.ECONNABORTED,t,m)),m=null)},m.onerror=function(){a(new ie("Network Error",ie.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const W=o.transitional||Bc;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),a(new ie(k,W.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,t,m)),m=null},s===void 0&&l.setContentType(null),"setRequestHeader"in m&&M.forEach(l.toJSON(),function(k,W){m.setRequestHeader(W,k)}),M.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),r&&r!=="json"&&(m.responseType=o.responseType),d&&([y,c]=Vi(d,!0),m.addEventListener("progress",y)),n&&m.upload&&([f,h]=Vi(n),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(p=k=>{m&&(a(!k||k.type?new qt(null,t,m):k),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const _=Tj(o.url);if(_&&Te.protocols.indexOf(_)===-1){a(new ie("Unsupported protocol "+_+":",ie.ERR_BAD_REQUEST,t));return}m.send(s||null)})},Lj=(t,i)=>{const{length:a}=t=t?t.filter(Boolean):[];if(i||a){let o=new AbortController,s;const l=function(p){if(!s){s=!0,n();const f=p instanceof Error?p:this.reason;o.abort(f instanceof ie?f:new qt(f instanceof Error?f.message:f))}};let r=i&&setTimeout(()=>{r=null,l(new ie(`timeout ${i} of ms exceeded`,ie.ETIMEDOUT))},i);const n=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(l):p.removeEventListener("abort",l)}),t=null)};t.forEach(p=>p.addEventListener("abort",l));const{signal:d}=o;return d.unsubscribe=()=>M.asap(n),d}},Dj=Lj,Rj=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},Oj=async function*(t,i){for await(const a of jj(t))yield*Rj(a,i)},jj=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()}},Rc=(t,i,a,o)=>{const s=Oj(t,i);let l=0,r,n=d=>{r||(r=!0,o&&o(d))};return new ReadableStream({async pull(d){try{const{done:p,value:f}=await s.next();if(p){n(),d.close();return}let y=f.byteLength;if(a){let h=l+=y;a(h)}d.enqueue(new Uint8Array(f))}catch(p){throw n(p),p}},cancel(d){return n(d),s.return()}},{highWaterMark:2})},xi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Oc=xi&&typeof ReadableStream=="function",vj=xi&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),jc=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Wj=Oc&&jc(()=>{let t=!1;const i=new Request(Te.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),vc=64*1024,Ms=Oc&&jc(()=>M.isReadableStream(new Response("").body)),Ni={stream:Ms&&(t=>t.body)};xi&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Ni[i]&&(Ni[i]=M.isFunction(t[i])?a=>a[i]():(a,o)=>{throw new ie(`Response type '${i}' is not supported`,ie.ERR_NOT_SUPPORT,o)})})})(new Response);const Uj=async t=>{if(t==null)return 0;if(M.isBlob(t))return t.size;if(M.isSpecCompliantForm(t))return(await new Request(Te.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(M.isArrayBufferView(t)||M.isArrayBuffer(t))return t.byteLength;if(M.isURLSearchParams(t)&&(t=t+""),M.isString(t))return(await vj(t)).byteLength},Gj=async(t,i)=>M.toFiniteNumber(t.getContentLength())??Uj(i),Hj=xi&&(async t=>{let{url:i,method:a,data:o,signal:s,cancelToken:l,timeout:r,onDownloadProgress:n,onUploadProgress:d,responseType:p,headers:f,withCredentials:y="same-origin",fetchOptions:h}=Dc(t);p=p?(p+"").toLowerCase():"text";let c=Dj([s,l&&l.toAbortSignal()],r),u;const m=c&&c.unsubscribe&&(()=>{c.unsubscribe()});let g;try{if(d&&Wj&&a!=="get"&&a!=="head"&&(g=await Gj(f,o))!==0){let L=new Request(i,{method:"POST",body:o,duplex:"half"}),G;if(M.isFormData(o)&&(G=L.headers.get("content-type"))&&f.setContentType(G),L.body){const[Z,q]=zc(g,Vi(Ic(d)));o=Rc(L.body,vc,Z,q)}}M.isString(y)||(y=y?"include":"omit");const _="credentials"in Request.prototype;u=new Request(i,{...h,signal:c,method:a.toUpperCase(),headers:f.normalize().toJSON(),body:o,duplex:"half",credentials:_?y:void 0});let k=await fetch(u);const W=Ms&&(p==="stream"||p==="response");if(Ms&&(n||W&&m)){const L={};["status","statusText","headers"].forEach(Y=>{L[Y]=k[Y]});const G=M.toFiniteNumber(k.headers.get("content-length")),[Z,q]=n&&zc(G,Vi(Ic(n),!0))||[];k=new Response(Rc(k.body,vc,Z,()=>{q&&q(),m&&m()}),L)}p=p||"text";let J=await Ni[M.findKey(Ni,p)||"text"](k,t);return!W&&m&&m(),await new Promise((L,G)=>{Ac(L,G,{data:J,headers:Ze.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:u})})}catch(_){throw m&&m(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,t,u),{cause:_.cause||_}):ie.from(_,_&&_.code,t,u)}}),Ls={http:sj,xhr:Mj,fetch:Hj};M.forEach(Ls,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Wc=t=>`- ${t}`,Jj=t=>M.isFunction(t)||t===null||t===!1,Uc={getAdapter:t=>{t=M.isArray(t)?t:[t];const{length:i}=t;let a,o;const s={};for(let l=0;l<i;l++){a=t[l];let r;if(o=a,!Jj(a)&&(o=Ls[(r=String(a)).toLowerCase()],o===void 0))throw new ie(`Unknown adapter '${r}'`);if(o)break;s[r||"#"+l]=o}if(!o){const l=Object.entries(s).map(([n,d])=>`adapter ${n} `+(d===!1?"is not supported by the environment":"is not available in the build"));let r=i?l.length>1?`since :
|
|
23
23
|
`+l.map(Wc).join(`
|
|
24
24
|
`):" "+Wc(l[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o},adapters:Ls};function Ds(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new qt(null,t)}function Gc(t){return Ds(t),t.headers=Ze.from(t.headers),t.data=Is.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Uc.getAdapter(t.adapter||As.adapter)(t).then(function(i){return Ds(t),i.data=Is.call(t,t.transformResponse,i),i.headers=Ze.from(i.headers),i},function(i){return $c(i)||(Ds(t),i&&i.response&&(i.response.data=Is.call(t,t.transformResponse,i.response),i.response.headers=Ze.from(i.response.headers))),Promise.reject(i)})}const Hc="1.8.4",Ti={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{Ti[t]=function(a){return typeof a===t||"a"+(i<1?"n ":" ")+t}});const Jc={};Ti.transitional=function(t,i,a){function o(s,l){return"[Axios v"+Hc+"] Transitional option '"+s+"'"+l+(a?". "+a:"")}return(s,l,r)=>{if(t===!1)throw new ie(o(l," has been removed"+(i?" in "+i:"")),ie.ERR_DEPRECATED);return i&&!Jc[l]&&(Jc[l]=!0,console.warn(o(l," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,l,r):!0}},Ti.spelling=function(t){return(i,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function qj(t,i,a){if(typeof t!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let s=o.length;for(;s-- >0;){const l=o[s],r=i[l];if(r){const n=t[l],d=n===void 0||r(n,l,t);if(d!==!0)throw new ie("option "+l+" must be "+d,ie.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new ie("Unknown option "+l,ie.ERR_BAD_OPTION)}}const Bi={assertOptions:qj,validators:Ti},tt=Bi.validators;let Fi=class{constructor(t){this.defaults=t,this.interceptors={request:new Tc,response:new Tc}}async request(t,i){try{return await this._request(t,i)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
25
|
-
`+s):a.stack=s}catch{}}throw a}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ft(this.defaults,i);const{transitional:a,paramsSerializer:o,headers:s}=i;a!==void 0&&Bi.assertOptions(a,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),o!=null&&(M.isFunction(o)?i.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:tt.function,serialize:tt.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Bi.assertOptions(i,{baseUrl:tt.spelling("baseURL"),withXsrfToken:tt.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=s&&M.merge(s.common,s[i.method]);s&&M.forEach(["delete","get","head","post","put","patch","common"],c=>{delete s[c]}),i.headers=Ze.concat(l,s);const r=[];let n=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(i)===!1||(n=n&&c.synchronous,r.unshift(c.fulfilled,c.rejected))});const d=[];this.interceptors.response.forEach(function(c){d.push(c.fulfilled,c.rejected)});let p,f=0,y;if(!n){const c=[Gc.bind(this),void 0];for(c.unshift.apply(c,r),c.push.apply(c,d),y=c.length,p=Promise.resolve(i);f<y;)p=p.then(c[f++],c[f++]);return p}y=r.length;let h=i;for(f=0;f<y;){const c=r[f++],u=r[f++];try{h=c(h)}catch(m){u.call(this,m);break}}try{p=Gc.call(this,h)}catch(c){return Promise.reject(c)}for(f=0,y=d.length;f<y;)p=p.then(d[f++],d[f++]);return p}getUri(t){t=Ft(this.defaults,t);const i=Mc(t.baseURL,t.url,t.allowAbsoluteUrls);return Nc(i,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){Fi.prototype[t]=function(i,a){return this.request(Ft(a||{},{method:t,url:i,data:(a||{}).data}))}}),M.forEach(["post","put","patch"],function(t){function i(a){return function(o,s,l){return this.request(Ft(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Fi.prototype[t]=i(),Fi.prototype[t+"Form"]=i(!0)});const Pi=Fi;class Rs{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](s);o._listeners=null}),this.promise.then=s=>{let l;const r=new Promise(n=>{o.subscribe(n),l=n}).then(s);return r.cancel=function(){o.unsubscribe(l)},r},i(function(s,l,r){o.reason||(o.reason=new qt(s,l,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const i=new AbortController,a=o=>{i.abort(o)};return this.subscribe(a),i.signal.unsubscribe=()=>this.unsubscribe(a),i.signal}static source(){let i;return{token:new Rs(function(a){i=a}),cancel:i}}}const Zj=Rs;function Yj(t){return function(i){return t.apply(null,i)}}function Kj(t){return M.isObject(t)&&t.isAxiosError===!0}const Os={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(Os).forEach(([t,i])=>{Os[i]=t});const Xj=Os;function qc(t){const i=new Pi(t),a=yc(Pi.prototype.request,i);return M.extend(a,Pi.prototype,i,{allOwnKeys:!0}),M.extend(a,i,null,{allOwnKeys:!0}),a.create=function(o){return qc(Ft(t,o))},a}const be=qc(As);be.Axios=Pi,be.CanceledError=qt,be.CancelToken=Zj,be.isCancel=$c,be.VERSION=Hc,be.toFormData=wi,be.AxiosError=ie,be.Cancel=be.CanceledError,be.all=function(t){return Promise.all(t)},be.spread=Yj,be.isAxiosError=Kj,be.mergeConfig=Ft,be.AxiosHeaders=Ze,be.formToJSON=t=>Fc(M.isHTMLForm(t)?new FormData(t):t),be.getAdapter=Uc.getAdapter,be.HttpStatusCode=Xj,be.default=be;const Pt=be,Zt={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"}]},Zc={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"},Yc={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function $i(t){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$i(t)}function ot(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 fe(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function ye(t){fe(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||$i(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Qj(t,i){fe(2,arguments);var a=ye(t),o=ot(i);return isNaN(o)?new Date(NaN):(o&&a.setDate(a.getDate()+o),a)}function ev(t,i){fe(2,arguments);var a=ye(t),o=ot(i);if(isNaN(o))return new Date(NaN);if(!o)return a;var s=a.getDate(),l=new Date(a.getTime());l.setMonth(a.getMonth()+o+1,0);var r=l.getDate();return s>=r?l:(a.setFullYear(l.getFullYear(),l.getMonth(),s),a)}function Ca(t,i){if(fe(2,arguments),!i||$i(i)!=="object")return new Date(NaN);var a=i.years?ot(i.years):0,o=i.months?ot(i.months):0,s=i.weeks?ot(i.weeks):0,l=i.days?ot(i.days):0,r=i.hours?ot(i.hours):0,n=i.minutes?ot(i.minutes):0,d=i.seconds?ot(i.seconds):0,p=ye(t),f=o||a?ev(p,o+a*12):p,y=l||s?Qj(f,l+s*7):f,h=n+r*60,c=d+h*60,u=c*1e3,m=new Date(y.getTime()+u);return m}function Kc(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 Xc(t){fe(1,arguments);var i=ye(t);return i.setHours(0,0,0,0),i}var tv=864e5;function av(t,i){fe(2,arguments);var a=Xc(t),o=Xc(i),s=a.getTime()-Kc(a),l=o.getTime()-Kc(o);return Math.round((s-l)/tv)}function Yt(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=a.getTime()-o.getTime();return s<0?-1:s>0?1:s}var iv=6e4,ov=36e5;function sv(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=a.getFullYear()-o.getFullYear(),l=a.getMonth()-o.getMonth();return s*12+l}function lv(t,i){fe(2,arguments);var a=ye(t),o=ye(i);return a.getFullYear()-o.getFullYear()}function Qc(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 rv(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=Qc(a,o),l=Math.abs(av(a,o));a.setDate(a.getDate()-s*l);var r=+(Qc(a,o)===-s),n=s*(l-r);return n===0?0:n}function js(t,i){return fe(2,arguments),ye(t).getTime()-ye(i).getTime()}var nv={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},dv="trunc";function vs(t){return nv[dv]}function cv(t,i,a){fe(2,arguments);var o=js(t,i)/ov;return vs()(o)}function pv(t,i,a){fe(2,arguments);var o=js(t,i)/iv;return vs()(o)}function mv(t){fe(1,arguments);var i=ye(t);return i.setHours(23,59,59,999),i}function yv(t){fe(1,arguments);var i=ye(t),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function hv(t){fe(1,arguments);var i=ye(t);return mv(i).getTime()===yv(i).getTime()}function uv(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=Yt(a,o),l=Math.abs(sv(a,o)),r;if(l<1)r=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*l);var n=Yt(a,o)===-s;hv(ye(t))&&l===1&&Yt(t,o)===1&&(n=!1),r=s*(l-Number(n))}return r===0?0:r}function fv(t,i,a){fe(2,arguments);var o=js(t,i)/1e3;return vs()(o)}function gv(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=Yt(a,o),l=Math.abs(lv(a,o));a.setFullYear(1584),o.setFullYear(1584);var r=Yt(a,o)===-s,n=s*(l-Number(r));return n===0?0:n}function ep(t){return fe(1,arguments),ye(t).getFullYear()}function tp(t){fe(1,arguments);var i=ye(t.start),a=ye(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(gv(a,i));var s=Yt(a,i),l=Ca(i,{years:s*o.years});o.months=Math.abs(uv(a,l));var r=Ca(l,{months:s*o.months});o.days=Math.abs(rv(a,r));var n=Ca(r,{days:s*o.days});o.hours=Math.abs(cv(a,n));var d=Ca(n,{hours:s*o.hours});o.minutes=Math.abs(pv(a,d));var p=Ca(d,{minutes:s*o.minutes});return o.seconds=Math.abs(fv(a,p)),o}const _v="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",bv="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",$t={...Zt},ap=new Set([1]);async function Sv(t,i=""){try{const a={Authorization:i||_v},o={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:bv,s=await Pt.get(o+t.id,{headers:a});return s.data?s.data.players:[]}catch(a){return Promise.reject(a)}}async function Cv(t=[],i=""){try{const a=t.map(o=>Sv(o,i));if(a.length){const o=new Set,s=new Date,l=[],r=new Map,n=new Map,d=await Promise.all(a);for(const p of d)for(const f of p){const y=new Date(f.dob),h=ep(y),c=tp({start:y,end:s});r.has(f.nationality_id)||r.set(f.nationality_id,{id:f.nationality_id,isSelected:!0,name:Zc[`${f.nationality_id}`]}),n.has(f.position_id)||n.set(f.position_id,{id:f.position_id,isSelected:!0,name:Yc[`${f.position_id}`]}),o.add(h),l.push(c.years)}return $t.minAge=Math.min(...l),$t.maxAge=Math.max(...l),$t.availableYears=[...o].sort((p,f)=>f-p),$t.nationalities=[...r.values()],$t.positions=[...n.values()],$t.isEligibilitySwitchVisible=t.some(p=>ap.has(p.tournamentId)),$t}else return null}catch(a){return Promise.reject(a)}}const wv={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){o.value&&(o.value.checked=a.modelValue)}function l(r){i("update:modelValue",r.target.checked)}return e.onMounted(()=>{s()}),(r,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:o,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:l},null,544))}},wa=re(wv,[["__scopeId","data-v-e3a6ae4e"]]),At=t=>(e.pushScopeId("data-v-23130339"),t=t(),e.popScopeId(),t),kv={class:"personal-data"},Ev={class:"personal-data__age"},Vv={class:"personal-data__age__toggle"},xv={class:"personal-data__age__range"},Nv={class:"personal-data__age__dropdown"},Tv=At(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),Bv={class:"selected-item"},Fv=At(()=>e.createElementVNode("div",{class:"separator"},null,-1)),Pv={class:"personal-data__nationality-position"},$v={key:0,class:"personal-data__nationality-position__switch"},Av=At(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),zv=At(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Iv={class:"personal-data__nationality-position__nationality"},Mv=At(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),Lv={class:"selected-item"},Dv=At(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Rv={class:"selected-item"},Ov={class:"personal-data__nationality-position__position"},jv=At(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),vv={class:"selected-item"},Wv="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Uv={__name:"TemplatePersonalData",props:{filters:{type:Object,default:()=>null},isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"},awaitForFilters:{type:Boolean,default:!1}},emits:["update:filters"],setup(t,{expose:i,emit:a}){const o=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},l={id:0,name:"Todas las posiciones",isSelected:!1},r=e.ref({...Zt}),n=e.ref(["Por edad","Por año"]),d=e.ref(0),p=e.ref({min:Zt.minAge,max:Zt.maxAge}),f=e.ref(yt),y=e.ref(""),h=e.ref(""),c=e.ref(r.value.availableYears[r.value.availableYears.length-1]),u=e.ref(0),m=e.computed(()=>{const N=r.value.nationalities?[...r.value.nationalities]:[];o.isSeleccion&&N.forEach($=>{$.isSelected=$.id===138});const D=N[0];return(!D||D.id!==0)&&N.unshift(s),N}),g=e.computed(()=>{let N=(o.filter&&o.filter.positions?o.filter.positions:r.value.positions)?[...r.value.positions]:[];const D=N[0];return(!D||D.id!==0)&&N.unshift(l),N.sort(($,H)=>$.id-H.id),N}),_=e.computed(()=>o.season&&o.season.tournamentId&&ap.has(o.season.tournamentId)||o.filters&&o.filters.isEligibilitySwitchVisible);e.watch(m,N=>{const D=N.reduce(($,H,K)=>(K!==0&&H.isSelected&&$++,$),0);D===m.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?y.value="Todas las nacionalidades":y.value=`${D} seleccionadas`,q()},{immediate:!0,deep:!0}),e.watch(g,N=>{const D=N.reduce(($,H,K)=>(K!==0&&H.isSelected&&$++,$),0);D===g.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?h.value="Todas las posiciones":h.value=`${D} seleccionadas`,q()},{immediate:!0,deep:!0}),e.watch(()=>o.filters,N=>{if(N&&N.availableYears){const D=!Number.isNaN(Number(N.selectedYear));r.value=N,d.value=r.value.selectedYear&&D?1:0,c.value=D?r.value.selectedYear:r.value.availableYears[0],p.value.min=r.value.minAge,p.value.max=r.value.maxAge,l.isSelected=N.positions.every($=>$.isSelected),q()}},{immediate:!0,deep:!0}),e.watch(()=>r.value.isEligibilitySelected,()=>{q()}),e.watch(()=>o.season,N=>{N&&N.id!==u.value&&!o.awaitForFilters&&(u.value=N.id,k(N))},{immediate:!0,deep:!1});async function k(N){try{if(N&&N.id){const D=new Set,$=await J(N.id),H=new Date,K=[],ce=new Map,x=new Map;$.forEach(w=>{const S=new Date(w.dob),F=ep(S),V=tp({start:S,end:H});ce.has(w.nationality_id)||ce.set(w.nationality_id,{id:w.nationality_id,isSelected:!0,name:Zc[`${w.nationality_id}`]}),x.has(w.position_id)||x.set(w.position_id,{id:w.position_id,isSelected:!0,name:Yc[`${w.position_id}`]}),D.add(F),K.push(V.years)}),r.value.minAge=Math.min(...K),r.value.maxAge=Math.max(...K),r.value.availableYears=[...D].sort((w,S)=>S-w),c.value=r.value.availableYears[0],r.value.nationalities=[...ce.values()],r.value.positions=[...x.values()],p.value.min=r.value.minAge,p.value.max=r.value.maxAge}}catch(D){throw new Error(D)}}function W(N=null){const D=!N||N===oe.All;(D||N===oe.NATIONALITY)&&m.value.forEach($=>{$.isSelected=!0}),(D||N===oe.ELIGIBILITY)&&(r.value.isEligibilitySelected=!1),(D||N===oe.POSITION)&&g.value.forEach($=>{$.isSelected=!0}),(D||N===oe.AGE_RANGE)&&(p.value.min=r.value.minAge,p.value.max=r.value.maxAge,d.value=0),(D||N===oe.YEAR)&&(c.value=o.isScouting?r.value.availableYears[r.value.availableYears.length-1]:r.value.availableYears[0],d.value=0),q()}async function J(N){try{const D={Authorization:localStorage.getItem("user_token")||o.token},$={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:Wv,H=await Pt.get($+N,{headers:D});return H.data?H.data.players:[]}catch(D){return Promise.reject(D)}}function L(N){d.value=N.index,o.filters&&o.filters.availableYears&&N.index===0&&(o.filters.selectedYear="Sin límite")}function G(N){p.value.min=N.minValue,p.value.max=N.maxValue,q()}function Z(N,D){D.id===0?m.value.forEach($=>{$.isSelected=N}):(D.isSelected=N,m.value[0].isSelected=m.value.every(($,H)=>H===0?!0:$.isSelected))}function q(){const N=d.value===0,D={};N?(D.ageByRange=p.value,D.ageLimits={min:r.value.minAge,max:r.value.maxAge}):D.year=c.value,r.value.isEligibilitySelected?D.eligibility=[...r.value.eligibility]:D.nationalities=m.value.reduce(($,H,K)=>(K!==0&&$.push({...H}),$),[]),D.positions=g.value.reduce(($,H,K)=>(K!==0&&$.push({...H}),$),[]),a("update:filters",D)}function Y(N,D){D.id===0?g.value.forEach($=>{$.isSelected=N}):(D.isSelected=N,g.value[0].isSelected=g.value.every(($,H)=>H===0?!0:$.isSelected))}function R(N){c.value=N,o.filters&&(o.filters.selectedYear=N),q()}return i({onClearFilters:W}),(N,D)=>(e.openBlock(),e.createElementBlock("div",kv,[e.createElementVNode("div",Ev,[e.createElementVNode("div",Vv,[e.createVNode(SO,{"selected-button-index":d.value,buttons:n.value,width:"220px",onChange:L},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",xv,[e.createVNode(e.unref(sc),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":r.value.minAge,"max-limit":r.value.maxAge,"min-value":p.value.min,"max-value":p.value.max,onInput:G},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,d.value===0]]),e.withDirectives(e.createElementVNode("div",Nv,[Tv,e.createVNode(e.unref(Je),e.mergeProps({"model-value":c.value},f.value,{items:r.value.availableYears,onInput:R}),{default:e.withCtx(({selectedItem:$})=>[e.createElementVNode("div",Bv,e.toDisplayString($),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,e.toDisplayString($),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,d.value===1]])]),Fv,e.createElementVNode("div",Pv,[_.value?(e.openBlock(),e.createElementBlock("div",$v,[Av,e.createVNode(wa,{modelValue:r.value.isEligibilitySelected,"onUpdate:modelValue":D[0]||(D[0]=$=>r.value.isEligibilitySelected=$)},null,8,["modelValue"]),zv])):e.createCommentVNode("",!0),e.createElementVNode("div",Iv,[r.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Dv,e.createVNode(e.unref(Je),e.mergeProps(f.value,{"is-multiple-option":"",items:r.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:$})=>[e.createElementVNode("div",Rv,e.toDisplayString($.name),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":$.isSelected,label:$.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},[Mv,e.createVNode(e.unref(Je),e.mergeProps(f.value,{"is-multiple-option":"",items:m.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Lv,e.toDisplayString(y.value),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":$.isSelected,label:$.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Z(H,$)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",Ov,[jv,e.createVNode(e.unref(Je),e.mergeProps(f.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",vv,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h.value),1)],64))])]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":$.isSelected,label:t.isFemale?$.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):$.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Y(H,$)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},Gv=re(Uv,[["__scopeId","data-v-23130339"]]),Hv={class:"plays"},Jv={class:"plays__body__offensive"},qv={class:"plays__body__title"},Zv={class:"number-of-categories"},Yv={class:"plays__body__categories"},Kv={class:"plays__body__defensive-possession-offenses"},Xv={class:"plays__body__title"},Qv={class:"number-of-categories"},eW={class:"plays__body__categories"},tW={class:"plays__body__title"},aW={class:"number-of-categories"},iW={class:"plays__body__categories"},oW={class:"plays__body__title"},sW={class:"number-of-categories"},lW={class:"plays__body__categories"},rW={__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(t){const i=t,a=e.ref(!1),o=e.ref(!1),s=e.ref(!1),l=e.ref(!1),r=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>i.playsCategories.offensive.categories.reduce((c,u)=>(u.isSelected&&c++,c),0)),d=e.computed(()=>i.playsCategories.defensive.categories.reduce((c,u)=>(u.isSelected&&c++,c),0)),p=e.computed(()=>i.playsCategories.possession.categories.reduce((c,u)=>(u.isSelected&&c++,c),0)),f=e.computed(()=>i.playsCategories.offenses.categories.reduce((c,u)=>(u.isSelected&&c++,c),0));function y(c,u){u.isSelected=c}function h(c){c==="offensive"?a.value=!a.value:c==="defensive"?o.value=!o.value:c==="possession"?s.value=!s.value:c==="offenses"&&(l.value=!l.value)}return(c,u)=>(e.openBlock(),e.createElementBlock("div",Hv,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",Jv,[e.createElementVNode("div",qv,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[0]||(u[0]=m=>h("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",Zv,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[1]||(u[1]=m=>h("offensive"))},[e.withDirectives(e.createVNode(Tt,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Yv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>y(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",Kv,[e.createElementVNode("div",Xv,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[2]||(u[2]=m=>h("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",Qv,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[3]||(u[3]=m=>h("defensive"))},[e.withDirectives(e.createVNode(Tt,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",eW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>y(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]]),e.createElementVNode("div",tW,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[4]||(u[4]=m=>h("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",aW,"("+e.toDisplayString(p.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[5]||(u[5]=m=>h("possession"))},[e.withDirectives(e.createVNode(Tt,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",iW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>y(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",oW,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[6]||(u[6]=m=>h("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",sW,"("+e.toDisplayString(f.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[7]||(u[7]=m=>h("offenses"))},[e.withDirectives(e.createVNode(Tt,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",lW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>y(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])])],4)]))}},nW=re(rW,[["__scopeId","data-v-364e6cae"]]),dW={class:"template-results"},cW={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:i}){const a=t,o=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{i("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,l)=>(e.openBlock(),e.createElementBlock("div",dW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:r.isSelected,"onUpdate:modelValue":d=>r.isSelected=d,label:r.name,"avoid-interaction":o.value===1&&r.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},pW=re(cW,[["__scopeId","data-v-453e89c2"]]),mW={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:i}){const a=t,o=e.computed(()=>({"--height":a.height,"--width":a.width,"--padding":a.padding,"--border-radius":a.borderRadius,"--border":`solid ${a.borderWidth} ${a.borderColor}`,"--background-color":a.backgroundColor,"--font-color":a.fontColor,"--font-size":a.fontSize,"--font-family":a.fontFamily,"--active-background-color":a.activeBackgroundColor||a.backgroundColor,"--active-border-color":a.activeBorderColor||a.borderColor,"--active-font-color":a.activeFontColor||a.fontColor}));function s(){i("click")}return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(o.value),onClick:s},e.toDisplayString(t.text),7))}},ka=re(mW,[["__scopeId","data-v-9688933e"]]),yW={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},ip={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},hW={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},uW={4:"OF",5:"Cf",6:"S",7:"F"};function Ws(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const fW={class:"dropdown"},gW={class:"selected-item"},_W={__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",fW,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(yt),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",gW,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),_:1},16,["is-list-same-width","items"])]))}},ze=re(_W,[["__scopeId","data-v-064d5f86"]]),bW={class:"dropdown"},SW={class:"game-item"},CW={key:0,class:"item-game"},wW={class:"match-day"},kW={class:"team-logo"},EW=["src"],VW={class:"text"},xW={class:"text score"},NW={class:"text"},TW={class:"team-logo"},BW=["src"],FW={class:"item-game"},PW={class:"team-logo"},$W=["src"],AW={class:"text"},zW={class:"text score"},IW={class:"text"},MW={class:"team-logo"},LW=["src"],DW={__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",bW,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(yt),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",SW,[l.homeTeam?(e.openBlock(),e.createElementBlock("div",CW,[e.createElementVNode("div",wW,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",kW,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,EW)]),e.createElementVNode("div",VW,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",xW,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",NW,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",TW,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,BW)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",FW,[e.createElementVNode("div",null,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",PW,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,$W)]),e.createElementVNode("div",AW,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",zW,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",IW,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",MW,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,LW)])])]),_:1},16,["items"])]))}},Ai=re(DW,[["__scopeId","data-v-7883a91e"]]),zi=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),RW={class:"container"},OW={class:"container__row"},jW={class:"container__row__wrapper"},vW=zi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),WW={class:"container__row__wrapper__input"},UW={class:"container__row two-items"},GW={class:"container__row__wrapper"},HW=zi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),JW={key:0,class:"container__row__wrapper__input"},qW={class:"container__row__wrapper"},ZW=zi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),YW={key:0,class:"container__row__wrapper__input"},KW={class:"container__row"},XW={class:"container__row__wrapper"},QW=zi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),eU={key:0,class:"container__row__wrapper__input"},tU={class:"container__action"},aU={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null);function n(y){o.value=y,i("update:tournament",y)}function d(y){s.value=y,i("update:season",y)}function p(y){l.value=y}function f(y){r.value=y}return(y,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",RW,[e.createElementVNode("div",OW,[e.createElementVNode("div",jW,[vW,e.createElementVNode("div",WW,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",UW,[e.createElementVNode("div",GW,[HW,o.value&&o.value.seasons?(e.openBlock(),e.createElementBlock("div",JW,[e.createVNode(ze,{items:o.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qW,[ZW,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",YW,[e.createVNode(ze,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",KW,[e.createElementVNode("div",XW,[QW,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",eU,[e.createVNode(Ai,{items:l.value.arrayGames,onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",tU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},iU=re(aU,[["__scopeId","data-v-b63e9c84"]]),oU={class:"dropdown"},sU={class:"item-team"},lU={class:"team-logo"},rU=["src"],nU={class:"team-acronym"},dU={class:"item-team"},cU={class:"team-logo"},pU=["src"],mU={class:"team-acronym"},yU={__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",oU,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(yt),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",sU,[e.createElementVNode("div",lU,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,rU)]),e.createElementVNode("div",nU,e.toDisplayString(l.acronym),1)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",dU,[e.createElementVNode("div",cU,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,pU)]),e.createElementVNode("div",mU,e.toDisplayString(l.acronym),1)])]),_:1},16,["items"])]))}},op=re(yU,[["__scopeId","data-v-afd2bee8"]]),hU={class:"advanced-filters"},uU={class:"advanced-filters__buttons"},fU=["onClick"],gU={class:"advanced-filters__filters"},_U={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Q1e)),o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>gme)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>bme)),l=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:o}],r=e.ref(l[0]),n=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function d(p){r.value=p}return(p,f)=>(e.openBlock(),e.createElementBlock("div",hU,[e.createElementVNode("div",uU,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,y=>e.createElementVNode("div",{key:y.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:r.value.name===y.name}]),onClick:h=>d(y)},e.toDisplayString(y.name),11,fU)),64))]),e.createElementVNode("div",gU,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},Us=re(_U,[["__scopeId","data-v-c62c5b9c"]]),zt=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),bU={class:"container"},SU={class:"container__row"},CU={class:"container__row__wrapper"},wU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),kU={class:"container__row__wrapper__input"},EU={class:"container__row two-items"},VU={class:"container__row__wrapper"},xU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),NU={key:0,class:"container__row__wrapper__input"},TU={class:"container__row__wrapper"},BU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),FU={key:0,class:"container__row__wrapper__input"},PU={class:"container__row"},$U={class:"container__row__wrapper"},AU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),zU={key:0,class:"container__row__wrapper__input"},IU={class:"container__row"},MU={class:"container__row__wrapper"},LU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),DU={key:0,class:"container__row__wrapper__input"},RU={class:"container__row type-and-advanced"},OU={class:"container__row__wrapper"},jU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),vU={class:"container__row__wrapper__input"},WU={class:"container__row__wrapper center"},UU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),GU={class:"container__row__wrapper__input"},HU={class:"container__row"},JU={class:"container__action"},qU={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),d=e.ref(null),p=e.ref(null),f=e.ref(!0),y=e.computed(()=>d.value?d.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function h(k){s.value=k,i("update:tournament",k)}function c(k){l.value=k,i("update:season",k)}function u(k){n.value=k,i("update:team",k)}function m(k){d.value=k}function g(k){r.value=k}function _(k){p.value=k}return(k,W)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",bU,[e.createElementVNode("div",SU,[e.createElementVNode("div",CU,[wU,e.createElementVNode("div",kU,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:h},null,8,["items"])])])]),e.createElementVNode("div",EU,[e.createElementVNode("div",VU,[xU,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",NU,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",TU,[BU,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",FU,[e.createVNode(op,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",PU,[e.createElementVNode("div",$U,[AU,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",zU,[e.createVNode(ze,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",IU,[e.createElementVNode("div",MU,[LU,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",DU,[e.createVNode(Ai,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",RU,[e.createElementVNode("div",OU,[jU,e.createElementVNode("div",vU,[e.createVNode(ze,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),e.createElementVNode("div",WU,[UU,e.createElementVNode("div",GU,[e.createVNode(wa,{modelValue:f.value,"onUpdate:modelValue":W[0]||(W[0]=J=>f.value=J)},null,8,["modelValue"])])])]),e.createElementVNode("div",HU,[e.createVNode(Us,{"selected-category":p.value},null,8,["selected-category"])])]),e.createElementVNode("div",JU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},ZU=re(qU,[["__scopeId","data-v-575b26b5"]]),Kt=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),YU={class:"container"},KU={class:"container__row"},XU={class:"container__row__wrapper"},QU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),eG={class:"container__row__wrapper__input"},tG={class:"container__row two-items"},aG={class:"container__row__wrapper"},iG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),oG={key:0,class:"container__row__wrapper__input"},sG={class:"container__row__wrapper"},lG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),rG={key:0,class:"container__row__wrapper__input"},nG={class:"container__row"},dG={class:"container__row__wrapper"},cG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),pG={key:0,class:"container__row__wrapper__input"},mG={class:"container__row type-and-advanced"},yG={class:"container__row__wrapper"},hG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),uG={class:"container__row__wrapper__input"},fG={class:"container__row__wrapper center"},gG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),_G={class:"container__row__wrapper__input"},bG={class:"container__row"},SG={class:"container__action"},CG={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),d=e.ref(null),p=e.ref(!0),f=e.computed(()=>a.advancedFilterCategories.team);function y(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function c(g){n.value=g,i("update:team",g)}function u(g){r.value=g}function m(g){d.value=g}return(g,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",YU,[e.createElementVNode("div",KU,[e.createElementVNode("div",XU,[QU,e.createElementVNode("div",eG,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",tG,[e.createElementVNode("div",aG,[iG,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",oG,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",sG,[lG,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",rG,[e.createVNode(op,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",nG,[e.createElementVNode("div",dG,[cG,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",pG,[e.createVNode(Ai,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",mG,[e.createElementVNode("div",yG,[hG,e.createElementVNode("div",uG,[e.createVNode(ze,{items:f.value,itemTextKey:"name","is-list-same-width":!1,onInput:m},null,8,["items"])])]),e.createElementVNode("div",fG,[gG,e.createElementVNode("div",_G,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":_[0]||(_[0]=k=>p.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",bG,[e.createVNode(Us,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",SG,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},wG=re(CG,[["__scopeId","data-v-6d73d5e6"]]),Xt=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),kG={class:"container"},EG={class:"container__row"},VG={class:"container__row__wrapper"},xG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),NG={class:"container__row__wrapper__input"},TG={class:"container__row two-items"},BG={class:"container__row__wrapper"},FG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),PG={key:0,class:"container__row__wrapper__input"},$G={class:"container__row__wrapper"},AG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),zG={key:0,class:"container__row__wrapper__input"},IG={class:"container__row"},MG={class:"container__row__wrapper"},LG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),DG={key:0,class:"container__row__wrapper__input"},RG={class:"container__row type-and-advanced"},OG={class:"container__row__wrapper"},jG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),vG={class:"container__row__wrapper__input"},WG={class:"container__row__wrapper center"},UG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),GG={class:"container__row__wrapper__input",style:{width:"fit-content"}},HG={class:"container__row"},JG={class:"container__action"},qG={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null),r=e.ref(null),n=e.ref(null),d=e.ref(null),p=e.ref(!0),f=e.computed(()=>a.advancedFilterCategories.games);function y(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function c(g){r.value=g}function u(g){n.value=g}function m(g){d.value=g}return(g,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",kG,[e.createElementVNode("div",EG,[e.createElementVNode("div",VG,[xG,e.createElementVNode("div",NG,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",TG,[e.createElementVNode("div",BG,[FG,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",PG,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",$G,[AG,l.value&&l.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",zG,[e.createVNode(ze,{items:l.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",IG,[e.createElementVNode("div",MG,[LG,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",DG,[e.createVNode(Ai,{items:r.value.arrayGames,onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",RG,[e.createElementVNode("div",OG,[jG,e.createElementVNode("div",vG,[e.createVNode(ze,{items:f.value,itemTextKey:"name","is-list-same-width":!1,onInput:m},null,8,["items"])])]),e.createElementVNode("div",WG,[UG,e.createElementVNode("div",GG,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":_[0]||(_[0]=k=>p.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",HG,[e.createVNode(Us,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",JG,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},ZG=re(qG,[["__scopeId","data-v-6e904db8"]]),YG={class:"template-videos"},KG={class:"template-videos__header"},XG={class:"template-videos__body"},QG=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:iU,VideosPlayer:ZU,VideosTeam:wG,VideosGame:ZG}}),eH=Object.assign(QG,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(t,{emit:i}){const a=t,o={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],l=["g-23","g-24","g-25"],r={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},d=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),p=e.ref([]),f=e.ref(d.value[0]),y=e.ref({}),h=e.ref({}),c=e.ref({}),u=e.ref({}),m=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const _=e.ref(null);e.watch(y,w=>{h.value.numberSeasonSelectedIndex=h.value.seasons.findIndex(S=>S.id===w.id),w.arrayMatchDays?(u.value=w.arrayMatchDays[0]||{},c.value=w.arrayTeams[0]||{}):(G(w),Z(w))}),e.watch(c,()=>{setTimeout(()=>{y.value.mapPlayersByTeam&&(!c.value.arrayPlayers||!c.value.arrayPlayers.length)&&(c.value.arrayPlayers=y.value.mapPlayersByTeam.get(c.value.team_id))},700)});async function k(){try{p.value=await W()}catch(w){throw new Error(w)}}async function W(){try{const w={Authorization:Ws()||a.token},S={}.API_TOURNAMENTS||a.tournamentsUrl,F=await Pt.get(S,{headers:w});return F.data?F.data.map(V=>({...V.tournament,seasons:V.seasons})):[]}catch(w){return Promise.reject(w)}}async function J(w,S,F=""){i("loading-data");let V=F;try{V||(V={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,w.forEach((O,b)=>{V+=`${b===0?"":"&"}seasons=${O}`}));const j={Authorization:Ws()||a.token},{data:{data:P,teams:U}}=await Pt.get(V,{headers:j});return{seasonsAndGames:P,seasonsAndTeams:U}}catch(j){if(S>0)return J(w,S-1,V);throw new Error(j)}finally{i("loading-data")}}async function L(w){try{const S={Authorization:Ws()||a.token},F=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${w.seasonId}`,V=await Pt.get(F,{headers:S});return V.data?V.data.players:[]}catch(S){return Promise.reject(S)}}async function G(w){try{const{seasonsAndGames:S,seasonsAndTeams:F}=await J([w.id,...w.related_seasons.map(U=>U.id)],3),V=F.find(U=>U._id===w.id);y.value.arrayTeams=[],y.value.mapTeams=new Map;const j=V.teams.reduce((U,O)=>(y.value.arrayTeams.push(O),y.value.mapTeams.set(O.team_id,{name:O.colloquial_name,acronym:O.acronym,logo:O.logo,id:O.team_id}),U.set(O.team_id,O),U),new Map);c.value=y.value.arrayTeams[0],y.value.mapGames=new Map,y.value.mapGamesByTeam=new Map;const P=Array.from(S.reduce((U,O)=>(O.games.forEach(b=>{if(b.game_status===1&&b.has_video){(!y.value.maxGameId||b.game_id>y.value.maxGameId)&&(y.value.maxGameId=b.game_id);let C=b.matchday_abbreviation.replace("M","J"),E=b.matchday_abbreviation.replace("M","Jornada ");const v=b.matchday_abbreviation.replace("M","");O.season_type===0?h.value.tournament_type===1&&(b.seasonId===881?(C=uW[v]||C,E=hW[v]||E):(C=ip[b.matchday_abbreviation]?b.matchday_abbreviation:C,E=ip[b.matchday_abbreviation]||E,C==="FINAL"&&(C="F"))):O.season_type===1?(C=yW[b.matchday_abbreviation],E=C):(C=b.matchday_abbreviation.replace("PO","R"),E="Repechaje"),b.roundAbbreviation=C,b.roundName=E,y.value.mapGames.set(b.game_id,{id:b.game_id,date:b.date,dateTimeMillis:new Date(b.date_time_utc).valueOf(),homeTeam:y.value.mapTeams.get(b.home_team),awayTeam:y.value.mapTeams.get(b.visiting_team),roundAbbreviation:b.roundAbbreviation,roundName:b.roundName,score:b.score,gameResult:b.score[0]>b.score[1]?1:b.score[0]<b.score[1]?2:3,seasonId:O.season_id});const X=U.get(b.roundAbbreviation);b.numberDateTimeMillis=new Date(b.date_time_utc).getTime(),b.homeTeam=j.get(b.home_team),b.awayTeam=j.get(b.visiting_team);const pe=y.value.mapGamesByTeam.get(b.home_team),je=y.value.mapGamesByTeam.get(b.visiting_team);pe?pe.push(b):y.value.mapGamesByTeam.set(b.home_team,[b]),je?je.push(b):y.value.mapGamesByTeam.set(b.visiting_team,[b]),X?X.arrayGames.push(b):U.set(b.roundAbbreviation,{stringMatchDayAbbreviation:b.roundAbbreviation,stringMatchDayName:b.roundName,arrayGames:[b]})}}),U),new Map).values());P.reverse(),P.forEach(U=>{U.arrayGames.sort((O,b)=>O.numberDateTimeMillis-b.numberDateTimeMillis)}),y.value.arrayMatchDays=P,u.value=P[0]||{}}catch(S){throw new Error(S)}}async function Z(w){try{const S=await D(w.id);y.value.mapPlayers=new Map,y.value.mapPlayersByTeam=S.reduce((F,V)=>{y.value.mapPlayers.set(V.player_id,{id:V.player_id,name:V.player_name,shortName:V.shortName,photo:V.player_photo,teamId:V.team_id,positionId:V.position_id});const j=F.get(V.team_id);return j?j.push(V):F.set(V.team_id,[V]),F},new Map)}catch(S){throw new Error(S)}}async function q(){try{let w=[];m.value.isEmpty?(w=await $(),g.value={...w}):w=g.value;const S=[];if(w&&w.length){m.value=w.reduce((O,b)=>{if(b.group_id!=="g-55"){const C={idAux:b.group_id,ids:[...b.ids?b.ids:[],...b.rival_Ids?b.rival_Ids:[]],type:b.type,name:b.name,coordinatePoint:b.coordinate_point,requiresRivalTransform:l.includes(b.group_id)};C.idsAux=[...C.ids],C.subcategoryGroups=b.group_id==="g-12"?[]:Y(b,0,new Map,!1,{},C.idsAux),S.push(C),C.type.includes(n.player)&&O.player.push(C),C.type.includes(n.team)&&(C.idAux!=="g-2"&&O.games.push(C),O.team.push(C)),C.type.includes(n.goalkeeper)&&O.goalkeeper.push(C)}return O},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const F=new Map,V="Resumen",j="Todas sus jugadas",P=m.value.player.reduce((O,b)=>{const C=R(b);return C.forEach(E=>{F.set(E,b.name)}),O.push(...C),O},[]),U=m.value.goalkeeper.reduce((O,b)=>{const C=R(b);return C.forEach(E=>{F.set(E,b.name)}),O.push(...C),O},[]);m.value.games.unshift({name:V,arrayCategoriesIds:r.games,booleanIsBestPlays:!0}),m.value.team.unshift({name:V,arrayCategoriesIds:r.team,booleanIsBestPlays:!0}),m.value.player.unshift({name:V,arrayCategoriesIds:r.player.regular,booleanIsBestPlays:!0},{name:j,arrayCategoriesIds:P,booleanIsMinutesPlayed:!0}),m.value.goalkeeper.unshift({name:V,arrayCategoriesIds:r.player.goalkeeper,booleanIsBestPlays:!0},{name:j,arrayCategoriesIds:U,booleanIsMinutesPlayed:!0})}}catch(w){throw new Error(w)}}function Y(w,S=0,F=new Map,V=!1,j={},P=[]){if(!w.group_id)return;let U=F.get(S);const O=V?`${w.id_category}_r`:w.id_category;w.id_category&&P.push(w.id_category);let b={ids:[O],groupId:w.group_id,level:S,name:w.name,isSelected:!0,fatherCategories:S>0?[j]:[],idsByFatherCategory:{[w.category_father]:[O]}};if(S>0&&S===1&&(b.id=w.id_category),U&&S!==0){const C=w.group_id.charAt(w.group_id.length-1),E=U.find(v=>v.groupId.endsWith(C));E&&!s.includes(b.groupId)?(b=E,E.ids.push(O),E.fatherCategories.push(j),E.fatherCategories.forEach(v=>{v.childCategories?v.childCategories.find(X=>X.groupId===b.groupId)||v.childCategories.push(b):v.childCategories=[b]}),E.idsByFatherCategory[w.category_father]?E.idsByFatherCategory[w.category_father].push(O):E.idsByFatherCategory[w.category_father]=[O]):(b.fatherCategories.forEach(v=>{v.childCategories?v.childCategories.find(X=>X.groupId===b.groupId)||v.childCategories.push(b):v.childCategories=[b]}),U.push(b))}else S!==0&&(j.childCategories?j.childCategories.push(b):j.childCategories=[b],U=[b],F.set(S,U));if(w.categories&&w.categories.length?w.categories.forEach(C=>{Y(C,S+1,F,V,b,P)}):w.rival_categories&&w.rival_categories.length&&w.rival_categories.forEach(C=>{Y(C,S+1,F,!0,b,P)}),S===0)return Array.from(F.values())}function R(w){const S=w||w;if(S.booleanIsBestPlays)return S.arrayCategoriesIds;const F={total:[],toRemove:[]};if(S.subcategoryGroups&&S.subcategoryGroups.length?S.subcategoryGroups[0].forEach(V=>{N(V,null,F)}):(S.ids&&F.total.push(...S.ids),S.rival_ids&&S.rival_ids.forEach(V=>{F.total.push(`${V}_r`)})),F.total=F.total.reduce((V,j)=>(F.toRemove.includes(j)||V.push(j),V),[]),!w){const V=S.name.toLowerCase().includes("recibid");_.value.isRivalSubject=V,_.value.avoidCategorySingleName=V,_.value.coordinatePoint=S.coordinatePoint,_.value.requiresRivalTransform=S.requiresRivalTransform}return F.total}function N(w,S=[],F={total:[],toRemove:[]}){w.isSelected?w.childCategories?w.childCategories.forEach(V=>{const j=S?Object.entries(w.idsByFatherCategory).reduce((P,[U,O])=>(S.includes(Number(U))&&O.forEach(b=>{typeof b=="string"&&b.endsWith("_r")?P.push(Number(b.split("_")[0])):P.push(b)}),P),[]):[w.id];N(V,j,F)}):S?Object.entries(w.idsByFatherCategory).forEach(([V,j])=>{S.includes(Number(V))&&j.forEach(P=>{F.total.push(P)})}):w.level===1?Object.entries(w.idsByFatherCategory).forEach(([V,j])=>{j.forEach(P=>{F.total.push(P)})}):F.total.push(w.id):w.childCategories||w.ids.forEach(V=>{F.toRemove.push(V)})}async function D(w){try{const S=await L({seasonId:w});return S.forEach(F=>{const[V,j]=F.player_name.split(","),P=V.split(" ");let U="";for(const O of P)if(U+=` ${O}`,O.length>3)break;F.shortName=j&&V?`${j.trim().charAt(0)}.${U}`:""}),S}catch(S){return Promise.reject(S)}}async function $(){try{const w={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Pt.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:w})).data||[]}catch(w){return Promise.reject(w)}}function H(w){f.value=w}function K(w){h.value=w,y.value=w.seasons[0]}function ce(w){y.value=w}function x(w){c.value=w}return k(),q(),(w,S)=>(e.openBlock(),e.createElementBlock("div",YG,[e.createElementVNode("div",KG,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,F=>(e.openBlock(),e.createBlock(ka,e.mergeProps({key:F.name},o,{text:F.name,"is-active":f.value.componentName===F.componentName,tournaments:p.value,onClick:V=>H(F)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",XG,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value.componentName),{tournaments:p.value,"advanced-filter-categories":m.value,"onUpdate:tournament":K,"onUpdate:season":ce,"onUpdate:team":x},null,40,["tournaments","advanced-filter-categories"]))])]))}}),tH=re(eH,[["__scopeId","data-v-d6f7aec8"]]),sp=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"]]),aH={class:"template-taken-corners"},iH={class:"template-taken-corners__header"},oH={class:"template-taken-corners__header__all"},sH={class:"template-taken-corners__body"},lH={class:"template-taken-corners__body__players"},rH={class:"template-taken-corners__body__players__player__jersey"},nH={class:"template-taken-corners__body__players__player__photo"},dH={class:"template-taken-corners__body__players__player__photo__img"},cH=["src"],pH={class:"template-taken-corners__body__players__player__info"},mH={class:"template-taken-corners__body__players__player__info__name"},yH={class:"template-taken-corners__body__players__player__info__position"},hH={class:"template-taken-corners__body__players__player__info__position__nationality"},uH=["src"],fH={class:"template-taken-corners__body__players__player__info__position__name"},gH={class:"template-taken-corners__body__players__player__checkbox"},_H={__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!1),l=e.ref([]),r=e.computed(()=>o.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>l.value.reduce((m,g)=>g.isSelected?m+1:m,0));e.watch(()=>o.takenCornersFilters,m=>{l.value=m.map(g=>{const _={...g};return(g.isSelected===void 0||g.isSelected===null)&&(_.isSelected=!0),_})},{immediate:!0,deep:!0}),e.watch(n,m=>{s.value=m===l.value.length,a("change-filters-selected",m),a("update:filters",l.value)},{immediate:!0});function d(m){return`https://golstatsimages.blob.core.windows.net/flags/${m}.jpg`}function p(m){return`https://golstatsimages.blob.core.windows.net/players-profile/${m}.png`}function f(m){let g=!1;return m.split(" ").reduce((_,k)=>(g||(k.length>3?(_=k,g=!0):_+=`${k} `),_),"").trim()}function y(m){return`${f(m.last_name)}, ${m.first_name.trim()}`}function h(m){return o.isFemale?sp.get(m.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):sp.get(m.positions[0])}function c(m){m?l.value.forEach(g=>{g.isSelected=!0}):l.value.forEach((g,_)=>{g.isSelected=_===0})}function u(){l.value.forEach(m=>{m.isSelected=!0})}return i({clearFilters:u}),(m,g)=>(e.openBlock(),e.createElementBlock("div",aH,[e.createElementVNode("div",iH,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(r.value),5),e.createElementVNode("div",oH,[e.createVNode(e.unref(se),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":c},null,8,["model-value"])])]),e.createElementVNode("div",sH,[e.createElementVNode("div",lH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,_=>(e.openBlock(),e.createElementBlock("div",{key:_.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",rH,e.toDisplayString(_.jersey),1),e.createElementVNode("div",nH,[e.createElementVNode("div",dH,[e.createElementVNode("img",{src:p(_.player_id),alt:"player photo",width:"36",height:"36"},null,8,cH)])]),e.createElementVNode("div",pH,[e.createElementVNode("div",mH,e.toDisplayString(y(_)),1),e.createElementVNode("div",yH,[e.createElementVNode("div",hH,[e.createElementVNode("img",{src:d(_.nationality_id),alt:"country flag"},null,8,uH)]),e.createElementVNode("div",fH,e.toDisplayString(h(_)),1)])]),e.createElementVNode("div",gH,[e.createVNode(e.unref(se),{modelValue:_.isSelected,"onUpdate:modelValue":k=>_.isSelected=k,"avoid-interaction":n.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},bH=re(_H,[["__scopeId","data-v-763fcc54"]]),Gs={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]}]},Hs=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),SH={class:"template-how-was-corner"},CH={class:"template-how-was-corner__header"},wH=Hs(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),kH={class:"template-how-was-corner__header__radio-input"},EH={class:"template-how-was-corner__header__radio-input__radio"},VH=Hs(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),xH={class:"template-how-was-corner__header__radio-input"},NH={class:"template-how-was-corner__header__radio-input__radio"},TH=Hs(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),BH=["onClick"],FH={class:"template-how-was-corner__content__corner-type__img"},PH=["src","alt"],$H={class:"template-how-was-corner__content__corner-type__info"},AH={class:"template-how-was-corner__content__corner-type__info__title"},zH={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Gs},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:i}){const a=t,o=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),l=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>o.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{i("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((d,p)=>p.isSelected?d+1:d,0)),o.value=n.cornerType,i("update:filters",n)},{deep:!0,immediate:!0});function r(n){n.isSelected&&l.value===1||(n.isSelected=!n.isSelected)}return(n,d)=>(e.openBlock(),e.createElementBlock("div",SH,[e.createElementVNode("div",CH,[wH,e.createElementVNode("div",kH,[e.createElementVNode("div",EH,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":d[0]||(d[0]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),VH])]),e.createElementVNode("div",xH,[e.createElementVNode("div",NH,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":d[1]||(d[1]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),TH])])]),e.createElementVNode("div",{class:e.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":t.isExpansionMode}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(p,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":p.isSelected}]),onClick:y=>r(p)},[e.createElementVNode("div",FH,[e.createElementVNode("img",{src:p.imgSrc,alt:p.title},null,8,PH)]),e.createElementVNode("div",$H,[e.createElementVNode("div",AH,e.toDisplayString(p.title),1)])],10,BH))),128))],2)]))}},IH=re(zH,[["__scopeId","data-v-b7e3b8e0"]]),Ea=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],ht=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),MH={class:"template-zone"},LH={class:"controls-zone-container"},DH={class:"controls-zone-container-title-checkcon"},RH={class:"controls-zone-container-title-checkcon-check"},OH={class:"gsc-field-img-container"},jH={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vH=["fill"],WH=["fill"],UH=["fill"],GH=["fill"],HH=["fill"],JH=["fill"],qH=["fill"],ZH=["fill"],YH=["fill"],KH=["fill"],XH=["fill"],QH=["fill"],eJ=["fill"],tJ=["fill"],aJ=["fill"],iJ=["fill"],oJ=["fill"],sJ=["fill"],lJ=["fill"],rJ=["fill"],nJ=["fill"],dJ=["fill"],cJ=["fill"],pJ=["fill"],mJ=["fill"],yJ=["fill"],hJ=["fill"],uJ=["fill"],fJ=["fill"],gJ=["fill"],_J=["fill"],bJ=["fill"],SJ=["fill"],CJ=["fill"],wJ=["fill"],kJ=ht(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),EJ=ht(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),VJ=["id"],xJ=ht(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),NJ=[xJ],TJ=["mask"],BJ=ht(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),FJ=[BJ],PJ=ht(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),$J=ht(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),AJ={class:"template-zone__total-corners"},zJ=ht(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),IJ=ht(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),MJ=[zJ,IJ],LJ={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ea]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!0),l=e.ref([]),r=e.computed(()=>new Date().getTime());e.watch(l,f=>{s.value=f.length===35}),e.watch(()=>o.zoneFilters,f=>{l.value=f},{immediate:!0,deep:!0}),e.watch(()=>l.value,f=>{a("update:filters",f),a("change-filters-selected",f.length)},{deep:!0});function n(f){f?(l.value=Ea,s.value=!0):(l.value=[],s.value=!1)}function d(f){l.value.includes(f)?l.value=l.value.filter(y=>y!==f):l.value.push(f),s.value=l.value.length===35}function p(){l.value=[...Ea]}return i({clearFilters:p}),(f,y)=>(e.openBlock(),e.createElementBlock("div",MH,[e.createElementVNode("div",LH,[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",DH,[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",RH,[e.createVNode(e.unref(se),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",OH,[(e.openBlock(),e.createElementBlock("svg",jH,[e.createElementVNode("rect",{onClick:y[0]||(y[0]=h=>d(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,vH),e.createElementVNode("rect",{onClick:y[1]||(y[1]=h=>d(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,WH),e.createElementVNode("rect",{onClick:y[2]||(y[2]=h=>d(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,UH),e.createElementVNode("rect",{onClick:y[3]||(y[3]=h=>d(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,GH),e.createElementVNode("rect",{onClick:y[4]||(y[4]=h=>d(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,HH),e.createElementVNode("rect",{onClick:y[5]||(y[5]=h=>d(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,JH),e.createElementVNode("rect",{onClick:y[6]||(y[6]=h=>d(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,qH),e.createElementVNode("rect",{onClick:y[7]||(y[7]=h=>d(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,ZH),e.createElementVNode("rect",{onClick:y[8]||(y[8]=h=>d(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,YH),e.createElementVNode("rect",{onClick:y[9]||(y[9]=h=>d(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,KH),e.createElementVNode("rect",{onClick:y[10]||(y[10]=h=>d(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,XH),e.createElementVNode("rect",{onClick:y[11]||(y[11]=h=>d(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,QH),e.createElementVNode("rect",{onClick:y[12]||(y[12]=h=>d(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,eJ),e.createElementVNode("rect",{onClick:y[13]||(y[13]=h=>d(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,tJ),e.createElementVNode("rect",{onClick:y[14]||(y[14]=h=>d(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,aJ),e.createElementVNode("rect",{onClick:y[15]||(y[15]=h=>d(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,iJ),e.createElementVNode("rect",{onClick:y[16]||(y[16]=h=>d(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,oJ),e.createElementVNode("rect",{onClick:y[17]||(y[17]=h=>d(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,sJ),e.createElementVNode("rect",{onClick:y[18]||(y[18]=h=>d(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,lJ),e.createElementVNode("rect",{onClick:y[19]||(y[19]=h=>d(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,rJ),e.createElementVNode("rect",{onClick:y[20]||(y[20]=h=>d(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,nJ),e.createElementVNode("rect",{onClick:y[21]||(y[21]=h=>d(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,dJ),e.createElementVNode("rect",{onClick:y[22]||(y[22]=h=>d(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,cJ),e.createElementVNode("rect",{onClick:y[23]||(y[23]=h=>d(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,pJ),e.createElementVNode("rect",{onClick:y[24]||(y[24]=h=>d(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,mJ),e.createElementVNode("rect",{onClick:y[25]||(y[25]=h=>d(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,yJ),e.createElementVNode("rect",{onClick:y[26]||(y[26]=h=>d(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,hJ),e.createElementVNode("rect",{onClick:y[27]||(y[27]=h=>d(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,uJ),e.createElementVNode("rect",{onClick:y[28]||(y[28]=h=>d(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,fJ),e.createElementVNode("rect",{onClick:y[29]||(y[29]=h=>d(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,gJ),e.createElementVNode("rect",{onClick:y[30]||(y[30]=h=>d(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,_J),e.createElementVNode("rect",{onClick:y[31]||(y[31]=h=>d(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,bJ),e.createElementVNode("rect",{onClick:y[32]||(y[32]=h=>d(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,SJ),e.createElementVNode("rect",{onClick:y[33]||(y[33]=h=>d(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,CJ),e.createElementVNode("rect",{onClick:y[34]||(y[34]=h=>d(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,wJ),kJ,EJ,e.createElementVNode("mask",{id:r.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},NJ,8,VJ),e.createElementVNode("g",{mask:`url(#${r.value})`},FJ,8,TJ),PJ,$J]))]),e.withDirectives(e.createElementVNode("div",AJ,MJ,512),[[e.vShow,!1]])]))}},DJ=re(LJ,[["__scopeId","data-v-378bf7e2"]]),Js=[{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]}],RJ={class:"what-happened"},OJ={class:"what-happened__all"},jJ={class:"what-happened__filters"},vJ={key:0,class:"what-happened__filters__filter__composed"},WJ={class:"what-happened__filters__filter__composed__main"},UJ={key:1,class:"what-happened__filters__filter__single"},GJ={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Js]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.computed(()=>o.whatHappenedFilters.reduce((c,u)=>(u.child?u.child.forEach(m=>{m.isSelected&&c++}):u.isSelected&&c++,c),0)),l=e.computed(()=>o.whatHappenedFilters.reduce((c,u)=>(u.child?c+=u.child.length:c++,c),0)),r=e.computed(()=>s.value===l.value),n=e.computed(()=>s.value===1);e.watch(()=>o.whatHappenedFilters,c=>{a("change-filters-selected",s.value),a("update:filters",c)},{deep:!0,immediate:!0});function d(c){o.whatHappenedFilters.forEach(u=>{c?(u.isSelected=c,u.child&&u.child.forEach(m=>{m.isSelected=c})):u.child?(u.isSelected=!0,u.child.forEach(m=>{m.isSelected=!0})):u.isSelected=!1})}function p(c,u){u.isSelected=c,u.child.forEach(m=>{m.isSelected=c})}function f(c,u,m){m.isSelected=c,u.isSelected=u.child.every(g=>g.isSelected)}function y(c,u){u.isSelected=c}function h(){o.whatHappenedFilters.forEach(c=>{c.child?c.child.forEach(u=>{u.isSelected=!0}):c.isSelected=!0})}return i({onResetFilters:h}),(c,u)=>(e.openBlock(),e.createElementBlock("div",RJ,[e.createElementVNode("div",OJ,[e.createVNode(e.unref(se),{label:"Todos","model-value":r.value,"box-position":"right","onUpdate:modelValue":d},null,8,["model-value"])]),e.createElementVNode("div",jJ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[m.child?(e.openBlock(),e.createElementBlock("div",vJ,[e.createElementVNode("div",WJ,[e.createVNode(e.unref(se),{"model-value":m.isSelected,label:t.isFemale?m.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):m.text,"avoid-interaction":n.value&&m.isSelected,"onUpdate:modelValue":_=>p(_,m)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.child,(_,k)=>(e.openBlock(),e.createElementBlock("div",{key:`c${k}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(se),{"model-value":_.isSelected,label:t.isFemale?_.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):_.text,"avoid-interaction":n.value&&_.isSelected,"onUpdate:modelValue":W=>f(W,m,_)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",UJ,[e.createVNode(e.unref(se),{"model-value":m.isSelected,label:t.isFemale?m.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):m.text,"avoid-interaction":n.value&&m.isSelected,"onUpdate:modelValue":_=>y(_,m)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},HJ=re(GJ,[["__scopeId","data-v-8f375a1a"]]),qs={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}]}},lp=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),JJ={class:"template-results"},qJ={class:"template-results__type-switch"},ZJ=lp(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),YJ=lp(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),KJ={class:"template-results__info"},XJ={key:0,class:"template-results__group"},QJ={key:1,class:"template-results__group"},eq={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...qs})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.computed(()=>{const d=s.value.isMoment?s.value.results.moment.filter(p=>p.isSelected).length:s.value.results.final.filter(p=>p.isSelected).length;return a("change-filters-selected",d),d}),r=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>o.resultsFilters,d=>{s.value===null&&(s.value={...d})},{deep:!0,immediate:!0}),e.watch(s,d=>{a("update:filters",d)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(d=>{d.isSelected=!0}),s.value.results.final.forEach(d=>{d.isSelected=!0})}return i({removeFilters:n}),(d,p)=>(e.openBlock(),e.createElementBlock("div",JJ,[e.withDirectives(e.createElementVNode("div",qJ,[ZJ,e.createVNode(wa,{modelValue:s.value.isMoment,"onUpdate:modelValue":p[0]||(p[0]=f=>s.value.isMoment=f)},null,8,["modelValue"]),YJ],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",KJ,e.toDisplayString(r.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",XJ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(f,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:f.isSelected,"onUpdate:modelValue":h=>f.isSelected=h,label:f.name,"avoid-interaction":l.value===1&&f.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",QJ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(f,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:f.isSelected,"onUpdate:modelValue":h=>f.isSelected=h,label:f.name,"avoid-interaction":l.value===1&&f.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},tq=re(eq,[["__scopeId","data-v-ee3b28d3"]]),aq=t=>(e.pushScopeId("data-v-344eb729"),t=t(),e.popScopeId(),t),iq={key:0,class:"productivity__header__text"},oq={key:0},sq=aq(()=>e.createElementVNode("span",null,"mínimo 5 categorías y máximo 12",-1)),lq={key:1},rq={key:2},nq={key:1,class:"productivity__header__checkbox"},dq={class:"templates__body"},cq={key:0,class:"templates-plays"},pq={key:1,class:"templates-productivity"},mq={key:2,class:"template-field"},yq={key:3,class:"template-details"},hq={key:4,class:"template-personal-data"},uq={key:5,class:"template-leagues"},fq={key:6,class:"template-plays"},gq={key:7,class:"template-plays"},_q={key:8,class:"template-universe"},bq={key:9,class:"template-distance"},Sq={key:10,class:"template-results"},Cq={key:11,class:"template-results-by-type"},wq={key:12,class:"template-games"},kq={key:13,class:"template-taken-corners"},Eq={key:14,class:"template-videos"},Vq={key:15,class:"template-how-was-corner"},xq={key:16,class:"template-zone"},Nq={key:17,class:"template-what-happened"},Tq={key:1,class:"templates__footer"},Bq={class:"templates__footer__button"},Fq={class:"templates__footer__button"},Pq={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(!1),r=e.ref({playingAs:o.playingAs,gameSections:o.gameSections,statisticType:o.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),d=e.ref(null),p=e.ref(null),f=e.ref(null),y=e.ref(null),h=e.ref(null),c=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!==T.VIDEOS?o.isExpansionMode?"10px 0":o.padding:"0","--footer-border-color":o.footerBorderColor,"--footer-border-width":o.footerBorderWidth,"--text-color":o.textColor})),u=e.computed(()=>{const C=[];return o.productivityCategories&&Object.values(o.productivityCategories).forEach(E=>{E.categories&&E.categories.forEach(v=>{C.push(v)})}),C}),m=e.computed(()=>{const C=[];return o.playsCategories&&Object.values(o.playsCategories).forEach(E=>{E.categories&&E.categories.forEach(v=>{C.push(v)})}),C}),g=e.computed(()=>{const C=u.value.filter(E=>E.isSelected);return J(C),o.filterType===T.PRODUCTIVITY&&a("change-categories-selected",C.length),C.length}),_=e.computed(()=>!o.isForTemplateForm&&g.value>=o.productivityMaxCategories),k=e.computed(()=>!o.isForTemplateForm&&g.value<=o.productivityMinCategories),W=e.computed(()=>o.isPlayingAsHidden?o.gameSections:o.playingAs.concat(o.gameSections));e.watch(r,C=>{o.filterType===T.DETAILS&&a("update:filters",C)},{immediate:!0,deep:!0}),e.watch(()=>W.value,C=>{if(o.filterType===T.DETAILS){const E=C.filter(v=>v.isSelected);a("change-filters-selected",E.length)}},{immediate:!0,deep:!0}),e.watch(()=>o.playsGolstatsCategories,C=>{if(o.filterType===T.PLAYS_TYPES||o.filterType===T.GOLSTATS){const E=C.filter(v=>v.isSelected);a("change-filters-selected",E.length)}},{immediate:!0}),e.watch(()=>o.fieldAreas,C=>{o.filterType===T.FIELD&&a("change-filters-selected",C.length)}),e.watch(m,()=>{o.filterType===T.PLAYS&&$()},{immediate:!0,deep:!0}),e.watch(u,()=>{o.filterType===T.PRODUCTIVITY&&H()},{immediate:!0,deep:!0}),e.watch(()=>o.resultsFilters,C=>{o.filterType===T.RESULTS&&a("change-filters-selected",C.results.filter(E=>E.isSelected).length)},{immediate:!0,deep:!0});function J(C){setTimeout(()=>{C.sort((E,v)=>E.priority-v.priority),C.forEach((E,v)=>{E.priority=v+1})},10)}function L(C=null){G(C)}function G(C=null){o.filterType===T.PRODUCTIVITY?u.value.forEach(E=>{E.isSelected=!1}):o.filterType===T.PLAYS?(m.value.forEach(E=>{E.isSelected=!0}),l.value=!0):o.filterType===T.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):o.filterType===T.DETAILS?(o.playingAs.forEach(E=>{E.isSelected=!0}),o.gameSections.forEach(E=>{E.isSelected=!0})):o.filterType===T.TOURNAMENTS?(o.tournaments.forEach((E,v)=>{o.isOneTournamentOnly?E.isSelected=v===0:E.isSelected=!0}),a("change-filters-selected",0)):o.filterType===T.PLAYS_TYPES?o.playsGolstatsCategories.forEach(E=>{E.isSelected=!0}):o.filterType===T.GOLSTATS?o.playsGolstatsCategories.forEach(E=>{E.isSelected=!1}):o.filterType===T.UNIVERSE?d.value&&d.value.resetFilters():o.filterType===T.PERSONAL_DATA?(s.value&&s.value.onClearFilters(C||oe.All),a("change-personal-data-filters",{})):o.filterType===T.DISTANCE?a("update:filters",{minValue:o.distanceFilters.minLimit,maxValue:o.distanceFilters.maxLimit}):o.filterType===T.RESULTS?a("update:filters",{results:o.resultsFilters.results.map(E=>(E.isSelected=!0,E))}):o.filterType===T.RESULTS_BY_TIME?h.value&&h.value.removeFilters():o.filterType===T.GAMES?o.gamesFilters.forEach(E=>{E.isSelected=!0}):o.filterType===T.TAKEN_CORNERS?p.value.clearFilters():o.filterType===T.HOW_WAS_CORNER?(o.howWasCornerFilters.left.forEach(E=>{E.isSelected=!0}),o.howWasCornerFilters.right.forEach(E=>{E.isSelected=!0})):o.filterType===T.ZONE?f.value&&f.value.clearFilters():o.filterType===T.WHAT_HAPPENED&&y.value&&y.value.onResetFilters()}function Z(C){o.filterType===T.TOURNAMENTS&&a("change-filters-selected",C)}function q(C){o.filterType===T.UNIVERSE&&a("change-universe-filters",C)}function Y(C){o.filterType===T.FIELD&&a("change-field-areas",C)}function R(C){o.filterType===T.GOLSTATS&&a("change-filters-selected",C)}function N(C){a("change-filters-selected",C)}function D(C){o.filterType===T.PRODUCTIVITY?u.value.forEach(E=>{E.isSelected=C}):(l.value=C,o.playsCategories.offensive.categories.forEach(E=>{E.isSelected=C}),o.playsCategories.defensive.categories.forEach(E=>{E.isSelected=C}),o.playsCategories.possession.categories.forEach(E=>{E.isSelected=C}),o.playsCategories.offenses.categories.forEach(E=>{E.isSelected=C}))}function $(){let C=0;const E={playsCategories:m.value.filter(v=>v.isSelected)};l.value=E.playsCategories.length===m.value.length,C=E.playsCategories.length,Object.values(n.value).forEach(v=>{v&&C++}),a("change-filters-selected",C),a("update:filters",E)}function H(){let C=0;const E={productivityFilters:u.value.filter(v=>v.isSelected),offensesConditions:n.value};C=E.productivityFilters.length,Object.values(n.value).forEach(v=>{v&&C++}),a("change-filters-selected",C),a("update:filters",E)}function K(){a("apply")}function ce(){(o.filterType===T.PLAYS_TYPES||o.filterType===T.GOLSTATS)&&o.playsGolstatsCategories&&o.playsGolstatsCategories.forEach(C=>{C.isSelected=!1}),o.filterType===T.PRODUCTIVITY&&u.value.forEach(C=>{C.isSelected=!1}),a("apply")}function x(C){a("update:filters",C)}function w(C){o.filterType===T.PERSONAL_DATA&&a("update:filters",C)}function S(C){o.filterType===T.TOURNAMENTS&&a("update:filters",C)}function F(C){(o.filterType===T.PLAYS_TYPES||o.filterType===T.GOLSTATS)&&a("update:filters",C)}function V(C){o.filterType===T.PRODUCTIVITY&&(n.value=C,H())}function j(C){o.filterType===T.DISTANCE&&a("update:filters",C)}function P(C){o.filterType===T.RESULTS&&a("update:filters",C)}function U(C){o.filterType===T.GAMES&&(a("update:filters",C),a("change-filters-selected",C.filter(E=>E.isSelected).length))}function O(C){r.value.statisticType=C}const b=e.computed(()=>o.filterType===T.PLAYS?m.value.length:o.filterType===T.PRODUCTIVITY?u.value.length:o.filterType===T.FIELD?16:o.filterType===T.UNIVERSE?6:o.filterType===T.DETAILS?8:o.filterType===T.RESULTS||o.filterType===T.RESULTS_BY_TIME?3:o.filterType===T.GAMES?o.gamesFilters.length:0);return a("total-filters",b),i({clearFilters:L}),(C,E)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(c.value)},[t.filterType===e.unref(T).PRODUCTIVITY||t.filterType===e.unref(T).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(T).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",iq,[t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",oq,[e.createTextVNode(" Elige tipo de jugadas: "),sq])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",lq,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",rq,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(T).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",nq,[e.createVNode(e.unref(se),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":l.value,"label-color":t.textColor,"onUpdate:modelValue":D},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",dq,[t.filterType===e.unref(T).PLAYS?(e.openBlock(),e.createElementBlock("div",cq,[e.createVNode(nW,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",pq,[e.createVNode(iL,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":_.value,"are-min-categories-reached":k.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"onUpdate:offensesConditions":V},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).FIELD?(e.openBlock(),e.createElementBlock("div",mq,[e.createVNode(e.unref(mc),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":Y}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).DETAILS?(e.openBlock(),e.createElementBlock("div",yq,[e.createVNode(zL,{"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:O},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(T).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",hq,[e.createVNode(Gv,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":w},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",uq,[e.createVNode(OL,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:Z,"onUpdate:filters":S},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",fq,[e.createVNode(Zd,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":F},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).GOLSTATS?(e.openBlock(),e.createElementBlock("div",gq,[e.createVNode(Zd,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:R,"onUpdate:filters":F},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).UNIVERSE?(e.openBlock(),e.createElementBlock("div",_q,[e.createVNode(ID,{ref_key:"templateUniverse",ref:d,"universe-filters":t.universeFilters,"onUpdate:universeFilters":q},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).DISTANCE?(e.openBlock(),e.createElementBlock("div",bq,[e.createVNode(aR,{distance:t.distanceFilters,"onUpdate:distanceFilters":j},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).RESULTS?(e.openBlock(),e.createElementBlock("div",Sq,[e.createVNode(pW,{ref_key:"templateResults",ref:h,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":P},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",Cq,[e.createVNode(tq,{ref_key:"templateResults",ref:h,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).GAMES?(e.openBlock(),e.createElementBlock("div",wq,[e.createVNode(dR,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":U},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",kq,[e.createVNode(bH,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:p,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).VIDEOS?(e.openBlock(),e.createElementBlock("div",Eq,[e.createVNode(tH,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",Vq,[e.createVNode(IH,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).ZONE?(e.openBlock(),e.createElementBlock("div",xq,[e.createVNode(DJ,{ref_key:"templateZone",ref:f,"zone-filters":t.zoneFilters,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",Nq,[e.createVNode(HJ,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:y,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Tq,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:ce})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Bq,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:ce})):(e.openBlock(),e.createBlock(e.unref(gi),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:G}))]),e.createElementVNode("div",Fq,[e.createVNode(e.unref(gi),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:K})])],64))])):e.createCommentVNode("",!0)],4))}},rp=re(Pq,[["__scopeId","data-v-344eb729"]]),$q=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Aq={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(t){return!Number.isNaN(t)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3},leftMenu:{type:String,default:"unset"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(c=>({"398d9242":t.width,f164e302:d.value,"4bb88040":t.menuWidth}));const o=e.ref(null),s=e.ref(!1),l=e.ref(null),r=e.ref({}),n=e.computed(()=>{const c={top:"0px","--left-menu":a.leftMenu};if(o.value){const u=o.value.getBoundingClientRect();c.top=`${u.height+a.menuMarginTop}px`}return c}),d=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,c=>{c!==s.value&&(s.value=c)},{immediate:!0}),e.watch(s,c=>{c||setTimeout(()=>{r.value["--translate-x"]="0px"},500)});function p(c){const u=window.innerWidth,m=c.boundingClientRect.x,g=c.boundingClientRect.x+c.boundingClientRect.width,_=m<=0?Math.abs(m)+4:g>=u?u-(g+10):0;r.value["--translate-x"]=`${_}px`}function f(){new IntersectionObserver(c=>{c[0].intersectionRatio>0&&p(c[0])}).observe(l.value)}function y(){s.value=!s.value,i("update:modelValue",s.value)}function h(){s.value=!1,i("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{f()})}),(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:h})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:o,class:"menu-container__trigger",onClick:y},[e.renderSlot(c.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:l,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(c.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},zq=$q(Aq,[["__scopeId","data-v-18c0df61"]]),It=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),Iq={key:0,class:"button__icon"},Mq={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lq=["stroke"],Dq=["stroke"],Rq=["stroke"],Oq={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jq=["stroke"],vq=["stroke"],Wq=["fill"],Uq={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gq=["fill"],Hq={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jq=["stroke"],qq=["stroke"],Zq=["stroke"],Yq=["stroke"],Kq=["stroke"],Xq={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qq=It(()=>e.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1)),eZ=[Qq],tZ={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aZ=It(()=>e.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1)),iZ=[aZ],oZ={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sZ=It(()=>e.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1)),lZ=[sZ],rZ={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nZ=It(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),dZ=It(()=>e.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),cZ=It(()=>e.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),pZ=It(()=>e.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),mZ=[nZ,dZ,cZ,pZ],yZ={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hZ=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-2504d135><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-2504d135></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-2504d135></path></g><defs data-v-2504d135><clipPath id="gpdeo9cu3a" data-v-2504d135><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-2504d135></path></clipPath></defs>',2),uZ=[hZ],fZ={class:"button__text"},gZ={key:0,class:"info-container"},_Z={key:1,style:{width:"20px"}},bZ={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},SZ=["fill"],CZ={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadge:{type:Boolean,default:!0},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"},showIcon:{type:Boolean,default:!0}},setup(t){const i=t,a=e.computed(()=>({"--height":i.height,"--width":i.width,"--text-font-family":i.textFontFamily,"--text-font-size":i.textFontSize,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.isActive?i.borderColorActive:i.borderColor,"--border-width":i.borderWidth,"--padding":i.padding,"--font-color":i.fontColor})),o=e.computed(()=>({"--info-background-color":i.infoValue?i.infoBackgroundColor:"transparent","--info-border-color":i.infoValue?i.infoBorderColor:"transparent","--info-border-radius":i.infoBorderRadius,"--info-font-family":i.infoFontFamily,"--info-font-size":i.infoFontSize,"--info-font-color":i.infoFontColor,"--info-height":i.infoHeight,"--info-width":i.infoWidth})),s=e.computed(()=>[T.PLAYS_TYPES,T.GOLSTATS,T.TOURNAMENTS,T.PLAYS,T.RESULTS,T.RESULTS_BY_TIME].includes(i.iconType)),l=e.computed(()=>[T.FIELD,T.GAMES].includes(i.iconType)),r=e.computed(()=>[T.DETAILS,T.UNIVERSE].includes(i.iconType)),n=e.computed(()=>[T.PERSONAL_DATA].includes(i.iconType)),d=e.computed(()=>[T.PRODUCTIVITY].includes(i.iconType)),p=e.computed(()=>[T.HOW_WAS_CORNER].includes(i.iconType)),f=e.computed(()=>[T.TAKEN_CORNERS].includes(i.iconType)),y=e.computed(()=>[T.ZONE].includes(i.iconType)),h=e.computed(()=>[T.WHAT_HAPPENED].includes(i.iconType));return(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",Iq,[n.value?(e.openBlock(),e.createElementBlock("svg",Mq,[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,Lq),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,Dq),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,Rq)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",Oq,[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,jq),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,vq),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,Wq)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",Uq,[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,Gq)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",Hq,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,Jq),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,qq),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,Zq),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,Yq),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,Kq)])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",Xq,eZ)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",tZ,iZ)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",oZ,lZ)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",rZ,mZ)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",yZ,uZ)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",fZ,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",gZ,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filtersTotal>0&&t.filtersTotal!=parseInt(t.infoValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)):t.filtersTotal>0?(e.openBlock(),e.createElementBlock("div",_Z)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",bZ,[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,SZ)]))],2)],4))}},wZ=re(CZ,[["__scopeId","data-v-2504d135"]]),kZ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},EZ=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),VZ={class:"panel__activator__icon"},xZ=["src"],NZ={class:"panel__activator__text"},TZ=["height","width"],BZ=["stroke"],FZ={class:"panel__content"},PZ=EZ(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),$Z={class:"panel__content__slot"},AZ={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,r=>{o.value=r},{immediate:!0});function l(){o.value=!o.value,i("update:modelValue",o.value)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:l},[e.createElementVNode("div",VZ,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,xZ)):e.createCommentVNode("",!0)]),e.createElementVNode("div",NZ,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,BZ)],8,TZ))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",FZ,[PZ,e.createElementVNode("div",$Z,[e.renderSlot(r.$slots,"content",{},void 0,!0)])],512),[[e.vShow,o.value]])]),_:3})],4))}},zZ=kZ(AZ,[["__scopeId","data-v-0ca35abc"]]),at={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},IZ={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}},MZ={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}]}},LZ={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},DZ=[{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}]}],RZ=[{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}],OZ=[{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}],jZ={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},np={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},vZ={class:"filters"},WZ={key:0,class:"filters__expansion"},UZ={class:"content"},GZ={key:1,class:"filters__menus"},HZ={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0}},emits:["update:filters","apply","close"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(b=>({"5e59eb26":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.PRODUCTIVITY,isFooterVisible:!0},l={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.PLAYS,isFooterVisible:!0},r={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.DETAILS,isFooterVisible:!0},d={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.TOURNAMENTS,isFooterVisible:!0},p={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.PERSONAL_DATA,isFooterVisible:!0},f={width:"310px",modalHeight:o.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"380px",modalHeight:o.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},h={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.UNIVERSE,isFooterVisible:!0},c={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.DISTANCE,isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.RESULTS,padding:"0",isFooterVisible:!0},m={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.VIDEOS,isFooterVisible:!1},_={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.GAMES,isFooterVisible:!0},k={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.TAKEN_CORNERS,isFooterVisible:!0},W={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.HOW_WAS_CORNER,isFooterVisible:!0},J={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.ZONE,isFooterVisible:!0},L={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.WHAT_HAPPENED,isFooterVisible:!0},G=e.ref(!1),Z=e.ref(!1),q=e.ref(0),Y=e.ref(0),R=e.ref({}),N=e.ref(null),D=e.ref(null),$=e.computed(()=>o.isForTemplateForm?"0":"unset"),H=e.computed(()=>o.buttonFilterProps&&o.buttonFilterProps.text?o.buttonFilterProps.text:o.menuButtonText||F()),K=e.computed(()=>o.isFromTemplates?T.RESULTS:o.filterType),ce=e.computed(()=>o.expansionPanelText||F()),x=e.ref(null);e.watch(()=>o.filterType,b=>{if(b===T.PRODUCTIVITY)R.value={...s,...o.templateProps,productivityCategories:o.filters||IZ};else if(b===T.PLAYS)R.value={...l,...o.templateProps,fontFamily:o.buttonFilterProps?o.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:o.filters||MZ};else if(b===T.FIELD)R.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters||[]};else if(b===T.DETAILS)R.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:at.isPlayingAsHidden,playingAs:o.filters&&o.filters.playingAs||at.playingAs,gameSections:o.filters&&o.filters.gameSections||at.gameSections,statisticType:o.filters?o.filters.statisticType:at.statisticType,isStatisticTypeVisible:o.filters?o.filters.isStatisticTypeVisible:at.isStatisticTypeVisible};else if(b===T.TOURNAMENTS){const C=o.filters||DZ;o.isOneTournamentOnly&&C.forEach(E=>{E.isSelected=E.id===o.defaultTournamentId}),R.value={...d,...o.templateProps,tournaments:C}}else b===T.PERSONAL_DATA?R.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:b===T.PLAYS_TYPES?R.value={...f,...o.templateProps,playsGolstatsCategories:o.filters||RZ}:b===T.GOLSTATS?R.value={...y,...o.templateProps,playsGolstatsCategories:o.filters||OZ}:b===T.UNIVERSE?R.value={...h,...o.templateProps,universeFilters:o.filters||LZ}:b===T.DISTANCE?R.value={...c,...o.templateProps,distanceFilters:o.filters||jZ}:b===T.RESULTS?R.value={...u,...o.templateProps,resultsFilters:o.filters||np}:b===T.RESULTS_BY_TIME?R.value={...m,...o.templateProps,resultsByTimeFilters:o.filters||qs}:b===T.GAMES?R.value={..._,...o.templateProps,gamesFilters:o.filters||[]}:b===T.VIDEOS?R.value={...g,...o.templateProps,token:o.token}:b===T.TAKEN_CORNERS?R.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:b===T.HOW_WAS_CORNER?R.value={...W,...o.templateProps,howWasCornerFilters:o.filters||Gs}:b===T.ZONE?R.value={...J,...o.templateProps,zoneFilters:o.filters||[...Ea]}:b===T.WHAT_HAPPENED&&(R.value={...L,...o.templateProps,whatHappenedFilters:o.filters||[...Js]});R.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(R.value.width="100%",R.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>o.filters,()=>{if(o.filterType===T.PRODUCTIVITY)R.value={...s,...o.templateProps,productivityCategories:o.filters};else if(o.filterType===T.PLAYS)R.value={...l,...o.templateProps,playsCategories:o.filters};else if(o.filterType===T.FIELD)R.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters};else if(o.filterType===T.DETAILS)R.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:at.isPlayingAsHidden,playingAs:o.filters?o.filters.playingAs:at.playingAs,gameSections:o.filters?o.filters.gameSections:at.gameSections,statisticType:o.filters?o.filters.statisticType:at.statisticType,isStatisticVisible:o.filters?o.filters.isStatisticVisible:at.isStatisticVisible};else if(o.filterType===T.TOURNAMENTS){const b=o.filters;o.isOneTournamentOnly&&b.forEach(C=>{C.isSelected=C.id===o.defaultTournamentId}),R.value={...d,...o.templateProps,tournaments:b}}else o.filterType===T.PERSONAL_DATA?R.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:o.filterType===T.PLAYS_TYPES?R.value={...f,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===T.GOLSTATS?R.value={...y,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===T.UNIVERSE?R.value={...h,...o.templateProps,universeFilters:o.filters}:o.filterType===T.DISTANCE?R.value={...c,...o.templateProps,distanceFilters:o.filters}:o.filterType===T.RESULTS?R.value={...u,...o.templateProps,resultsFilters:o.filters||np}:o.filterType===T.RESULTS_BY_TIME?R.value={...m,...o.templateProps,resultsByTimeFilters:o.filters||qs}:o.filterType===T.GAMES?R.value={..._,...o.templateProps,gamesFilters:o.filters}:o.filterType===T.VIDEOS?R.value={...g,...o.templateProps,token:o.token}:o.filterType===T.TAKEN_CORNERS?R.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:o.filterType===T.HOW_WAS_CORNER?R.value={...W,...o.templateProps,howWasCornerFilters:o.filters||Gs}:o.filterType===T.ZONE?R.value={...J,...o.templateProps,zoneFilters:o.filters||[...Ea]}:o.filterType===T.WHAT_HAPPENED&&(R.value={...L,...o.templateProps,whatHappenedFilters:o.filters||[...Js]});R.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(R.value.width="100%",R.value.maxWidth="100%")}),e.watch(G,b=>{b||a("close",x.value)}),e.watch(Z,b=>{b||a("close",x.value)});function w(b){q.value=b}function S(){o.isExpansionPanel?Z.value=!1:G.value=!1,a("apply",x.value)}function F(){if(o.filterType===T.PRODUCTIVITY)return o.isFromTemplates?"Tipos de jugadas":"Características de juego";if(o.filterType===T.PLAYS)return"Jugada(s)";if(o.filterType===T.FIELD)return"Zona de cancha";if(o.filterType===T.DETAILS)return"Detalles";if(o.filterType===T.TOURNAMENTS)return"Ligas";if(o.filterType===T.PERSONAL_DATA)return"Datos personales";if(o.filterType===T.PLAYS_TYPES)return"Tipos de jugada";if(o.filterType===T.GOLSTATS)return"Filtros Golstats";if(o.filterType===T.UNIVERSE)return"Universo";if(o.filterType===T.DISTANCE)return"Distancia";if([T.RESULTS,T.RESULTS_BY_TIME].includes(o.filterType))return"Resultados";if(o.filterType===T.GAMES)return"Partidos";if(o.filterType===T.VIDEOS)return"Videos";if(o.filterType===T.TAKEN_CORNERS)return"¿Quién cobró?";if(o.filterType===T.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(o.filterType===T.ZONE)return"Zona";if(o.filterType===T.WHAT_HAPPENED)return"¿Qué sucedió?"}function V(b){R.value.fieldAreas=b,q.value=b.length,P(b)}function j(b){let C=0;b.value&&b.value.statistics&&(b.value.minutesPlayed&&C++,b.value.percentMinutesPlayed&&C++,b.value.lastMonths&&C++,b.value.statistics.totals&&C++,b.value.statistics.averagePerGame&&C++,b.value.statistics.averagePerMinute&&C++),R.value.universe=b.value,q.value=C,P(b.value)}function P(b){x.value=b,a("update:filters",b)}function U(b){Y.value=b}function O(b=null){N.value&&N.value.clearFilters(b),D.value&&D.value.clearFilters(b)}return i({clearFilters:O}),(b,C)=>(e.openBlock(),e.createElementBlock("div",vZ,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",WZ,[e.createVNode(e.unref(zZ),e.mergeProps(t.expansionPanelProps,{modelValue:Z.value,"onUpdate:modelValue":C[0]||(C[0]=E=>Z.value=E),text:ce.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+o.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",UZ,[e.createVNode(rp,e.mergeProps(R.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateExpansionPanel",ref:D,onChangeFieldAreas:V,onChangeCategoriesSelected:w,onChangeFiltersSelected:w,onChangeUniverseFilters:j,onApply:S,"onUpdate:filters":P,onTotalFilters:U}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",GZ,[e.createVNode(e.unref(zq),{modelValue:G.value,"onUpdate:modelValue":C[1]||(C[1]=E=>G.value=E),width:t.width,"left-menu":$.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(wZ,e.mergeProps(t.buttonFilterProps,{text:H.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":q.value,"filters-total":Y.value.value,"is-active":G.value,"icon-type":K.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(rp,e.mergeProps(R.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateMenu",ref:N,onChangeFieldAreas:V,onChangeCategoriesSelected:w,onChangeFiltersSelected:w,onChangeUniverseFilters:j,"onUpdate:filters":P,onTotalFilters:U,onApply:S}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},Zs=re(HZ,[["__scopeId","data-v-a8b543ef"]]),JZ={class:"dropdown__position"},qZ={key:0,class:"label"},ZZ={class:"selected-item"},dp={__name:"DropdownPositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isLabelVisible:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-positions"],setup(t,{emit:i}){const a=t,o={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),l=e.computed(()=>{const d={...yt};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{d[p]=a.dropdownProps[p]}),d}),r=e.computed(()=>{let d=a.positions&&a.positions.length?[...a.positions]:[];const p=d[0];return(!p||p.id!==0)&&d.unshift(o),d.sort((f,y)=>f.id-y.id),d});e.watch(r,d=>{const p=d.filter(f=>f.isSelected);p.length===r.value.length-1&&(d[0].isSelected=!0),d[0]&&d[0].isSelected?s.value="Todas las posiciones":p.length===1?s.value=p[0].name:s.value=`${p.length} seleccionadas`,i("change-positions",d)},{immediate:!0,deep:!0});function n(d,p){p.id===0?r.value.forEach(f=>{f.isSelected=d}):(p.isSelected=d,r.value[0].isSelected=r.value.every((f,y)=>y===0?!0:f.isSelected))}return(d,p)=>(e.openBlock(),e.createElementBlock("div",JZ,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",qZ,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps(l.value,{"is-multiple-option":"",items:r.value,arrowWidth:"10"}),{default:e.withCtx(()=>[e.createElementVNode("div",ZZ,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(s.value),1)],64))])]),availableItem:e.withCtx(({item:f})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":f.isSelected,label:t.isFemale?f.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):f.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":y=>n(y,f)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},YZ={class:"dropdown-years"},KZ={key:0,class:"label"},XZ={class:"selected-item"},cp={__name:"DropdownYears",props:{years:{type:Array,default:()=>[]},selectedYear:{type:[Number,String],default:0},hasNoLimitOption:{type:Boolean,default:!0},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-year"],setup(t,{emit:i}){const a=t,o=e.computed(()=>{const r={...yt};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(n=>{r[n]=a.dropdownProps[n]}),r}),s=e.computed(()=>a.hasNoLimitOption?["Sin límite",...a.years]:a.years);function l(r){i("change-year",r)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",YZ,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",KZ,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps({"model-value":t.selectedYear,arrowWidth:"10"},o.value,{items:s.value,"onUpdate:modelValue":l}),{default:e.withCtx(({selectedItem:d})=>[e.createElementVNode("div",XZ,e.toDisplayString(d),1)]),availableItem:e.withCtx(({item:d})=>[e.createElementVNode("div",null,e.toDisplayString(d),1)]),_:1},16,["model-value","items"])]))}},QZ=t=>(e.pushScopeId("data-v-8bd3ce77"),t=t(),e.popScopeId(),t),eY={class:"dropdown-templates"},tY={key:0,class:"label"},aY={class:"selected-item"},iY={class:"item"},oY={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sY=QZ(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1)),lY=[sY],rY={__name:"DropdownTemplates",props:{dropdownProps:{type:Object,default:()=>null},selectedTemplate:{type:Object,default:()=>{}},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},teamId:{type:Number,default:0}},emits:["change-template"],setup(t,{emit:i}){const a=t,o=e.ref([]),s=e.ref(null),l=e.computed(()=>{const d={...yt};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{d[p]=a.dropdownProps[p]}),d});e.watch(()=>a.teamId,d=>{d&&n()},{immediate:!0});function r(d){s.value=d,i("change-template",d)}async function n(){try{const d=await Pt.get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${a.teamId}/templates`,{headers:{Authorization:a.token}});o.value=d.data&&d.data.data?d.data.data:[]}catch(d){console.error("Error filling templates: ",d)}}return n(),(d,p)=>(e.openBlock(),e.createElementBlock("div",eY,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",tY,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps({"model-value":t.selectedTemplate},l.value,{items:o.value,"arrow-width":"10",onInput:r}),{default:e.withCtx(({selectedItem:f})=>[e.createElementVNode("div",aY,e.toDisplayString(f.name),1)]),availableItem:e.withCtx(({item:f})=>[e.createElementVNode("div",iY,[e.createElementVNode("div",null,e.toDisplayString(f.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",oY,lY,512)),[[e.vShow,s.value.name===f.name]])])]),_:1},16,["model-value","items"])]))}},nY=re(rY,[["__scopeId","data-v-8bd3ce77"]]);function Ys(){return{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!1}}function pp(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!0}}function dY(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 0px",textFontFamily:"'Poppins-Regular'"}}const Ii="/group-427321501.svg",mp="/shape.svg",cY="_filtersContainer_b9wc6_1",pY="_filtersContainer1232_b9wc6_1",mY="_closeFiltersPc_b9wc6_1",yY="_textleyemdmultipleleagues_b9wc6_1",hY="_textleyemdmultipleleagues380_b9wc6_1",uY="_filtersContainer760_b9wc6_1",fY="_filtersContainer460_b9wc6_1",gY="_containerSectionPlay_b9wc6_1",_Y="_containerSectionPlay1232_b9wc6_1",bY="_containerSectionPlay960_b9wc6_1",SY="_containerSectionPlay320_b9wc6_1",CY="_containerSectionPlay350_b9wc6_1",wY="_containerSection_b9wc6_1",kY="_containerSection1232_b9wc6_1",EY="_containerSection960_b9wc6_1",VY="_containerSection320_b9wc6_1",xY="_containerSection350_b9wc6_1",NY="_templateLosMejores_b9wc6_1",TY="_templateLosMejores1232_b9wc6_1",BY="_templateLosMejores960_b9wc6_1",FY="_templateLosMejores420_b9wc6_1",PY="_templateLosMejores320_b9wc6_1",$Y="_templateLosMejores540_b9wc6_1",AY="_templateLosMejores350_b9wc6_1",zY="_topFiltersParent_b9wc6_1",IY="_topFiltersParent1232_b9wc6_1",MY="_topFiltersParent960_b9wc6_1",LY="_topFiltersParent460_b9wc6_1",DY="_topFiltersParent420_b9wc6_1",RY="_containerTheBest_b9wc6_1",OY="_containerTheBest1232_b9wc6_1",jY="_containerTheBest960_b9wc6_1",vY="_containerTheBest320_b9wc6_1",WY="_titleSection_b9wc6_1",UY="_titleSection540_b9wc6_1",GY="_containerTables_b9wc6_1",HY="_containerTables960_b9wc6_1",JY="_containerTables760_b9wc6_1",qY="_containerTables320_b9wc6_1",ZY="_toniKroosWrapper_b9wc6_1",YY="_toniKroosWrapper1080_b9wc6_1",KY="_toniKroosWrapper975_b9wc6_1",XY="_toniKroosWrapper760_b9wc6_1",QY="_toniKroosWrapper420_b9wc6_1",eK="_toniKroosWrapper320_b9wc6_1",tK="_frameChild_b9wc6_1",aK="_filtros_b9wc6_1",iK="_groupParent_b9wc6_1",oK="_shapeIcon_b9wc6_1",sK="_btnFilters_b9wc6_1",lK="_btnFiltersPC_b9wc6_1",rK="_quitarFiltros_b9wc6_1",nK="_quitarFiltros730_b9wc6_1",dK="_quitarFiltros480_b9wc6_1",cK="_quitarFiltros380_b9wc6_1",pK="_btnCloseFilters_b9wc6_1",mK="_mejoresJugadores_b9wc6_1",yK="_mejoresJugadores730_b9wc6_1",hK="_mejoresJugadores480_b9wc6_1",uK="_mejoresJugadoresSM_b9wc6_1",fK="_toniKroos_b9wc6_1",gK="_teamBar_b9wc6_1",_K="_menuSection_b9wc6_1",bK="_menuSection960_b9wc6_1",SK="_menuSectionPlay_b9wc6_1",CK="_menuSectionPlay960_b9wc6_1",wK="_containerMenu_b9wc6_1",kK="_containerMenu760_b9wc6_1",EK="_containerFilters_b9wc6_1",VK="_teamBarParent_b9wc6_1",xK="_topFilters_b9wc6_1",NK="_topFilters1232_b9wc6_1",TK="_topFilters420_b9wc6_1",BK="_topFilters460_b9wc6_1",FK="_losMejores_b9wc6_1",PK="_losMejores380_b9wc6_1",$K="_losMejores530_b9wc6_1",AK="_losMejores730_b9wc6_1",zK="_menuSectionHeader_b9wc6_1",IK="_menuSectionHeader1232_b9wc6_1",MK="_menuSectionHeader960_b9wc6_1",LK="_menuSectionHeader730_b9wc6_1",DK="_dropdown_b9wc6_1",RK="_dropdown730_b9wc6_1",OK="_dropdown1_b9wc6_1",jK="_dropdown1730_b9wc6_1",vK="_dropdownParent_b9wc6_1",WK="_dropdownParent730_b9wc6_1",UK="_menuSectionParentHeader_b9wc6_1",GK="_menuSectionParentHeader1232_b9wc6_1",HK="_menuSectionParentHeader960_b9wc6_1",JK="_menuSectionParentHeader730_b9wc6_1",qK="_menuSectionParentHeader430_b9wc6_1",ZK="_descubreVideos_b9wc6_1",YK="_descubreVideos1232_b9wc6_1",KK="_descubreVideos960_b9wc6_1",XK="_allCategories_b9wc6_1",QK="_containerScountingBtn_b9wc6_3",eX="_btnDeleteAplica_b9wc6_13",tX="_SearchBtnBar_b9wc6_33",aX="_btnLeyendTxt_b9wc6_52",iX="_BtnSearchScounting_b9wc6_61",oX="_containerPredefined_b9wc6_85",sX="_containerPredefinedScounting_b9wc6_92",lX="_titleContainerPredefined_b9wc6_100",rX="_subtitleContainerPredefined_b9wc6_111",nX={filtersContainer:cY,filtersContainer1232:pY,closeFiltersPc:mY,textleyemdmultipleleagues:yY,textleyemdmultipleleagues380:hY,filtersContainer760:uY,filtersContainer460:fY,containerSectionPlay:gY,containerSectionPlay1232:_Y,containerSectionPlay960:bY,containerSectionPlay320:SY,containerSectionPlay350:CY,containerSection:wY,containerSection1232:kY,containerSection960:EY,containerSection320:VY,containerSection350:xY,templateLosMejores:NY,templateLosMejores1232:TY,templateLosMejores960:BY,templateLosMejores420:FY,templateLosMejores320:PY,templateLosMejores540:$Y,templateLosMejores350:AY,topFiltersParent:zY,topFiltersParent1232:IY,topFiltersParent960:MY,topFiltersParent460:LY,topFiltersParent420:DY,containerTheBest:RY,containerTheBest1232:OY,containerTheBest960:jY,containerTheBest320:vY,titleSection:WY,titleSection540:UY,containerTables:GY,containerTables960:HY,containerTables760:JY,containerTables320:qY,toniKroosWrapper:ZY,toniKroosWrapper1080:YY,toniKroosWrapper975:KY,toniKroosWrapper760:XY,toniKroosWrapper420:QY,toniKroosWrapper320:eK,frameChild:tK,filtros:aK,groupParent:iK,shapeIcon:oK,btnFilters:sK,btnFiltersPC:lK,quitarFiltros:rK,quitarFiltros730:nK,quitarFiltros480:dK,quitarFiltros380:cK,btnCloseFilters:pK,mejoresJugadores:mK,mejoresJugadores730:yK,mejoresJugadores480:hK,mejoresJugadoresSM:uK,toniKroos:fK,teamBar:gK,menuSection:_K,menuSection960:bK,menuSectionPlay:SK,menuSectionPlay960:CK,containerMenu:wK,containerMenu760:kK,containerFilters:EK,teamBarParent:VK,topFilters:xK,topFilters1232:NK,topFilters420:TK,topFilters460:BK,losMejores:FK,losMejores380:PK,losMejores530:$K,losMejores730:AK,menuSectionHeader:zK,menuSectionHeader1232:IK,menuSectionHeader960:MK,menuSectionHeader730:LK,dropdown:DK,dropdown730:RK,dropdown1:OK,dropdown1730:jK,dropdownParent:vK,dropdownParent730:WK,menuSectionParentHeader:UK,menuSectionParentHeader1232:GK,menuSectionParentHeader960:HK,menuSectionParentHeader730:JK,menuSectionParentHeader430:qK,descubreVideos:ZK,descubreVideos1232:YK,descubreVideos960:KK,allCategories:XK,containerScountingBtn:QK,btnDeleteAplica:eX,SearchBtnBar:tX,btnLeyendTxt:aX,BtnSearchScounting:iX,containerPredefined:oX,containerPredefinedScounting:sX,titleContainerPredefined:lX,subtitleContainerPredefined:rX},dX=e.ref(Ys()),cX={components:{GSCTableHeader:os,GscSwitchComponent:bs,GSCFilterperteam:Bd,GSCFilters:Zs,GSCExpandedInfo:ys,GSCLabel:Wd,GSCSeasonSelect:ud,GSCTopCategory:RI,GSCTournamentSelect:_d,GSCRowTable:rs},computed:{...bx.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{...dX.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}=Re(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:T,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilterAux(){this.resetPredefinedTeamAll()},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(oe.All),i.clearFilters(oe.AGE_RANGE),i.clearFilters(oe.YEAR),i.clearFilters(oe.NATIONALITY),i.clearFilters(oe.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=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,elegible:this.FVeligible,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.isSelection?(this.detailsObjectSelection.gameSections[0].isSelected=!0,this.detailsObjectSelection.gameSections[1].isSelected=!0,this.detailsObjectSelection.gameSections[2].isSelected=!0,this.detailsObjectSelection.gameSections[3].isSelected=!0,this.detailsObjectSelection.gameSections[4].isSelected=!0,this.detailsObjectSelection.gameSections[5].isSelected=!0):(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0),this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.isSelection?(this.detailsObjectSelection.playingAs[0].isSelected=!0,this.detailsObjectSelection.playingAs[1].isSelected=!0):(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0),this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.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(oe.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(oe.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(oe.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(oe.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(i!=-1?this.arrayFiltersPlays[i].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(oe.All),a.clearFilters(oe.AGE_RANGE),a.clearFilters(oe.YEAR),a.clearFilters(oe.NATIONALITY),a.clearFilters(oe.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange&&(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h]);var l=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}else if(this.FVeligible=!1,t.hasOwnProperty("nationalities")){let h=0;this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let c=0;c<t.nationalities.length;c++)t.nationalities[c].isSelected&&(this.fVnationalities.add(t.nationalities[c].id),h++);if(h===t.nationalities.length){var l=this.arrayFiltersPlays.findIndex(u=>u.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}}if(t.hasOwnProperty("nationalities")&&!this.FVeligible&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}if(t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;if(t.hasOwnProperty("positions")){let h=0;for(let c=0;c<t.positions.length;c++)t.positions[c].isSelected&&(this.fVsetPositionsIds.push(t.positions[c].id),h++);if(h===t.positions.length){var r=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPosition");r!==-1&&this.arrayFiltersPlays.splice(r,1)}}if(t.hasOwnProperty("nationalities"))var n=t.nationalities.filter(h=>h.isSelected===!0);var d=t.positions.filter(h=>h.isSelected===!0);if(d.length==1&&(o=d[0].name),t.hasOwnProperty("nationalities")&&n.length==1&&(s=n[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");p!=-1?this.arrayFiltersPlays[p].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var p=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersElegibility");p!=-1&&this.arrayFiltersPlays.splice(p,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var r=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPosition");r!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[r].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(r,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.ageLimits&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");y!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[y].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var y=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersAge");y!=-1&&this.arrayFiltersPlays.splice(y,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.categoriesPlaysTypes={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},this.detailsObject={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},this.detailsObjectSelection={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.onClickDeleteFilterAux(),this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){if(this.isSelection){if(this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,t=="Más productivos"){this.optionSelected="Scouting",this.resetFilter(),this.resetLeagues(),this.filterScounting.nationalities=[138],this.filterScounting.last_months=6,this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}else this.optionSelected="Jugadores",this.typeTable=0,this.isTeam=!1,this.resetFilterTeamAndPlayers(),this.resetScouting(),await this.loadPreloadedTops();this.optionSelectedSubmenu=t}else t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=he.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=he.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(y=>{this.predefinedFiltersMatchLapse[y.toString()]=o[0].match_lapse_combinations[y]}),Object.keys(o[0].playing_as_combinations).forEach(y=>{this.predefinedFiltersPlayingAs[y.toString()]=o[0].playing_as_combinations[y]}),Object.keys(o[0].field_sections_combinations).forEach(y=>{this.predefinedFiltersSections[y.toString()]=o[0].field_sections_combinations[y]}),o[0]){for(let y=0;y<o[0].filter_records.length;y++){var s=o[0].description;if(o[0].filter_records[y].field_sections!==void 0){const c=o[0].filter_records[y].field_sections.toString();(this.predefinedFiltersSections[c]||this.predefinedFiltersSections[c]=="")&&(this.predefinedFiltersSections[c]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[c]):s=s.replace("{field_sections}",this.predefinedFiltersSections[c]))}if(o[0].filter_records[y].match_lapse!==void 0){const c=o[0].filter_records[y].match_lapse.toString();(this.predefinedFiltersMatchLapse[c]||this.predefinedFiltersMatchLapse[c]=="")&&(this.predefinedFiltersMatchLapse[c]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[c]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[c]))}if(o[0].filter_records[y].playing_as!==void 0){const c=o[0].filter_records[y].playing_as.toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[c]))}o[0].filter_records[y].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[y].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:y,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[y].match_result,playingAs:o[0].filter_records[y].playing_as,sections:o[0].filter_records[y].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[y].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let y=0;y<this.arrayPredefinedFilters.length;y++){var n=0,d=new Set,p={},f=this.arrayPredefinedFilters[y].text.replace(/\*.*?\*/,"");if(f=f.replace(/\*/g,""),f=f.replace(/ +/g," "),this.arrayPredefinedFilters[y].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[y].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[y].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[y].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[y].filtersPredefined.start_age,this.arrayPredefinedFilters[y].filtersPredefined.end_age]:this.arrayPredefinedFilters[y].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[y].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[y].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[y].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[y].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[y].filtersPredefined.end_age],this.arrayPredefinedFilters[y].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[y].filtersPredefined.matchResult,this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length;h++)d.add(this.arrayPredefinedFilters[y].filtersPredefined.nationalities[h]);p.setNationalitiesIds=d}else d.add(138),d.add(222),d.add(163),d.add(51),d.add(226),d.add(10),d.add(223),d.add(96),d.add(171),d.add(198),d.add(105),d.add(80),d.add(29),d.add(74),d.add(216),d.add(196),d.add(64),d.add(155),d.add(156),d.add(89),d.add(106),d.add(81),d.add(233),d.add(204),p.setNationalitiesIds=d;this.arrayPredefinedFilters[y].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[y].filtersPredefined.playingAs,this.arrayPredefinedFilters[y].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[y].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[y].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[y].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[y].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[y].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[y].filtersPredefined.typeZone,this.optionSelected=="Equipos"&&(this.tournamentSelectedObj.is_female?f=f.replace(/Jugadoras/g,"Equipos"):f=f.replace(/Jugadores/g,"Equipos")),p.setNationalitiesIds=[],r.push({id:y+1,name:f,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((f,y)=>f-y).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),d=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=d.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let f=1;f<=p.length;f++)f%2===0||(d=d.replace("*",'<span style="color: #ffff03" >'));else d=d.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=d},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const d=a.get(r[0])||{};return{id:d.id,name:d.name,img:d.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var d,p,f,y,h,c,u,m,g,_;const k=o.get(r[0])||{};return{age:k.numberAge,categoryName:s.name,country:(p=(d=k.countryId)==null?void 0:d[0])==null?void 0:p.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:k.min,name:k.stringFullName,name_short:k.stringFullName,nationality:k.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(y=(f=k.countryId)==null?void 0:f[0])==null?void 0:y.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((c=(h=k.teamName)==null?void 0:h[0])==null?void 0:c.acronym)||"",teamid:((m=(u=k.teamName)==null?void 0:u[0])==null?void 0:m.team_id)||"",teamname:((_=(g=k.teamName)==null?void 0:g[0])==null?void 0:_.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=he.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=he.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 he.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)}}},pX={ref:"myDivRefTopsFull"},mX={key:0,class:"overlay-loading"},yX=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),hX=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),uX=[yX,hX],fX=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),gX=[fX],_X={key:0,class:"cont-leyemd-multipleleagues"},bX=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),SX={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},CX={key:0,style:{"margin-left":"10px"}},wX=e.createElementVNode("span",null,"Todas las categorías",-1),kX=[wX],EX=e.createElementVNode("span",null,"Tipo de Jugada",-1),VX=e.createElementVNode("span",null,"Filtro GolStats",-1),xX={key:3,style:{width:"100%",height:"295px"}};function NX(t,i,a,o,s,l){const r=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),d=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCFilterperteam"),f=e.resolveComponent("GSCFilters"),y=e.resolveComponent("GSCLabel"),h=e.resolveComponent("GSCTopCategory"),c=e.resolveComponent("GSCTableHeader"),u=e.resolveComponent("GSCRowTable"),m=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",pX,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",mX,uX)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(d,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(p,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...g)=>l.clickOpenFilters&&l.clickOpenFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 15px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...g)=>l.clickCloseFilters&&l.clickCloseFilters(...g))},gX,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(d,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(d,{key:2,type:2,buttons:["Todas las jugadas","Más productivos"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:mp},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isSelection?(e.openBlock(),e.createBlock(f,e.mergeProps({key:0,"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:a.isSelection?s.detailsObjectSelection:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"?(e.openBlock(),e.createBlock(f,e.mergeProps({key:1,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","is-seleccion","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[4]||(i[4]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(f,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(f,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",_X,[bX,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(p,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",SX," 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",CX,[e.createVNode(y,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(g,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,style:{"margin-left":"10px"}},[e.createVNode(y,{"text-value":g.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:g.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(g=>g.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[5]||(i[5]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},kX,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,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(h,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[g.id],"border-radius":"12px","filters-prop":l.filterChange,category:g.id,"type-table":s.typeTable,categoryName:g.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded},null,8,["is-female","is-team","type-stats","is-selection","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":a.isSelection,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[EX,e.createTextVNode(" y un "),VX,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(c,{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,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[s.teamselectrec==0||s.teamselectrec==g.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(u,{type:2,"is-expanded":s.playerexpand==g.id&&s.expand,onMediadata:l.setMediaData,data:{position:g.position,player_name:g.player_name,player_photo:g.player_photo,total:g.total,id:g.id,player_age:g.player_age,team_abrev:g.team_abrev,team_logo:g.team_logo,player_position:s.positions[g.player_position-1].fullname,player_country_flag:g.player_country_flag,player_games:g.player_games,player_min:g.player_min,league_name:g.league_name,seasons:g.seasons,season_id:g.season_id},height:"71px",background:_%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==g.id?(e.openBlock(),e.createBlock(m,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:g.team_name,age:g.player_age,dataofbirth:g.date,nationality:g.nationality_name,countryFlag:g.player_country_flag,position:s.positions[g.player_position-1].name,games:g.player_games,min:g.player_min,goals:g.total,effectiveness:"-",category:"total",id:g.id},onViewprofile:k=>l.viewprofile(k,g.season_id,g.team_id),background:_%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[6]||(i[6]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[7]||(i[7]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",xX)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const TX={$style:nX},BX=Ce(cX,[["render",NX],["__cssModules",TX]]),Ks={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},yp=()=>{e.useCssVars(t=>({"39b08ebc":t.backgroundColor,"5bd2cafa":t.widthCircle,"73104bac":t.heightCircle}))},hp=Ks.setup;Ks.setup=hp?(t,i)=>(yp(),hp(t,i)):yp;const FX=["width","src"],PX=["checked"],$X=["width","src"];function AX(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(l.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["text-left",{inactive:s.OptionDefault}])},e.toDisplayString(a.textOptionLeft),3)):e.createCommentVNode("",!0),a.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA,class:e.normalizeClass({inactive:s.OptionDefault})},null,10,FX)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>l.handleSwitchChange&&l.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,PX),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([l.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB,class:e.normalizeClass({inactive:!s.OptionDefault})},null,10,$X)):e.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["text-right",{inactive:!s.OptionDefault}])},e.toDisplayString(a.textOptionRight),3)):e.createCommentVNode("",!0)],4)}const zX=Ce(Ks,[["render",AX],["__scopeId","data-v-a583325d"]]),IX={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},listId:{type:Number,required:!0},player:{type:Object,required:!0}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref(new Set),s=e.ref(""),l=e.ref([]),r=e.ref(!1),n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",d=e.ref(null),p=m=>{document.body.style.overflow=m?"hidden":"auto"},f=()=>{o.value.clear(),s.value="",d.value=null,l.value=[]},y=()=>{f(),i("close")},h=()=>{s.value=""},c=async()=>{if(t.userId){r.value=!0;try{const m=await he.create({headers:{Authorization:`${n}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`);l.value=m.data.data}catch(m){console.error("Error al obtener las listas:",m)}finally{r.value=!1}}};e.watch(()=>t.isVisible,m=>{p(m),m&&t.userId&&c()}),e.watch(()=>t.userId,m=>{m&&t.isVisible&&c()}),e.onMounted(()=>{t.isVisible&&p(!0)}),e.onUnmounted(()=>{p(!1)});const u=e.computed(()=>{if(!s.value)return l.value.map(g=>{var _;return{...g,isDisabled:((_=g.players)==null?void 0:_.some(k=>k.player_id===t.player.player_id))||!1}});const m=s.value.toLowerCase();return l.value.filter(g=>g.name.toLowerCase().includes(m)).map(g=>{var _;return{...g,isDisabled:((_=g.players)==null?void 0:_.some(k=>k.player_id===t.player.player_id))||!1}})});return{modalContent:a,selectedPlayers:o,searchQuery:s,closeModal:y,clearSearch:h,playlists:l,isLoading:r,filteredPlaylists:u,selectedPlaylist:d,handlePlaylistSelection:(m,g)=>{g||(d.value=m)},handleCreatePlaylist:async()=>{if(d.value)try{const m=he.create({headers:{Authorization:`${n}`}}),g={user_id:t.userId,id:d.value,players:[t.player]};await m.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${d.value}/players`,g),y()}catch(m){console.error("Error al guardar el jugador en la lista:",m)}},handleCreateListClick:()=>{i("create-list"),f()}}}},ut=t=>(e.pushScopeId("data-v-67caccaa"),t=t(),e.popScopeId(),t),MX={class:"modal-header"},LX=ut(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Agregar a lista")],-1)),DX=ut(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),RX=[DX],OX={class:"modal-body"},jX={class:"search-section"},vX={class:"search-container"},WX={class:"search-input"},UX=ut(()=>e.createElementVNode("svg",{class:"search-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M15.25 15.25L11.8855 11.8795L15.25 15.25ZM13.75 7.375C13.75 9.06576 13.0784 10.6873 11.8828 11.8828C10.6873 13.0784 9.06576 13.75 7.375 13.75C5.68424 13.75 4.06274 13.0784 2.86719 11.8828C1.67165 10.6873 1 9.06576 1 7.375C1 5.68424 1.67165 4.06274 2.86719 2.86719C4.06274 1.67165 5.68424 1 7.375 1C9.06576 1 10.6873 1.67165 11.8828 2.86719C13.0784 4.06274 13.75 5.68424 13.75 7.375V7.375Z",stroke:"white","stroke-opacity":"0.43","stroke-width":"1.5","stroke-linecap":"round"})],-1)),GX=ut(()=>e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)),HX=[GX],JX=ut(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),qX={class:"players-table-container"},ZX={class:"players-table"},YX={key:0,class:"loading-message"},KX={key:1,class:"empty-message"},XX={class:"checkbox-container"},QX=["id","checked","onChange"],eQ={key:1,class:"checkbox-placeholder"},tQ=ut(()=>e.createElementVNode("div",{class:"folder-icon"},[e.createElementVNode("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18 2H10L8 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V4C20 2.9 19.1 2 18 2Z",fill:"#ffffff","fill-opacity":"0.3"})])],-1)),aQ={class:"list-content"},iQ={class:"title"},oQ={class:"subtitle"},sQ={class:"modal-footer"},lQ={class:"buttons-container buttons-container-step2"},rQ=ut(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),nQ=ut(()=>e.createElementVNode("span",null,"Crear nueva lista",-1)),dQ=[rQ,nQ],cQ={class:"right-buttons"},pQ=["disabled"];function mQ(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[8]||(i[8]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[7]||(i[7]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",MX,[LX,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},RX)]),e.createElementVNode("div",OX,[e.createElementVNode("div",jX,[e.createElementVNode("div",vX,[e.createElementVNode("div",WX,[UX,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.searchQuery=r),type:"text",placeholder:"Buscar lista..."},null,512),[[e.vModelText,o.searchQuery]]),o.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:i[2]||(i[2]=(...r)=>o.clearSearch&&o.clearSearch(...r))},HX)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"crear-playlist",onClick:i[3]||(i[3]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},[JX,e.createTextVNode(" Crear nueva lista ")])])]),e.createElementVNode("div",qX,[e.createElementVNode("div",ZX,[o.isLoading?(e.openBlock(),e.createElementBlock("div",YX," Cargando listas... ")):o.filteredPlaylists.length===0?(e.openBlock(),e.createElementBlock("div",KX," No hay listas disponibles ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(o.filteredPlaylists,r=>{var n;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:e.normalizeClass(["list-item",{disabled:r.isDisabled}])},[e.createElementVNode("div",XX,[r.isDisabled?(e.openBlock(),e.createElementBlock("div",eQ)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"checkbox",id:r.id,checked:o.selectedPlaylist===r.id,onChange:d=>o.handlePlaylistSelection(r.id,r.isDisabled)},null,40,QX))]),tQ,e.createElementVNode("div",aQ,[e.createElementVNode("div",iQ,e.toDisplayString(r==null?void 0:r.name),1),e.createElementVNode("div",oQ,e.toDisplayString((n=r==null?void 0:r.template)==null?void 0:n.name),1)])],2)}),128))])])]),e.createElementVNode("div",sQ,[e.createElementVNode("div",lQ,[e.createElementVNode("button",{class:"create-list-link",onClick:i[4]||(i[4]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},dQ),e.createElementVNode("div",cQ,[e.createElementVNode("button",{class:"cancelar",onClick:i[5]||(i[5]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[6]||(i[6]=(...r)=>o.handleCreatePlaylist&&o.handleCreatePlaylist(...r)),disabled:!o.selectedPlaylist}," Guardar ",8,pQ)])])])],512)])):e.createCommentVNode("",!0)]),_:1})}const yQ=Ce(IX,[["render",mQ],["__scopeId","data-v-67caccaa"]]),hQ={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},player:{type:Object,required:!0},templates:{type:Array,default:()=>[]}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref({title:"",templateId:""}),s=e.ref(0),l=()=>{a.value&&(s.value=a.value.offsetWidth)},r=y=>{document.body.style.overflow=y?"hidden":"auto"},n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",d=()=>{l(),t.isVisible&&r(!0)},p=()=>{o.value={title:"",templateId:""},i("close")},f=async()=>{if(!(!o.value.title||!o.value.templateId))try{const y=t.templates.find(u=>u.id===o.value.templateId),h={user_id:t.userId,name:o.value.title,template:y,players:[t.player]},c=await he.create({headers:{Authorization:`${n}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,h);p()}catch(y){console.error("Error al crear la lista:",y)}};return e.onMounted(()=>{window.addEventListener("resize",d)}),e.onUnmounted(()=>{window.removeEventListener("resize",d),r(!1)}),e.watch(()=>t.isVisible,y=>{y?(setTimeout(l,0),r(!0)):r(!1)}),e.watch(()=>t.listData,y=>{y&&(y.name&&(o.value.title=y.name),y.template&&(o.value.templateId=Number(y.template)))},{immediate:!0}),{modalContent:a,playlistData:o,modalWidth:s,closeModal:p,handleNext:f}}},Xs=t=>(e.pushScopeId("data-v-0dd449b4"),t=t(),e.popScopeId(),t),uQ={class:"modal-header"},fQ=Xs(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Crear lista")],-1)),gQ=Xs(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),_Q=[gQ],bQ={class:"modal-body"},SQ=Xs(()=>e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una plantilla",-1)),CQ=["value"],wQ={class:"modal-footer"},kQ={class:"buttons-container buttons-container-step1"},EQ=["disabled"];function VQ(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[6]||(i[6]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[5]||(i[5]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",uQ,[fQ,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},_Q)]),e.createElementVNode("div",bQ,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.playlistData.title=r),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,o.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":i[2]||(i[2]=r=>o.playlistData.templateId=r),class:"select-position"},[SQ,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.templates,r=>(e.openBlock(),e.createElementBlock("option",{key:r.id,value:r.id},e.toDisplayString(r.name),9,CQ))),128))],512),[[e.vModelSelect,o.playlistData.templateId]])]),e.createElementVNode("div",wQ,[e.createElementVNode("div",kQ,[e.createElementVNode("button",{class:"cancelar",onClick:i[3]||(i[3]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[4]||(i[4]=(...r)=>o.handleNext&&o.handleNext(...r)),disabled:!o.playlistData.title||!o.playlistData.templateId}," Guardar ",8,EQ)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const xQ=Ce(hQ,[["render",VQ],["__scopeId","data-v-0dd449b4"]]),NQ=[{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}]}],TQ=[{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}]}],BQ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},FQ={key:1},PQ={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$Q=["fill"],AQ={key:0,class:"checkbox__teams"},zQ={class:"checkbox__teams__logo"},IQ=["src"],MQ={class:"checkbox__teams__logo"},LQ=["src"],DQ={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(t){return["left","right","top","bottom"].includes(t)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function d(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",FQ,[(e.openBlock(),e.createElementBlock("svg",PQ,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:t.boxValueColor},null,8,$Q)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",AQ,[e.createElementVNode("div",zQ,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,IQ)]),e.createElementVNode("div",MQ,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,LQ)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},RQ=BQ(DQ,[["__scopeId","data-v-b6f124d8"]]),OQ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Qs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},up=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},fp=Qs.setup;Qs.setup=fp?(t,i)=>(up(),fp(t,i)):up;const jQ=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),vQ=["src"],WQ={key:1,class:"text"},UQ=["src"],GQ={class:"stats"},HQ=jQ(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),JQ={class:"numstats"},qQ={class:"leyend"};function ZQ(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,vQ)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",WQ,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,UQ)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",GQ,[HQ,e.createElementVNode("div",JQ,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",qQ,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const YQ=OQ(Qs,[["render",ZQ],["__scopeId","data-v-f3ee6b2b"]]),gp=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},_p=t=>(e.pushScopeId("data-v-7023d006"),t=t(),e.popScopeId(),t),KQ={key:0,class:"overlay"},XQ={class:"name"},QQ=["onClick"],eee=_p(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),tee=[eee],aee=_p(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),iee=["onClick"],oee={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(null),r=e.ref(0);e.ref(!1);const n=e.computed(()=>{const c=o.availablePlayers[0];return c?c.stats:[]}),d=e.computed(()=>{const c=`repeat(${n.value.length}, max-content) 36px`;let u="";return r.value>0&&document.querySelectorAll(".column-title-2").forEach(m=>{u+=`${m.offsetWidth}px `}),{"--grid-template-columns":c,"--grid-template-columns-totals":u||c}});function p(){s.value=new ResizeObserver(c=>{for(const u of c){const{width:m}=u.contentRect;r.value=m}}),s.value.observe(l.value)}function f(c,u){const m=document.querySelectorAll(".scrollable-row-totals")[c+1];m&&(m.style.marginTop=`${u}px`)}function y({player:c,stat:u}){!u.total||u==="0%"||!u.seasons||!u.seasons.length||a("open-media",{...c,stat:u})}function h(c){!c||c==="no"||a("click-parameters",c)}return e.onMounted(()=>{p()}),i({setMarginTopDetails:f}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(d.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",KQ)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:l,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${g}`,class:"column-title-2"},[e.createElementVNode("div",XQ,e.toDisplayString(m.name),1),m.parameters&&m.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:_=>h(m.parameters)},tee,8,QQ)):e.createCommentVNode("",!0)]))),128)),aee],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${m.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.stats,_=>(e.openBlock(),e.createElementBlock("div",{key:_.category_id,class:e.normalizeClass(["row data-info",{odd:g%2!==0,underline:!!_.total&&_.total!=="0%"&&_.seasons&&_.seasons.length}]),onClick:k=>y({player:m,stat:_})},e.toDisplayString(_.total),11,iee))),128))]))),128))],4))}},see=gp(oee,[["__scopeId","data-v-7023d006"]]),Fe=t=>(e.pushScopeId("data-v-510e4abc"),t=t(),e.popScopeId(),t),lee={class:"table__static-column"},ree=Fe(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),nee={class:"container"},dee={class:"details-row__info"},cee={class:"details-row__info__personal"},pee={class:"bold"},mee={class:"bold"},yee={class:"bold"},hee={class:"bold"},uee={class:"details-row__info__games"},fee={class:"bold"},gee={class:"bold"},_ee=["onClick"],bee=Fe(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),See=Fe(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),Cee=[bee,See],wee=["onClick"],kee=Fe(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),Eee=Fe(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Vee=[kee,Eee],xee=["onClick"],Nee=Fe(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),Tee=Fe(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Bee=[Nee,Tee],Fee=["onClick"],Pee=Fe(()=>e.createElementVNode("div",null,"Ver perfil",-1)),$ee=[Pee],Aee={class:"static-row__info-player"},zee={class:"position"},Iee=["onClick"],Mee=Fe(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Lee=Fe(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Dee=Fe(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Ree=[Mee,Lee,Dee],Oee=["onClick"],jee=Fe(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),vee=Fe(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Wee=Fe(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Uee=[jee,vee,Wee],Gee={class:"player-photo"},Hee=["src"],Jee={class:"player-name"},qee={class:"arrow"},Zee=["onClick"],Yee=Fe(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),Kee=[Yee],Xee=e.createStaticVNode('<div class="titles scrollable-row" data-v-510e4abc><div class="column-title" data-v-510e4abc>Equipo</div><div class="column-title" data-v-510e4abc>Posición</div><div class="column-title" data-v-510e4abc>Edad</div><div class="column-title" data-v-510e4abc>País</div><div class="column-title" data-v-510e4abc>Partidos Jugados</div><div class="column-title" data-v-510e4abc>Minutos Jugados</div><div class="column-title" data-v-510e4abc>Liga</div><div class="column-title" data-v-510e4abc>Videos</div><div class="column-title" data-v-510e4abc></div></div>',1),Qee={class:"team-logo"},ete=["src"],tte={class:"team-name data-info"},ate=["src"],ite={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters"],setup(t,{emit:i}){const a=t;let o=null,s=null;const l=e.ref([]),r=e.ref(null),n=e.ref(null),d=e.ref(0),p=e.ref(0),f=e.ref(-1);e.ref(!1);const y=e.ref(null),h=e.ref(null),c=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${u.value?"8px":"18px"}`,"--width-static-column":`${u.value?"50%":"256px"}`})),u=e.computed(()=>d.value<600);e.watch(()=>a.players,x=>{x&&x.length&&(l.value=x.map((w,S)=>{const F=S+1,V={...w,position:F<10?`0${F}`:`${F}`,isSelected:!1,isExpanded:!1,isOdd:S%2!==0,index:S};return V.parameters&&Object.entries(V.parameters).forEach(([j,P])=>{const U=V.stats.find(O=>O.custom_category_id===Number(j));U&&(U.parameters=P)}),V}))},{immediate:!0,deep:!0}),e.watch(()=>a.isEditMode,x=>{x&&l.value.forEach(w=>{w.isSelected=!1})}),e.watch(p,x=>{const w=document.querySelectorAll(".static-row")[f.value+1];w&&(w.style.marginTop=`${x}px`),a.isGeneral?m(f.value,x):n.value&&n.value.setMarginTopDetails(f.value,x),x===0&&y.value&&R(y.value)});function m(x,w){const S=document.querySelectorAll(".scrollable-row")[x+2];S&&(S.style.marginTop=`${w}px`)}function g(x){i("click-parameters",x)}function _(x){const w=x.player||x.objeto_player,S=w?w.player_id||w.id||w.playerId:x.id||x.player_id,F=w?w.team_id||w.teamId:x.team_id||x.teamId,V={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:S?[S]:[],goalkeeperIds:[],teamId:F||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(x.stat&&x.stat.seasons&&x.stat.seasons.length||x.seasons&&x.seasons.length){const j=[...x.stat&&x.stat.seasons&&x.stat.seasons.length?x.stat.seasons:x.seasons];j.sort((P,U)=>P-U),V.seasonId=j.shift(),V.seasonsIds=j}else(x.season_id||x.seasonId)&&(V.seasonId=x.season_id||x.seasonId);x.stat?x.stat.category_id?V.categoryIds=x.stat.category_id:x.stat.custom_category_id&&(V.customCategoryIds=[x.stat.custom_category_id]):V.categoryIds=J(x.player_position),i("open-media",V)}function k(){o=new ResizeObserver(x=>{for(const w of x)d.value=w.contentRect.width}),o.observe(r.value)}function W(x){s=new ResizeObserver(w=>{for(const S of w)p.value=S.contentRect.height}),s.observe(x)}function J(x){return x==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function L(x,w){w.isSelected=x;const S=l.value.filter(F=>F.isSelected);i("change-selected-players",S)}function G(x){i("view-profile",x)}function Z(x){i("delete-from-list",x)}function q(x){i("add-to-list",x)}function Y(x){i("show-graph",x)}function R(x){if(x.isExpanded){x.isExpanded=!1,y.value=null;return}const w=l.value.find(F=>F.isExpanded);if(w&&(w.isExpanded=!1),w){y.value=x;return}const S=document.querySelectorAll(".details-row")[x.index];f.value=x.index,W(S),x.isExpanded=!0}let N=!1,D,$,H=function(x){N=!0,D=x.pageX-h.value.offsetLeft,$=h.value.scrollLeft},K=function(){N=!1};function ce(){h.value&&(h.value.addEventListener("mousemove",x=>{if(!N)return;const w=x.pageX-h.value.offsetLeft-D;h.value.scrollLeft=$-w}),h.value.addEventListener("mousedown",H,!1),h.value.addEventListener("mouseup",K,!1),h.value.addEventListener("mouseleave",K,!1))}return e.onMounted(()=>{k(),ce()}),e.onBeforeUnmount(()=>{o&&o.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",H,!1),h.value.removeEventListener("mouseup",K,!1),h.value.removeEventListener("mouseleave",K,!1))}),(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:r,style:e.normalizeStyle(c.value)},[e.createElementVNode("div",lee,[ree,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`s-${S.id}`,class:e.normalizeClass(["row static-row",{odd:S.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:S.isOdd}])},[e.createElementVNode("div",nee,[e.createElementVNode("div",dee,[e.createElementVNode("div",cee,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",pee,e.toDisplayString(S.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",mee,e.toDisplayString(S.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",yee,e.toDisplayString(S.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",hee,e.toDisplayString(S.position_name),1)])]),e.createElementVNode("div",uee,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",fee,e.toDisplayString(S.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",gee,e.toDisplayString(S.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(u.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:F=>Y(S)},Cee,8,_ee),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:F=>Z(S)},Vee,8,wee)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:F=>q(S)},Bee,8,xee)),e.createElementVNode("div",{role:"button",class:"button green",onClick:F=>G(S)},$ee,8,Fee)],4)])],2),[[e.vShow,S.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(RQ),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":S.isSelected,"onUpdate:modelValue":F=>L(F,S)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Aee,[e.createElementVNode("div",zee,e.toDisplayString(S.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>Z(S)},Ree,8,Iee)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>q(S)},Uee,8,Oee)),e.createElementVNode("div",Gee,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:S.player_photo,alt:"player photo"},null,8,Hee)])]),e.createElementVNode("div",Jee,e.toDisplayString(S.player_name),1)]),e.createElementVNode("div",qee,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:S.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:F=>R(S)},Kee,10,Zee))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:h,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Xee,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`i-${S.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:S.isOdd}])},[e.createElementVNode("div",Qee,[e.createElementVNode("img",{src:S.team_logo,alt:"team logo"},null,8,ete)]),e.createElementVNode("div",tte,e.toDisplayString(S.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createElementVNode("img",{src:S.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,ate)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createVNode(e.unref(YQ),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:F=>_(S)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(see,{key:1,ref_key:"scrollColumns",ref:n,"available-players":l.value,"is-edit-mode":t.isEditMode,onOpenMedia:_,onClickParameters:g},null,8,["available-players","is-edit-mode"]))],512)],4))}},ote=gp(ite,[["__scopeId","data-v-510e4abc"]]),el=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},tl={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1},title:{type:String,default:"Zona de origen del balón:"},quarters:{type:Array,default:()=>[1,2,3,4]}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,lastSelectedSections:[]}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){if(this.lastSelectedSections.every(a=>t.has(a)))return;const i=Array.from(t).map(Number).sort((a,o)=>a-o);this.lastSelectedSections=[...i],this.$emit("sections-changed",i)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const i=Math.ceil(t/4);this.isQuarterEnabled(i)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const i=Math.ceil(t/4);this.isQuarterEnabled(i)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const i=Math.ceil(t/4);if(!this.isQuarterEnabled(i))return;const a=t.toString();this.selectedSections.size===1&&this.selectedSections.has(a)||(this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState())},toggleAllSections(){if(this.selectAll)for(let t=1;t<=16;t++)this.selectedSections.add(t.toString());else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{this.selectAll=this.selectedSections.size===16})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t){if(this.displayMode)return;const i=Date.now();if(i-this.lastUpdateTime<16)return;this.lastUpdateTime=i;const a=t.toString(),o=Math.ceil(t/4);if(this.isQuarterEnabled(o)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(a)),this.dragSelectMode)this.selectedSections.add(a);else{if(this.selectedSections.size===1&&this.selectedSections.has(a))return;this.selectedSections.delete(a)}this.updateSelectAllState()}},getSectionNumber(t,i){return(t-1)*4+i},getSectionIndex(t,i){return(t-1)*4+i},selectColumn(t){if(!this.isQuarterEnabled(t))return;const i=(t-1)*4+1,a=t*4;if(Array.from({length:4},(o,s)=>(i+s).toString()).every(o=>this.selectedSections.has(o))&&this.selectedSections.size>4)for(let o=i;o<=a;o++)this.selectedSections.delete(o.toString());else for(let o=i;o<=a;o++)this.selectedSections.add(o.toString());this.updateSelectAllState()},isQuarterSelected(t){const i=(t-1)*4+1;return Array.from({length:4},(a,o)=>(i+o).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},bp=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Sp=tl.setup;tl.setup=Sp?(t,i)=>(bp(),Sp(t,i)):bp;const ste={class:"field-template-element"},lte={class:"field-container"},rte=["onMouseenter","onMousedown"],nte={class:"column-buttons"},dte=["onClick","disabled"];function cte(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",ste,[e.createElementVNode("div",lte,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":a.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:i[0]||(i[0]=(...r)=>l.startDragging&&l.startDragging(...r)),onMouseup:i[1]||(i[1]=(...r)=>l.stopDragging&&l.stopDragging(...r)),onMouseleave:i[2]||(i[2]=(...r)=>l.stopDragging&&l.stopDragging(...r))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,r=>e.createElementVNode("div",{key:r,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${r}-${n}`,class:e.normalizeClass(["field-section",{selected:l.isSelected(l.getSectionIndex(r,n)),"display-mode":a.displayMode}]),onMouseenter:d=>s.isDragging&&l.handleDragSelect(l.getSectionIndex(r,n)),onMousedown:e.withModifiers(d=>!a.displayMode&&l.toggleSection(l.getSectionIndex(r,n)),["prevent"])},null,42,rte)),64))])),64))],32),e.createElementVNode("div",nte,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,r=>e.createElementVNode("div",{key:r,class:"column-label"},e.toDisplayString(r)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,r=>e.createElementVNode("button",{key:r,class:e.normalizeClass(["column-button",{selected:l.isQuarterSelected(r),disabled:!l.isQuarterEnabled(r)}]),onClick:n=>l.selectColumn(r),disabled:!l.isQuarterEnabled(r)},e.toDisplayString(r)+"/4 tos ",11,dte)),64))])])])}const pte=el(tl,[["render",cte],["__scopeId","data-v-1f6351a4"]]),al={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,selectedCells:new Array(72).fill(!0)}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){const i=Array.from(t).map(l=>{const[r,n]=l.split("-").map(Number);return{row:r,col:n,value:this.getSequentialNumber(r,n)}}),a={};i.forEach(l=>{a[l.col]||(a[l.col]=[]),a[l.col].push(l)});const o=[];Object.values(a).forEach(l=>{l.sort((n,d)=>d.row-n.row);let r=[l[0]];for(let n=1;n<l.length;n++){const d=l[n];l[n-1].row-d.row===1?r.push(d):(r.length>0&&o.push(r),r=[d])}r.length>0&&o.push(r)});const s=o.sort((l,r)=>{const n=Math.min(...l.map(p=>p.value)),d=Math.min(...r.map(p=>p.value));return n-d}).map(l=>{const r=l.map(n=>n.value).sort((n,d)=>d-n);return r.length===1?[r[0],r[0]]:[r[0],r[r.length-1]]});this.$emit("sections-changed",s)},deep:!0}},methods:{initializeSections(){if(this.initialSections&&this.initialSections.length>0)this.selectedSections.clear(),this.initialSections.forEach(t=>{if(Array.isArray(t)&&t.length===2){const[i,a]=t,o=17-Math.floor((i-1)/21),s=(i-1)%21+1,l=17-Math.floor((a-1)/21),r=(a-1)%21+1;if(s===r){const n=Math.min(o,l),d=Math.max(o,l);for(let p=n;p<=d;p++)this.selectedSections.add(this.getSectionId(p,s))}else{const n=Math.min(s,r),d=Math.max(s,r);for(let p=n;p<=d;p++){const f=p===s?o:1,y=p===r?l:17;for(let h=Math.min(f,y);h<=Math.max(f,y);h++)this.selectedSections.add(this.getSectionId(h,p))}}}});else for(let t=1;t<=17;t++)for(let i=1;i<=21;i++)this.selectedSections.add(this.getSectionId(t,i));this.updateSelectAllState()},getSectionId(t,i){return`${t}-${i}`},isSelected(t,i){return this.selectedSections.has(this.getSectionId(t,i))},toggleSection(t,i){const a=this.getSectionId(t,i);this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let i=1;i<=21;i++)this.selectedSections.add(this.getSectionId(t,i));else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{let t=357;this.selectAll=this.selectedSections.size===t})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t,i){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const o=this.getSectionId(t,i);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(o)),this.dragSelectMode?this.selectedSections.add(o):this.selectedSections.delete(o),this.updateSelectAllState()},getSequentialNumber(t,i){return(17-t)*21+i}}},Cp=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},wp=al.setup;al.setup=wp?(t,i)=>(Cp(),wp(t,i)):Cp;const mte={class:"field-template-element"},yte={class:"field-container"},hte={key:0,class:"select-all-container"},ute={class:"select-all-label"},fte=["onMouseenter","onMousedown"];function gte(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",mte,[e.createElementVNode("div",yte,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hte,[e.createElementVNode("label",ute,[i[5]||(i[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>s.selectAll=r),onChange:i[1]||(i[1]=(...r)=>l.toggleAllSections&&l.toggleAllSections(...r))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:i[2]||(i[2]=(...r)=>l.startDragging&&l.startDragging(...r)),onMouseup:i[3]||(i[3]=(...r)=>l.stopDragging&&l.stopDragging(...r)),onMouseleave:i[4]||(i[4]=(...r)=>l.stopDragging&&l.stopDragging(...r))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${r}-${n}`,class:e.normalizeClass(["field-section",{selected:l.isSelected(r,n),"display-mode":a.displayMode}]),onMouseenter:d=>s.isDragging&&l.handleDragSelect(r,n),onMousedown:e.withModifiers(d=>!a.displayMode&&l.toggleSection(r,n),["prevent"])},null,42,fte)),64))],64))),64))],32),i[6]||(i[6]=e.createStaticVNode('<div class="attack-direction" data-v-389c50fa><div class="arrow-line" data-v-389c50fa></div><span class="attack-text" data-v-389c50fa>Ataca</span><div class="arrow-line" data-v-389c50fa></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-389c50fa><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-389c50fa></polygon></svg></div>',1))])])}const _te=el(al,[["render",gte],["__scopeId","data-v-389c50fa"]]),bte={components:{FieldGolStatsTemplates:pte,FieldTemplatesElement:_te},name:"ModalPassConditions",props:{isVisible:{type:Boolean,required:!0},parameters:{type:Object,required:!0}},data(){return{quarters:[1,2],userId:24254,originSelection:[],destinationSelection:[],selectAllOrigin:!1,selectAllDestination:!1,minDistanceX:.5,minDistanceY:.5,minDistanceTotal:.5}},methods:{isArrayOfArrays(t){return Array.isArray(t)&&t.length>0&&t.every(i=>Array.isArray(i))},closeModal(){this.$emit("update:isVisible",!1)},updateOriginSelection(t){this.originSelection=t},updateDestinationSelection(t){this.destinationSelection=t},clearFilters(){this.originSelection=[],this.destinationSelection=[],this.selectAllOrigin=!1,this.selectAllDestination=!1,this.minDistanceX=0,this.minDistanceY=0,this.minDistanceTotal=0},applyFilters(){this.$emit("update:isVisible",!1)}}},Ste={key:0,class:"modal-wrapper"},Cte={class:"modal-overlay"},wte={class:"modal-container"},kte={class:"modal-content"},Ete={class:"modal-header"},Vte={class:"fields-container"},xte={class:"field-section"},Nte={class:"field-section"},Tte={class:"distance-section"},Bte={class:"distance-info"},Fte={class:"info-row"},Pte={class:"info-value"},$te={class:"info-row"},Ate={class:"info-value"},zte={class:"info-row"},Ite={class:"info-value"},Mte={class:"distance-section"},Lte={class:"distance-info"},Dte={class:"info-row"},Rte={class:"info-value"},Ote={class:"info-row"},jte={class:"info-value"},vte={class:"info-row"},Wte={class:"info-value"};function Ute(t,i,a,o,s,l){var r,n,d,p,f,y,h,c,u,m,g,_;const k=e.resolveComponent("FieldGolStatsTemplates"),W=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",Ste,[e.createElementVNode("div",Cte,[e.createElementVNode("div",wte,[e.createElementVNode("div",kte,[e.createElementVNode("div",Ete,[i[2]||(i[2]=e.createStaticVNode('<div class="header-content" data-v-834c0128><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-inspector="src/components/GSCTemplates.vue:100:15" data-v-a08c9209="" data-v-834c0128><path d="M5.18088 2.68185L3.12463 4.74435L2.31838 3.93185C2.20069 3.81416 2.04107 3.74805 1.87463 3.74805C1.70819 3.74805 1.54857 3.81416 1.43088 3.93185C1.31319 4.04954 1.24707 4.20917 1.24707 4.3756C1.24707 4.54204 1.31319 4.70166 1.43088 4.81935L2.68088 6.06935C2.73898 6.12793 2.80811 6.17443 2.88427 6.20616C2.96043 6.23789 3.04212 6.25423 3.12463 6.25423C3.20714 6.25423 3.28883 6.23789 3.36499 6.20616C3.44115 6.17443 3.51028 6.12793 3.56838 6.06935L6.06838 3.56935C6.12665 3.51108 6.17288 3.4419 6.20442 3.36576C6.23595 3.28962 6.25218 3.20802 6.25218 3.1256C6.25218 3.04319 6.23595 2.96159 6.20442 2.88545C6.17288 2.80931 6.12665 2.74013 6.06838 2.68185C6.0101 2.62358 5.94092 2.57735 5.86478 2.54582C5.78864 2.51428 5.70704 2.49805 5.62463 2.49805C5.54222 2.49805 5.46061 2.51428 5.38447 2.54582C5.30833 2.57735 5.23915 2.62358 5.18088 2.68185Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:101:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 8.125H2.5C2.33424 8.125 2.17527 8.19085 2.05806 8.30806C1.94085 8.42527 1.875 8.58424 1.875 8.75V11.25C1.875 11.4158 1.94085 11.5747 2.05806 11.6919C2.17527 11.8092 2.33424 11.875 2.5 11.875H5C5.16576 11.875 5.32473 11.8092 5.44194 11.6919C5.55915 11.5747 5.625 11.4158 5.625 11.25V8.75C5.625 8.58424 5.55915 8.42527 5.44194 8.30806C5.32473 8.19085 5.16576 8.125 5 8.125ZM4.375 10.625H3.125V9.375H4.375V10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:104:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 13.75H2.5C2.33424 13.75 2.17527 13.8158 2.05806 13.9331C1.94085 14.0503 1.875 14.2092 1.875 14.375V16.875C1.875 17.0408 1.94085 17.1997 2.05806 17.3169C2.17527 17.4342 2.33424 17.5 2.5 17.5H5C5.16576 17.5 5.32473 17.4342 5.44194 17.3169C5.55915 17.1997 5.625 17.0408 5.625 16.875V14.375C5.625 14.2092 5.55915 14.0503 5.44194 13.9331C5.32473 13.8158 5.16576 13.75 5 13.75ZM4.375 16.25H3.125V15H4.375V16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:107:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 9.375H13.125C13.2908 9.375 13.4497 9.30915 13.5669 9.19194C13.6842 9.07473 13.75 8.91576 13.75 8.75C13.75 8.58424 13.6842 8.42527 13.5669 8.30806C13.4497 8.19085 13.2908 8.125 13.125 8.125H8.125C7.95924 8.125 7.80027 8.19085 7.68306 8.30806C7.56585 8.42527 7.5 8.58424 7.5 8.75C7.5 8.91576 7.56585 9.07473 7.68306 9.19194C7.80027 9.30915 7.95924 9.375 8.125 9.375Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:110:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 10.625H8.125C7.95924 10.625 7.80027 10.6908 7.68306 10.8081C7.56585 10.9253 7.5 11.0842 7.5 11.25C7.5 11.4158 7.56585 11.5747 7.68306 11.6919C7.80027 11.8092 7.95924 11.875 8.125 11.875H18.125C18.2908 11.875 18.4497 11.8092 18.5669 11.6919C18.6842 11.5747 18.75 11.4158 18.75 11.25C18.75 11.0842 18.6842 10.9253 18.5669 10.8081C18.4497 10.6908 18.2908 10.625 18.125 10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:113:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 15H13.125C13.2908 15 13.4497 14.9342 13.5669 14.8169C13.6842 14.6997 13.75 14.5408 13.75 14.375C13.75 14.2092 13.6842 14.0503 13.5669 13.9331C13.4497 13.8158 13.2908 13.75 13.125 13.75H8.125C7.95924 13.75 7.80027 13.8158 7.68306 13.9331C7.56585 14.0503 7.5 14.2092 7.5 14.375C7.5 14.5408 7.56585 14.6997 7.68306 14.8169C7.80027 14.9342 7.95924 15 8.125 15Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:116:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 16.25H8.125C7.95924 16.25 7.80027 16.3158 7.68306 16.4331C7.56585 16.5503 7.5 16.7092 7.5 16.875C7.5 17.0408 7.56585 17.1997 7.68306 17.3169C7.80027 17.4342 7.95924 17.5 8.125 17.5H18.125C18.2908 17.5 18.4497 17.4342 18.5669 17.3169C18.6842 17.1997 18.75 17.0408 18.75 16.875C18.75 16.7092 18.6842 16.5503 18.5669 16.4331C18.4497 16.3158 18.2908 16.25 18.125 16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:119:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 3.75H13.125C13.2908 3.75 13.4497 3.68415 13.5669 3.56694C13.6842 3.44973 13.75 3.29076 13.75 3.125C13.75 2.95924 13.6842 2.80027 13.5669 2.68306C13.4497 2.56585 13.2908 2.5 13.125 2.5H8.125C7.95924 2.5 7.80027 2.56585 7.68306 2.68306C7.56585 2.80027 7.5 2.95924 7.5 3.125C7.5 3.29076 7.56585 3.44973 7.68306 3.56694C7.80027 3.68415 7.95924 3.75 8.125 3.75Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:122:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 6.25H18.125C18.2908 6.25 18.4497 6.18415 18.5669 6.06694C18.6842 5.94973 18.75 5.79076 18.75 5.625C18.75 5.45924 18.6842 5.30027 18.5669 5.18306C18.4497 5.06585 18.2908 5 18.125 5H8.125C7.95924 5 7.80027 5.06585 7.68306 5.18306C7.56585 5.30027 7.5 5.45924 7.5 5.625C7.5 5.79076 7.56585 5.94973 7.68306 6.06694C7.80027 6.18415 7.95924 6.25 8.125 6.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:125:17" data-v-a08c9209="" data-v-834c0128></path></svg><span data-v-834c0128>Elige las condiciones del pase</span></div>',1)),e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=J=>t.$emit("update:isVisible",!1))},i[1]||(i[1]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})],-1)]))]),e.createElementVNode("div",Vte,[e.createElementVNode("div",xte,[l.isArrayOfArrays((r=a.parameters)==null?void 0:r.origin_zones)?(e.openBlock(),e.createBlock(W,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(d=a.parameters)==null?void 0:d.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(k,{key:0,title:"Elige la zona de origen del balón:","initial-sections":(n=a.parameters)==null?void 0:n.origin_zones,"display-mode":!0},null,8,["initial-sections"]))]),e.createElementVNode("div",Nte,[l.isArrayOfArrays((p=a.parameters)==null?void 0:p.destiny_zones)?(e.openBlock(),e.createBlock(W,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(y=a.parameters)==null?void 0:y.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(k,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(f=a.parameters)==null?void 0:f.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",Tte,[i[6]||(i[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",Bte,[e.createElementVNode("div",Fte,[i[3]||(i[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Pte,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_distance_x)+" m",1)]),e.createElementVNode("div",$te,[i[4]||(i[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Ate,e.toDisplayString((c=a.parameters)==null?void 0:c.minimum_distance_y)+" m",1)]),e.createElementVNode("div",zte,[i[5]||(i[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Ite,e.toDisplayString((u=a.parameters)==null?void 0:u.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",Mte,[i[10]||(i[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",Lte,[e.createElementVNode("div",Dte,[i[7]||(i[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Rte,e.toDisplayString((m=a.parameters)==null?void 0:m.maximum_distance_x)+" m",1)]),e.createElementVNode("div",Ote,[i[8]||(i[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",jte,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",vte,[i[9]||(i[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Wte,e.toDisplayString((_=a.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const Gte=el(bte,[["render",Ute],["__scopeId","data-v-834c0128"]]),Hte={computed:{sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsFontMS(){const t=this.elementSize.width;return t<=600?"12px":t<=768?"13px":"14px"},sizeTabsMS(){const t=this.elementSize.width;return t<=480?"145px":t<=600?"153px":t<=620?"163px":t<=640?"170px":t<=660?"175px":t<=680?"180px":t<=700?"185px":t<=720?"195px":"200px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"68px":t<=330?"73px":t<=340?"78px":t<=350?"82px":t<=360||t<=370?"90px":t<=390?"95px":t<=410?"105px":t<=430?"110px":t<=450?"117px":t<=470?"122px":t<=500?"130px":t<=530?"138px":t<=560?"155px":t<=590?"163px":t<=620?"175px":t<=650?"180px":t<=680?"195px":t<=730?"210px":t<=768?"100px":"110px"},textleyemdmultipleleaguesClass(){return this.elementSize.width<=380?this.$style.textleyemdmultipleleagues380:this.$style.textleyemdmultipleleagues},dropdownParentClass(){return this.elementSize.width<=730?this.$style.dropdownParent730:this.$style.dropdownParent},descubreVideosClass(){const t=this.elementSize.width;return t<=960?this.$style.descubreVideos960:t<=1232?this.$style.descubreVideos1232:this.$style.descubreVideos},quitarFiltrosClass(){const t=this.elementSize.width;return t<=380?this.$style.quitarFiltros380:t<=480?this.$style.quitarFiltros480:t<=730?this.$style.quitarFiltros730:this.$style.quitarFiltros},mejoresJugadoresClass(){const t=this.elementSize.width;return t<=480?this.$style.mejoresJugadores480:t<=730?this.$style.mejoresJugadores730:this.$style.mejoresJugadores},menuSectionClass(){return this.elementSize.width<=960?this.$style.menuSection960:this.$style.menuSection},menuSectionPlayClass(){return this.elementSize.width<=960?this.$style.menuSectionPlay960:this.$style.menuSectionPlay},topFiltersClass(){const t=this.elementSize.width;return t<=420?this.$style.topFilters420:t<=460?this.$style.topFilters460:t<=1232?this.$style.topFilters1232:this.$style.topFilters},toniKroosWrapperClass(){const t=this.elementSize.width;return t<=319?this.$style.toniKroosWrapper320:t<=420?this.$style.toniKroosWrapper420:t<=916?this.$style.toniKroosWrapper760:t<=975?this.$style.toniKroosWrapper975:t<=1079?this.$style.toniKroosWrapper1080:this.$style.toniKroosWrapper},containerTablesClass(){const t=this.elementSize.width;return t<=319?this.$style.containerTables320:t<=916?this.$style.containerTables760:t<=1079?this.$style.containerTables960:this.$style.containerTables},containerTheBestClass(){const t=this.elementSize.width;return t<=319?this.$style.containerTheBest320:t<=960?this.$style.containerTheBest960:t<=1232?this.$style.containerTheBest1232:this.$style.containerTheBest},menuSectionHeaderClass(){const t=this.elementSize.width;return t<=730?this.$style.menuSectionHeader730:t<=960?this.$style.menuSectionHeader960:t<=1232?this.$style.menuSectionHeader1232:this.$style.menuSectionHeader},losMejoresClass(){const t=this.elementSize.width;return t<=380?this.$style.losMejores380:t<=530?this.$style.losMejores530:t<=730?this.$style.losMejores730:this.$style.losMejores},dropdownClass(){return this.elementSize.width<=730?this.$style.dropdown730:this.$style.dropdown},dropdown1Class(){return this.elementSize.width<=730?this.$style.dropdown1730:this.$style.dropdown1},menuSectionParentHeaderClass(){const t=this.elementSize.width;return t<=430?this.$style.menuSectionParentHeader430:t<=730?this.$style.menuSectionParentHeader730:t<=960?this.$style.menuSectionParentHeader960:t<=1232?this.$style.menuSectionParentHeader1232:this.$style.menuSectionParentHeader},templateLosMejoresClass(){const t=this.elementSize.width;return t<=319?this.$style.templateLosMejores320:t<=350?this.$style.templateLosMejores350:t<=420?this.$style.templateLosMejores420:t<=540?this.$style.templateLosMejores540:t<=960?this.$style.templateLosMejores960:t<=1232?this.$style.templateLosMejores1232:this.$style.templateLosMejores},containerMenuClass(){return this.elementSize.width<=760?this.$style.containerMenu760:this.$style.containerMenu},titleSectionClass(){return this.elementSize.width<=540?this.$style.titleSection540:this.$style.titleSection},containerSectionClass(){const t=this.elementSize.width;return t<=319?this.$style.containerSection320:t<=350?this.$style.containerSection350:t<=960?this.$style.containerSection960:t<=1232?this.$style.containerSection1232:this.$style.containerSection},containerSectionPlayClass(){const t=this.elementSize.width;return t<=319?this.$style.containerSectionPlay320:t<=350?this.$style.containerSectionPlay350:t<=960?this.$style.containerSectionPlay960:t<=1232?this.$style.containerSectionPlay1232:this.$style.containerSectionPlay},filtersContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.filtersContainer420:t<=760?this.$style.filtersContainer760:t<=1232?this.$style.filtersContainer1232:this.$style.filtersContainer},topFiltersParentClass(){const t=this.elementSize.width;return t<=420?this.$style.topFiltersParent420:t<=460?this.$style.topFiltersParent460:t<=1232?this.$style.topFiltersParent1232:this.$style.topFiltersParent}}},Jte="_tablePosition_s65tc_46",qte="_tablePositionWrapper_s65tc_62",Zte="_imgHenrryIcon_s65tc_71",Yte="_americaIcon_s65tc_79",Kte="_playerPhoto_s65tc_91",Xte="_toniKroos_s65tc_100",Qte="_shapeIcon_s65tc_111",eae="_menuiconsTeams_s65tc_117",tae="_component31_s65tc_126",aae="_playerName_s65tc_137",iae="_icnPlayIcon_s65tc_145",oae="_goles_s65tc_153",sae="_americaIcon1_s65tc_160",lae="_teamsAmerica_s65tc_174",rae="_topAddPlayer_s65tc_181",nae="_containerData_s65tc_185",dae="_shapeIcon1_s65tc_193",cae="_icnExpand1_s65tc_199",pae="_icnExpand_s65tc_199",mae="_playerData_s65tc_219",yae="_playerInfo_s65tc_230",hae="_headerTop_s65tc_245",uae="_playerRow_s65tc_259",fae="_groupsLeague_s65tc_270",gae="_text_s65tc_279",_ae="_btnViewFullList_s65tc_287",bae="_headerTops_s65tc_304",Sae="_btnVideosOptions_s65tc_376",Cae="_position_s65tc_553",wae="_positionWrapper_s65tc_565",kae="_imgNecaxaIcon_s65tc_573",Eae="_teamLogo_s65tc_579",Vae="_teamPhoto_s65tc_587",xae="_name_s65tc_595",Nae="_icnPlayIconType1_s65tc_603",Tae="_verVideosType1_s65tc_610",Bae="_btnVideosOptionsType1_s65tc_616",Fae="_btnVideosOptions1_s65tc_628",Pae="_leftContainer_s65tc_640",$ae="_shapeIconType1_s65tc_649",Aae="_icnExpandType1_s65tc_654",zae="_arrowExpand_s65tc_664",Iae="_containerInfo_s65tc_672",Mae="_headerTopTeam_s65tc_684",Lae="_containerHeader_s65tc_698",Dae="_goles1_s65tc_707",Rae="_golesType1_s65tc_710",Oae="_golesWrapper_s65tc_715",jae="_btnViewAll_s65tc_724",vae="_headerTopsTeams_s65tc_741",Wae="_arrowExpandIcon_s65tc_858",Uae="_rotate_s65tc_863",Gae={tablePosition:Jte,tablePositionWrapper:qte,imgHenrryIcon:Zte,americaIcon:Yte,playerPhoto:Kte,toniKroos:Xte,shapeIcon:Qte,menuiconsTeams:eae,component31:tae,playerName:aae,icnPlayIcon:iae,goles:oae,americaIcon1:sae,teamsAmerica:lae,topAddPlayer:rae,containerData:nae,shapeIcon1:dae,icnExpand1:cae,icnExpand:pae,playerData:mae,playerInfo:yae,headerTop:hae,playerRow:uae,groupsLeague:fae,text:gae,btnViewFullList:_ae,headerTops:bae,btnVideosOptions:Sae,position:Cae,positionWrapper:wae,imgNecaxaIcon:kae,teamLogo:Eae,teamPhoto:Vae,name:xae,icnPlayIconType1:Nae,verVideosType1:Tae,btnVideosOptionsType1:Bae,btnVideosOptions1:Fae,leftContainer:Pae,shapeIconType1:$ae,icnExpandType1:Aae,arrowExpand:zae,containerInfo:Iae,headerTopTeam:Mae,containerHeader:Lae,goles1:Dae,golesType1:Rae,golesWrapper:Oae,btnViewAll:jae,headerTopsTeams:vae,arrowExpandIcon:Wae,rotate:Uae},il={components:{GSCButton:fi},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(t){this.$emit("play",t)},clickMore(t){this.$emit("more",t)},clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},clickFav(t){this.$emit("fav",t)},clickEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},kp=()=>{e.useCssVars(t=>({"585cd937":t.fontSizeTopNum,"32d8991a":t.fontFamilyTopNum,"16a25bef":t.fontColorTopNum,"3f30455f":t.opacityColorTopNum,"74b0c809":t.fontColorName,"051a53f4":t.fontFamilyName,"63f9f751":t.fontSizeName,"91c50268":t.backgroundColorHeader,"1c9cb9e7":t.fontFamilyCategory,"1bdd3278":t.fontSizeCategory,"35011b7c":t.fontColorCategory,"0582c83f":t.borderColorCategory}))},Ep=il.setup;il.setup=Ep?(t,i)=>(kp(),Ep(t,i)):kp;const Hae=["src"],Jae=["src"],qae=["src"],Zae=e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Yae=e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Kae=e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Xae=[Zae,Yae,Kae],Qae=["fill"],eie=["fill"],tie=["src"],aie=["fill"],iie=["fill"];function oie(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.headerTops)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerRow),id:"player-row"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTop)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerPhoto),id:"container-player-photp"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.tablePositionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.tablePosition)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHenrryIcon),alt:"",src:a.data.photo},null,10,Hae),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,Jae)],2),e.createElementVNode("main",{class:e.normalizeClass(t.$style.playerInfo),id:"container-player-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerName)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.toniKroos)},e.toDisplayString(a.data.name),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createVNode(r,{"icon-size":"12px","icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.clickEventMedia(a.data))},null,8,["icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamsAmerica)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon1),alt:"",src:a.data.logo},null,10,qae)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.topAddPlayer)},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[1]||(i[1]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},Xae))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:i[2]||(i[2]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,eie)],10,Qae))],2)],2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.headerTopsTeams)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerHeader),id:"header-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTopTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamPhoto),id:"container-team"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.positionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.position)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamLogo)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgNecaxaIcon),alt:"",src:a.data.logo},null,10,tie)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerInfo)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leftContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(a.data.name_team),3),e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[3]||(i[3]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnVideosOptions1)},[e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.verVideosType1)},e.toDisplayString(a.data.total),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.arrowExpand),onClick:i[5]||(i[5]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,iie)],10,aie))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const sie={$style:Gae},lie=Ce(il,[["render",oie],["__cssModules",sie]]),rie="_rotate_1tou5_3",nie="_positionContainer_1tou5_50",die="_positionContainer620_1tou5_57",cie="_rowwPlayer_1tou5_64",pie="_rowwPlayer960_1tou5_80",mie="_rowwPlayer420_1tou5_95",yie="_rowwPlayer460_1tou5_111",hie="_containerLeft_1tou5_128",uie="_containerLeft420_1tou5_136",fie="_containerLeft620_1tou5_144",gie="_iconFavoritesType1_1tou5_151",_ie="_iconFavoritesType1320_1tou5_159",bie="_iconFavorites_1tou5_151",Sie="_iconFavorites420_1tou5_175",Cie="_playerContainer_1tou5_183",wie="_playerContainer420_1tou5_195",kie="_playerContainer460_1tou5_207",Eie="_playerContainerType1_1tou5_219",Vie="_playerContainerType1320_1tou5_229",xie="_playerContainerType1460_1tou5_239",Nie="_imgPlayerIcon_1tou5_249",Tie="_imgPlayerIcon460_1tou5_259",Bie="_imgPlayerIcon420_1tou5_269",Fie="_manchesterUnited_1tou5_279",Pie="_manchesterUnited360_1tou5_290",$ie="_manchesterUnited420_1tou5_301",Aie="_manchesterUnited460_1tou5_312",zie="_containerRight_1tou5_323",Iie="_containerRight960_1tou5_332",Mie="_containerRight420_1tou5_342",Lie="_numberOfVideos_1tou5_353",Die="_numberOfVideos620_1tou5_359",Rie="_block02_1tou5_365",Oie="_block02960_1tou5_375",jie="_block02620_1tou5_384",vie="_block02420_1tou5_391",Wie="_verVideos_1tou5_399",Uie="_verVideos620_1tou5_405",Gie="_numberPosition_1tou5_408",Hie="_shapeIcon_1tou5_414",Jie="_chivasIcon_1tou5_419",qie="_imgTeamIcon_1tou5_430",Zie="_teamName_1tou5_435",Yie="_nameTeam_1tou5_441",Kie="_dfC_1tou5_450",Xie="_position_1tou5_50",Qie="_age_1tou5_460",eoe="_manchesterUnitedIcon_1tou5_468",toe="_country_1tou5_475",aoe="_playedGames_1tou5_482",ioe="_playedMinutes_1tou5_489",ooe="_block01_1tou5_496",soe="_leagueName_1tou5_503",loe="_roleCharacterIcon_1tou5_509",roe="_btnVideos_1tou5_517",noe="_containerBtnVideos_1tou5_532",doe="_containerBtnVideos620_1tou5_542",coe="_containesOptions_1tou5_551",poe="_arrowExpandIcon_1tou5_558",moe="_rowTeam_1tou5_567",yoe="_rowTeam420_1tou5_585",hoe="_rowTeam320_1tou5_603",uoe="_rowTeam460_1tou5_622",foe="_rowTeam350_1tou5_641",goe="_containerLeftType1_1tou5_659",_oe="_containerLeftType1680_1tou5_665",boe="_containerLeftType1320_1tou5_672",Soe="_containerLeftType1350_1tou5_680",Coe="_positionContainertype1_1tou5_687",woe="_positionContainertype1380_1tou5_695",koe="_positionContainertype1680_1tou5_703",Eoe="_positionContainertype1420_1tou5_711",Voe="_manchesterUnitedType1_1tou5_719",xoe="_manchesterUnitedType1460_1tou5_725",Noe="_manchesterUnitedType1320_1tou5_732",Toe="_containerRightType1_1tou5_739",Boe="_containerRightType1420_1tou5_750",Foe="_containerRightType1320_1tou5_761",Poe="_teamNameWrapperType1_1tou5_772",$oe="_teamNameWrapperType1960_1tou5_779",Aoe="_teamNameWrapperType11086_1tou5_786",zoe="_ageWrapperType1_1tou5_793",Ioe="_ageWrapperType1680_1tou5_800",Moe="_ageWrapperType11086_1tou5_808",Loe="_ageType1_1tou5_816",Doe="_ageType1960_1tou5_824",Roe="_playedGamesWrapperType1_1tou5_827",Ooe="_playedGamesWrapperType1680_1tou5_834",joe="_playedGamesWrapperType1960_1tou5_837",voe="_playedGamesType1_1tou5_840",Woe="_playedGamesType1540_1tou5_847",Uoe="_playedGamesType1960_1tou5_851",Goe="_playedGamesType11086_1tou5_854",Hoe="_playedMinutesWrapperType1_1tou5_857",Joe="_playedMinutesWrapperType11086_1tou5_864",qoe="_playedMinutesType1_1tou5_871",Zoe="_playedMinutesType1680_1tou5_878",Yoe="_block02Type1_1tou5_881",Koe="_block02Type1680_1tou5_889",Xoe="_block02Type1320_1tou5_897",Qoe="_block02Type1350_1tou5_906",ese="_leagueNameWrapperType1_1tou5_914",tse="_leagueNameWrapperType1680_1tou5_922",ase="_leagueNameWrapperType1960_1tou5_925",ise="_leagueNameType1_1tou5_933",ose="_leagueNameType1960_1tou5_943",sse="_numberOfVideosType1_1tou5_953",lse="_numberOfVideosType1680_1tou5_960",rse="_numberOfVideosType11232_1tou5_967",nse="_vectorIconType1_1tou5_974",dse="_block01TitlesType1_1tou5_991",cse="_numberPositionType1_1tou5_998",pse="_shapeIconType1_1tou5_1004",mse="_tijuanaIconType1_1tou5_1010",yse="_tijuanaWrapperType1_1tou5_1016",hse="_tijuanaWrapperType1NoBg_1tou5_1027",use="_teamNameType1_1tou5_1035",fse="_roleCharacterIconType1_1tou5_1042",gse="_verVideosType1_1tou5_1049",_se="_btnVideosType1_1tou5_1055",bse="_containerBtnVideosType1_1tou5_1070",Sse="_containesOptionsType1_1tou5_1081",Cse="_arrowExpandIconType1_1tou5_1089",wse="_templateTablaProductividadType1_1tou5_1095",kse="_verVideosType11232_1tou5_1107",Ese="_templateTablaProductividadType1320_1tou5_1111",Vse="_verVideosType1680_1tou5_1115",xse={rotate:rie,positionContainer:nie,positionContainer620:die,rowwPlayer:cie,rowwPlayer960:pie,rowwPlayer420:mie,rowwPlayer460:yie,containerLeft:hie,containerLeft420:uie,containerLeft620:fie,iconFavoritesType1:gie,iconFavoritesType1320:_ie,iconFavorites:bie,iconFavorites420:Sie,playerContainer:Cie,playerContainer420:wie,playerContainer460:kie,playerContainerType1:Eie,playerContainerType1320:Vie,playerContainerType1460:xie,imgPlayerIcon:Nie,imgPlayerIcon460:Tie,imgPlayerIcon420:Bie,manchesterUnited:Fie,manchesterUnited360:Pie,manchesterUnited420:$ie,manchesterUnited460:Aie,containerRight:zie,containerRight960:Iie,containerRight420:Mie,numberOfVideos:Lie,numberOfVideos620:Die,block02:Rie,block02960:Oie,block02620:jie,block02420:vie,verVideos:Wie,verVideos620:Uie,numberPosition:Gie,shapeIcon:Hie,chivasIcon:Jie,imgTeamIcon:qie,teamName:Zie,nameTeam:Yie,dfC:Kie,position:Xie,age:Qie,manchesterUnitedIcon:eoe,country:toe,playedGames:aoe,playedMinutes:ioe,block01:ooe,leagueName:soe,roleCharacterIcon:loe,btnVideos:roe,containerBtnVideos:noe,containerBtnVideos620:doe,containesOptions:coe,arrowExpandIcon:poe,rowTeam:moe,rowTeam420:yoe,rowTeam320:hoe,rowTeam460:uoe,rowTeam350:foe,containerLeftType1:goe,containerLeftType1680:_oe,containerLeftType1320:boe,containerLeftType1350:Soe,positionContainertype1:Coe,positionContainertype1380:woe,positionContainertype1680:koe,positionContainertype1420:Eoe,manchesterUnitedType1:Voe,manchesterUnitedType1460:xoe,manchesterUnitedType1320:Noe,containerRightType1:Toe,containerRightType1420:Boe,containerRightType1320:Foe,teamNameWrapperType1:Poe,teamNameWrapperType1960:$oe,teamNameWrapperType11086:Aoe,ageWrapperType1:zoe,ageWrapperType1680:Ioe,ageWrapperType11086:Moe,ageType1:Loe,ageType1960:Doe,playedGamesWrapperType1:Roe,playedGamesWrapperType1680:Ooe,playedGamesWrapperType1960:joe,playedGamesType1:voe,playedGamesType1540:Woe,playedGamesType1960:Uoe,playedGamesType11086:Goe,playedMinutesWrapperType1:Hoe,playedMinutesWrapperType11086:Joe,playedMinutesType1:qoe,playedMinutesType1680:Zoe,block02Type1:Yoe,block02Type1680:Koe,block02Type1320:Xoe,block02Type1350:Qoe,leagueNameWrapperType1:ese,leagueNameWrapperType1680:tse,leagueNameWrapperType1960:ase,leagueNameType1:ise,leagueNameType1960:ose,numberOfVideosType1:sse,numberOfVideosType1680:lse,numberOfVideosType11232:rse,vectorIconType1:nse,block01TitlesType1:dse,numberPositionType1:cse,shapeIconType1:pse,tijuanaIconType1:mse,tijuanaWrapperType1:yse,tijuanaWrapperType1NoBg:hse,teamNameType1:use,roleCharacterIconType1:fse,verVideosType1:gse,btnVideosType1:_se,containerBtnVideosType1:bse,containesOptionsType1:Sse,arrowExpandIconType1:Cse,templateTablaProductividadType1:wse,verVideosType11232:kse,templateTablaProductividadType1320:Ese,verVideosType1680:Vse},ol={components:{GSCButton:fi},computed:{manchesterUnitedType1Class(){const t=this.elementSize.width;return t<=320?this.$style.manchesterUnitedType1320:t<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerRightType1320:t<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.teamNameWrapperType1960:t<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.ageWrapperType1680:t<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.playedGamesWrapperType1680:t<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const t=this.elementSize.width;return t<=540?this.$style.playedGamesType1540:t<=960?this.$style.playedGamesType1960:t<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const t=this.elementSize.width;return t<=320?this.$style.block02Type1320:t<=350?this.$style.block02Type1350:t<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.leagueNameWrapperType1680:t<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const t=this.elementSize.width;return t<=680?this.$style.numberOfVideosType1680:t<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerLeftType1320:t<=350?this.$style.containerLeftType1350:t<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const t=this.elementSize.width;return t<=380?this.$style.positionContainertype1380:t<=420?this.$style.positionContainertype1420:t<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const t=this.elementSize.width;return t<=320?this.$style.rowTeam320:t<=350?this.$style.rowTeam350:t<=420?this.$style.rowTeam420:t<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const t=this.elementSize.width;return t<=420?this.$style.block02420:t<=620?this.$style.block02620:t<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const t=this.elementSize.width;return t<=420?this.$style.imgPlayerIcon420:t<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const t=this.elementSize.width;return t<=360?this.$style.manchesterUnited360:t<=420?this.$style.manchesterUnited420:t<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const t=this.elementSize.width;return t<=420?this.$style.containerRight420:t<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const t=this.elementSize.width;return t<=320?this.$style.playerContainerType1320:t<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.playerContainer420:t<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeft420:t<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const t=this.elementSize.width;return t<=420?this.$style.rowwPlayer420:t<=460?this.$style.rowwPlayer460:t<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const t=e.ref("myDivRef2"),{elementSize:i}=Re(t);return{myDivRef2:t,elementSize:i}},props:{type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},emitEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},Vp=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},xp=ol.setup;ol.setup=xp?(t,i)=>(Vp(),xp(t,i)):Vp;const Nse={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},Tse=["src"],Bse=["src"],Fse=["src"],Pse=["src"],$se=e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Ase=e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),zse=e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Ise=[$se,Ase,zse],Mse=["fill"],Lse=["fill"],Dse=["src"],Rse=["src"],Ose=["fill"],jse=["fill"],vse=["src"],Wse=["src"],Use=["src"],Gse=["src"],Hse=["fill"],Jse=["fill"];function qse(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Nse,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,Tse),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},[o.elementSize.width<=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.data.player_short),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.data.player_name),1)],64))],2),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,Bse)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,Fse),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,Pse)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.leagueName)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[o.elementSize.width>635?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[1]||(i[1]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),o.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.numberOfVideosClass)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[2]||(i[2]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},Ise))],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[3]||(i[3]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Lse)],10,Mse))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.rowTeamClass),style:e.normalizeStyle(o.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(l.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,Dse)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(a.typeView==0?t.$style.tijuanaWrapperType1:t.$style.tijuanaWrapperType1NoBg)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.tijuanaIconType1),alt:"",src:a.data.team_logo},null,10,Rse)],2),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.teamNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamNameType1)},[e.createTextVNode(" C/"+e.toDisplayString(a.data.frequency)+" ",1),a.data.category!=2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("min")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("segs")],64))],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(l.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[o.elementSize.width>679?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[5]||(i[5]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),e.createElementVNode("div",{class:e.normalizeClass(l.numberOfVideosType1Class)},e.toDisplayString(a.data.total),3)],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[6]||(i[6]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,jse)],10,Ose))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,vse),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,Wse)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,Use),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,Gse)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.league_name),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[e.createVNode(r,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:o.elementSize.width<=680?"83px":a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[7]||(i[7]=n=>l.emitEventMedia(a.data)),style:e.normalizeStyle(o.elementSize.width<=680?o.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[8]||(i[8]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Jse)],10,Hse))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const Zse={$style:xse},Yse=Ce(ol,[["render",qse],["__cssModules",Zse]]),Kse="_containerLeftTitlesPlay_mmyc1_61",Xse="_containerLeftTitles420Play_mmyc1_69",Qse="_containerLeftTitles620Play_mmyc1_77",ele="_containerLeftTitlesTeamPlay_mmyc1_85",tle="_containerLeftTitlesTeam1180Play_mmyc1_93",ale="_containerLeftTitlesTeam1090Play_mmyc1_101",ile="_containerLeftTitlesTeam960Play_mmyc1_109",ole="_containerLeftTitlesTeam860Play_mmyc1_117",sle="_containerLeftTitlesTeam768Play_mmyc1_125",lle="_containerLeftTitlesTeam680Play_mmyc1_133",rle="_containerLeftTitlesTeam620Play_mmyc1_141",nle="_containerLeftTitlesTeam420Play_mmyc1_149",dle="_headTitlesPlay_mmyc1_158",cle="_headTitles960Play_mmyc1_173",ple="_headTitles420Play_mmyc1_188",mle="_headTitles540Play_mmyc1_208",yle="_headTitles460Play_mmyc1_223",hle="_headTitles620Play_mmyc1_238",ule="_positionPlay_mmyc1_253",fle="_position420Play_mmyc1_262",gle="_playerPlay_mmyc1_265",_le="_player420Play_mmyc1_276",ble="_containerRightType1Play_mmyc1_280",Sle="_containerRightTitlesPlay_mmyc1_287",Cle="_containerRightTitles960Play_mmyc1_296",wle="_block02TitlesPlay_mmyc1_305",kle="_block02Titles620Play_mmyc1_313",Ele="_mon1ScoutingPlay_mmyc1_317",Vle="_mon1Scouting960Play_mmyc1_327",xle="_mon1Play_mmyc1_336",Nle="_mon1420Play_mmyc1_345",Tle="_mon1620Play_mmyc1_355",Ble="_icnIconPlay_mmyc1_365",Fle="_icnIcon960Play_mmyc1_370",Ple="_icnIcon420Play_mmyc1_376",$le="_teamTitlePlay_mmyc1_380",Ale="_positionTitlePlay_mmyc1_390",zle="_ageTitlePlay_mmyc1_398",Ile="_partidosPlay_mmyc1_406",Mle="_playedGamesTitlePlay_mmyc1_410",Lle="_playedMinutesTitlePlay_mmyc1_420",Dle="_block01TitlesPlay_mmyc1_429",Rle="_monPlay_mmyc1_436",Ole="_containesOptionsTitlesPlay_mmyc1_445",jle="_templateTablaProductividadType1Play_mmyc1_451",vle="_templateTablaProductividadType1400Play_mmyc1_463",Wle="_headTitlesType1Play_mmyc1_477",Ule="_headTitlesType1420Play_mmyc1_490",Gle="_headTitlesType1400Play_mmyc1_506",Hle="_headTitlesType1540Play_mmyc1_522",Jle="_headTitlesType1460Play_mmyc1_536",qle="_headTitlesType1680Play_mmyc1_550",Zle="_headTitlesType1350Play_mmyc1_563",Yle="_positionType1Play_mmyc1_578",Kle="_positionType1400Play_mmyc1_587",Xle="_teamType1Play_mmyc1_597",Qle="_teamType1400Play_mmyc1_606",ere="_frecuenciaType1Play_mmyc1_616",tre="_frecuenciaType1540Play_mmyc1_624",are="_containerLeftTitlesType1Play_mmyc1_633",ire="_frecuenciaWrapperType1Play_mmyc1_641",ore="_frecuenciaWrapperType1680Play_mmyc1_650",sre="_promedioPartidoType1Play_mmyc1_658",lre="_promedioEstePartidoType1Play_mmyc1_662",rre="_promedioEstePartidoType1960Play_mmyc1_670",nre="_promedioEstePartidoWrapperType1Play_mmyc1_674",dre="_promedioEstePartidoWrapperType11200Play_mmyc1_682",cre="_promedioEstePartidoWrapperType11090Play_mmyc1_691",pre="_promedioEstePartidoWrapperType11086Play_mmyc1_701",mre="_promedioPartidosType1Play_mmyc1_710",yre="_promedioPartidosWrapperType1Play_mmyc1_717",hre="_promedioPartidosWrapperType1960Play_mmyc1_725",ure="_promedioPartidosWrapperType11086Play_mmyc1_728",fre="_partidosJugadosType1Play_mmyc1_731",gre="_partidosJugadosType1960Play_mmyc1_737",_re="_partidosJugadosWrapperType1Play_mmyc1_744",bre="_partidosJugadosWrapperType11200Play_mmyc1_752",Sre="_partidosJugadosWrapperType11180Play_mmyc1_760",Cre="_partidosJugadosWrapperType11170Play_mmyc1_768",wre="_partidosJugadosWrapperType11140Play_mmyc1_776",kre="_partidosJugadosWrapperType11086Play_mmyc1_784",Ere="_partidosJugadosWrapperType1960Play_mmyc1_792",Vre="_partidosJugadosWrapperType1880Play_mmyc1_800",xre="_partidosJugadosWrapperType1860Play_mmyc1_808",Nre="_partidosJugadosWrapperType1830Play_mmyc1_816",Tre="_partidosJugadosWrapperType1790Play_mmyc1_824",Bre="_partidosJugadosWrapperType1930Play_mmyc1_832",Fre="_partidosJugadosWrapperType1770Play_mmyc1_840",Pre="_block01TitlesType1Play_mmyc1_843",$re="_monType1Play_mmyc1_851",Are="_monType1960Play_mmyc1_860",zre="_monType1680Play_mmyc1_870",Ire="_videosType1Play_mmyc1_873",Mre="_videosType1680Play_mmyc1_883",Lre="_videosType1600Play_mmyc1_892",Dre="_videosType1540Play_mmyc1_901",Rre="_videosType1420Play_mmyc1_910",Ore="_videosType1400Play_mmyc1_919",jre="_containesOptionsTitlesType1Play_mmyc1_931",vre="_containesOptionsTitlesType1768Play_mmyc1_939",Wre="_containesOptionsTitlesType1730Play_mmyc1_946",Ure="_containesOptionsTitlesType1690Play_mmyc1_953",Gre="_icnIconType1Play_mmyc1_960",Hre="_icnIconType1420Play_mmyc1_966",Jre="_icnIconType1400Play_mmyc1_973",qre="_block02TitlesType1Play_mmyc1_977",Zre="_block02TitlesType1680Play_mmyc1_984",Yre="_block02TitlesType1350Play_mmyc1_991",Kre="_containerRightTitlesType1Play_mmyc1_998",Xre="_containerRightTitlesType1420Play_mmyc1_1007",Qre={containerLeftTitlesPlay:Kse,containerLeftTitles420Play:Xse,containerLeftTitles620Play:Qse,containerLeftTitlesTeamPlay:ele,containerLeftTitlesTeam1180Play:tle,containerLeftTitlesTeam1090Play:ale,containerLeftTitlesTeam960Play:ile,containerLeftTitlesTeam860Play:ole,containerLeftTitlesTeam768Play:sle,containerLeftTitlesTeam680Play:lle,containerLeftTitlesTeam620Play:rle,containerLeftTitlesTeam420Play:nle,headTitlesPlay:dle,headTitles960Play:cle,headTitles420Play:ple,headTitles540Play:mle,headTitles460Play:yle,headTitles620Play:hle,positionPlay:ule,position420Play:fle,playerPlay:gle,player420Play:_le,containerRightType1Play:ble,containerRightTitlesPlay:Sle,containerRightTitles960Play:Cle,block02TitlesPlay:wle,block02Titles620Play:kle,mon1ScoutingPlay:Ele,mon1Scouting960Play:Vle,mon1Play:xle,mon1420Play:Nle,mon1620Play:Tle,icnIconPlay:Ble,icnIcon960Play:Fle,icnIcon420Play:Ple,teamTitlePlay:$le,positionTitlePlay:Ale,ageTitlePlay:zle,partidosPlay:Ile,playedGamesTitlePlay:Mle,playedMinutesTitlePlay:Lle,block01TitlesPlay:Dle,monPlay:Rle,containesOptionsTitlesPlay:Ole,templateTablaProductividadType1Play:jle,templateTablaProductividadType1400Play:vle,headTitlesType1Play:Wle,headTitlesType1420Play:Ule,headTitlesType1400Play:Gle,headTitlesType1540Play:Hle,headTitlesType1460Play:Jle,headTitlesType1680Play:qle,headTitlesType1350Play:Zle,positionType1Play:Yle,positionType1400Play:Kle,teamType1Play:Xle,teamType1400Play:Qle,frecuenciaType1Play:ere,frecuenciaType1540Play:tre,containerLeftTitlesType1Play:are,frecuenciaWrapperType1Play:ire,frecuenciaWrapperType1680Play:ore,promedioPartidoType1Play:sre,promedioEstePartidoType1Play:lre,promedioEstePartidoType1960Play:rre,promedioEstePartidoWrapperType1Play:nre,promedioEstePartidoWrapperType11200Play:dre,promedioEstePartidoWrapperType11090Play:cre,promedioEstePartidoWrapperType11086Play:pre,promedioPartidosType1Play:mre,promedioPartidosWrapperType1Play:yre,promedioPartidosWrapperType1960Play:hre,promedioPartidosWrapperType11086Play:ure,partidosJugadosType1Play:fre,partidosJugadosType1960Play:gre,partidosJugadosWrapperType1Play:_re,partidosJugadosWrapperType11200Play:bre,partidosJugadosWrapperType11180Play:Sre,partidosJugadosWrapperType11170Play:Cre,partidosJugadosWrapperType11140Play:wre,partidosJugadosWrapperType11086Play:kre,partidosJugadosWrapperType1960Play:Ere,partidosJugadosWrapperType1880Play:Vre,partidosJugadosWrapperType1860Play:xre,partidosJugadosWrapperType1830Play:Nre,partidosJugadosWrapperType1790Play:Tre,partidosJugadosWrapperType1930Play:Bre,partidosJugadosWrapperType1770Play:Fre,block01TitlesType1Play:Pre,monType1Play:$re,monType1960Play:Are,monType1680Play:zre,videosType1Play:Ire,videosType1680Play:Mre,videosType1600Play:Lre,videosType1540Play:Dre,videosType1420Play:Rre,videosType1400Play:Ore,containesOptionsTitlesType1Play:jre,containesOptionsTitlesType1768Play:vre,containesOptionsTitlesType1730Play:Wre,containesOptionsTitlesType1690Play:Ure,icnIconType1Play:Gre,icnIconType1420Play:Hre,icnIconType1400Play:Jre,block02TitlesType1Play:qre,block02TitlesType1680Play:Zre,block02TitlesType1350Play:Yre,containerRightTitlesType1Play:Kre,containerRightTitlesType1420Play:Xre},sl={components:{},computed:{icnIconType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.icnIconType1400Play:t<=420?this.$style.icnIconType1420Play:this.$style.icnIconType1Play},videosType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.videosType1400Play:t<=420?this.$style.videosType1420Play:t<=540?this.$style.videosType1540Play:t<=600?this.$style.videosType1600Play:t<=680?this.$style.videosType1680Play:this.$style.videosType1Play},monType1ClassPlay(){const t=this.elementSize.width;return t<=680?this.$style.monType1680Play:t<=960?this.$style.monType1960Play:this.$style.monType1Play},block02TitlesType1ClassPlay(){const t=this.elementSize.width;return t<=350?this.$style.block02TitlesType1350Play:t<=680?this.$style.block02TitlesType1680Play:this.$style.block02TitlesType1Play},containesOptionsTitlesType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.containesOptionsTitlesType1400Play:t<=690?this.$style.containesOptionsTitlesType1690Play:t<=730?this.$style.containesOptionsTitlesType1730Play:t<=768?this.$style.containesOptionsTitlesType1768Play:this.$style.containesOptionsTitlesType1Play},partidosJugadosWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=770?this.$style.promedioPartidosWrapperType1770Play:t<=790?this.$style.partidosJugadosWrapperType1790Play:t<=830?this.$style.partidosJugadosWrapperType1830Play:t<=860?this.$style.partidosJugadosWrapperType1860Play:t<=880?this.$style.partidosJugadosWrapperType1880Play:t<=930?this.$style.partidosJugadosWrapperType1930Play:t<=960?this.$style.partidosJugadosWrapperType1960Play:t<=1086?this.$style.partidosJugadosWrapperType11086Play:t<=1140?this.$style.partidosJugadosWrapperType11140Play:t<=1170?this.$style.partidosJugadosWrapperType11170Play:t<=1180?this.$style.partidosJugadosWrapperType11180Play:t<=1200?this.$style.partidosJugadosWrapperType11200Play:this.$style.partidosJugadosWrapperType1Play},promedioPartidosWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=960?this.$style.promedioPartidosWrapperType1960Play:t<=1086?this.$style.promedioPartidosWrapperType11086Play:this.$style.promedioPartidosWrapperType1Play},partidosJugadosType1ClassPlay(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960Play:this.$style.partidosJugadosType1Play},templateTablaProductividadType1ClassPlay(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400Play:this.$style.templateTablaProductividadType1Play},promedioEstePartidoType1ClassPlay(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960Play:this.$style.promedioEstePartidoType1Play},headTitlesType1ClassPlay(){const t=this.elementSize.width;return t<=350?this.$style.headTitlesType1350Play:t<=400?this.$style.headTitlesType1400Play:t<=420?this.$style.headTitlesType1420Play:t<=460?this.$style.headTitlesType1460Play:t<=540?this.$style.headTitlesType1540Play:t<=680?this.$style.headTitlesType1680Play:this.$style.headTitlesType1Play},headTitlesClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.headTitles420Play:t<=460?this.$style.headTitles460Play:t<=540?this.$style.headTitles540Play:t<=620?this.$style.headTitles620Play:t<=960?this.$style.headTitles960Play:this.$style.headTitlesPlay},containerLeftTitlesClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitles420Play:t<=620?this.$style.containerLeftTitles620Play:this.$style.containerLeftTitlesPlay},containerLeftTitlesClassTeamPlay(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitlesTeam420Play:t<=620?this.$style.containerLeftTitlesTeam620Play:t<=680?this.$style.containerLeftTitlesTeam680Play:t<=768?this.$style.containerLeftTitlesTeam768Play:t<=860?this.$style.containerLeftTitlesTeam860Play:t<=960?this.$style.containerLeftTitlesTeam960Play:t<=1090?this.$style.containerLeftTitlesTeam1090Play:t<=1180?this.$style.containerLeftTitlesTeam1180Play:this.$style.containerLeftTitlesTeamPlay},icnIconClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.icnIcon420Play:t<=960?this.$style.icnIcon960Play:this.$style.icnIconPlay},mon1ClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.mon1420Play:t<=620?this.$style.mon1620Play:this.$style.mon1Play},mon1ScoutingClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.mon1420Play:t<=960?this.$style.mon1Scouting960Play:this.$style.mon1ScoutingPlay},promedioEstePartidoWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=1086?this.$style.promedioEstePartidoWrapperType11086Play:t<=1090?this.$style.promedioEstePartidoWrapperType11090Play:t<=1200?this.$style.promedioEstePartidoWrapperType11200Play:this.$style.promedioEstePartidoWrapperType1Play},frecuenciaWrapperType1ClassPlay(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680Play:this.$style.frecuenciaWrapperType1Play},frecuenciaType1ClassPlay(){return this.elementSize.width<=540?this.$style.frecuenciaType1540Play:this.$style.frecuenciaType1Play},positionType1ClassPlay(){return this.elementSize.width<=400?this.$style.positionType1400Play:this.$style.positionType1Play},containerRightType1ClassPlay(){return this.elementSize.width<=420?this.$style.containerRightType1420Play:this.$style.containerRightType1Play},containerRightTitlesType1ClassPlay(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420Play:this.$style.containerRightTitlesType1Play},teamType1ClassPlay(){return this.elementSize.width<=400?this.$style.teamType1400Play:this.$style.teamType1Play},playerClassPlay(){return this.elementSize.width<=420?this.$style.player420Play:this.$style.playerPlay},positionClassPlay(){return this.elementSize.width<=420?this.$style.position420Play:this.$style.positionPlay},containerRightTitlesClassPlay(){return this.elementSize.width<=960?this.$style.containerRightTitles960Play:this.$style.containerRightTitlesPlay},block02TitlesClassPlay(){return this.elementSize.width<=620?this.$style.block02Titles960Play:this.$style.block02TitlesPlay}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Re(t);return{myDivRef:t,elementSize:i}},props:{type:{type:Number,default:0},isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"total"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},Np=()=>{e.useCssVars(t=>({"8d117076":t.background,"39ae673e":t.height,"5bb96572":t.fontSize,"71676add":t.fontColor,"8040e1ac":t.fontFamily,"61b44ebb":t.heightTeam}))},Tp=sl.setup;sl.setup=Tp?(t,i)=>(Np(),Tp(t,i)):Np;const ene={ref:"myDivRef"},tne=e.createElementVNode("br",null,null,-1),ane=e.createElementVNode("br",null,null,-1),ine=e.createElementVNode("br",null,null,-1);function one(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",ene,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClassPlay)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.monPlay)},[a.typeStats==="total"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Total")],64)):e.createCommentVNode("",!0),a.typeStats==="average"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("PPP")],64)):e.createCommentVNode("",!0),a.typeStats==="every90"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Cada "),tne,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.mon1ClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.templateTablaProductividadType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(l.headTitlesType1ClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassTeamPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionType1ClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.teamType1ClassPlay)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(l.frecuenciaWrapperType1ClassPlay)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.frecuenciaType1ClassPlay)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.promedioEstePartidoWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(l.promedioEstePartidoType1ClassPlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},"Promedio partido",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},"este Torneo",2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.promedioPartidosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Promedio partido"),ane,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.partidosJugadosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Partidos "),ine,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containesOptionsTitlesType1ClassPlay)},[o.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.monType1ClassPlay)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.videosType1ClassPlay)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClassPlay)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Liga",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[e.createElementVNode("div",{class:e.normalizeClass(l.mon1ScoutingClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const sne={$style:Qre},lne=Ce(sl,[["render",one],["__cssModules",sne]]),rne="_equipo_1lpaa_38",nne="_atlasSeleccin_1lpaa_43",dne="_equipoAtlasSeleccinMexi_1lpaa_47",cne="_aos_1lpaa_51",pne="_span12_1lpaa_55",mne="_nacionalidadMex_1lpaa_58",yne="_manchesterUnited_1lpaa_61",hne="_manchesterUnited12_1lpaa_68",une="_containerInfo_1lpaa_78",fne="_verPerfil12_1lpaa_87",gne="_btnProfile_1lpaa_96",_ne="_containerButton_1lpaa_112",bne="_containerButton2_1lpaa_119",Sne="_dataContainer_1lpaa_125",Cne="_expandedInfoPlayer_1lpaa_135",wne="_containerDataBg_1lpaa_225",kne="_containerDataSm_1lpaa_236",Ene="_span_1lpaa_55",Vne="_manchesterUnited14_1lpaa_247",xne="_filter_1lpaa_252",Nne="_verPerfil_1lpaa_87",Tne="_manchesterUnited8_1lpaa_273",Bne="_manchesterUnitedParent1_1lpaa_279",Fne="_manchesterUnited1_1lpaa_68",Pne="_manchesterUnitedParent_1lpaa_279",$ne="_frameDiv_1lpaa_301",Ane="_infoExpanded_1lpaa_309",zne="_countryFlag_1lpaa_462",Ine={equipo:rne,atlasSeleccin:nne,equipoAtlasSeleccinMexi:dne,aos:cne,span12:pne,nacionalidadMex:mne,manchesterUnited:yne,manchesterUnited12:hne,containerInfo:une,verPerfil12:fne,btnProfile:gne,containerButton:_ne,containerButton2:bne,dataContainer:Sne,expandedInfoPlayer:Cne,containerDataBg:wne,containerDataSm:kne,span:Ene,manchesterUnited14:Vne,filter:xne,verPerfil:Nne,manchesterUnited8:Tne,manchesterUnitedParent1:Bne,manchesterUnited1:Fne,manchesterUnitedParent:Pne,frameDiv:$ne,infoExpanded:Ane,countryFlag:zne},ll={components:{GSCButton:zd},props:{isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"totals"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Re(t);return{myDivRef:t,elementSize:i}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},Bp=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},Fp=ll.setup;ll.setup=Fp?(t,i)=>(Bp(),Fp(t,i)):Bp;const Ie=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),Mne={ref:"myDivRef"},Lne=["src"],Dne=Ie(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Rne=Ie(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),One=Ie(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),jne=Ie(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),vne=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Wne=Ie(()=>e.createElementVNode("span",null,"xG: ",-1)),Une=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Gne=Ie(()=>e.createElementVNode("span",null,"xG: ",-1)),Hne=Ie(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Jne=Ie(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),qne=Ie(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Zne=Ie(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Yne=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Kne=Ie(()=>e.createElementVNode("span",null,"xG: ",-1));function Xne(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Mne,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.expandedInfoPlayer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.dataContainer),id:"data-container"},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerInfo,a.additionalClass]),id:"container-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},[a.viewTeam?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.equipoAtlasSeleccinMexi)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.equipo)},"Equipo: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.atlasSeleccin)},e.toDisplayString(a.data.teams),3)],2)):e.createCommentVNode("",!0),a.viewAge?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.equipo)},"Edad: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.age)+" años",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)}," ("+e.toDisplayString(a.data.dataofbirth)+")",3)],2)):e.createCommentVNode("",!0),a.viewNationality?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Nacionalidad: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.countryFlag)},[e.createElementVNode("img",{src:a.data.countryFlag},null,8,Lne)],2)],2)],2)):e.createCommentVNode("",!0),a.viewPosition?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Posición: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.isFemale?a.data.position.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):a.data.position),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited12)},[a.viewGames?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"partidos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.games),3)],2)):e.createCommentVNode("",!0),a.viewMin?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Minutos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.min),3)],2)):e.createCommentVNode("",!0),a.viewGoals?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},e.toDisplayString(a.data.category)+": ",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.goals),3)],2)):e.createCommentVNode("",!0),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Efectividad de pases: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[0]||(i[0]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:1,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/add-list-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Agregar","font-size":"10px",onClick:i[1]||(i[1]=n=>l.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Ver grafica","font-size":"10px",onClick:i[2]||(i[2]=n=>l.showGraph(a.data))},null,8,["style"])):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.infoExpanded)},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerDataBg,a.additionalClass])},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Dne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Rne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[One,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals_received),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[jne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.games_played),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited1)},[vne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Wne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited8)},[Une,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness)+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[Gne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerDataSm)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameDiv)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Hne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Jne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[qne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals_received),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Zne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.games_played),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent1)},[a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited14)},[Yne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Kne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2)],2)],2),a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[3]||(i[3]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const rl={components:{GSCCarousel:Od,GSCLeaders:lie,GSCRowTable:Yse,GSCTableHeader:lne,GSCExpandedInfo:Ce(ll,[["render",Xne],["__cssModules",{$style:Ine}],["__scopeId","data-v-83d82c67"]])},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Re(t);return{myDivRef:t,elementSize:i}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,i){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(i)||this.sonConjuntosDistintos(t.setNationalitiesIds,i.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,i){t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},i={},a=[],o=[],s=[];return this.formatFilterStats.map(l=>{t[l.team_id]?(t[l.team_id].total+=l.total,t[l.team_id].uniqueGames.has(l.game_id)||t[l.team_id].uniqueGames.add(l.game_id)):this.teamInfo[l.team_id]&&(t[l.team_id]=this.initializeTeamData(l,this.teamInfo[l.team_id])),l.player_id!==0&&l.player_id!==62117&&(i[l.player_id]?(i[l.player_id].total+=l.total,i[l.player_id].uniqueGames.has(l.game_id)||i[l.player_id].uniqueGames.add(l.game_id)):i[l.player_id]=this.initializePlayerData(l,this.playersInfo[l.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,i),a=this.processTeamData(t),o=this.processPlayerData(i),this.filterTeam!==0&&!this.isTeam&&(s=o.filter(l=>l.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:o)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,i){return t.total>i.total?-1:t.total<i.total?1:t.minutes<i.minutes?-1:t.minutes>i.minutes?1:0},sonConjuntosDistintos(t,i){const a=Array.from(t),o=Array.from(i);if(a.length!==o.length)return!0;for(let s=0;s<a.length;s++)if(!i.has(a[s]))return!0;return!1},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,i){return t.total<i.total?-1:t.total>i.total?1:t.name<i.name?-1:t.name>i.name?1:0},sortAndSlice(t,i){return t.sort((a,o)=>(a.name<o.name?1:-1)&&(a.total<o.total?1:-1)).slice(0,i)},getCategoryName(t){let i="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(i=this.categories[a].name);return i},translateTopCategories(t){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[t]||[]},getCoordinatePointPerCategory(t){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[t]||0},emitEventMedia(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const d=1,p=2,f=3,y=this.isTeam?f:p,h=t.player_id;let c=[],u=this.isTeam?t.id:this.filterTeam;h?this.isTeam?u=h:(c=[h],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?u=t.id:(c=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const m={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:d,playListType:y,gameIds:null,playerIds:c,goalkeeperIds:[],categoryIds:this.translateTopCategories(i),teamId:u||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",m)},emitEventMediaFullTable(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const d=1,p=2,f=3,y=this.isTeam?f:p;let h=[],c=this.isTeam?t.id:this.filterTeam;this.isTeam?c=t.id:(h=[t.id],n=n.filter(m=>!m.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:d,playListType:y,gameIds:null,playerIds:h,goalkeeperIds:[],categoryIds:n,teamId:c||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",u)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,i){this.$emit("clickprofile",{id:t,teamId:i,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let i=[],a={},o={};this.arePlaysEmpty=!1;const s=await he.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){i=s.data.data.map(r=>this.formatStatsData(r)),s.data.teams.forEach(r=>{a[r[0]]={},a[r[0]].id=r[0],a[r[0]].name=r[1],a[r[0]].abrv=r[2],a[r[0]].img=r[3],a[r[0]].effectiveness=r[4],a[r[0]].games_played=r[5],a[r[0]].games_played_lastseason=r[6],a[r[0]].positiontable=r[7],a[r[0]].goals=r[8],a[r[0]].goalsrecived=r[9],a[r[0]].xg=r[10],a[r[0]].frecuency=r[11],a[r[0]].game_avg=r[12],a[r[0]].game_avg_last_season=r[13]});const l=new Set;s.data.players.forEach(r=>{const n=this.getObjectPlayer(r);this.mapPlayers.set(n.numberId,n);const d=n.numberAge,p=n.teamName[0].acronym,f=a[n.teamName[0].team_id].name,y=n.teamName[0].team_id,h=this.positions[n.numberPositionId-1].fullname,c=this.positions[n.numberPositionId-1].name,u=n.countryId[0].nationality_id,m=n.effectiveness,g=n.min,_=n.games,k=n.date;n.arrayNationalities.forEach(W=>{l.add(W.numberId)}),o[r[0]]={id:r[0],name:r[1],img:r[2],age:d,team:p,teamname:f,teamid:y,position:h,positionfull:c,effectiveness:m,country:u,games_played:_,minutes_played:g,nationalityId:g,date:k,nationality:r[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=l,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(i){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(i)}}},filterRecords(t){if(!this.formatStats.length)return[];const i={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!i.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),i.setNationalitiesIds=!0),!Object.values(i).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),o=new Set(t.setPositionsIds),[s,l]=t.arrayAgeRange||[0,100],r=t.setYear||0;return this.formatStats.filter(n=>{const d=this.mapPlayers.get(n.player_id);if(!d||i.playingAs&&!t.playingAs.includes(n.playing_as)||i.matchResult&&!t.matchResult.includes(n.match_result)||i.sections&&!t.sections.includes(n.section)||i.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||i.setNationalitiesIds&&!d.arrayNationalitiesIds.some(p=>a.has(p))||i.setPositionsIds&&!o.has(d.numberPositionId))return!1;if(i.arrayAgeRange){const p=d.numberAge;if(p<s||p>l)return!1}return!(i.setYear&&d.date<r||i.elegible&&t.elegible&&!d.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const i={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return i.hasFilters=this.checkActiveFilters(i),Object.freeze(i)},checkActiveFilters(t){const{basic:i,player:a}=t;return i.playingAs.size>0||i.matchResult.size>0||i.sections.size>0||i.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,i){return t.filter(a=>!(!this.passesBasicFilters(a,i.basic)||i.player&&!this.passesPlayerFilters(a,i.player)))},passesBasicFilters(t,i){const{playingAs:a,matchResult:o,sections:s,zone:l,typeZone:r}=i;if(a.size&&!a.has(t.playing_as)||o.size&&!o.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(l.size){const n=r===1?t.origen:t.destino;if(!l.has(n))return!1}return!0},passesPlayerFilters(t,i){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(i.nationalTeams.enabled){if(i.nationalTeams.players.size&&!i.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(l=>i.nationalities.has(l)))return!1;const{ageRange:o,yearLimit:s}=i;if(a.numberAge<o[0]||a.numberAge>o[1]||a.date<s||!i.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const i={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,o)=>{i[a]=t[o]}),i},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},formatArrayPaginate(t){const i=Math.ceil(t.length/this.numRows);return Array.from({length:i},(a,o)=>{const s=o*this.numRows,l=s+this.numRows;return t.slice(s,l)})},initializeTeamData(t,i){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:i.id,name:i.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:i.effectiveness,frecuency:i.frecuency,game_avg:i.game_avg,game_avg_last_season:i.game_avg_last_season,games_played:i.games_played,games_played_lastseason:i.games_played_lastseason,positiontable:i.positiontable,goals:i.goals,goalsrecived:i.goalsrecived,xg:i.xg};return this.typeStats==="every90"&&(a.minutes=i.minutes||0),a},initializePlayerData(t,i){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return i?Object.assign(a,{name:i.name,name_short:this.getnameshort(i.name),img:i.img,id:i.id,age:i.age,team:i.team,teamname:i.teamname,teamid:i.teamid,position:i.position,positionId:i.positionId,positionfull:i.positionfull,country:i.country,effectiveness:i.effectiveness,minutes:i.minutes_played,games:i.games_played,date:i.date,nationality:i.nationality,player_country_flag:i.player_country_flag,categoryName:this.categoryName,goals:i.goals||0,goalsrecived:i.goalsrecived||0,xg:i.xg||0,positiontable:i.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,i){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(i).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(i).forEach(a=>{i[a].minutes<90&&delete i[a]})},processTeamData(t){return Object.values(t).sort((i,a)=>a.total-i.total).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},HandlerAddplayer(t){this.$emit("add-player",t)},HandlerShowGraph(t){this.$emit("show-graph",t)}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},Pp=()=>{e.useCssVars(t=>({"14b8a4d8":t.borderRadius,c64876f8:t.borderWidth,c87673be:t.borderColor}))},$p=rl.setup;rl.setup=$p?(t,i)=>(Pp(),$p(t,i)):Pp;const Mi=t=>(e.pushScopeId("data-v-01e14e57"),t=t(),e.popScopeId(),t),Qne={ref:"myDivRef"},ede={class:"text"},tde={class:"groupsLeague"},ade={class:"row-table-carrousel"},ide={key:1,class:"container-no-search-result"},ode={key:0,class:"overlay-loading-top"},sde=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),lde=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),rde=[sde,lde],nde=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),dde=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1));function cde(t,i,a,o,s,l){const r=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),d=e.resolveComponent("GSCExpandedInfo"),p=e.resolveComponent("GSCCarousel"),f=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Qne,[l.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:i[0]||(i[0]=y=>l.clickMore(a.category))},[e.createElementVNode("div",ede,[e.createElementVNode("div",tde,e.toDisplayString(a.categoryName)+" → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.displayData.length>0?(e.openBlock(),e.createBlock(p,{key:0,items:l.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:e.withCtx(({item:y})=>[e.createElementVNode("div",ade,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,(h,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[h.top==="01"?(e.openBlock(),e.createBlock(r,{key:0,onAddPlayer:l.HandlerAddplayer,onMediadata:i[1]||(i[1]=u=>l.emitEventMedia(u,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==h.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:h.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",name:h.name,player_short:h.name_short,player_id:h.id,categoryId:a.category,total:h.total}:{top:"01",logo:h.img,total:h.total,name_team:h.name,player_id:h.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?o.elementSize.width>360?"210px":"130px":o.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["onAddPlayer","type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==h.id&&t.expand,onAddPlayer:l.HandlerAddplayer,onMediadata:i[2]||(i[2]=u=>l.emitEventMedia(u,a.category,a.categoryName)),data:a.typeTable==0?{position:h.top,player_name:h.name,player_short:h.name_short,player_photo:h.img,total:h.total,id:h.id,player_age:h.age,team_abrev:h.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",player_position:h.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+h.country+".jpg",player_games:h.minutes,player_min:h.games,league_name:" Liga MX "}:{position:h.top,team_logo:h.img,team_abrev:h.name,frequency:h.frecuency,promthistournament:h.game_avg,promlasttournament:h.game_avg_last_season,teams_games:"-",category:a.category,total:h.total,id:h.id},height:"71px",background:c%2===0?a.backgroundEven:a.backgroundOdd,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==h.id?(e.openBlock(),e.createBlock(d,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":h.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:h.teamname,age:h.age,dataofbirth:h.date,nationality:h.nationality,countryFlag:h.player_country_flag,position:h.position,games:h.games,min:h.minutes,goals:h.originalTotal||h.total,effectiveness:h.effectiveness,category:a.categoryName,id:h.id}:{position:h.position,goals:h.goals,goals_received:h.goalsrecived,games_played:h.games_played,category:a.categoryName,effectiveness:h.effectiveness,xg:h.xg,total:h.originalTotal||h.total,attendance:"-",id:h.id},onViewprofile:u=>l.viewprofile(u,h.teamid),background:c%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(e.openBlock(),e.createElementBlock("div",ide,[t.isloading?(e.openBlock(),e.createElementBlock("div",ode,rde)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[nde,dde],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(f,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.displayData,(y,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==c.id&&t.expand,onMediadata:i[3]||(i[3]=m=>l.emitEventMediaFullTable(m,a.category,a.categoryName)),onAddPlayer:l.HandlerAddplayer,data:a.typeTable==0?{position:c.top,player_name:c.name,player_short:c.name_short,player_photo:c.img,total:c.total,id:c.id,player_age:c.age,team_abrev:c.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+c.teamid+".png",player_position:c.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+c.country+".jpg",player_games:c.games,player_min:c.minutes,league_name:" Liga MX "}:{position:c.positiontable,team_logo:c.img,team_abrev:c.name,frequency:c.frecuency,promthistournament:c.game_avg,promlasttournament:c.game_avg_last_season,category:a.category,team_games:c.games_played,total:c.total,id:c.id},height:"71px",background:((h+1)*5+u)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==c.id?(e.openBlock(),e.createBlock(d,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":c.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:c.teamname,age:c.age,dataofbirth:c.date,nationality:c.nationality,countryFlag:c.player_country_flag,position:c.position,positionfull:c.positionfull,games:c.games,min:c.minutes,goals:c.originalTotal||c.total,effectiveness:c.effectiveness,category:l.getCategoryName(a.category),id:c.id}:{position:c.positiontable,goals:c.goals,goals_received:c.goalsrecived,games_played:c.games_played,category:a.categoryName,effectiveness:c.effectiveness,xg:c.xg,total:c.originalTotal||c.total,category:l.getCategoryName(a.category),attendance:"-",id:c.id},onViewprofile:m=>l.viewprofile(m,c.teamid),background:u%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const pde=Ce(rl,[["render",cde],["__scopeId","data-v-01e14e57"]]),mde="_filtersContainer_b9wc6_1",yde="_filtersContainer1232_b9wc6_1",hde="_closeFiltersPc_b9wc6_1",ude="_textleyemdmultipleleagues_b9wc6_1",fde="_textleyemdmultipleleagues380_b9wc6_1",gde="_filtersContainer760_b9wc6_1",_de="_filtersContainer460_b9wc6_1",bde="_containerSectionPlay_b9wc6_1",Sde="_containerSectionPlay1232_b9wc6_1",Cde="_containerSectionPlay960_b9wc6_1",wde="_containerSectionPlay320_b9wc6_1",kde="_containerSectionPlay350_b9wc6_1",Ede="_containerSection_b9wc6_1",Vde="_containerSection1232_b9wc6_1",xde="_containerSection960_b9wc6_1",Nde="_containerSection320_b9wc6_1",Tde="_containerSection350_b9wc6_1",Bde="_templateLosMejores_b9wc6_1",Fde="_templateLosMejores1232_b9wc6_1",Pde="_templateLosMejores960_b9wc6_1",$de="_templateLosMejores420_b9wc6_1",Ade="_templateLosMejores320_b9wc6_1",zde="_templateLosMejores540_b9wc6_1",Ide="_templateLosMejores350_b9wc6_1",Mde="_topFiltersParent_b9wc6_1",Lde="_topFiltersParent1232_b9wc6_1",Dde="_topFiltersParent960_b9wc6_1",Rde="_topFiltersParent460_b9wc6_1",Ode="_topFiltersParent420_b9wc6_1",jde="_containerTheBest_b9wc6_1",vde="_containerTheBest1232_b9wc6_1",Wde="_containerTheBest960_b9wc6_1",Ude="_containerTheBest320_b9wc6_1",Gde="_titleSection_b9wc6_1",Hde="_titleSection540_b9wc6_1",Jde="_containerTables_b9wc6_1",qde="_containerTables960_b9wc6_1",Zde="_containerTables760_b9wc6_1",Yde="_containerTables320_b9wc6_1",Kde="_toniKroosWrapper_b9wc6_1",Xde="_toniKroosWrapper1080_b9wc6_1",Qde="_toniKroosWrapper975_b9wc6_1",ece="_toniKroosWrapper760_b9wc6_1",tce="_toniKroosWrapper420_b9wc6_1",ace="_toniKroosWrapper320_b9wc6_1",ice="_frameChild_b9wc6_1",oce="_filtros_b9wc6_1",sce="_groupParent_b9wc6_1",lce="_shapeIcon_b9wc6_1",rce="_btnFilters_b9wc6_1",nce="_btnFiltersPC_b9wc6_1",dce="_quitarFiltros_b9wc6_1",cce="_quitarFiltros730_b9wc6_1",pce="_quitarFiltros480_b9wc6_1",mce="_quitarFiltros380_b9wc6_1",yce="_btnCloseFilters_b9wc6_1",hce="_mejoresJugadores_b9wc6_1",uce="_mejoresJugadores730_b9wc6_1",fce="_mejoresJugadores480_b9wc6_1",gce="_mejoresJugadoresSM_b9wc6_1",_ce="_toniKroos_b9wc6_1",bce="_teamBar_b9wc6_1",Sce="_menuSection_b9wc6_1",Cce="_menuSection960_b9wc6_1",wce="_menuSectionPlay_b9wc6_1",kce="_menuSectionPlay960_b9wc6_1",Ece="_containerMenu_b9wc6_1",Vce="_containerMenu760_b9wc6_1",xce="_containerFilters_b9wc6_1",Nce="_teamBarParent_b9wc6_1",Tce="_topFilters_b9wc6_1",Bce="_topFilters1232_b9wc6_1",Fce="_topFilters420_b9wc6_1",Pce="_topFilters460_b9wc6_1",$ce="_losMejores_b9wc6_1",Ace="_losMejores380_b9wc6_1",zce="_losMejores530_b9wc6_1",Ice="_losMejores730_b9wc6_1",Mce="_menuSectionHeader_b9wc6_1",Lce="_menuSectionHeader1232_b9wc6_1",Dce="_menuSectionHeader960_b9wc6_1",Rce="_menuSectionHeader730_b9wc6_1",Oce="_dropdown_b9wc6_1",jce="_dropdown730_b9wc6_1",vce="_dropdown1_b9wc6_1",Wce="_dropdown1730_b9wc6_1",Uce="_dropdownParent_b9wc6_1",Gce="_dropdownParent730_b9wc6_1",Hce="_menuSectionParentHeader_b9wc6_1",Jce="_menuSectionParentHeader1232_b9wc6_1",qce="_menuSectionParentHeader960_b9wc6_1",Zce="_menuSectionParentHeader730_b9wc6_1",Yce="_menuSectionParentHeader430_b9wc6_1",Kce="_descubreVideos_b9wc6_1",Xce="_descubreVideos1232_b9wc6_1",Qce="_descubreVideos960_b9wc6_1",epe="_allCategories_b9wc6_1",tpe="_containerScountingBtn_b9wc6_3",ape="_btnDeleteAplica_b9wc6_13",ipe="_SearchBtnBar_b9wc6_33",ope="_btnLeyendTxt_b9wc6_52",spe="_BtnSearchScounting_b9wc6_61",lpe="_containerPredefined_b9wc6_85",rpe="_containerPredefinedScounting_b9wc6_92",npe="_titleContainerPredefined_b9wc6_100",dpe="_subtitleContainerPredefined_b9wc6_111",cpe={filtersContainer:mde,filtersContainer1232:yde,closeFiltersPc:hde,textleyemdmultipleleagues:ude,textleyemdmultipleleagues380:fde,filtersContainer760:gde,filtersContainer460:_de,containerSectionPlay:bde,containerSectionPlay1232:Sde,containerSectionPlay960:Cde,containerSectionPlay320:wde,containerSectionPlay350:kde,containerSection:Ede,containerSection1232:Vde,containerSection960:xde,containerSection320:Nde,containerSection350:Tde,templateLosMejores:Bde,templateLosMejores1232:Fde,templateLosMejores960:Pde,templateLosMejores420:$de,templateLosMejores320:Ade,templateLosMejores540:zde,templateLosMejores350:Ide,topFiltersParent:Mde,topFiltersParent1232:Lde,topFiltersParent960:Dde,topFiltersParent460:Rde,topFiltersParent420:Ode,containerTheBest:jde,containerTheBest1232:vde,containerTheBest960:Wde,containerTheBest320:Ude,titleSection:Gde,titleSection540:Hde,containerTables:Jde,containerTables960:qde,containerTables760:Zde,containerTables320:Yde,toniKroosWrapper:Kde,toniKroosWrapper1080:Xde,toniKroosWrapper975:Qde,toniKroosWrapper760:ece,toniKroosWrapper420:tce,toniKroosWrapper320:ace,frameChild:ice,filtros:oce,groupParent:sce,shapeIcon:lce,btnFilters:rce,btnFiltersPC:nce,quitarFiltros:dce,quitarFiltros730:cce,quitarFiltros480:pce,quitarFiltros380:mce,btnCloseFilters:yce,mejoresJugadores:hce,mejoresJugadores730:uce,mejoresJugadores480:fce,mejoresJugadoresSM:gce,toniKroos:_ce,teamBar:bce,menuSection:Sce,menuSection960:Cce,menuSectionPlay:wce,menuSectionPlay960:kce,containerMenu:Ece,containerMenu760:Vce,containerFilters:xce,teamBarParent:Nce,topFilters:Tce,topFilters1232:Bce,topFilters420:Fce,topFilters460:Pce,losMejores:$ce,losMejores380:Ace,losMejores530:zce,losMejores730:Ice,menuSectionHeader:Mce,menuSectionHeader1232:Lce,menuSectionHeader960:Dce,menuSectionHeader730:Rce,dropdown:Oce,dropdown730:jce,dropdown1:vce,dropdown1730:Wce,dropdownParent:Uce,dropdownParent730:Gce,menuSectionParentHeader:Hce,menuSectionParentHeader1232:Jce,menuSectionParentHeader960:qce,menuSectionParentHeader730:Zce,menuSectionParentHeader430:Yce,descubreVideos:Kce,descubreVideos1232:Xce,descubreVideos960:Qce,allCategories:epe,containerScountingBtn:tpe,btnDeleteAplica:ape,SearchBtnBar:ipe,btnLeyendTxt:ope,BtnSearchScounting:spe,containerPredefined:lpe,containerPredefinedScounting:rpe,titleContainerPredefined:npe,subtitleContainerPredefined:dpe},ppe=e.ref(Ys()),mpe=e.ref(dY()),ype=e.ref(pp()),hpe={components:{GSCTableHeader:os,GscSwitchComponent:bs,GSCFilterperteam:Bd,DropdownYears:cp,GSCFilters:Zs,DropdownPositions:dp,GSCExpandedInfo:ys,GSCLabel:Wd,GSCSeasonSelect:ud,GSCTopCategory:pde,GSCTournamentSelect:_d,GSCRowTable:rs},computed:{...Hte.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{...ppe.value}},filterButtonPropsAux(){return{...mpe.value}},filterButtonPropsTournaments(){return{...ype.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!0},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Re(t);return{myDivRefTopsFull:t,elementSize:i}},data(){return{cachedPlayersMap:[],dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},isAvanced:!1,elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],fvTypeStats:"totals",seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,seasonsArray:[{id:1933,tournament:1}],updateTablesfull:0,teamselect:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:T,personalDataFilters:Zt,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{onChangeYear(t){this.personalDataFilters.selectedYear=t},onChangePositions(){},async fillPersonalDataFilters(){try{this.personalDataFilters=await Cv(this.seasonsArray,this.tokenFree)}catch(t){console.error("error",t)}},toggleAdvancedView(){this.isAvanced=!this.isAvanced},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(oe.All),i.clearFilters(oe.AGE_RANGE),i.clearFilters(oe.YEAR),i.clearFilters(oe.NATIONALITY),i.clearFilters(oe.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},HandlerShowGraph(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id);if(o){const s={id:t.id,player_name:o.stringFullName,position:t.position,is_female:(o==null?void 0:o.is_female)||0,team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,nationality:o.stringNationalityName,photo:o.stringImageUrl,countryFlag:o.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id||t.player_id);if(o){const s={player_id:o.numberId,name:o.stringFullName,position:o.numberPositionId,is_female:(o==null?void 0:o.is_female)||0,dob:"",team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:o.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.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(oe.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(oe.AGE_RANGE)):t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(oe.YEAR),this.FVYear=1981,this.personalDataFilters.selectedYear=1981,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(oe.ELIGIBILITY)}this.arrayFiltersPlays.splice(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(i!=-1?this.arrayFiltersPlays[i].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(oe.All),a.clearFilters(oe.AGE_RANGE),a.clearFilters(oe.YEAR),a.clearFilters(oe.NATIONALITY),a.clearFilters(oe.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange?(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let h=0;h<t.nationalities.length;h++)t.nationalities[h].isSelected&&this.fVnationalities.add(t.nationalities[h].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;for(let h=0;h<t.positions.length;h++)t.positions[h].isSelected&&this.fVsetPositionsIds.push(t.positions[h].id);if(t.hasOwnProperty("nationalities"))var l=t.nationalities.filter(h=>h.isSelected===!0);var r=t.positions.filter(h=>h.isSelected===!0);if(r.length==1&&(o=r[0].name),t.hasOwnProperty("nationalities")&&l.length==1&&(s=l[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var d=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersPosition");d!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[d].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(d,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(t.hasOwnProperty("ageLimits")){if(this.arrayFiltersPlays=this.arrayFiltersPlays.filter(h=>h.type!=="onFiltersYear"),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 p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");p!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[p].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(p,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 p=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersAge");p!=-1&&this.arrayFiltersPlays.splice(p,1)}}else if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");y!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[y].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(y,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(oe.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=he.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=he.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(y=>{this.predefinedFiltersMatchLapse[y.toString()]=o[0].match_lapse_combinations[y]}),Object.keys(o[0].playing_as_combinations).forEach(y=>{this.predefinedFiltersPlayingAs[y.toString()]=o[0].playing_as_combinations[y]}),Object.keys(o[0].field_sections_combinations).forEach(y=>{this.predefinedFiltersSections[y.toString()]=o[0].field_sections_combinations[y]}),o[0]){for(let y=0;y<o[0].filter_records.length;y++){var s=o[0].description;if(o[0].filter_records[y].field_sections!==void 0){const c=o[0].filter_records[y].field_sections.toString();(this.predefinedFiltersSections[c]||this.predefinedFiltersSections[c]=="")&&(this.predefinedFiltersSections[c]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[c]):s=s.replace("{field_sections}",this.predefinedFiltersSections[c]))}if(o[0].filter_records[y].match_lapse!==void 0){const c=o[0].filter_records[y].match_lapse.toString();(this.predefinedFiltersMatchLapse[c]||this.predefinedFiltersMatchLapse[c]=="")&&(this.predefinedFiltersMatchLapse[c]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[c]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[c]))}if(o[0].filter_records[y].playing_as!==void 0){const c=o[0].filter_records[y].playing_as.toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[c]))}o[0].filter_records[y].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[y].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:y,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[y].match_result,playingAs:o[0].filter_records[y].playing_as,sections:o[0].filter_records[y].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[y].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let y=0;y<this.arrayPredefinedFilters.length;y++){var n=0,d=new Set,p={},f=this.arrayPredefinedFilters[y].text.replace(/\*.*?\*/,"");if(f=f.replace(/\*/g,""),f=f.replace(/ +/g," "),this.arrayPredefinedFilters[y].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[y].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[y].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[y].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[y].filtersPredefined.start_age,this.arrayPredefinedFilters[y].filtersPredefined.end_age]:this.arrayPredefinedFilters[y].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[y].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[y].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[y].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[y].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[y].filtersPredefined.end_age],this.arrayPredefinedFilters[y].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[y].filtersPredefined.matchResult,this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length;h++)d.add(this.arrayPredefinedFilters[y].filtersPredefined.nationalities[h]);p.setNationalitiesIds=d}else d.add(138),d.add(222),d.add(163),d.add(51),d.add(226),d.add(10),d.add(223),d.add(96),d.add(171),d.add(198),d.add(105),d.add(80),d.add(29),d.add(74),d.add(216),d.add(196),d.add(64),d.add(155),d.add(156),d.add(89),d.add(106),d.add(81),d.add(233),d.add(204),p.setNationalitiesIds=d;this.arrayPredefinedFilters[y].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[y].filtersPredefined.playingAs,this.arrayPredefinedFilters[y].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[y].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[y].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[y].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[y].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[y].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[y].filtersPredefined.typeZone,r.push({id:y+1,name:f,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((f,y)=>f-y).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),d=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=d.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let f=1;f<=p.length;f++)f%2===0||(d=d.replace("*",'<span style="color: #ffff03" >'));else d=d.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=d},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=o,t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const d=a.get(r[0])||{};return{id:d.id,name:d.name,img:d.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var d,p,f,y,h,c,u,m,g,_;const k=o.get(r[0])||{};return{age:k.numberAge,categoryName:s.name,country:(p=(d=k.countryId)==null?void 0:d[0])==null?void 0:p.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:k.min,name:k.stringFullName,name_short:k.stringFullName,nationality:k.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(y=(f=k.countryId)==null?void 0:f[0])==null?void 0:y.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((c=(h=k.teamName)==null?void 0:h[0])==null?void 0:c.acronym)||"",teamid:((m=(u=k.teamName)==null?void 0:u[0])==null?void 0:m.team_id)||"",teamname:((_=(g=k.teamName)==null?void 0:g[0])==null?void 0:_.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=he.create({headers:{Authorization:`${this.token}`}}),i=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=he.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 he.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.fillPersonalDataFilters()}catch(t){throw new Error(t)}}},upe={ref:"myDivRefTopsFull",class:"play-tops"},fpe={key:0,class:"overlay-loading"},gpe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),_pe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),bpe=[gpe,_pe],Spe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),Cpe=[Spe],wpe={style:{display:"contents"}},kpe={style:{display:"contents"}},Epe={key:0,class:"cont-leyemd-multipleleagues"},Vpe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),xpe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},Npe={key:0,style:{"margin-left":"10px"}},Tpe=e.createElementVNode("span",null,"Todas las categorías",-1),Bpe=[Tpe],Fpe=e.createElementVNode("span",null,"Tipo de Jugada",-1),Ppe=e.createElementVNode("span",null,"Filtro GolStats",-1),$pe={key:3,style:{width:"100%",height:"295px"}};function Ape(t,i,a,o,s,l){var r,n,d;const p=e.resolveComponent("GSCTournamentSelect"),f=e.resolveComponent("GSCSeasonSelect"),y=e.resolveComponent("GscSwitchComponent"),h=e.resolveComponent("GSCFilterperteam"),c=e.resolveComponent("GSCFilters"),u=e.resolveComponent("DropdownPositions"),m=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),_=e.resolveComponent("GSCTopCategory"),k=e.resolveComponent("GSCTableHeader"),W=e.resolveComponent("GSCRowTable"),J=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",upe,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",fpe,bpe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(f,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(y,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(f,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(h,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...L)=>l.clickOpenFilters&&l.clickOpenFilters(...L))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...L)=>l.clickCloseFilters&&l.clickCloseFilters(...L))},Cpe,2)):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...L)=>l.openMenuFilters&&l.openMenuFilters(...L))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:mp},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]=(...L)=>l.openMenuFilters&&l.openMenuFilters(...L))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(o.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:i[4]||(i[4]=(...L)=>l.toggleAdvancedView&&l.toggleAdvancedView(...L))},[s.isAvanced?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ocultar avanzado")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ver avanzado")],64))],2),e.withDirectives(e.createElementVNode("div",null,"Liga:",512),[[e.vShow,!s.isAvanced]]),e.createElementVNode("div",{style:e.normalizeStyle(s.isAvanced?"width: auto;":o.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(c,e.mergeProps({key:0,"button-filter-props":s.isAvanced?l.filterButtonPropsTournaments:l.filterButtonProps,width:"100%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",wpe,[e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 61px;"))},"Posición:",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(u,{"dropdown-props":s.dropdownProps,positions:(r=s.personalDataFilters)==null?void 0:r.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(m,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(d=s.personalDataFilters)==null?void 0:d.selectedYear,onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",kpe,[e.withDirectives(e.createVNode(c,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(c,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(c,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(c,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonPropsTournaments,filters:s.personalDataFilters},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","filters","filter-type","season","token","onUpdate:filters"]),[[e.vShow,s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"]])],512),[[e.vShow,s.isAvanced]])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(c,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(c,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(c,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(c,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[5]||(i[5]=(...L)=>l.getScoutingData&&l.getScoutingData(...L))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(c,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(c,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",Epe,[Vpe,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(h,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",xpe," 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",Npe,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(L,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":L.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:L.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(L=>L.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[6]||(i[6]=(...L)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...L))}," 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)},Bpe,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,(L,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(L.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(_,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[L.id],"border-radius":"12px","filters-prop":l.filterChange,category:L.id,"type-table":s.typeTable,categoryName:L.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded","onShowGraph","onAddPlayer"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(L.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(_,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":!1,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(_,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Fpe,e.createTextVNode(" y un "),Ppe,e.createTextVNode(" en la ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("que has seleccionado.")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("parte superior.")],64)):e.createCommentVNode("",!0)],2)],2))],64))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefinedScounting),style:e.normalizeStyle(s.rowScoutingData.length>0?"height: auto;":"")},[s.loadingActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.rowScoutingData.length>0?(e.openBlock(),e.createBlock(k,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(L,G)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:G},[s.teamselectrec==0||s.teamselectrec==L.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(W,{type:2,"is-expanded":s.playerexpand==L.id&&s.expand,onMediadata:l.setMediaData,data:{position:L.position,player_name:L.player_name,player_photo:L.player_photo,total:L.total,id:L.id,player_age:L.player_age,team_abrev:L.team_abrev,team_logo:L.team_logo,player_position:s.positions[L.player_position-1].fullname,player_country_flag:L.player_country_flag,player_games:L.player_games,player_min:L.player_min,league_name:L.league_name,seasons:L.seasons,season_id:L.season_id},height:"71px",background:G%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==L.id?(e.openBlock(),e.createBlock(J,{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:L.team_name,age:L.player_age,dataofbirth:L.date,nationality:L.nationality_name,countryFlag:L.player_country_flag,position:s.positions[L.player_position-1].name,games:L.player_games,min:L.player_min,goals:L.total,effectiveness:"-",category:"total",id:L.id},onViewprofile:Z=>l.viewprofile(Z,L.season_id,L.team_id),background:G%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[7]||(i[7]=(...L)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...L))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[8]||(i[8]=(...L)=>l.getScoutingData&&l.getScoutingData(...L))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",$pe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const zpe={$style:cpe},Ipe=Ce(hpe,[["render",Ape],["__cssModules",zpe]]),Mpe=e.ref(Ys()),Lpe=e.ref(pp()),Dpe={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0},templates:{type:Array,default:()=>[]}},components:{GscSwitchComponent:bs,GSCRadioToggle:zX,ModalAddPlayList:yQ,DropdownTemplates:nY,GSCTableScrollable:ote,GSCFilters:Zs,ModalAddLista:xQ,DropdownYears:cp,DropdownPositions:dp,PlayTops:Ipe,ModalViewVarGolstats:Gte},computed:{filterButtonProps(){return{...Mpe.value}},filterButtonPropsTournamentsAdvanced(){return{...Lpe.value}},sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"90px":t<=330?"95px":t<=340||t<=350?"110px":t<=360?"120px":t<=470?"122px":"130px"},advancedText(){return this.showAdvanced?"Ocultar avanzado":"Ver avanzado"}},data(){return{showModal:!1,currentParameters:{},MobileFilterDesing:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},showtableType:!0,formattedPlayers:[],totalNationalities:0,defaultFiltersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},visibleModalAddPlaylist:!1,showCreatePlaylistModal:!1,filtersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},positions:[{id:1,name:"Portero",fullname:"POR"},{id:2,name:"Defensa central",fullname:"DFC"},{id:3,name:"Lateral por izquierda",fullname:"LI"},{id:4,name:"Lateral por derecha",fullname:"LD"},{id:5,name:"Volante por izquierda",fullname:"VI"},{id:6,name:"Volante por derecha",fullname:"VD"},{id:7,name:"Volante defensivo",fullname:"VDF"},{id:8,name:"Volante ofensivo",fullname:"VO"},{id:9,name:"Delantero",fullname:"DEL"},{id:10,name:"Desconocida",fullname:"Desc"}],tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],filtersTypes:T,personalDataFilters:Zt,personalDataSubFiltersTypes:oe,tournamentsToFilter:NQ,tournamentsToFilterVariables:TQ,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"Poppins-Regular"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},optionSelected:"Los mejores",showVariables:!0,selectedRadioOption:"Variables propias",showAdvanced:!1,isSearchActive:!1,lastSearchFilters:null,seasonsArray:[],activeFilters:[],isLoading:!1,selectedPlayerToAdd:null}},setup(){const t=e.ref("myDivRefTopsBestPlay"),i=e.ref(null),a=e.ref(null),{elementSize:o}=Re(t),{elementSize:s}=Re(i),{elementSize:l}=Re(a);return{myDivRefTopsBestPlay:t,midLayoutRef:i,filterBoxRef:a,elementSize:o,midLayoutSize:s,filterBoxSize:l}},created(){},async mounted(){try{await this.fillPersonalDataFilters(),this.isSearchActive=!0,this.hasTemplates?await new Promise(t=>{const i=()=>{this.filtersObject.template_id?t(!0):setTimeout(i,100)};i()}):(this.selectedRadioOption="Info general",delete this.filtersObject.template_id,this.showVariables=!1,this.checkSearchButton()),await this.toggleSearch()}catch(t){console.error("Error durante la inicialización:",t)}},methods:{onClickParameters(t){this.currentParameters=t,this.showModal=!0},closeModal(){this.showModal=!1},onViewProfile(t){this.$emit("open-profile-player",t)},onAddToList(t){this.selectedPlayerToAdd={player_id:t.objeto_player.player_id,name:t.objeto_player.name,position:t.objeto_player.position_id,is_female:t.objeto_player.is_female||0,dob:t.objeto_player.dob,team_id:t.objeto_player.teams[0].team_id,jersey:t.objeto_player.jersey||0,nationality:t.objeto_player.nationality},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",t)},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),i=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==i},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(i=>i.isSelected).map(i=>i.id),this.seasonsArray=t.filter(i=>i.isSelected).map(i=>({id:i.seasons[0].id,tournamentId:i.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[o,s],this.filtersObject.age_or_year=1}else t.hasOwnProperty("year")?(this.filtersObject.year=t.year,this.filtersObject.age_or_year=0,this.filtersObject.range_age=[]):this.filtersObject.year=0;var i=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=i,this.checkSearchButton()},onFiltersField(t){this.checkSearchButton()},onFiltersUniverse(t){this.filtersObject.minutes_played=Number(t.minutesPlayed),this.filtersObject.last_months=Number(t.lastMonths),this.filtersObject.minutes_played_avg=Number(t.percentMinutesPlayed),this.filtersObject.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1,this.checkSearchButton()},onFiltersProductivity(t){var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filtersObject.categories=i,this.filtersObject.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filtersObject.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filtersObject.red_cards=t.offensesConditions.areRedCardsSelected,this.checkSearchButton()},onChangePositions(t){this.filtersObject.positions=t.filter(i=>i.isSelected&&i.id!==0).map(i=>i.id),this.checkSearchButton()},onChangeYear(t){this.filtersObject.year=t,this.personalDataFilters.selectedYear=t,this.checkSearchButton()},async toggleSearch(){if(this.isSearchActive)try{this.isLoading=!0;const t=await(await fetch("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...this.filtersObject,year:this.filtersObject.year==="Sin límite"?this.personalDataFilters.availableYears[this.personalDataFilters.availableYears.length-1]:this.filtersObject.year})})).json();this.showtableType=!this.filtersObject.template_id,this.formattedPlayers=t.map(i=>({objeto_player:i,player_photo:i.photo,player_name:i.acronym,player_age:this.calculateAge(i.dob),team_abrev:i.teams[0].acronym,jersey:i.jersey||"",nationality:i.nationality,team_name:i.team_name,is_female:i.is_female||0,parameters:i.internal_parameters,position_name:this.positions[i.position_id-1].fullname,player_position:this.positions[i.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${i.nationality_id}.jpg`,player_games:i.games_played,player_min:i.minutes_played,nationality_name:ct[i.nationality_id],league_name:i.tournament_name,seasons:i.seasons,season_id:i.seasons[0],stats:i.stats?i.stats.map(a=>({category_id:a[4]||null,custom_category_id:a[0]||null,name:a[1]||"",total:a[2]||0,seasons:a[3]||null})):[]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(t){console.error("Error al realizar la búsqueda:",t)}finally{this.isLoading=!1}},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},resetFilters(){this.filtersObject=JSON.parse(JSON.stringify(this.defaultFiltersObject)),this.lastSearchFilters=null,this.checkSearchButton()},async fillPersonalDataFilters(){this.seasonsArray,this.tokenFree},async changeTabsGeneral(t){this.optionSelected=t},closeModalAddPlaylist(){this.visibleModalAddPlaylist=!1},ChangeRadio(t){if(!this.hasTemplates){this.selectedRadioOption="Info general";return}typeof t=="string"?(this.selectedRadioOption=t,this.showVariables=t==="Variables propias",t==="Info general"&&delete this.filtersObject.template_id,this.checkSearchButton()):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t&&(this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton())},updateActiveFilters(){const t=[];if(this.filtersObject.tournaments.length>0&&this.filtersObject.tournaments.length!=6)if(this.filtersObject.tournaments.length>1)t.push(`Ligas ${this.filtersObject.tournaments.length}`);else{const i=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));i&&t.push(i.name)}else t.push("Todas las ligas");if(this.filtersObject.nationalities.length>0&&this.filtersObject.nationalities.length!==this.totalNationalities&&this.filtersObject.nationalities.length!==231){const i=this.filtersObject.nationalities.length;i===1?t.push("Nacionalidad "+ct[this.filtersObject.nationalities[0]]):t.push(`${i} nacionalidades`)}if(this.filtersObject.elegibles&&this.filtersObject.elegibles.length>0&&t.push("Nacionalidad Mexicana"),this.filtersObject.positions.length>0&&this.filtersObject.positions.length!==9)if(this.filtersObject.positions.length===1){const i=this.positions.find(a=>a.id===this.filtersObject.positions[0]);i&&t.push(i.name)}else t.push(`${this.filtersObject.positions.length} posiciones de juego`);if(this.filtersObject.year>0&&t.push(`A partir del ${this.filtersObject.year}`),this.filtersObject.range_age.length===2&&t.push(`${this.filtersObject.range_age[0]}-${this.filtersObject.range_age[1]} años`),this.filtersObject.last_months&&this.filtersObject.last_months!==12&&t.push(`Últimos ${this.filtersObject.last_months} meses`),this.filtersObject.minutes_played>0&&t.push(`Min. ${this.filtersObject.minutes_played} min`),this.filtersObject.minutes_played_avg>0&&t.push(`Min. ${this.filtersObject.minutes_played_avg}% min`),this.filtersObject.type_stats!==1){const i=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(i)}this.activeFilters=t},handleCreateList(){this.showCreatePlaylistModal=!0,this.visibleModalAddPlaylist=!1},closeCreatePlaylistModal(){this.showCreatePlaylistModal=!1},changeSeasonId(t){this.$emit("change-season-id",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},topsLoaded(t){this.$emit("tops-loaded",t)},handleCompareClick(){this.formattedPlayers.length>0&&this.$emit("compare-players",this.formattedPlayers)}}},st=t=>(e.pushScopeId("data-v-5441505c"),t=t(),e.popScopeId(),t),Rpe={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},Ope={class:"overlay-loading"},jpe=st(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),vpe=st(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),Wpe=[jpe,vpe],Upe={class:"strip-menu"},Gpe={class:"strip-options-vars"},Hpe={key:0,class:"desktop-layout"},Jpe={class:"left-containers"},qpe={class:"filter-container filter-container-variables container-372"},Zpe={key:0,class:"filter-container filter-container-variables container-291"},Ype=st(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),Kpe={class:"variables-indicator"},Xpe=st(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),Qpe={class:"filter-container-box"},e1e=st(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),t1e={class:"filter-container-box-2"},a1e=st(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),i1e={class:"filter-container-box-3"},o1e={class:"advanced-row-top"},s1e=st(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),l1e={class:"stats-section"},r1e={class:"filters-applied"},n1e=st(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),d1e={class:"filters-tags-wrapper"},c1e={class:"filters-tags"},p1e=st(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),m1e={key:0,class:"no-results"},y1e={key:1,class:"content-container"};function h1e(t,i,a,o,s,l){const r=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("ModalAddPlayList"),d=e.resolveComponent("ModalAddLista"),p=e.resolveComponent("GscSwitchComponent"),f=e.resolveComponent("GSCRadioToggle"),y=e.resolveComponent("DropdownTemplates"),h=e.resolveComponent("GSCFilters"),c=e.resolveComponent("DropdownPositions"),u=e.resolveComponent("DropdownYears"),m=e.resolveComponent("GSCTableScrollable"),g=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{isVisible:s.showModal,"onUpdate:isVisible":i[0]||(i[0]=_=>s.showModal=_),onClose:l.closeModal,parameters:s.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",Rpe,[e.createVNode(n,{isVisible:s.visibleModalAddPlaylist,onClose:l.closeModalAddPlaylist,"user-id":a.userId,onCreateList:l.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(d,{isVisible:s.showCreatePlaylistModal,onClose:l.closeCreatePlaylistModal,"user-id":a.userId,player:s.selectedPlayerToAdd,templates:a.templates.data},null,8,["isVisible","onClose","user-id","player","templates"]),e.withDirectives(e.createElementVNode("div",Ope,Wpe,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",Upe,[e.createVNode(p,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":l.sizeTabsFontMP,width:l.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Gpe,[o.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",Hpe,[e.createElementVNode("div",Jpe,[e.createElementVNode("div",qpe,[a.hasTemplates?(e.openBlock(),e.createBlock(f,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",Zpe,[Ype,e.createElementVNode("div",Kpe,[e.createVNode(y,{"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:i[1]||(i[1]=(..._)=>l.toggleAdvanced&&l.toggleAdvanced(..._))},e.toDisplayString(l.advancedText),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":o.elementSize.width<=480,"mid-layout":o.elementSize.width<=780&&o.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":o.elementSize.width<=780&&o.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":o.elementSize.width<=480}])},[a.hasTemplates?(e.openBlock(),e.createBlock(f,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),o.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[2]||(i[2]=(..._)=>l.toggleAdvanced&&l.toggleAdvanced(..._))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container container-291",{"mobile-container":o.elementSize.width<=480,"mid-container":o.elementSize.width<=780&&o.elementSize.width>480,"container-292":o.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":o.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":o.elementSize.width<=480}])},[e.createVNode(y,{"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["team-id","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),o.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[3]||(i[3]=(..._)=>l.toggleAdvanced&&l.toggleAdvanced(..._))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var _,k;return[s.showAdvanced?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":o.elementSize.width<=890,"layout-480":o.elementSize.width<=480}])},[e.createElementVNode("div",o1e,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(h,e.mergeProps({width:"99.7%","button-filter-props":l.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":l.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(h,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":""},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":l.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(h,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(h,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-75",{"equal-width":o.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[5]||(i[5]=(...W)=>l.toggleSearch&&l.toggleSearch(...W))},"Buscar",2)],2)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":o.elementSize.width<=780,"gap-reduced-850":o.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-tournament":o.elementSize.width<=1e3}])},[Xpe,e.createElementVNode("div",Qpe,[e.createVNode(h,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.tournamentsToFilter,"onUpdate:filters":l.onUpdateTournaments},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-2",{"filter-half-position":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-position":o.elementSize.width<=1e3}])},[e1e,e.createElementVNode("div",t1e,[e.createVNode(c,{"dropdown-props":s.dropdownProps,positions:(_=s.personalDataFilters)==null?void 0:_.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced":o.elementSize.width<=1e3}])},[a1e,e.createElementVNode("div",i1e,[e.createVNode(u,{"dropdown-props":s.dropdownProps,years:(k=s.personalDataFilters)==null?void 0:k.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[4]||(i[4]=(...W)=>l.toggleSearch&&l.toggleSearch(...W))},"Buscar",2)],2)],2)],2))]}),_:1}),s1e,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":o.elementSize.width<=780}])},[e.createElementVNode("div",l1e,[e.createElementVNode("div",r1e,[n1e,e.createElementVNode("div",d1e,[e.createElementVNode("div",c1e,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(_,k)=>(e.openBlock(),e.createElementBlock("span",{key:k,class:"filter-tag"},e.toDisplayString(_),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":o.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:i[6]||(i[6]=(..._)=>l.handleCompareClick&&l.handleCompareClick(..._))},[e.createTextVNode(" Comparar jugadores "),p1e])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",m1e," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",y1e,[e.createVNode(m,{players:s.formattedPlayers,"is-general":s.showtableType,onViewProfile:l.onViewProfile,onAddToList:l.onAddToList,onShowGraph:l.onShowGraph,onOpenMedia:l.onOpenMedia,onClickParameters:l.onClickParameters},null,8,["players","is-general","onViewProfile","onAddToList","onShowGraph","onOpenMedia","onClickParameters"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(g,{key:1,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded,onShowGraph:l.onShowGraph,onAddPlayer:l.onAddPlayer},null,8,["onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)],64)}const u1e=Ce(Dpe,[["render",h1e],["__scopeId","data-v-5441505c"]]),f1e={name:"SwitchTopsType",components:{TopsFull:BX,TopsBestAndPlay:u1e},data(){return{templates:[],hasTemplates:!1,isTemplatesLoaded:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},created(){this.fetchTemplates()},props:{type:{type:Number,default:1},userId:{type:String,required:!0},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1}},methods:{async fetchTemplates(){var t;try{const i=await he.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${this.teamId}/templates`);(t=i.data)!=null&&t.data&&Array.isArray(i.data.data)&&i.data.data.length>0?(this.templates=i.data.data,this.hasTemplates=!0):(this.templates=[],this.hasTemplates=!1)}catch(i){console.error("Error al obtener templates:",i),this.templates=[],this.hasTemplates=!1}finally{this.isTemplatesLoaded=!0}},topsLoaded(t){this.$emit("tops-loaded",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},changeSeasonId(t){this.$emit("change-season-id",t)},comparePlayers(t){this.$emit("compare-players",t)},onOpenMedia(t){this.$emit("open-media",t)},onShowGraph(t){this.$emit("show-graph",t)},onOpenProfilePlayer(t){this.$emit("open-profile-player",t)},onAddToList(t){this.$emit("add-to-list",t)}}};function g1e(t,i,a,o,s,l){const r=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(r,{key:0,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,"team-id":a.teamId,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded},null,8,["onChangeSeasonId","onOpenmedia","team-id","current-season-id","is-selection","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded"])):s.isTemplatesLoaded?(e.openBlock(),e.createBlock(n,{key:1,"team-id":a.teamId,"has-templates":s.hasTemplates,templates:s.templates,onOpenMedia:l.onOpenMedia,onShowGraph:l.onShowGraph,onComparePlayers:l.comparePlayers,onOpenProfilePlayer:l.onOpenProfilePlayer,onAddToList:l.onAddToList,onChangeSeasonId:l.changeSeasonId,onOpenProfileTeam:l.openProfileTeam,onTopsLoaded:l.topsLoaded,"user-id":a.userId},null,8,["team-id","has-templates","templates","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id"])):e.createCommentVNode("",!0)])}const _1e=Ce(f1e,[["render",g1e]]),b1e={class:"elegibles"},Ap=Qt(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=t,o=f=>{i("openmedia",f)},s=f=>{i("open-profile-team",f)},l=f=>{i("open-profile-player",f)};function r(f){i("showGraph",f)}function n(f){i("change-season-id",f)}function d(f){i("tops-loaded",f)}function p(f){i("comparePlayers",f)}return(f,y)=>(e.openBlock(),e.createElementBlock("div",b1e,[e.createVNode(e.unref(_1e),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores",onOpenmedia:o,onComparePlayers:p,onOpenMedia:o,onOpenProfileTeam:s,onOpenProfilePlayer:l,onShowGraph:r,onChangeSeasonId:n,onTopsLoaded:d},null,8,["user-id","team-id"])]))}}),[["__scopeId","data-v-f4842a4e"]]),S1e=(t=>(e.pushScopeId("data-v-e97cf879"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),C1e={class:""},w1e={class:"tabs"},k1e=Qt({__name:"PlayersTrackingMain",props:{tournamentsApiUrl:{type:String,default:""},tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},userType:{type:String,default:"presidents"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},isSeleccionUser:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},userId:{type:Number,default:24254,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:i}){const a=t,o={fontFamily:"Poppins-Light",logosUrl:"https://golstatsimages.blob.core.windows.net/todoelfut/",logoFileType:"png",height:"40px",width:"179px",borderRadius:8,arrowHeight:24,arrowWidth:24,borderType:"solid",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#0d1d29",color:"white",arrowColor:"#CBEE6B"},s=a.userType==="seleccion"?["Detección de jugadores","Lista de seguimientos","Última convocatoria"]:["Detección de jugadores","Lista de seguimientos"],l=e.ref("Detección de jugadores"),r=e.ref({width:0}),n=e.ref(null),d=e.ref(0),p=e.ref(0),f=e.ref([]),y=e.ref([]),h=e.ref(!1),c=e.ref(!1),u=e.ref({}),m=e.ref([]),g=e.ref({});e.ref([]),e.watch(()=>a.tournamentId,P=>{P&&W()},{immediate:!0}),e.watch(()=>a.teamId,async P=>{P&&(await k(),await W())},{immediate:!0});const _=P=>{l.value=P};async function k(){try{const P=[fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/last-call/teams/${a.teamId}/seasons`,{method:"GET",headers:{Authorization:a.token}}),fetch("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",{method:"GET",headers:{Authorization:a.token}})],[U,O]=await Promise.all(P),b=await U.json(),C=await O.json();b.forEach(E=>{E.seasonsIds=new Set(E.seasons.map(v=>v.id)),E.availableTournaments=E.seasonsIds?C.reduce((v,X)=>{if(X.seasons.some(je=>E.seasonsIds.has(je.id))){const je=X.seasons.filter(Ri=>E.seasonsIds.has(Ri.id));v.push({...X.tournament,seasonsIds:E.seasonsIds,seasons:je,teamId:E.team_id})}return v},[]):[]}),m.value=b.filter(E=>E.availableTournaments.length>0),g.value=m.value[0]}catch(P){console.error(P)}}async function W(){try{if(d.value!==a.tournamentId||p.value!==a.teamId){const P=[L()];d.value=a.tournamentId,p.value=a.teamId;const[U]=await Promise.all(P);y.value=U}}catch(P){console.error("Error filling data",P)}}function J(){G().then(P=>{f.value=P})}async function L(){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(P){console.error("Error fetching in followed",P)}}async function G(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${u.value.id}/teams/${u.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(P){console.error("Error fetching last called",P)}}const Z=()=>{n.value&&(r.value.width=n.value.offsetWidth,h.value=r.value.width<700,c.value=r.value.width<420)};e.onMounted(()=>{Z();const P=new ResizeObserver(Z);n.value&&P.observe(n.value)});const q=e.computed(()=>{const P=r.value.width;return P<=560?"170px":(P<=650||P<=768,"225px")}),Y=e.computed(()=>{const P=r.value.width;return P<=460?"12px":P<=650?"13px":P<=768?"14px":"16px"});e.computed(()=>r.value.width<=380?"18px":"22px");const R=e.computed(()=>{switch(l.value){case"Detección de jugadores":return Ap;case"Lista de seguimientos":return OE;case"Última convocatoria":return ym;default:return Ap}}),N=e.computed(()=>c.value||h.value?"100%":"179px"),D=P=>{i("openmedia",P)},$=P=>{i("showGraph",P)},H=P=>{i("open-profile-team",P)},K=P=>{i("open-profile-player",P)},ce=P=>{i("open-profile-player",P)},x=P=>{i("comparePlayers",P)};function w(P){i("change-season-id",P)}function S(P){i("tops-loaded",P)}const F=P=>{u.value=P,J()};function V(P){g.value=P}function j(P){g.value=P}return(P,U)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":h.value}])},[S1e,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":h.value}])},[t.isSeleccionUser&&l.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[e.createVNode(e.unref(t1),e.mergeProps(o,{"model-value":g.value,items:m.value,onInput:V,"onUpdate:modelValue":j}),{default:e.withCtx(({selectedItem:O})=>[e.createElementVNode("div",C1e,e.toDisplayString(O.team_name),1)]),availableItem:e.withCtx(({item:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(B1),{key:0,items:g.value.availableTournaments,width:N.value,onInput:F},null,8,["items","width"])):e.createCommentVNode("",!0)],2)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",w1e,[e.createVNode(e.unref(K1),{type:2,buttons:e.unref(s),"font-family":"Poppins-Medium","selected-option":l.value,"font-size":Y.value,width:q.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:_},null,8,["buttons","selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":l.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R.value),{"parent-width":r.value.width,"user-id":a.userId,"team-id":a.teamId,"user-team-id":a.userTeamId,"last-called-players":f.value,"in-followed-players":y.value,onShowGraph:$,onShowProfile:ce,onOpenmedia:D,onOpenMedia:D,onOpenProfileTeam:H,onOpenProfilePlayer:K,onChangeSeasonId:w,onTopsLoaded:S,onComparePlayers:x},null,40,["parent-width","user-id","team-id","user-team-id","last-called-players","in-followed-players"]))],2)],512))}},[["__scopeId","data-v-e97cf879"]]),E1e={class:"subcategory-group"},V1e={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",E1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(le),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},x1e=ne(V1e,[["__scopeId","data-v-ae6f3d72"]]),N1e={class:"filter-subcategories"},T1e=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",N1e,[(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(x1e,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Li=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),B1e={class:"details__header"},F1e=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),P1e={class:"details__header__checkbox"},$1e={class:"details__body"},A1e={class:"details__body__playing-as"},z1e=["onClick"],I1e={class:"details__header"},M1e=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),L1e={class:"details__header__checkbox"},D1e={class:"details__body"},R1e=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),O1e={class:"details__body__game-section"},j1e=["onClick"],v1e={class:"details__body"},W1e=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),U1e={class:"details__body__game-section"},G1e=["onClick"],H1e=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__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(f=>({"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(f=>f.isSelected)),o=e.computed(()=>i.gameSections.every(f=>f.isSelected)),s=e.computed(()=>i.gameSections.reduce((f,y)=>(y.value<=3?f.firstHalf.push(y):f.secondHalf.push(y),f),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(f){f?i.playingAs.forEach(y=>{y.isSelected=!0}):i.playingAs.forEach((y,h)=>{y.isSelected=h===0})}function n(f){i.playingAs.filter(y=>y.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function d(f){i.gameSections.filter(y=>y.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function p(f){f?i.gameSections.forEach(y=>{y.isSelected=!0}):i.gameSections.forEach((y,h)=>{y.isSelected=h===0})}return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",B1e,[F1e,e.createElementVNode("div",P1e,[e.createVNode(e.unref(le),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",$1e,[e.createElementVNode("div",A1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>n(h)},e.toDisplayString(h.name),11,z1e))),128))])]),e.createElementVNode("div",I1e,[M1e,e.createElementVNode("div",L1e,[e.createVNode(e.unref(le),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",D1e,[R1e,e.createElementVNode("div",O1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>d(h)},e.toDisplayString(h.text),11,j1e))),128))])]),e.createElementVNode("div",v1e,[W1e,e.createElementVNode("div",U1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>d(h)},e.toDisplayString(h.text),11,G1e))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),J1e={class:"filter-field"},q1e=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__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",J1e,[e.createVNode(e.unref(Pr),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),Z1e={class:"subcategory-group"},Y1e={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Z1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(se),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},K1e=re(Y1e,[["__scopeId","data-v-ae6f3d72"]]),X1e={class:"filter-subcategories"},Q1e=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",X1e,[(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(K1e,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Di=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),eme={class:"details__header"},tme=Di(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),ame={class:"details__header__checkbox"},ime={class:"details__body"},ome={class:"details__body__playing-as"},sme=["onClick"],lme={class:"details__header"},rme=Di(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),nme={class:"details__header__checkbox"},dme={class:"details__body"},cme=Di(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),pme={class:"details__body__game-section"},mme=["onClick"],yme={class:"details__body"},hme=Di(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),ume={class:"details__body__game-section"},fme=["onClick"],gme=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const i=t;e.useCssVars(f=>({"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(f=>f.isSelected)),o=e.computed(()=>i.gameSections.every(f=>f.isSelected)),s=e.computed(()=>i.gameSections.reduce((f,y)=>(y.value<=3?f.firstHalf.push(y):f.secondHalf.push(y),f),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(f){f?i.playingAs.forEach(y=>{y.isSelected=!0}):i.playingAs.forEach((y,h)=>{y.isSelected=h===0})}function n(f){i.playingAs.filter(y=>y.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function d(f){i.gameSections.filter(y=>y.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function p(f){f?i.gameSections.forEach(y=>{y.isSelected=!0}):i.gameSections.forEach((y,h)=>{y.isSelected=h===0})}return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",eme,[tme,e.createElementVNode("div",ame,[e.createVNode(e.unref(se),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",ime,[e.createElementVNode("div",ome,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>n(h)},e.toDisplayString(h.name),11,sme))),128))])]),e.createElementVNode("div",lme,[rme,e.createElementVNode("div",nme,[e.createVNode(e.unref(se),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",dme,[cme,e.createElementVNode("div",pme,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>d(h)},e.toDisplayString(h.text),11,mme))),128))])]),e.createElementVNode("div",yme,[hme,e.createElementVNode("div",ume,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>d(h)},e.toDisplayString(h.text),11,fme))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),_me={class:"filter-field"},bme=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",_me,[e.createVNode(e.unref(mc),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));ft.GSCPlayersTracking=k1e,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});
|
|
25
|
+
`+s):a.stack=s}catch{}}throw a}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ft(this.defaults,i);const{transitional:a,paramsSerializer:o,headers:s}=i;a!==void 0&&Bi.assertOptions(a,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),o!=null&&(M.isFunction(o)?i.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:tt.function,serialize:tt.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Bi.assertOptions(i,{baseUrl:tt.spelling("baseURL"),withXsrfToken:tt.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=s&&M.merge(s.common,s[i.method]);s&&M.forEach(["delete","get","head","post","put","patch","common"],c=>{delete s[c]}),i.headers=Ze.concat(l,s);const r=[];let n=!0;this.interceptors.request.forEach(function(c){typeof c.runWhen=="function"&&c.runWhen(i)===!1||(n=n&&c.synchronous,r.unshift(c.fulfilled,c.rejected))});const d=[];this.interceptors.response.forEach(function(c){d.push(c.fulfilled,c.rejected)});let p,f=0,y;if(!n){const c=[Gc.bind(this),void 0];for(c.unshift.apply(c,r),c.push.apply(c,d),y=c.length,p=Promise.resolve(i);f<y;)p=p.then(c[f++],c[f++]);return p}y=r.length;let h=i;for(f=0;f<y;){const c=r[f++],u=r[f++];try{h=c(h)}catch(m){u.call(this,m);break}}try{p=Gc.call(this,h)}catch(c){return Promise.reject(c)}for(f=0,y=d.length;f<y;)p=p.then(d[f++],d[f++]);return p}getUri(t){t=Ft(this.defaults,t);const i=Mc(t.baseURL,t.url,t.allowAbsoluteUrls);return Nc(i,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){Fi.prototype[t]=function(i,a){return this.request(Ft(a||{},{method:t,url:i,data:(a||{}).data}))}}),M.forEach(["post","put","patch"],function(t){function i(a){return function(o,s,l){return this.request(Ft(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Fi.prototype[t]=i(),Fi.prototype[t+"Form"]=i(!0)});const Pi=Fi;class Rs{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](s);o._listeners=null}),this.promise.then=s=>{let l;const r=new Promise(n=>{o.subscribe(n),l=n}).then(s);return r.cancel=function(){o.unsubscribe(l)},r},i(function(s,l,r){o.reason||(o.reason=new qt(s,l,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const i=new AbortController,a=o=>{i.abort(o)};return this.subscribe(a),i.signal.unsubscribe=()=>this.unsubscribe(a),i.signal}static source(){let i;return{token:new Rs(function(a){i=a}),cancel:i}}}const Zj=Rs;function Yj(t){return function(i){return t.apply(null,i)}}function Kj(t){return M.isObject(t)&&t.isAxiosError===!0}const Os={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(Os).forEach(([t,i])=>{Os[i]=t});const Xj=Os;function qc(t){const i=new Pi(t),a=yc(Pi.prototype.request,i);return M.extend(a,Pi.prototype,i,{allOwnKeys:!0}),M.extend(a,i,null,{allOwnKeys:!0}),a.create=function(o){return qc(Ft(t,o))},a}const be=qc(As);be.Axios=Pi,be.CanceledError=qt,be.CancelToken=Zj,be.isCancel=$c,be.VERSION=Hc,be.toFormData=wi,be.AxiosError=ie,be.Cancel=be.CanceledError,be.all=function(t){return Promise.all(t)},be.spread=Yj,be.isAxiosError=Kj,be.mergeConfig=Ft,be.AxiosHeaders=Ze,be.formToJSON=t=>Fc(M.isHTMLForm(t)?new FormData(t):t),be.getAdapter=Uc.getAdapter,be.HttpStatusCode=Xj,be.default=be;const Pt=be,Zt={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"}]},Zc={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"},Yc={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function $i(t){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$i(t)}function ot(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 fe(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function ye(t){fe(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||$i(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Qj(t,i){fe(2,arguments);var a=ye(t),o=ot(i);return isNaN(o)?new Date(NaN):(o&&a.setDate(a.getDate()+o),a)}function ev(t,i){fe(2,arguments);var a=ye(t),o=ot(i);if(isNaN(o))return new Date(NaN);if(!o)return a;var s=a.getDate(),l=new Date(a.getTime());l.setMonth(a.getMonth()+o+1,0);var r=l.getDate();return s>=r?l:(a.setFullYear(l.getFullYear(),l.getMonth(),s),a)}function Ca(t,i){if(fe(2,arguments),!i||$i(i)!=="object")return new Date(NaN);var a=i.years?ot(i.years):0,o=i.months?ot(i.months):0,s=i.weeks?ot(i.weeks):0,l=i.days?ot(i.days):0,r=i.hours?ot(i.hours):0,n=i.minutes?ot(i.minutes):0,d=i.seconds?ot(i.seconds):0,p=ye(t),f=o||a?ev(p,o+a*12):p,y=l||s?Qj(f,l+s*7):f,h=n+r*60,c=d+h*60,u=c*1e3,m=new Date(y.getTime()+u);return m}function Kc(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 Xc(t){fe(1,arguments);var i=ye(t);return i.setHours(0,0,0,0),i}var tv=864e5;function av(t,i){fe(2,arguments);var a=Xc(t),o=Xc(i),s=a.getTime()-Kc(a),l=o.getTime()-Kc(o);return Math.round((s-l)/tv)}function Yt(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=a.getTime()-o.getTime();return s<0?-1:s>0?1:s}var iv=6e4,ov=36e5;function sv(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=a.getFullYear()-o.getFullYear(),l=a.getMonth()-o.getMonth();return s*12+l}function lv(t,i){fe(2,arguments);var a=ye(t),o=ye(i);return a.getFullYear()-o.getFullYear()}function Qc(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 rv(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=Qc(a,o),l=Math.abs(av(a,o));a.setDate(a.getDate()-s*l);var r=+(Qc(a,o)===-s),n=s*(l-r);return n===0?0:n}function js(t,i){return fe(2,arguments),ye(t).getTime()-ye(i).getTime()}var nv={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},dv="trunc";function vs(t){return nv[dv]}function cv(t,i,a){fe(2,arguments);var o=js(t,i)/ov;return vs()(o)}function pv(t,i,a){fe(2,arguments);var o=js(t,i)/iv;return vs()(o)}function mv(t){fe(1,arguments);var i=ye(t);return i.setHours(23,59,59,999),i}function yv(t){fe(1,arguments);var i=ye(t),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function hv(t){fe(1,arguments);var i=ye(t);return mv(i).getTime()===yv(i).getTime()}function uv(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=Yt(a,o),l=Math.abs(sv(a,o)),r;if(l<1)r=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*l);var n=Yt(a,o)===-s;hv(ye(t))&&l===1&&Yt(t,o)===1&&(n=!1),r=s*(l-Number(n))}return r===0?0:r}function fv(t,i,a){fe(2,arguments);var o=js(t,i)/1e3;return vs()(o)}function gv(t,i){fe(2,arguments);var a=ye(t),o=ye(i),s=Yt(a,o),l=Math.abs(lv(a,o));a.setFullYear(1584),o.setFullYear(1584);var r=Yt(a,o)===-s,n=s*(l-Number(r));return n===0?0:n}function ep(t){return fe(1,arguments),ye(t).getFullYear()}function tp(t){fe(1,arguments);var i=ye(t.start),a=ye(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(gv(a,i));var s=Yt(a,i),l=Ca(i,{years:s*o.years});o.months=Math.abs(uv(a,l));var r=Ca(l,{months:s*o.months});o.days=Math.abs(rv(a,r));var n=Ca(r,{days:s*o.days});o.hours=Math.abs(cv(a,n));var d=Ca(n,{hours:s*o.hours});o.minutes=Math.abs(pv(a,d));var p=Ca(d,{minutes:s*o.minutes});return o.seconds=Math.abs(fv(a,p)),o}const _v="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",bv="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",$t={...Zt},ap=new Set([1]);async function Sv(t,i=""){try{const a={Authorization:i||_v},o={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:bv,s=await Pt.get(o+t.id,{headers:a});return s.data?s.data.players:[]}catch(a){return Promise.reject(a)}}async function Cv(t=[],i=""){try{const a=t.map(o=>Sv(o,i));if(a.length){const o=new Set,s=new Date,l=[],r=new Map,n=new Map,d=await Promise.all(a);for(const p of d)for(const f of p){const y=new Date(f.dob),h=ep(y),c=tp({start:y,end:s});r.has(f.nationality_id)||r.set(f.nationality_id,{id:f.nationality_id,isSelected:!0,name:Zc[`${f.nationality_id}`]}),n.has(f.position_id)||n.set(f.position_id,{id:f.position_id,isSelected:!0,name:Yc[`${f.position_id}`]}),o.add(h),l.push(c.years)}return $t.minAge=Math.min(...l),$t.maxAge=Math.max(...l),$t.availableYears=[...o].sort((p,f)=>f-p),$t.nationalities=[...r.values()],$t.positions=[...n.values()],$t.isEligibilitySwitchVisible=t.some(p=>ap.has(p.tournamentId)),$t}else return null}catch(a){return Promise.reject(a)}}const wv={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){o.value&&(o.value.checked=a.modelValue)}function l(r){i("update:modelValue",r.target.checked)}return e.onMounted(()=>{s()}),(r,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:o,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:l},null,544))}},wa=re(wv,[["__scopeId","data-v-e3a6ae4e"]]),At=t=>(e.pushScopeId("data-v-23130339"),t=t(),e.popScopeId(),t),kv={class:"personal-data"},Ev={class:"personal-data__age"},Vv={class:"personal-data__age__toggle"},xv={class:"personal-data__age__range"},Nv={class:"personal-data__age__dropdown"},Tv=At(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),Bv={class:"selected-item"},Fv=At(()=>e.createElementVNode("div",{class:"separator"},null,-1)),Pv={class:"personal-data__nationality-position"},$v={key:0,class:"personal-data__nationality-position__switch"},Av=At(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),zv=At(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Iv={class:"personal-data__nationality-position__nationality"},Mv=At(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),Lv={class:"selected-item"},Dv=At(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Rv={class:"selected-item"},Ov={class:"personal-data__nationality-position__position"},jv=At(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),vv={class:"selected-item"},Wv="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Uv={__name:"TemplatePersonalData",props:{filters:{type:Object,default:()=>null},isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"},awaitForFilters:{type:Boolean,default:!1}},emits:["update:filters"],setup(t,{expose:i,emit:a}){const o=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},l={id:0,name:"Todas las posiciones",isSelected:!1},r=e.ref({...Zt}),n=e.ref(["Por edad","Por año"]),d=e.ref(0),p=e.ref({min:Zt.minAge,max:Zt.maxAge}),f=e.ref(yt),y=e.ref(""),h=e.ref(""),c=e.ref(r.value.availableYears[r.value.availableYears.length-1]),u=e.ref(0),m=e.computed(()=>{const N=r.value.nationalities?[...r.value.nationalities]:[];o.isSeleccion&&N.forEach($=>{$.isSelected=$.id===138});const D=N[0];return(!D||D.id!==0)&&N.unshift(s),N}),g=e.computed(()=>{let N=(o.filter&&o.filter.positions?o.filter.positions:r.value.positions)?[...r.value.positions]:[];const D=N[0];return(!D||D.id!==0)&&N.unshift(l),N.sort(($,H)=>$.id-H.id),N}),_=e.computed(()=>o.season&&o.season.tournamentId&&ap.has(o.season.tournamentId)||o.filters&&o.filters.isEligibilitySwitchVisible);e.watch(m,N=>{const D=N.reduce(($,H,K)=>(K!==0&&H.isSelected&&$++,$),0);D===m.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?y.value="Todas las nacionalidades":y.value=`${D} seleccionadas`,q()},{immediate:!0,deep:!0}),e.watch(g,N=>{const D=N.reduce(($,H,K)=>(K!==0&&H.isSelected&&$++,$),0);D===g.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?h.value="Todas las posiciones":h.value=`${D} seleccionadas`,q()},{immediate:!0,deep:!0}),e.watch(()=>o.filters,N=>{if(N&&N.availableYears){const D=!Number.isNaN(Number(N.selectedYear));r.value=N,d.value=r.value.selectedYear&&D?1:0,c.value=D?r.value.selectedYear:r.value.availableYears[0],p.value.min=r.value.minAge,p.value.max=r.value.maxAge,l.isSelected=N.positions.every($=>$.isSelected),q()}},{immediate:!0,deep:!0}),e.watch(()=>r.value.isEligibilitySelected,()=>{q()}),e.watch(()=>o.season,N=>{N&&N.id!==u.value&&!o.awaitForFilters&&(u.value=N.id,k(N))},{immediate:!0,deep:!1});async function k(N){try{if(N&&N.id){const D=new Set,$=await J(N.id),H=new Date,K=[],ce=new Map,x=new Map;$.forEach(w=>{const S=new Date(w.dob),F=ep(S),V=tp({start:S,end:H});ce.has(w.nationality_id)||ce.set(w.nationality_id,{id:w.nationality_id,isSelected:!0,name:Zc[`${w.nationality_id}`]}),x.has(w.position_id)||x.set(w.position_id,{id:w.position_id,isSelected:!0,name:Yc[`${w.position_id}`]}),D.add(F),K.push(V.years)}),r.value.minAge=Math.min(...K),r.value.maxAge=Math.max(...K),r.value.availableYears=[...D].sort((w,S)=>S-w),c.value=r.value.availableYears[0],r.value.nationalities=[...ce.values()],r.value.positions=[...x.values()],p.value.min=r.value.minAge,p.value.max=r.value.maxAge}}catch(D){throw new Error(D)}}function W(N=null){const D=!N||N===oe.All;(D||N===oe.NATIONALITY)&&m.value.forEach($=>{$.isSelected=!0}),(D||N===oe.ELIGIBILITY)&&(r.value.isEligibilitySelected=!1),(D||N===oe.POSITION)&&g.value.forEach($=>{$.isSelected=!0}),(D||N===oe.AGE_RANGE)&&(p.value.min=r.value.minAge,p.value.max=r.value.maxAge,d.value=0),(D||N===oe.YEAR)&&(c.value=o.isScouting?r.value.availableYears[r.value.availableYears.length-1]:r.value.availableYears[0],d.value=0),q()}async function J(N){try{const D={Authorization:localStorage.getItem("user_token")||o.token},$={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:Wv,H=await Pt.get($+N,{headers:D});return H.data?H.data.players:[]}catch(D){return Promise.reject(D)}}function L(N){d.value=N.index,o.filters&&o.filters.availableYears&&N.index===0&&(o.filters.selectedYear="Sin límite")}function G(N){p.value.min=N.minValue,p.value.max=N.maxValue,q()}function Z(N,D){D.id===0?m.value.forEach($=>{$.isSelected=N}):(D.isSelected=N,m.value[0].isSelected=m.value.every(($,H)=>H===0?!0:$.isSelected))}function q(){const N=d.value===0,D={};N?(D.ageByRange=p.value,D.ageLimits={min:r.value.minAge,max:r.value.maxAge}):D.year=c.value,r.value.isEligibilitySelected?D.eligibility=[...r.value.eligibility]:D.nationalities=m.value.reduce(($,H,K)=>(K!==0&&$.push({...H}),$),[]),D.positions=g.value.reduce(($,H,K)=>(K!==0&&$.push({...H}),$),[]),a("update:filters",D)}function Y(N,D){D.id===0?g.value.forEach($=>{$.isSelected=N}):(D.isSelected=N,g.value[0].isSelected=g.value.every(($,H)=>H===0?!0:$.isSelected))}function R(N){c.value=N,o.filters&&(o.filters.selectedYear=N),q()}return i({onClearFilters:W}),(N,D)=>(e.openBlock(),e.createElementBlock("div",kv,[e.createElementVNode("div",Ev,[e.createElementVNode("div",Vv,[e.createVNode(SO,{"selected-button-index":d.value,buttons:n.value,width:"220px",onChange:L},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",xv,[e.createVNode(e.unref(sc),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":r.value.minAge,"max-limit":r.value.maxAge,"min-value":p.value.min,"max-value":p.value.max,onInput:G},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,d.value===0]]),e.withDirectives(e.createElementVNode("div",Nv,[Tv,e.createVNode(e.unref(Je),e.mergeProps({"model-value":c.value},f.value,{items:r.value.availableYears,onInput:R}),{default:e.withCtx(({selectedItem:$})=>[e.createElementVNode("div",Bv,e.toDisplayString($),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,e.toDisplayString($),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,d.value===1]])]),Fv,e.createElementVNode("div",Pv,[_.value?(e.openBlock(),e.createElementBlock("div",$v,[Av,e.createVNode(wa,{modelValue:r.value.isEligibilitySelected,"onUpdate:modelValue":D[0]||(D[0]=$=>r.value.isEligibilitySelected=$)},null,8,["modelValue"]),zv])):e.createCommentVNode("",!0),e.createElementVNode("div",Iv,[r.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Dv,e.createVNode(e.unref(Je),e.mergeProps(f.value,{"is-multiple-option":"",items:r.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:$})=>[e.createElementVNode("div",Rv,e.toDisplayString($.name),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":$.isSelected,label:$.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},[Mv,e.createVNode(e.unref(Je),e.mergeProps(f.value,{"is-multiple-option":"",items:m.value}),{default:e.withCtx(()=>[e.createElementVNode("div",Lv,e.toDisplayString(y.value),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":$.isSelected,label:$.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Z(H,$)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",Ov,[jv,e.createVNode(e.unref(Je),e.mergeProps(f.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",vv,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h.value),1)],64))])]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":$.isSelected,label:t.isFemale?$.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):$.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Y(H,$)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},Gv=re(Uv,[["__scopeId","data-v-23130339"]]),Hv={class:"plays"},Jv={class:"plays__body__offensive"},qv={class:"plays__body__title"},Zv={class:"number-of-categories"},Yv={class:"plays__body__categories"},Kv={class:"plays__body__defensive-possession-offenses"},Xv={class:"plays__body__title"},Qv={class:"number-of-categories"},eW={class:"plays__body__categories"},tW={class:"plays__body__title"},aW={class:"number-of-categories"},iW={class:"plays__body__categories"},oW={class:"plays__body__title"},sW={class:"number-of-categories"},lW={class:"plays__body__categories"},rW={__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(t){const i=t,a=e.ref(!1),o=e.ref(!1),s=e.ref(!1),l=e.ref(!1),r=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>i.playsCategories.offensive.categories.reduce((c,u)=>(u.isSelected&&c++,c),0)),d=e.computed(()=>i.playsCategories.defensive.categories.reduce((c,u)=>(u.isSelected&&c++,c),0)),p=e.computed(()=>i.playsCategories.possession.categories.reduce((c,u)=>(u.isSelected&&c++,c),0)),f=e.computed(()=>i.playsCategories.offenses.categories.reduce((c,u)=>(u.isSelected&&c++,c),0));function y(c,u){u.isSelected=c}function h(c){c==="offensive"?a.value=!a.value:c==="defensive"?o.value=!o.value:c==="possession"?s.value=!s.value:c==="offenses"&&(l.value=!l.value)}return(c,u)=>(e.openBlock(),e.createElementBlock("div",Hv,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",Jv,[e.createElementVNode("div",qv,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[0]||(u[0]=m=>h("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",Zv,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[1]||(u[1]=m=>h("offensive"))},[e.withDirectives(e.createVNode(Tt,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Yv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>y(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",Kv,[e.createElementVNode("div",Xv,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[2]||(u[2]=m=>h("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",Qv,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[3]||(u[3]=m=>h("defensive"))},[e.withDirectives(e.createVNode(Tt,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",eW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>y(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]]),e.createElementVNode("div",tW,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[4]||(u[4]=m=>h("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",aW,"("+e.toDisplayString(p.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[5]||(u[5]=m=>h("possession"))},[e.withDirectives(e.createVNode(Tt,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",iW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>y(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",oW,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:u[6]||(u[6]=m=>h("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",sW,"("+e.toDisplayString(f.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:u[7]||(u[7]=m=>h("offenses"))},[e.withDirectives(e.createVNode(Tt,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",lW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:m.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":m.isSelected,"box-value":m.priority||0,"onUpdate:modelValue":g=>y(g,m)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])])],4)]))}},nW=re(rW,[["__scopeId","data-v-364e6cae"]]),dW={class:"template-results"},cW={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:i}){const a=t,o=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{i("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,l)=>(e.openBlock(),e.createElementBlock("div",dW,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:r.isSelected,"onUpdate:modelValue":d=>r.isSelected=d,label:r.name,"avoid-interaction":o.value===1&&r.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},pW=re(cW,[["__scopeId","data-v-453e89c2"]]),mW={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:i}){const a=t,o=e.computed(()=>({"--height":a.height,"--width":a.width,"--padding":a.padding,"--border-radius":a.borderRadius,"--border":`solid ${a.borderWidth} ${a.borderColor}`,"--background-color":a.backgroundColor,"--font-color":a.fontColor,"--font-size":a.fontSize,"--font-family":a.fontFamily,"--active-background-color":a.activeBackgroundColor||a.backgroundColor,"--active-border-color":a.activeBorderColor||a.borderColor,"--active-font-color":a.activeFontColor||a.fontColor}));function s(){i("click")}return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(o.value),onClick:s},e.toDisplayString(t.text),7))}},ka=re(mW,[["__scopeId","data-v-9688933e"]]),yW={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},ip={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},hW={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},uW={4:"OF",5:"Cf",6:"S",7:"F"};function Ws(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const fW={class:"dropdown"},gW={class:"selected-item"},_W={__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",fW,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(yt),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",gW,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),_:1},16,["is-list-same-width","items"])]))}},ze=re(_W,[["__scopeId","data-v-064d5f86"]]),bW={class:"dropdown"},SW={class:"game-item"},CW={key:0,class:"item-game"},wW={class:"match-day"},kW={class:"team-logo"},EW=["src"],VW={class:"text"},xW={class:"text score"},NW={class:"text"},TW={class:"team-logo"},BW=["src"],FW={class:"item-game"},PW={class:"team-logo"},$W=["src"],AW={class:"text"},zW={class:"text score"},IW={class:"text"},MW={class:"team-logo"},LW=["src"],DW={__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",bW,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(yt),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",SW,[l.homeTeam?(e.openBlock(),e.createElementBlock("div",CW,[e.createElementVNode("div",wW,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",kW,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,EW)]),e.createElementVNode("div",VW,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",xW,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",NW,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",TW,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,BW)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",FW,[e.createElementVNode("div",null,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",PW,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,$W)]),e.createElementVNode("div",AW,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",zW,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",IW,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",MW,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,LW)])])]),_:1},16,["items"])]))}},Ai=re(DW,[["__scopeId","data-v-7883a91e"]]),zi=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),RW={class:"container"},OW={class:"container__row"},jW={class:"container__row__wrapper"},vW=zi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),WW={class:"container__row__wrapper__input"},UW={class:"container__row two-items"},GW={class:"container__row__wrapper"},HW=zi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),JW={key:0,class:"container__row__wrapper__input"},qW={class:"container__row__wrapper"},ZW=zi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),YW={key:0,class:"container__row__wrapper__input"},KW={class:"container__row"},XW={class:"container__row__wrapper"},QW=zi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),eU={key:0,class:"container__row__wrapper__input"},tU={class:"container__action"},aU={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null);function n(y){o.value=y,i("update:tournament",y)}function d(y){s.value=y,i("update:season",y)}function p(y){l.value=y}function f(y){r.value=y}return(y,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",RW,[e.createElementVNode("div",OW,[e.createElementVNode("div",jW,[vW,e.createElementVNode("div",WW,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",UW,[e.createElementVNode("div",GW,[HW,o.value&&o.value.seasons?(e.openBlock(),e.createElementBlock("div",JW,[e.createVNode(ze,{items:o.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",qW,[ZW,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",YW,[e.createVNode(ze,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",KW,[e.createElementVNode("div",XW,[QW,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",eU,[e.createVNode(Ai,{items:l.value.arrayGames,onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",tU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},iU=re(aU,[["__scopeId","data-v-b63e9c84"]]),oU={class:"dropdown"},sU={class:"item-team"},lU={class:"team-logo"},rU=["src"],nU={class:"team-acronym"},dU={class:"item-team"},cU={class:"team-logo"},pU=["src"],mU={class:"team-acronym"},yU={__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",oU,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(yt),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",sU,[e.createElementVNode("div",lU,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,rU)]),e.createElementVNode("div",nU,e.toDisplayString(l.acronym),1)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",dU,[e.createElementVNode("div",cU,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,pU)]),e.createElementVNode("div",mU,e.toDisplayString(l.acronym),1)])]),_:1},16,["items"])]))}},op=re(yU,[["__scopeId","data-v-afd2bee8"]]),hU={class:"advanced-filters"},uU={class:"advanced-filters__buttons"},fU=["onClick"],gU={class:"advanced-filters__filters"},_U={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Q1e)),o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>gme)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>bme)),l=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:o}],r=e.ref(l[0]),n=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function d(p){r.value=p}return(p,f)=>(e.openBlock(),e.createElementBlock("div",hU,[e.createElementVNode("div",uU,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,y=>e.createElementVNode("div",{key:y.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:r.value.name===y.name}]),onClick:h=>d(y)},e.toDisplayString(y.name),11,fU)),64))]),e.createElementVNode("div",gU,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},Us=re(_U,[["__scopeId","data-v-c62c5b9c"]]),zt=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),bU={class:"container"},SU={class:"container__row"},CU={class:"container__row__wrapper"},wU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),kU={class:"container__row__wrapper__input"},EU={class:"container__row two-items"},VU={class:"container__row__wrapper"},xU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),NU={key:0,class:"container__row__wrapper__input"},TU={class:"container__row__wrapper"},BU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),FU={key:0,class:"container__row__wrapper__input"},PU={class:"container__row"},$U={class:"container__row__wrapper"},AU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),zU={key:0,class:"container__row__wrapper__input"},IU={class:"container__row"},MU={class:"container__row__wrapper"},LU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),DU={key:0,class:"container__row__wrapper__input"},RU={class:"container__row type-and-advanced"},OU={class:"container__row__wrapper"},jU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),vU={class:"container__row__wrapper__input"},WU={class:"container__row__wrapper center"},UU=zt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),GU={class:"container__row__wrapper__input"},HU={class:"container__row"},JU={class:"container__action"},qU={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),d=e.ref(null),p=e.ref(null),f=e.ref(!0),y=e.computed(()=>d.value?d.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function h(k){s.value=k,i("update:tournament",k)}function c(k){l.value=k,i("update:season",k)}function u(k){n.value=k,i("update:team",k)}function m(k){d.value=k}function g(k){r.value=k}function _(k){p.value=k}return(k,W)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",bU,[e.createElementVNode("div",SU,[e.createElementVNode("div",CU,[wU,e.createElementVNode("div",kU,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:h},null,8,["items"])])])]),e.createElementVNode("div",EU,[e.createElementVNode("div",VU,[xU,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",NU,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",TU,[BU,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",FU,[e.createVNode(op,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",PU,[e.createElementVNode("div",$U,[AU,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",zU,[e.createVNode(ze,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",IU,[e.createElementVNode("div",MU,[LU,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",DU,[e.createVNode(Ai,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",RU,[e.createElementVNode("div",OU,[jU,e.createElementVNode("div",vU,[e.createVNode(ze,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),e.createElementVNode("div",WU,[UU,e.createElementVNode("div",GU,[e.createVNode(wa,{modelValue:f.value,"onUpdate:modelValue":W[0]||(W[0]=J=>f.value=J)},null,8,["modelValue"])])])]),e.createElementVNode("div",HU,[e.createVNode(Us,{"selected-category":p.value},null,8,["selected-category"])])]),e.createElementVNode("div",JU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},ZU=re(qU,[["__scopeId","data-v-575b26b5"]]),Kt=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),YU={class:"container"},KU={class:"container__row"},XU={class:"container__row__wrapper"},QU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),eG={class:"container__row__wrapper__input"},tG={class:"container__row two-items"},aG={class:"container__row__wrapper"},iG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),oG={key:0,class:"container__row__wrapper__input"},sG={class:"container__row__wrapper"},lG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),rG={key:0,class:"container__row__wrapper__input"},nG={class:"container__row"},dG={class:"container__row__wrapper"},cG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),pG={key:0,class:"container__row__wrapper__input"},mG={class:"container__row type-and-advanced"},yG={class:"container__row__wrapper"},hG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),uG={class:"container__row__wrapper__input"},fG={class:"container__row__wrapper center"},gG=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),_G={class:"container__row__wrapper__input"},bG={class:"container__row"},SG={class:"container__action"},CG={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),d=e.ref(null),p=e.ref(!0),f=e.computed(()=>a.advancedFilterCategories.team);function y(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function c(g){n.value=g,i("update:team",g)}function u(g){r.value=g}function m(g){d.value=g}return(g,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",YU,[e.createElementVNode("div",KU,[e.createElementVNode("div",XU,[QU,e.createElementVNode("div",eG,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",tG,[e.createElementVNode("div",aG,[iG,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",oG,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",sG,[lG,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",rG,[e.createVNode(op,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",nG,[e.createElementVNode("div",dG,[cG,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",pG,[e.createVNode(Ai,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",mG,[e.createElementVNode("div",yG,[hG,e.createElementVNode("div",uG,[e.createVNode(ze,{items:f.value,itemTextKey:"name","is-list-same-width":!1,onInput:m},null,8,["items"])])]),e.createElementVNode("div",fG,[gG,e.createElementVNode("div",_G,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":_[0]||(_[0]=k=>p.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",bG,[e.createVNode(Us,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",SG,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},wG=re(CG,[["__scopeId","data-v-6d73d5e6"]]),Xt=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),kG={class:"container"},EG={class:"container__row"},VG={class:"container__row__wrapper"},xG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),NG={class:"container__row__wrapper__input"},TG={class:"container__row two-items"},BG={class:"container__row__wrapper"},FG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),PG={key:0,class:"container__row__wrapper__input"},$G={class:"container__row__wrapper"},AG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),zG={key:0,class:"container__row__wrapper__input"},IG={class:"container__row"},MG={class:"container__row__wrapper"},LG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),DG={key:0,class:"container__row__wrapper__input"},RG={class:"container__row type-and-advanced"},OG={class:"container__row__wrapper"},jG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),vG={class:"container__row__wrapper__input"},WG={class:"container__row__wrapper center"},UG=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),GG={class:"container__row__wrapper__input",style:{width:"fit-content"}},HG={class:"container__row"},JG={class:"container__action"},qG={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null),r=e.ref(null),n=e.ref(null),d=e.ref(null),p=e.ref(!0),f=e.computed(()=>a.advancedFilterCategories.games);function y(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function c(g){r.value=g}function u(g){n.value=g}function m(g){d.value=g}return(g,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",kG,[e.createElementVNode("div",EG,[e.createElementVNode("div",VG,[xG,e.createElementVNode("div",NG,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",TG,[e.createElementVNode("div",BG,[FG,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",PG,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",$G,[AG,l.value&&l.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",zG,[e.createVNode(ze,{items:l.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",IG,[e.createElementVNode("div",MG,[LG,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",DG,[e.createVNode(Ai,{items:r.value.arrayGames,onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",RG,[e.createElementVNode("div",OG,[jG,e.createElementVNode("div",vG,[e.createVNode(ze,{items:f.value,itemTextKey:"name","is-list-same-width":!1,onInput:m},null,8,["items"])])]),e.createElementVNode("div",WG,[UG,e.createElementVNode("div",GG,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":_[0]||(_[0]=k=>p.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",HG,[e.createVNode(Us,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",JG,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},ZG=re(qG,[["__scopeId","data-v-6e904db8"]]),YG={class:"template-videos"},KG={class:"template-videos__header"},XG={class:"template-videos__body"},QG=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:iU,VideosPlayer:ZU,VideosTeam:wG,VideosGame:ZG}}),eH=Object.assign(QG,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(t,{emit:i}){const a=t,o={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],l=["g-23","g-24","g-25"],r={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},d=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),p=e.ref([]),f=e.ref(d.value[0]),y=e.ref({}),h=e.ref({}),c=e.ref({}),u=e.ref({}),m=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const _=e.ref(null);e.watch(y,w=>{h.value.numberSeasonSelectedIndex=h.value.seasons.findIndex(S=>S.id===w.id),w.arrayMatchDays?(u.value=w.arrayMatchDays[0]||{},c.value=w.arrayTeams[0]||{}):(G(w),Z(w))}),e.watch(c,()=>{setTimeout(()=>{y.value.mapPlayersByTeam&&(!c.value.arrayPlayers||!c.value.arrayPlayers.length)&&(c.value.arrayPlayers=y.value.mapPlayersByTeam.get(c.value.team_id))},700)});async function k(){try{p.value=await W()}catch(w){throw new Error(w)}}async function W(){try{const w={Authorization:Ws()||a.token},S={}.API_TOURNAMENTS||a.tournamentsUrl,F=await Pt.get(S,{headers:w});return F.data?F.data.map(V=>({...V.tournament,seasons:V.seasons})):[]}catch(w){return Promise.reject(w)}}async function J(w,S,F=""){i("loading-data");let V=F;try{V||(V={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,w.forEach((O,b)=>{V+=`${b===0?"":"&"}seasons=${O}`}));const j={Authorization:Ws()||a.token},{data:{data:P,teams:U}}=await Pt.get(V,{headers:j});return{seasonsAndGames:P,seasonsAndTeams:U}}catch(j){if(S>0)return J(w,S-1,V);throw new Error(j)}finally{i("loading-data")}}async function L(w){try{const S={Authorization:Ws()||a.token},F=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${w.seasonId}`,V=await Pt.get(F,{headers:S});return V.data?V.data.players:[]}catch(S){return Promise.reject(S)}}async function G(w){try{const{seasonsAndGames:S,seasonsAndTeams:F}=await J([w.id,...w.related_seasons.map(U=>U.id)],3),V=F.find(U=>U._id===w.id);y.value.arrayTeams=[],y.value.mapTeams=new Map;const j=V.teams.reduce((U,O)=>(y.value.arrayTeams.push(O),y.value.mapTeams.set(O.team_id,{name:O.colloquial_name,acronym:O.acronym,logo:O.logo,id:O.team_id}),U.set(O.team_id,O),U),new Map);c.value=y.value.arrayTeams[0],y.value.mapGames=new Map,y.value.mapGamesByTeam=new Map;const P=Array.from(S.reduce((U,O)=>(O.games.forEach(b=>{if(b.game_status===1&&b.has_video){(!y.value.maxGameId||b.game_id>y.value.maxGameId)&&(y.value.maxGameId=b.game_id);let C=b.matchday_abbreviation.replace("M","J"),E=b.matchday_abbreviation.replace("M","Jornada ");const v=b.matchday_abbreviation.replace("M","");O.season_type===0?h.value.tournament_type===1&&(b.seasonId===881?(C=uW[v]||C,E=hW[v]||E):(C=ip[b.matchday_abbreviation]?b.matchday_abbreviation:C,E=ip[b.matchday_abbreviation]||E,C==="FINAL"&&(C="F"))):O.season_type===1?(C=yW[b.matchday_abbreviation],E=C):(C=b.matchday_abbreviation.replace("PO","R"),E="Repechaje"),b.roundAbbreviation=C,b.roundName=E,y.value.mapGames.set(b.game_id,{id:b.game_id,date:b.date,dateTimeMillis:new Date(b.date_time_utc).valueOf(),homeTeam:y.value.mapTeams.get(b.home_team),awayTeam:y.value.mapTeams.get(b.visiting_team),roundAbbreviation:b.roundAbbreviation,roundName:b.roundName,score:b.score,gameResult:b.score[0]>b.score[1]?1:b.score[0]<b.score[1]?2:3,seasonId:O.season_id});const X=U.get(b.roundAbbreviation);b.numberDateTimeMillis=new Date(b.date_time_utc).getTime(),b.homeTeam=j.get(b.home_team),b.awayTeam=j.get(b.visiting_team);const pe=y.value.mapGamesByTeam.get(b.home_team),je=y.value.mapGamesByTeam.get(b.visiting_team);pe?pe.push(b):y.value.mapGamesByTeam.set(b.home_team,[b]),je?je.push(b):y.value.mapGamesByTeam.set(b.visiting_team,[b]),X?X.arrayGames.push(b):U.set(b.roundAbbreviation,{stringMatchDayAbbreviation:b.roundAbbreviation,stringMatchDayName:b.roundName,arrayGames:[b]})}}),U),new Map).values());P.reverse(),P.forEach(U=>{U.arrayGames.sort((O,b)=>O.numberDateTimeMillis-b.numberDateTimeMillis)}),y.value.arrayMatchDays=P,u.value=P[0]||{}}catch(S){throw new Error(S)}}async function Z(w){try{const S=await D(w.id);y.value.mapPlayers=new Map,y.value.mapPlayersByTeam=S.reduce((F,V)=>{y.value.mapPlayers.set(V.player_id,{id:V.player_id,name:V.player_name,shortName:V.shortName,photo:V.player_photo,teamId:V.team_id,positionId:V.position_id});const j=F.get(V.team_id);return j?j.push(V):F.set(V.team_id,[V]),F},new Map)}catch(S){throw new Error(S)}}async function q(){try{let w=[];m.value.isEmpty?(w=await $(),g.value={...w}):w=g.value;const S=[];if(w&&w.length){m.value=w.reduce((O,b)=>{if(b.group_id!=="g-55"){const C={idAux:b.group_id,ids:[...b.ids?b.ids:[],...b.rival_Ids?b.rival_Ids:[]],type:b.type,name:b.name,coordinatePoint:b.coordinate_point,requiresRivalTransform:l.includes(b.group_id)};C.idsAux=[...C.ids],C.subcategoryGroups=b.group_id==="g-12"?[]:Y(b,0,new Map,!1,{},C.idsAux),S.push(C),C.type.includes(n.player)&&O.player.push(C),C.type.includes(n.team)&&(C.idAux!=="g-2"&&O.games.push(C),O.team.push(C)),C.type.includes(n.goalkeeper)&&O.goalkeeper.push(C)}return O},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const F=new Map,V="Resumen",j="Todas sus jugadas",P=m.value.player.reduce((O,b)=>{const C=R(b);return C.forEach(E=>{F.set(E,b.name)}),O.push(...C),O},[]),U=m.value.goalkeeper.reduce((O,b)=>{const C=R(b);return C.forEach(E=>{F.set(E,b.name)}),O.push(...C),O},[]);m.value.games.unshift({name:V,arrayCategoriesIds:r.games,booleanIsBestPlays:!0}),m.value.team.unshift({name:V,arrayCategoriesIds:r.team,booleanIsBestPlays:!0}),m.value.player.unshift({name:V,arrayCategoriesIds:r.player.regular,booleanIsBestPlays:!0},{name:j,arrayCategoriesIds:P,booleanIsMinutesPlayed:!0}),m.value.goalkeeper.unshift({name:V,arrayCategoriesIds:r.player.goalkeeper,booleanIsBestPlays:!0},{name:j,arrayCategoriesIds:U,booleanIsMinutesPlayed:!0})}}catch(w){throw new Error(w)}}function Y(w,S=0,F=new Map,V=!1,j={},P=[]){if(!w.group_id)return;let U=F.get(S);const O=V?`${w.id_category}_r`:w.id_category;w.id_category&&P.push(w.id_category);let b={ids:[O],groupId:w.group_id,level:S,name:w.name,isSelected:!0,fatherCategories:S>0?[j]:[],idsByFatherCategory:{[w.category_father]:[O]}};if(S>0&&S===1&&(b.id=w.id_category),U&&S!==0){const C=w.group_id.charAt(w.group_id.length-1),E=U.find(v=>v.groupId.endsWith(C));E&&!s.includes(b.groupId)?(b=E,E.ids.push(O),E.fatherCategories.push(j),E.fatherCategories.forEach(v=>{v.childCategories?v.childCategories.find(X=>X.groupId===b.groupId)||v.childCategories.push(b):v.childCategories=[b]}),E.idsByFatherCategory[w.category_father]?E.idsByFatherCategory[w.category_father].push(O):E.idsByFatherCategory[w.category_father]=[O]):(b.fatherCategories.forEach(v=>{v.childCategories?v.childCategories.find(X=>X.groupId===b.groupId)||v.childCategories.push(b):v.childCategories=[b]}),U.push(b))}else S!==0&&(j.childCategories?j.childCategories.push(b):j.childCategories=[b],U=[b],F.set(S,U));if(w.categories&&w.categories.length?w.categories.forEach(C=>{Y(C,S+1,F,V,b,P)}):w.rival_categories&&w.rival_categories.length&&w.rival_categories.forEach(C=>{Y(C,S+1,F,!0,b,P)}),S===0)return Array.from(F.values())}function R(w){const S=w||w;if(S.booleanIsBestPlays)return S.arrayCategoriesIds;const F={total:[],toRemove:[]};if(S.subcategoryGroups&&S.subcategoryGroups.length?S.subcategoryGroups[0].forEach(V=>{N(V,null,F)}):(S.ids&&F.total.push(...S.ids),S.rival_ids&&S.rival_ids.forEach(V=>{F.total.push(`${V}_r`)})),F.total=F.total.reduce((V,j)=>(F.toRemove.includes(j)||V.push(j),V),[]),!w){const V=S.name.toLowerCase().includes("recibid");_.value.isRivalSubject=V,_.value.avoidCategorySingleName=V,_.value.coordinatePoint=S.coordinatePoint,_.value.requiresRivalTransform=S.requiresRivalTransform}return F.total}function N(w,S=[],F={total:[],toRemove:[]}){w.isSelected?w.childCategories?w.childCategories.forEach(V=>{const j=S?Object.entries(w.idsByFatherCategory).reduce((P,[U,O])=>(S.includes(Number(U))&&O.forEach(b=>{typeof b=="string"&&b.endsWith("_r")?P.push(Number(b.split("_")[0])):P.push(b)}),P),[]):[w.id];N(V,j,F)}):S?Object.entries(w.idsByFatherCategory).forEach(([V,j])=>{S.includes(Number(V))&&j.forEach(P=>{F.total.push(P)})}):w.level===1?Object.entries(w.idsByFatherCategory).forEach(([V,j])=>{j.forEach(P=>{F.total.push(P)})}):F.total.push(w.id):w.childCategories||w.ids.forEach(V=>{F.toRemove.push(V)})}async function D(w){try{const S=await L({seasonId:w});return S.forEach(F=>{const[V,j]=F.player_name.split(","),P=V.split(" ");let U="";for(const O of P)if(U+=` ${O}`,O.length>3)break;F.shortName=j&&V?`${j.trim().charAt(0)}.${U}`:""}),S}catch(S){return Promise.reject(S)}}async function $(){try{const w={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Pt.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:w})).data||[]}catch(w){return Promise.reject(w)}}function H(w){f.value=w}function K(w){h.value=w,y.value=w.seasons[0]}function ce(w){y.value=w}function x(w){c.value=w}return k(),q(),(w,S)=>(e.openBlock(),e.createElementBlock("div",YG,[e.createElementVNode("div",KG,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,F=>(e.openBlock(),e.createBlock(ka,e.mergeProps({key:F.name},o,{text:F.name,"is-active":f.value.componentName===F.componentName,tournaments:p.value,onClick:V=>H(F)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",XG,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value.componentName),{tournaments:p.value,"advanced-filter-categories":m.value,"onUpdate:tournament":K,"onUpdate:season":ce,"onUpdate:team":x},null,40,["tournaments","advanced-filter-categories"]))])]))}}),tH=re(eH,[["__scopeId","data-v-d6f7aec8"]]),sp=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"]]),aH={class:"template-taken-corners"},iH={class:"template-taken-corners__header"},oH={class:"template-taken-corners__header__all"},sH={class:"template-taken-corners__body"},lH={class:"template-taken-corners__body__players"},rH={class:"template-taken-corners__body__players__player__jersey"},nH={class:"template-taken-corners__body__players__player__photo"},dH={class:"template-taken-corners__body__players__player__photo__img"},cH=["src"],pH={class:"template-taken-corners__body__players__player__info"},mH={class:"template-taken-corners__body__players__player__info__name"},yH={class:"template-taken-corners__body__players__player__info__position"},hH={class:"template-taken-corners__body__players__player__info__position__nationality"},uH=["src"],fH={class:"template-taken-corners__body__players__player__info__position__name"},gH={class:"template-taken-corners__body__players__player__checkbox"},_H={__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!1),l=e.ref([]),r=e.computed(()=>o.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>l.value.reduce((m,g)=>g.isSelected?m+1:m,0));e.watch(()=>o.takenCornersFilters,m=>{l.value=m.map(g=>{const _={...g};return(g.isSelected===void 0||g.isSelected===null)&&(_.isSelected=!0),_})},{immediate:!0,deep:!0}),e.watch(n,m=>{s.value=m===l.value.length,a("change-filters-selected",m),a("update:filters",l.value)},{immediate:!0});function d(m){return`https://golstatsimages.blob.core.windows.net/flags/${m}.jpg`}function p(m){return`https://golstatsimages.blob.core.windows.net/players-profile/${m}.png`}function f(m){let g=!1;return m.split(" ").reduce((_,k)=>(g||(k.length>3?(_=k,g=!0):_+=`${k} `),_),"").trim()}function y(m){return`${f(m.last_name)}, ${m.first_name.trim()}`}function h(m){return o.isFemale?sp.get(m.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):sp.get(m.positions[0])}function c(m){m?l.value.forEach(g=>{g.isSelected=!0}):l.value.forEach((g,_)=>{g.isSelected=_===0})}function u(){l.value.forEach(m=>{m.isSelected=!0})}return i({clearFilters:u}),(m,g)=>(e.openBlock(),e.createElementBlock("div",aH,[e.createElementVNode("div",iH,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(r.value),5),e.createElementVNode("div",oH,[e.createVNode(e.unref(se),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":c},null,8,["model-value"])])]),e.createElementVNode("div",sH,[e.createElementVNode("div",lH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,_=>(e.openBlock(),e.createElementBlock("div",{key:_.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",rH,e.toDisplayString(_.jersey),1),e.createElementVNode("div",nH,[e.createElementVNode("div",dH,[e.createElementVNode("img",{src:p(_.player_id),alt:"player photo",width:"36",height:"36"},null,8,cH)])]),e.createElementVNode("div",pH,[e.createElementVNode("div",mH,e.toDisplayString(y(_)),1),e.createElementVNode("div",yH,[e.createElementVNode("div",hH,[e.createElementVNode("img",{src:d(_.nationality_id),alt:"country flag"},null,8,uH)]),e.createElementVNode("div",fH,e.toDisplayString(h(_)),1)])]),e.createElementVNode("div",gH,[e.createVNode(e.unref(se),{modelValue:_.isSelected,"onUpdate:modelValue":k=>_.isSelected=k,"avoid-interaction":n.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},bH=re(_H,[["__scopeId","data-v-763fcc54"]]),Gs={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]}]},Hs=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),SH={class:"template-how-was-corner"},CH={class:"template-how-was-corner__header"},wH=Hs(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),kH={class:"template-how-was-corner__header__radio-input"},EH={class:"template-how-was-corner__header__radio-input__radio"},VH=Hs(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),xH={class:"template-how-was-corner__header__radio-input"},NH={class:"template-how-was-corner__header__radio-input__radio"},TH=Hs(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),BH=["onClick"],FH={class:"template-how-was-corner__content__corner-type__img"},PH=["src","alt"],$H={class:"template-how-was-corner__content__corner-type__info"},AH={class:"template-how-was-corner__content__corner-type__info__title"},zH={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Gs},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:i}){const a=t,o=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),l=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>o.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{i("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((d,p)=>p.isSelected?d+1:d,0)),o.value=n.cornerType,i("update:filters",n)},{deep:!0,immediate:!0});function r(n){n.isSelected&&l.value===1||(n.isSelected=!n.isSelected)}return(n,d)=>(e.openBlock(),e.createElementBlock("div",SH,[e.createElementVNode("div",CH,[wH,e.createElementVNode("div",kH,[e.createElementVNode("div",EH,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":d[0]||(d[0]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),VH])]),e.createElementVNode("div",xH,[e.createElementVNode("div",NH,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":d[1]||(d[1]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),TH])])]),e.createElementVNode("div",{class:e.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":t.isExpansionMode}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(p,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":p.isSelected}]),onClick:y=>r(p)},[e.createElementVNode("div",FH,[e.createElementVNode("img",{src:p.imgSrc,alt:p.title},null,8,PH)]),e.createElementVNode("div",$H,[e.createElementVNode("div",AH,e.toDisplayString(p.title),1)])],10,BH))),128))],2)]))}},IH=re(zH,[["__scopeId","data-v-b7e3b8e0"]]),Ea=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],ht=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),MH={class:"template-zone"},LH={class:"controls-zone-container"},DH={class:"controls-zone-container-title-checkcon"},RH={class:"controls-zone-container-title-checkcon-check"},OH={class:"gsc-field-img-container"},jH={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vH=["fill"],WH=["fill"],UH=["fill"],GH=["fill"],HH=["fill"],JH=["fill"],qH=["fill"],ZH=["fill"],YH=["fill"],KH=["fill"],XH=["fill"],QH=["fill"],eJ=["fill"],tJ=["fill"],aJ=["fill"],iJ=["fill"],oJ=["fill"],sJ=["fill"],lJ=["fill"],rJ=["fill"],nJ=["fill"],dJ=["fill"],cJ=["fill"],pJ=["fill"],mJ=["fill"],yJ=["fill"],hJ=["fill"],uJ=["fill"],fJ=["fill"],gJ=["fill"],_J=["fill"],bJ=["fill"],SJ=["fill"],CJ=["fill"],wJ=["fill"],kJ=ht(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),EJ=ht(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),VJ=["id"],xJ=ht(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),NJ=[xJ],TJ=["mask"],BJ=ht(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),FJ=[BJ],PJ=ht(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),$J=ht(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),AJ={class:"template-zone__total-corners"},zJ=ht(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),IJ=ht(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),MJ=[zJ,IJ],LJ={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ea]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!0),l=e.ref([]),r=e.computed(()=>new Date().getTime());e.watch(l,f=>{s.value=f.length===35}),e.watch(()=>o.zoneFilters,f=>{l.value=f},{immediate:!0,deep:!0}),e.watch(()=>l.value,f=>{a("update:filters",f),a("change-filters-selected",f.length)},{deep:!0});function n(f){f?(l.value=Ea,s.value=!0):(l.value=[],s.value=!1)}function d(f){l.value.includes(f)?l.value=l.value.filter(y=>y!==f):l.value.push(f),s.value=l.value.length===35}function p(){l.value=[...Ea]}return i({clearFilters:p}),(f,y)=>(e.openBlock(),e.createElementBlock("div",MH,[e.createElementVNode("div",LH,[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",DH,[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",RH,[e.createVNode(e.unref(se),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",OH,[(e.openBlock(),e.createElementBlock("svg",jH,[e.createElementVNode("rect",{onClick:y[0]||(y[0]=h=>d(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,vH),e.createElementVNode("rect",{onClick:y[1]||(y[1]=h=>d(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,WH),e.createElementVNode("rect",{onClick:y[2]||(y[2]=h=>d(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,UH),e.createElementVNode("rect",{onClick:y[3]||(y[3]=h=>d(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,GH),e.createElementVNode("rect",{onClick:y[4]||(y[4]=h=>d(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,HH),e.createElementVNode("rect",{onClick:y[5]||(y[5]=h=>d(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,JH),e.createElementVNode("rect",{onClick:y[6]||(y[6]=h=>d(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,qH),e.createElementVNode("rect",{onClick:y[7]||(y[7]=h=>d(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,ZH),e.createElementVNode("rect",{onClick:y[8]||(y[8]=h=>d(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,YH),e.createElementVNode("rect",{onClick:y[9]||(y[9]=h=>d(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,KH),e.createElementVNode("rect",{onClick:y[10]||(y[10]=h=>d(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,XH),e.createElementVNode("rect",{onClick:y[11]||(y[11]=h=>d(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,QH),e.createElementVNode("rect",{onClick:y[12]||(y[12]=h=>d(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,eJ),e.createElementVNode("rect",{onClick:y[13]||(y[13]=h=>d(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,tJ),e.createElementVNode("rect",{onClick:y[14]||(y[14]=h=>d(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,aJ),e.createElementVNode("rect",{onClick:y[15]||(y[15]=h=>d(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,iJ),e.createElementVNode("rect",{onClick:y[16]||(y[16]=h=>d(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,oJ),e.createElementVNode("rect",{onClick:y[17]||(y[17]=h=>d(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,sJ),e.createElementVNode("rect",{onClick:y[18]||(y[18]=h=>d(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,lJ),e.createElementVNode("rect",{onClick:y[19]||(y[19]=h=>d(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,rJ),e.createElementVNode("rect",{onClick:y[20]||(y[20]=h=>d(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,nJ),e.createElementVNode("rect",{onClick:y[21]||(y[21]=h=>d(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,dJ),e.createElementVNode("rect",{onClick:y[22]||(y[22]=h=>d(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,cJ),e.createElementVNode("rect",{onClick:y[23]||(y[23]=h=>d(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,pJ),e.createElementVNode("rect",{onClick:y[24]||(y[24]=h=>d(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,mJ),e.createElementVNode("rect",{onClick:y[25]||(y[25]=h=>d(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,yJ),e.createElementVNode("rect",{onClick:y[26]||(y[26]=h=>d(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,hJ),e.createElementVNode("rect",{onClick:y[27]||(y[27]=h=>d(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,uJ),e.createElementVNode("rect",{onClick:y[28]||(y[28]=h=>d(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,fJ),e.createElementVNode("rect",{onClick:y[29]||(y[29]=h=>d(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,gJ),e.createElementVNode("rect",{onClick:y[30]||(y[30]=h=>d(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,_J),e.createElementVNode("rect",{onClick:y[31]||(y[31]=h=>d(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,bJ),e.createElementVNode("rect",{onClick:y[32]||(y[32]=h=>d(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,SJ),e.createElementVNode("rect",{onClick:y[33]||(y[33]=h=>d(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,CJ),e.createElementVNode("rect",{onClick:y[34]||(y[34]=h=>d(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,wJ),kJ,EJ,e.createElementVNode("mask",{id:r.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},NJ,8,VJ),e.createElementVNode("g",{mask:`url(#${r.value})`},FJ,8,TJ),PJ,$J]))]),e.withDirectives(e.createElementVNode("div",AJ,MJ,512),[[e.vShow,!1]])]))}},DJ=re(LJ,[["__scopeId","data-v-378bf7e2"]]),Js=[{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]}],RJ={class:"what-happened"},OJ={class:"what-happened__all"},jJ={class:"what-happened__filters"},vJ={key:0,class:"what-happened__filters__filter__composed"},WJ={class:"what-happened__filters__filter__composed__main"},UJ={key:1,class:"what-happened__filters__filter__single"},GJ={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Js]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.computed(()=>o.whatHappenedFilters.reduce((c,u)=>(u.child?u.child.forEach(m=>{m.isSelected&&c++}):u.isSelected&&c++,c),0)),l=e.computed(()=>o.whatHappenedFilters.reduce((c,u)=>(u.child?c+=u.child.length:c++,c),0)),r=e.computed(()=>s.value===l.value),n=e.computed(()=>s.value===1);e.watch(()=>o.whatHappenedFilters,c=>{a("change-filters-selected",s.value),a("update:filters",c)},{deep:!0,immediate:!0});function d(c){o.whatHappenedFilters.forEach(u=>{c?(u.isSelected=c,u.child&&u.child.forEach(m=>{m.isSelected=c})):u.child?(u.isSelected=!0,u.child.forEach(m=>{m.isSelected=!0})):u.isSelected=!1})}function p(c,u){u.isSelected=c,u.child.forEach(m=>{m.isSelected=c})}function f(c,u,m){m.isSelected=c,u.isSelected=u.child.every(g=>g.isSelected)}function y(c,u){u.isSelected=c}function h(){o.whatHappenedFilters.forEach(c=>{c.child?c.child.forEach(u=>{u.isSelected=!0}):c.isSelected=!0})}return i({onResetFilters:h}),(c,u)=>(e.openBlock(),e.createElementBlock("div",RJ,[e.createElementVNode("div",OJ,[e.createVNode(e.unref(se),{label:"Todos","model-value":r.value,"box-position":"right","onUpdate:modelValue":d},null,8,["model-value"])]),e.createElementVNode("div",jJ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[m.child?(e.openBlock(),e.createElementBlock("div",vJ,[e.createElementVNode("div",WJ,[e.createVNode(e.unref(se),{"model-value":m.isSelected,label:t.isFemale?m.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):m.text,"avoid-interaction":n.value&&m.isSelected,"onUpdate:modelValue":_=>p(_,m)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.child,(_,k)=>(e.openBlock(),e.createElementBlock("div",{key:`c${k}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(se),{"model-value":_.isSelected,label:t.isFemale?_.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):_.text,"avoid-interaction":n.value&&_.isSelected,"onUpdate:modelValue":W=>f(W,m,_)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",UJ,[e.createVNode(e.unref(se),{"model-value":m.isSelected,label:t.isFemale?m.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):m.text,"avoid-interaction":n.value&&m.isSelected,"onUpdate:modelValue":_=>y(_,m)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},HJ=re(GJ,[["__scopeId","data-v-8f375a1a"]]),qs={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}]}},lp=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),JJ={class:"template-results"},qJ={class:"template-results__type-switch"},ZJ=lp(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),YJ=lp(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),KJ={class:"template-results__info"},XJ={key:0,class:"template-results__group"},QJ={key:1,class:"template-results__group"},eq={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...qs})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.computed(()=>{const d=s.value.isMoment?s.value.results.moment.filter(p=>p.isSelected).length:s.value.results.final.filter(p=>p.isSelected).length;return a("change-filters-selected",d),d}),r=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>o.resultsFilters,d=>{s.value===null&&(s.value={...d})},{deep:!0,immediate:!0}),e.watch(s,d=>{a("update:filters",d)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(d=>{d.isSelected=!0}),s.value.results.final.forEach(d=>{d.isSelected=!0})}return i({removeFilters:n}),(d,p)=>(e.openBlock(),e.createElementBlock("div",JJ,[e.withDirectives(e.createElementVNode("div",qJ,[ZJ,e.createVNode(wa,{modelValue:s.value.isMoment,"onUpdate:modelValue":p[0]||(p[0]=f=>s.value.isMoment=f)},null,8,["modelValue"]),YJ],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",KJ,e.toDisplayString(r.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",XJ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(f,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:f.isSelected,"onUpdate:modelValue":h=>f.isSelected=h,label:f.name,"avoid-interaction":l.value===1&&f.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",QJ,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(f,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:f.isSelected,"onUpdate:modelValue":h=>f.isSelected=h,label:f.name,"avoid-interaction":l.value===1&&f.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},tq=re(eq,[["__scopeId","data-v-ee3b28d3"]]),aq=t=>(e.pushScopeId("data-v-344eb729"),t=t(),e.popScopeId(),t),iq={key:0,class:"productivity__header__text"},oq={key:0},sq=aq(()=>e.createElementVNode("span",null,"mínimo 5 categorías y máximo 12",-1)),lq={key:1},rq={key:2},nq={key:1,class:"productivity__header__checkbox"},dq={class:"templates__body"},cq={key:0,class:"templates-plays"},pq={key:1,class:"templates-productivity"},mq={key:2,class:"template-field"},yq={key:3,class:"template-details"},hq={key:4,class:"template-personal-data"},uq={key:5,class:"template-leagues"},fq={key:6,class:"template-plays"},gq={key:7,class:"template-plays"},_q={key:8,class:"template-universe"},bq={key:9,class:"template-distance"},Sq={key:10,class:"template-results"},Cq={key:11,class:"template-results-by-type"},wq={key:12,class:"template-games"},kq={key:13,class:"template-taken-corners"},Eq={key:14,class:"template-videos"},Vq={key:15,class:"template-how-was-corner"},xq={key:16,class:"template-zone"},Nq={key:17,class:"template-what-happened"},Tq={key:1,class:"templates__footer"},Bq={class:"templates__footer__button"},Fq={class:"templates__footer__button"},Pq={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(!1),r=e.ref({playingAs:o.playingAs,gameSections:o.gameSections,statisticType:o.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),d=e.ref(null),p=e.ref(null),f=e.ref(null),y=e.ref(null),h=e.ref(null),c=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!==T.VIDEOS?o.isExpansionMode?"10px 0":o.padding:"0","--footer-border-color":o.footerBorderColor,"--footer-border-width":o.footerBorderWidth,"--text-color":o.textColor})),u=e.computed(()=>{const C=[];return o.productivityCategories&&Object.values(o.productivityCategories).forEach(E=>{E.categories&&E.categories.forEach(v=>{C.push(v)})}),C}),m=e.computed(()=>{const C=[];return o.playsCategories&&Object.values(o.playsCategories).forEach(E=>{E.categories&&E.categories.forEach(v=>{C.push(v)})}),C}),g=e.computed(()=>{const C=u.value.filter(E=>E.isSelected);return J(C),o.filterType===T.PRODUCTIVITY&&a("change-categories-selected",C.length),C.length}),_=e.computed(()=>!o.isForTemplateForm&&g.value>=o.productivityMaxCategories),k=e.computed(()=>!o.isForTemplateForm&&g.value<=o.productivityMinCategories),W=e.computed(()=>o.isPlayingAsHidden?o.gameSections:o.playingAs.concat(o.gameSections));e.watch(r,C=>{o.filterType===T.DETAILS&&a("update:filters",C)},{immediate:!0,deep:!0}),e.watch(()=>W.value,C=>{if(o.filterType===T.DETAILS){const E=C.filter(v=>v.isSelected);a("change-filters-selected",E.length)}},{immediate:!0,deep:!0}),e.watch(()=>o.playsGolstatsCategories,C=>{if(o.filterType===T.PLAYS_TYPES||o.filterType===T.GOLSTATS){const E=C.filter(v=>v.isSelected);a("change-filters-selected",E.length)}},{immediate:!0}),e.watch(()=>o.fieldAreas,C=>{o.filterType===T.FIELD&&a("change-filters-selected",C.length)}),e.watch(m,()=>{o.filterType===T.PLAYS&&$()},{immediate:!0,deep:!0}),e.watch(u,()=>{o.filterType===T.PRODUCTIVITY&&H()},{immediate:!0,deep:!0}),e.watch(()=>o.resultsFilters,C=>{o.filterType===T.RESULTS&&a("change-filters-selected",C.results.filter(E=>E.isSelected).length)},{immediate:!0,deep:!0});function J(C){setTimeout(()=>{C.sort((E,v)=>E.priority-v.priority),C.forEach((E,v)=>{E.priority=v+1})},10)}function L(C=null){G(C)}function G(C=null){o.filterType===T.PRODUCTIVITY?u.value.forEach(E=>{E.isSelected=!1}):o.filterType===T.PLAYS?(m.value.forEach(E=>{E.isSelected=!0}),l.value=!0):o.filterType===T.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):o.filterType===T.DETAILS?(o.playingAs.forEach(E=>{E.isSelected=!0}),o.gameSections.forEach(E=>{E.isSelected=!0})):o.filterType===T.TOURNAMENTS?(o.tournaments.forEach((E,v)=>{o.isOneTournamentOnly?E.isSelected=v===0:E.isSelected=!0}),a("change-filters-selected",0)):o.filterType===T.PLAYS_TYPES?o.playsGolstatsCategories.forEach(E=>{E.isSelected=!0}):o.filterType===T.GOLSTATS?o.playsGolstatsCategories.forEach(E=>{E.isSelected=!1}):o.filterType===T.UNIVERSE?d.value&&d.value.resetFilters():o.filterType===T.PERSONAL_DATA?(s.value&&s.value.onClearFilters(C||oe.All),a("change-personal-data-filters",{})):o.filterType===T.DISTANCE?a("update:filters",{minValue:o.distanceFilters.minLimit,maxValue:o.distanceFilters.maxLimit}):o.filterType===T.RESULTS?a("update:filters",{results:o.resultsFilters.results.map(E=>(E.isSelected=!0,E))}):o.filterType===T.RESULTS_BY_TIME?h.value&&h.value.removeFilters():o.filterType===T.GAMES?o.gamesFilters.forEach(E=>{E.isSelected=!0}):o.filterType===T.TAKEN_CORNERS?p.value.clearFilters():o.filterType===T.HOW_WAS_CORNER?(o.howWasCornerFilters.left.forEach(E=>{E.isSelected=!0}),o.howWasCornerFilters.right.forEach(E=>{E.isSelected=!0})):o.filterType===T.ZONE?f.value&&f.value.clearFilters():o.filterType===T.WHAT_HAPPENED&&y.value&&y.value.onResetFilters()}function Z(C){o.filterType===T.TOURNAMENTS&&a("change-filters-selected",C)}function q(C){o.filterType===T.UNIVERSE&&a("change-universe-filters",C)}function Y(C){o.filterType===T.FIELD&&a("change-field-areas",C)}function R(C){o.filterType===T.GOLSTATS&&a("change-filters-selected",C)}function N(C){a("change-filters-selected",C)}function D(C){o.filterType===T.PRODUCTIVITY?u.value.forEach(E=>{E.isSelected=C}):(l.value=C,o.playsCategories.offensive.categories.forEach(E=>{E.isSelected=C}),o.playsCategories.defensive.categories.forEach(E=>{E.isSelected=C}),o.playsCategories.possession.categories.forEach(E=>{E.isSelected=C}),o.playsCategories.offenses.categories.forEach(E=>{E.isSelected=C}))}function $(){let C=0;const E={playsCategories:m.value.filter(v=>v.isSelected)};l.value=E.playsCategories.length===m.value.length,C=E.playsCategories.length,Object.values(n.value).forEach(v=>{v&&C++}),a("change-filters-selected",C),a("update:filters",E)}function H(){let C=0;const E={productivityFilters:u.value.filter(v=>v.isSelected),offensesConditions:n.value};C=E.productivityFilters.length,Object.values(n.value).forEach(v=>{v&&C++}),a("change-filters-selected",C),a("update:filters",E)}function K(){a("apply")}function ce(){(o.filterType===T.PLAYS_TYPES||o.filterType===T.GOLSTATS)&&o.playsGolstatsCategories&&o.playsGolstatsCategories.forEach(C=>{C.isSelected=!1}),o.filterType===T.PRODUCTIVITY&&u.value.forEach(C=>{C.isSelected=!1}),a("apply")}function x(C){a("update:filters",C)}function w(C){o.filterType===T.PERSONAL_DATA&&a("update:filters",C)}function S(C){o.filterType===T.TOURNAMENTS&&a("update:filters",C)}function F(C){(o.filterType===T.PLAYS_TYPES||o.filterType===T.GOLSTATS)&&a("update:filters",C)}function V(C){o.filterType===T.PRODUCTIVITY&&(n.value=C,H())}function j(C){o.filterType===T.DISTANCE&&a("update:filters",C)}function P(C){o.filterType===T.RESULTS&&a("update:filters",C)}function U(C){o.filterType===T.GAMES&&(a("update:filters",C),a("change-filters-selected",C.filter(E=>E.isSelected).length))}function O(C){r.value.statisticType=C}const b=e.computed(()=>o.filterType===T.PLAYS?m.value.length:o.filterType===T.PRODUCTIVITY?u.value.length:o.filterType===T.FIELD?16:o.filterType===T.UNIVERSE?6:o.filterType===T.DETAILS?8:o.filterType===T.RESULTS||o.filterType===T.RESULTS_BY_TIME?3:o.filterType===T.GAMES?o.gamesFilters.length:0);return a("total-filters",b),i({clearFilters:L}),(C,E)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(c.value)},[t.filterType===e.unref(T).PRODUCTIVITY||t.filterType===e.unref(T).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(T).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",iq,[t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",oq,[e.createTextVNode(" Elige tipo de jugadas: "),sq])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",lq,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",rq,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(T).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",nq,[e.createVNode(e.unref(se),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":l.value,"label-color":t.textColor,"onUpdate:modelValue":D},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",dq,[t.filterType===e.unref(T).PLAYS?(e.openBlock(),e.createElementBlock("div",cq,[e.createVNode(nW,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",pq,[e.createVNode(iL,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":_.value,"are-min-categories-reached":k.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"onUpdate:offensesConditions":V},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).FIELD?(e.openBlock(),e.createElementBlock("div",mq,[e.createVNode(e.unref(mc),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":Y}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).DETAILS?(e.openBlock(),e.createElementBlock("div",yq,[e.createVNode(zL,{"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:O},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(T).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",hq,[e.createVNode(Gv,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":w},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",uq,[e.createVNode(OL,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:Z,"onUpdate:filters":S},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",fq,[e.createVNode(Zd,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":F},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).GOLSTATS?(e.openBlock(),e.createElementBlock("div",gq,[e.createVNode(Zd,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:R,"onUpdate:filters":F},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).UNIVERSE?(e.openBlock(),e.createElementBlock("div",_q,[e.createVNode(ID,{ref_key:"templateUniverse",ref:d,"universe-filters":t.universeFilters,"onUpdate:universeFilters":q},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).DISTANCE?(e.openBlock(),e.createElementBlock("div",bq,[e.createVNode(aR,{distance:t.distanceFilters,"onUpdate:distanceFilters":j},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).RESULTS?(e.openBlock(),e.createElementBlock("div",Sq,[e.createVNode(pW,{ref_key:"templateResults",ref:h,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":P},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",Cq,[e.createVNode(tq,{ref_key:"templateResults",ref:h,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).GAMES?(e.openBlock(),e.createElementBlock("div",wq,[e.createVNode(dR,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":U},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",kq,[e.createVNode(bH,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:p,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).VIDEOS?(e.openBlock(),e.createElementBlock("div",Eq,[e.createVNode(tH,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",Vq,[e.createVNode(IH,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).ZONE?(e.openBlock(),e.createElementBlock("div",xq,[e.createVNode(DJ,{ref_key:"templateZone",ref:f,"zone-filters":t.zoneFilters,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(T).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",Nq,[e.createVNode(HJ,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:y,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:N,"onUpdate:filters":x},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Tq,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:ce})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Bq,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:ce})):(e.openBlock(),e.createBlock(e.unref(gi),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:G}))]),e.createElementVNode("div",Fq,[e.createVNode(e.unref(gi),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:K})])],64))])):e.createCommentVNode("",!0)],4))}},rp=re(Pq,[["__scopeId","data-v-344eb729"]]),$q=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Aq={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(t){return!Number.isNaN(t)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3},leftMenu:{type:String,default:"unset"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(c=>({"398d9242":t.width,f164e302:d.value,"4bb88040":t.menuWidth}));const o=e.ref(null),s=e.ref(!1),l=e.ref(null),r=e.ref({}),n=e.computed(()=>{const c={top:"0px","--left-menu":a.leftMenu};if(o.value){const u=o.value.getBoundingClientRect();c.top=`${u.height+a.menuMarginTop}px`}return c}),d=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,c=>{c!==s.value&&(s.value=c)},{immediate:!0}),e.watch(s,c=>{c||setTimeout(()=>{r.value["--translate-x"]="0px"},500)});function p(c){const u=window.innerWidth,m=c.boundingClientRect.x,g=c.boundingClientRect.x+c.boundingClientRect.width,_=m<=0?Math.abs(m)+4:g>=u?u-(g+10):0;r.value["--translate-x"]=`${_}px`}function f(){new IntersectionObserver(c=>{c[0].intersectionRatio>0&&p(c[0])}).observe(l.value)}function y(){s.value=!s.value,i("update:modelValue",s.value)}function h(){s.value=!1,i("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{f()})}),(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:h})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:o,class:"menu-container__trigger",onClick:y},[e.renderSlot(c.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:l,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(c.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},zq=$q(Aq,[["__scopeId","data-v-18c0df61"]]),It=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),Iq={key:0,class:"button__icon"},Mq={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lq=["stroke"],Dq=["stroke"],Rq=["stroke"],Oq={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jq=["stroke"],vq=["stroke"],Wq=["fill"],Uq={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gq=["fill"],Hq={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jq=["stroke"],qq=["stroke"],Zq=["stroke"],Yq=["stroke"],Kq=["stroke"],Xq={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qq=It(()=>e.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1)),eZ=[Qq],tZ={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aZ=It(()=>e.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1)),iZ=[aZ],oZ={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sZ=It(()=>e.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1)),lZ=[sZ],rZ={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nZ=It(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),dZ=It(()=>e.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),cZ=It(()=>e.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),pZ=It(()=>e.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),mZ=[nZ,dZ,cZ,pZ],yZ={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hZ=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-2504d135><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-2504d135></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-2504d135></path></g><defs data-v-2504d135><clipPath id="gpdeo9cu3a" data-v-2504d135><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-2504d135></path></clipPath></defs>',2),uZ=[hZ],fZ={class:"button__text"},gZ={key:0,class:"info-container"},_Z={key:1,style:{width:"20px"}},bZ={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},SZ=["fill"],CZ={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadge:{type:Boolean,default:!0},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"},showIcon:{type:Boolean,default:!0}},setup(t){const i=t,a=e.computed(()=>({"--height":i.height,"--width":i.width,"--text-font-family":i.textFontFamily,"--text-font-size":i.textFontSize,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.isActive?i.borderColorActive:i.borderColor,"--border-width":i.borderWidth,"--padding":i.padding,"--font-color":i.fontColor})),o=e.computed(()=>({"--info-background-color":i.infoValue?i.infoBackgroundColor:"transparent","--info-border-color":i.infoValue?i.infoBorderColor:"transparent","--info-border-radius":i.infoBorderRadius,"--info-font-family":i.infoFontFamily,"--info-font-size":i.infoFontSize,"--info-font-color":i.infoFontColor,"--info-height":i.infoHeight,"--info-width":i.infoWidth})),s=e.computed(()=>[T.PLAYS_TYPES,T.GOLSTATS,T.TOURNAMENTS,T.PLAYS,T.RESULTS,T.RESULTS_BY_TIME].includes(i.iconType)),l=e.computed(()=>[T.FIELD,T.GAMES].includes(i.iconType)),r=e.computed(()=>[T.DETAILS,T.UNIVERSE].includes(i.iconType)),n=e.computed(()=>[T.PERSONAL_DATA].includes(i.iconType)),d=e.computed(()=>[T.PRODUCTIVITY].includes(i.iconType)),p=e.computed(()=>[T.HOW_WAS_CORNER].includes(i.iconType)),f=e.computed(()=>[T.TAKEN_CORNERS].includes(i.iconType)),y=e.computed(()=>[T.ZONE].includes(i.iconType)),h=e.computed(()=>[T.WHAT_HAPPENED].includes(i.iconType));return(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",Iq,[n.value?(e.openBlock(),e.createElementBlock("svg",Mq,[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,Lq),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,Dq),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,Rq)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",Oq,[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,jq),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,vq),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,Wq)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",Uq,[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,Gq)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",Hq,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,Jq),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,qq),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,Zq),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,Yq),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,Kq)])):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",Xq,eZ)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",tZ,iZ)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",oZ,lZ)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",rZ,mZ)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",yZ,uZ)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",fZ,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",gZ,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filtersTotal>0&&t.filtersTotal!=parseInt(t.infoValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)):t.filtersTotal>0?(e.openBlock(),e.createElementBlock("div",_Z)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",bZ,[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,SZ)]))],2)],4))}},wZ=re(CZ,[["__scopeId","data-v-2504d135"]]),kZ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},EZ=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),VZ={class:"panel__activator__icon"},xZ=["src"],NZ={class:"panel__activator__text"},TZ=["height","width"],BZ=["stroke"],FZ={class:"panel__content"},PZ=EZ(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),$Z={class:"panel__content__slot"},AZ={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,r=>{o.value=r},{immediate:!0});function l(){o.value=!o.value,i("update:modelValue",o.value)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:l},[e.createElementVNode("div",VZ,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,xZ)):e.createCommentVNode("",!0)]),e.createElementVNode("div",NZ,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,BZ)],8,TZ))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",FZ,[PZ,e.createElementVNode("div",$Z,[e.renderSlot(r.$slots,"content",{},void 0,!0)])],512),[[e.vShow,o.value]])]),_:3})],4))}},zZ=kZ(AZ,[["__scopeId","data-v-0ca35abc"]]),at={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},IZ={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}},MZ={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}]}},LZ={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},DZ=[{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}]}],RZ=[{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}],OZ=[{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}],jZ={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},np={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},vZ={class:"filters"},WZ={key:0,class:"filters__expansion"},UZ={class:"content"},GZ={key:1,class:"filters__menus"},HZ={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0}},emits:["update:filters","apply","close"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(b=>({"5e59eb26":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.PRODUCTIVITY,isFooterVisible:!0},l={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.PLAYS,isFooterVisible:!0},r={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.DETAILS,isFooterVisible:!0},d={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.TOURNAMENTS,isFooterVisible:!0},p={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.PERSONAL_DATA,isFooterVisible:!0},f={width:"310px",modalHeight:o.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"380px",modalHeight:o.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},h={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.UNIVERSE,isFooterVisible:!0},c={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.DISTANCE,isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.RESULTS,padding:"0",isFooterVisible:!0},m={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.VIDEOS,isFooterVisible:!1},_={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.GAMES,isFooterVisible:!0},k={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.TAKEN_CORNERS,isFooterVisible:!0},W={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.HOW_WAS_CORNER,isFooterVisible:!0},J={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.ZONE,isFooterVisible:!0},L={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:T.WHAT_HAPPENED,isFooterVisible:!0},G=e.ref(!1),Z=e.ref(!1),q=e.ref(0),Y=e.ref(0),R=e.ref({}),N=e.ref(null),D=e.ref(null),$=e.computed(()=>o.isForTemplateForm?"0":"unset"),H=e.computed(()=>o.buttonFilterProps&&o.buttonFilterProps.text?o.buttonFilterProps.text:o.menuButtonText||F()),K=e.computed(()=>o.isFromTemplates?T.RESULTS:o.filterType),ce=e.computed(()=>o.expansionPanelText||F()),x=e.ref(null);e.watch(()=>o.filterType,b=>{if(b===T.PRODUCTIVITY)R.value={...s,...o.templateProps,productivityCategories:o.filters||IZ};else if(b===T.PLAYS)R.value={...l,...o.templateProps,fontFamily:o.buttonFilterProps?o.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:o.filters||MZ};else if(b===T.FIELD)R.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters||[]};else if(b===T.DETAILS)R.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:at.isPlayingAsHidden,playingAs:o.filters&&o.filters.playingAs||at.playingAs,gameSections:o.filters&&o.filters.gameSections||at.gameSections,statisticType:o.filters?o.filters.statisticType:at.statisticType,isStatisticTypeVisible:o.filters?o.filters.isStatisticTypeVisible:at.isStatisticTypeVisible};else if(b===T.TOURNAMENTS){const C=o.filters||DZ;o.isOneTournamentOnly&&C.forEach(E=>{E.isSelected=E.id===o.defaultTournamentId}),R.value={...d,...o.templateProps,tournaments:C}}else b===T.PERSONAL_DATA?R.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:b===T.PLAYS_TYPES?R.value={...f,...o.templateProps,playsGolstatsCategories:o.filters||RZ}:b===T.GOLSTATS?R.value={...y,...o.templateProps,playsGolstatsCategories:o.filters||OZ}:b===T.UNIVERSE?R.value={...h,...o.templateProps,universeFilters:o.filters||LZ}:b===T.DISTANCE?R.value={...c,...o.templateProps,distanceFilters:o.filters||jZ}:b===T.RESULTS?R.value={...u,...o.templateProps,resultsFilters:o.filters||np}:b===T.RESULTS_BY_TIME?R.value={...m,...o.templateProps,resultsByTimeFilters:o.filters||qs}:b===T.GAMES?R.value={..._,...o.templateProps,gamesFilters:o.filters||[]}:b===T.VIDEOS?R.value={...g,...o.templateProps,token:o.token}:b===T.TAKEN_CORNERS?R.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:b===T.HOW_WAS_CORNER?R.value={...W,...o.templateProps,howWasCornerFilters:o.filters||Gs}:b===T.ZONE?R.value={...J,...o.templateProps,zoneFilters:o.filters||[...Ea]}:b===T.WHAT_HAPPENED&&(R.value={...L,...o.templateProps,whatHappenedFilters:o.filters||[...Js]});R.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(R.value.width="100%",R.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>o.filters,()=>{if(o.filterType===T.PRODUCTIVITY)R.value={...s,...o.templateProps,productivityCategories:o.filters};else if(o.filterType===T.PLAYS)R.value={...l,...o.templateProps,playsCategories:o.filters};else if(o.filterType===T.FIELD)R.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters};else if(o.filterType===T.DETAILS)R.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:at.isPlayingAsHidden,playingAs:o.filters?o.filters.playingAs:at.playingAs,gameSections:o.filters?o.filters.gameSections:at.gameSections,statisticType:o.filters?o.filters.statisticType:at.statisticType,isStatisticVisible:o.filters?o.filters.isStatisticVisible:at.isStatisticVisible};else if(o.filterType===T.TOURNAMENTS){const b=o.filters;o.isOneTournamentOnly&&b.forEach(C=>{C.isSelected=C.id===o.defaultTournamentId}),R.value={...d,...o.templateProps,tournaments:b}}else o.filterType===T.PERSONAL_DATA?R.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:o.filterType===T.PLAYS_TYPES?R.value={...f,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===T.GOLSTATS?R.value={...y,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===T.UNIVERSE?R.value={...h,...o.templateProps,universeFilters:o.filters}:o.filterType===T.DISTANCE?R.value={...c,...o.templateProps,distanceFilters:o.filters}:o.filterType===T.RESULTS?R.value={...u,...o.templateProps,resultsFilters:o.filters||np}:o.filterType===T.RESULTS_BY_TIME?R.value={...m,...o.templateProps,resultsByTimeFilters:o.filters||qs}:o.filterType===T.GAMES?R.value={..._,...o.templateProps,gamesFilters:o.filters}:o.filterType===T.VIDEOS?R.value={...g,...o.templateProps,token:o.token}:o.filterType===T.TAKEN_CORNERS?R.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:o.filterType===T.HOW_WAS_CORNER?R.value={...W,...o.templateProps,howWasCornerFilters:o.filters||Gs}:o.filterType===T.ZONE?R.value={...J,...o.templateProps,zoneFilters:o.filters||[...Ea]}:o.filterType===T.WHAT_HAPPENED&&(R.value={...L,...o.templateProps,whatHappenedFilters:o.filters||[...Js]});R.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(R.value.width="100%",R.value.maxWidth="100%")}),e.watch(G,b=>{b||a("close",x.value)}),e.watch(Z,b=>{b||a("close",x.value)});function w(b){q.value=b}function S(){o.isExpansionPanel?Z.value=!1:G.value=!1,a("apply",x.value)}function F(){if(o.filterType===T.PRODUCTIVITY)return o.isFromTemplates?"Tipos de jugadas":"Características de juego";if(o.filterType===T.PLAYS)return"Jugada(s)";if(o.filterType===T.FIELD)return"Zona de cancha";if(o.filterType===T.DETAILS)return"Detalles";if(o.filterType===T.TOURNAMENTS)return"Ligas";if(o.filterType===T.PERSONAL_DATA)return"Datos personales";if(o.filterType===T.PLAYS_TYPES)return"Tipos de jugada";if(o.filterType===T.GOLSTATS)return"Filtros Golstats";if(o.filterType===T.UNIVERSE)return"Universo";if(o.filterType===T.DISTANCE)return"Distancia";if([T.RESULTS,T.RESULTS_BY_TIME].includes(o.filterType))return"Resultados";if(o.filterType===T.GAMES)return"Partidos";if(o.filterType===T.VIDEOS)return"Videos";if(o.filterType===T.TAKEN_CORNERS)return"¿Quién cobró?";if(o.filterType===T.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(o.filterType===T.ZONE)return"Zona";if(o.filterType===T.WHAT_HAPPENED)return"¿Qué sucedió?"}function V(b){R.value.fieldAreas=b,q.value=b.length,P(b)}function j(b){let C=0;b.value&&b.value.statistics&&(b.value.minutesPlayed&&C++,b.value.percentMinutesPlayed&&C++,b.value.lastMonths&&C++,b.value.statistics.totals&&C++,b.value.statistics.averagePerGame&&C++,b.value.statistics.averagePerMinute&&C++),R.value.universe=b.value,q.value=C,P(b.value)}function P(b){x.value=b,a("update:filters",b)}function U(b){Y.value=b}function O(b=null){N.value&&N.value.clearFilters(b),D.value&&D.value.clearFilters(b)}return i({clearFilters:O}),(b,C)=>(e.openBlock(),e.createElementBlock("div",vZ,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",WZ,[e.createVNode(e.unref(zZ),e.mergeProps(t.expansionPanelProps,{modelValue:Z.value,"onUpdate:modelValue":C[0]||(C[0]=E=>Z.value=E),text:ce.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+o.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",UZ,[e.createVNode(rp,e.mergeProps(R.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateExpansionPanel",ref:D,onChangeFieldAreas:V,onChangeCategoriesSelected:w,onChangeFiltersSelected:w,onChangeUniverseFilters:j,onApply:S,"onUpdate:filters":P,onTotalFilters:U}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",GZ,[e.createVNode(e.unref(zq),{modelValue:G.value,"onUpdate:modelValue":C[1]||(C[1]=E=>G.value=E),width:t.width,"left-menu":$.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(wZ,e.mergeProps(t.buttonFilterProps,{text:H.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":q.value,"filters-total":Y.value.value,"is-active":G.value,"icon-type":K.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(rp,e.mergeProps(R.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateMenu",ref:N,onChangeFieldAreas:V,onChangeCategoriesSelected:w,onChangeFiltersSelected:w,onChangeUniverseFilters:j,"onUpdate:filters":P,onTotalFilters:U,onApply:S}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},Zs=re(HZ,[["__scopeId","data-v-a8b543ef"]]),JZ={class:"dropdown__position"},qZ={key:0,class:"label"},ZZ={class:"selected-item"},dp={__name:"DropdownPositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isLabelVisible:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-positions"],setup(t,{emit:i}){const a=t,o={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),l=e.computed(()=>{const d={...yt};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{d[p]=a.dropdownProps[p]}),d}),r=e.computed(()=>{let d=a.positions&&a.positions.length?[...a.positions]:[];const p=d[0];return(!p||p.id!==0)&&d.unshift(o),d.sort((f,y)=>f.id-y.id),d});e.watch(r,d=>{const p=d.filter(f=>f.isSelected);p.length===r.value.length-1&&(d[0].isSelected=!0),d[0]&&d[0].isSelected?s.value="Todas las posiciones":p.length===1?s.value=p[0].name:s.value=`${p.length} seleccionadas`,i("change-positions",d)},{immediate:!0,deep:!0});function n(d,p){p.id===0?r.value.forEach(f=>{f.isSelected=d}):(p.isSelected=d,r.value[0].isSelected=r.value.every((f,y)=>y===0?!0:f.isSelected))}return(d,p)=>(e.openBlock(),e.createElementBlock("div",JZ,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",qZ,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps(l.value,{"is-multiple-option":"",items:r.value,arrowWidth:"10"}),{default:e.withCtx(()=>[e.createElementVNode("div",ZZ,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(s.value),1)],64))])]),availableItem:e.withCtx(({item:f})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":f.isSelected,label:t.isFemale?f.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):f.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":y=>n(y,f)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},YZ={class:"dropdown-years"},KZ={key:0,class:"label"},XZ={class:"selected-item"},cp={__name:"DropdownYears",props:{years:{type:Array,default:()=>[]},selectedYear:{type:[Number,String],default:0},hasNoLimitOption:{type:Boolean,default:!0},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-year"],setup(t,{emit:i}){const a=t,o=e.computed(()=>{const r={...yt};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(n=>{r[n]=a.dropdownProps[n]}),r}),s=e.computed(()=>a.hasNoLimitOption?["Sin límite",...a.years]:a.years);function l(r){i("change-year",r)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",YZ,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",KZ,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps({"model-value":t.selectedYear,arrowWidth:"10"},o.value,{items:s.value,"onUpdate:modelValue":l}),{default:e.withCtx(({selectedItem:d})=>[e.createElementVNode("div",XZ,e.toDisplayString(d),1)]),availableItem:e.withCtx(({item:d})=>[e.createElementVNode("div",null,e.toDisplayString(d),1)]),_:1},16,["model-value","items"])]))}},QZ=t=>(e.pushScopeId("data-v-8bd3ce77"),t=t(),e.popScopeId(),t),eY={class:"dropdown-templates"},tY={key:0,class:"label"},aY={class:"selected-item"},iY={class:"item"},oY={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sY=QZ(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1)),lY=[sY],rY={__name:"DropdownTemplates",props:{dropdownProps:{type:Object,default:()=>null},selectedTemplate:{type:Object,default:()=>{}},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},teamId:{type:Number,default:0}},emits:["change-template"],setup(t,{emit:i}){const a=t,o=e.ref([]),s=e.ref(null),l=e.computed(()=>{const d={...yt};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{d[p]=a.dropdownProps[p]}),d});e.watch(()=>a.teamId,d=>{d&&n()},{immediate:!0});function r(d){s.value=d,i("change-template",d)}async function n(){try{const d=await Pt.get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${a.teamId}/templates`,{headers:{Authorization:a.token}});o.value=d.data&&d.data.data?d.data.data:[]}catch(d){console.error("Error filling templates: ",d)}}return n(),(d,p)=>(e.openBlock(),e.createElementBlock("div",eY,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",tY,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps({"model-value":t.selectedTemplate},l.value,{items:o.value,"arrow-width":"10",onInput:r}),{default:e.withCtx(({selectedItem:f})=>[e.createElementVNode("div",aY,e.toDisplayString(f.name),1)]),availableItem:e.withCtx(({item:f})=>[e.createElementVNode("div",iY,[e.createElementVNode("div",null,e.toDisplayString(f.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",oY,lY,512)),[[e.vShow,s.value.name===f.name]])])]),_:1},16,["model-value","items"])]))}},nY=re(rY,[["__scopeId","data-v-8bd3ce77"]]);function Ys(){return{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!1}}function pp(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!0}}function dY(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 0px",textFontFamily:"'Poppins-Regular'"}}const Ii="/group-427321501.svg",mp="/shape.svg",cY="_filtersContainer_b9wc6_1",pY="_filtersContainer1232_b9wc6_1",mY="_closeFiltersPc_b9wc6_1",yY="_textleyemdmultipleleagues_b9wc6_1",hY="_textleyemdmultipleleagues380_b9wc6_1",uY="_filtersContainer760_b9wc6_1",fY="_filtersContainer460_b9wc6_1",gY="_containerSectionPlay_b9wc6_1",_Y="_containerSectionPlay1232_b9wc6_1",bY="_containerSectionPlay960_b9wc6_1",SY="_containerSectionPlay320_b9wc6_1",CY="_containerSectionPlay350_b9wc6_1",wY="_containerSection_b9wc6_1",kY="_containerSection1232_b9wc6_1",EY="_containerSection960_b9wc6_1",VY="_containerSection320_b9wc6_1",xY="_containerSection350_b9wc6_1",NY="_templateLosMejores_b9wc6_1",TY="_templateLosMejores1232_b9wc6_1",BY="_templateLosMejores960_b9wc6_1",FY="_templateLosMejores420_b9wc6_1",PY="_templateLosMejores320_b9wc6_1",$Y="_templateLosMejores540_b9wc6_1",AY="_templateLosMejores350_b9wc6_1",zY="_topFiltersParent_b9wc6_1",IY="_topFiltersParent1232_b9wc6_1",MY="_topFiltersParent960_b9wc6_1",LY="_topFiltersParent460_b9wc6_1",DY="_topFiltersParent420_b9wc6_1",RY="_containerTheBest_b9wc6_1",OY="_containerTheBest1232_b9wc6_1",jY="_containerTheBest960_b9wc6_1",vY="_containerTheBest320_b9wc6_1",WY="_titleSection_b9wc6_1",UY="_titleSection540_b9wc6_1",GY="_containerTables_b9wc6_1",HY="_containerTables960_b9wc6_1",JY="_containerTables760_b9wc6_1",qY="_containerTables320_b9wc6_1",ZY="_toniKroosWrapper_b9wc6_1",YY="_toniKroosWrapper1080_b9wc6_1",KY="_toniKroosWrapper975_b9wc6_1",XY="_toniKroosWrapper760_b9wc6_1",QY="_toniKroosWrapper420_b9wc6_1",eK="_toniKroosWrapper320_b9wc6_1",tK="_frameChild_b9wc6_1",aK="_filtros_b9wc6_1",iK="_groupParent_b9wc6_1",oK="_shapeIcon_b9wc6_1",sK="_btnFilters_b9wc6_1",lK="_btnFiltersPC_b9wc6_1",rK="_quitarFiltros_b9wc6_1",nK="_quitarFiltros730_b9wc6_1",dK="_quitarFiltros480_b9wc6_1",cK="_quitarFiltros380_b9wc6_1",pK="_btnCloseFilters_b9wc6_1",mK="_mejoresJugadores_b9wc6_1",yK="_mejoresJugadores730_b9wc6_1",hK="_mejoresJugadores480_b9wc6_1",uK="_mejoresJugadoresSM_b9wc6_1",fK="_toniKroos_b9wc6_1",gK="_teamBar_b9wc6_1",_K="_menuSection_b9wc6_1",bK="_menuSection960_b9wc6_1",SK="_menuSectionPlay_b9wc6_1",CK="_menuSectionPlay960_b9wc6_1",wK="_containerMenu_b9wc6_1",kK="_containerMenu760_b9wc6_1",EK="_containerFilters_b9wc6_1",VK="_teamBarParent_b9wc6_1",xK="_topFilters_b9wc6_1",NK="_topFilters1232_b9wc6_1",TK="_topFilters420_b9wc6_1",BK="_topFilters460_b9wc6_1",FK="_losMejores_b9wc6_1",PK="_losMejores380_b9wc6_1",$K="_losMejores530_b9wc6_1",AK="_losMejores730_b9wc6_1",zK="_menuSectionHeader_b9wc6_1",IK="_menuSectionHeader1232_b9wc6_1",MK="_menuSectionHeader960_b9wc6_1",LK="_menuSectionHeader730_b9wc6_1",DK="_dropdown_b9wc6_1",RK="_dropdown730_b9wc6_1",OK="_dropdown1_b9wc6_1",jK="_dropdown1730_b9wc6_1",vK="_dropdownParent_b9wc6_1",WK="_dropdownParent730_b9wc6_1",UK="_menuSectionParentHeader_b9wc6_1",GK="_menuSectionParentHeader1232_b9wc6_1",HK="_menuSectionParentHeader960_b9wc6_1",JK="_menuSectionParentHeader730_b9wc6_1",qK="_menuSectionParentHeader430_b9wc6_1",ZK="_descubreVideos_b9wc6_1",YK="_descubreVideos1232_b9wc6_1",KK="_descubreVideos960_b9wc6_1",XK="_allCategories_b9wc6_1",QK="_containerScountingBtn_b9wc6_3",eX="_btnDeleteAplica_b9wc6_13",tX="_SearchBtnBar_b9wc6_33",aX="_btnLeyendTxt_b9wc6_52",iX="_BtnSearchScounting_b9wc6_61",oX="_containerPredefined_b9wc6_85",sX="_containerPredefinedScounting_b9wc6_92",lX="_titleContainerPredefined_b9wc6_100",rX="_subtitleContainerPredefined_b9wc6_111",nX={filtersContainer:cY,filtersContainer1232:pY,closeFiltersPc:mY,textleyemdmultipleleagues:yY,textleyemdmultipleleagues380:hY,filtersContainer760:uY,filtersContainer460:fY,containerSectionPlay:gY,containerSectionPlay1232:_Y,containerSectionPlay960:bY,containerSectionPlay320:SY,containerSectionPlay350:CY,containerSection:wY,containerSection1232:kY,containerSection960:EY,containerSection320:VY,containerSection350:xY,templateLosMejores:NY,templateLosMejores1232:TY,templateLosMejores960:BY,templateLosMejores420:FY,templateLosMejores320:PY,templateLosMejores540:$Y,templateLosMejores350:AY,topFiltersParent:zY,topFiltersParent1232:IY,topFiltersParent960:MY,topFiltersParent460:LY,topFiltersParent420:DY,containerTheBest:RY,containerTheBest1232:OY,containerTheBest960:jY,containerTheBest320:vY,titleSection:WY,titleSection540:UY,containerTables:GY,containerTables960:HY,containerTables760:JY,containerTables320:qY,toniKroosWrapper:ZY,toniKroosWrapper1080:YY,toniKroosWrapper975:KY,toniKroosWrapper760:XY,toniKroosWrapper420:QY,toniKroosWrapper320:eK,frameChild:tK,filtros:aK,groupParent:iK,shapeIcon:oK,btnFilters:sK,btnFiltersPC:lK,quitarFiltros:rK,quitarFiltros730:nK,quitarFiltros480:dK,quitarFiltros380:cK,btnCloseFilters:pK,mejoresJugadores:mK,mejoresJugadores730:yK,mejoresJugadores480:hK,mejoresJugadoresSM:uK,toniKroos:fK,teamBar:gK,menuSection:_K,menuSection960:bK,menuSectionPlay:SK,menuSectionPlay960:CK,containerMenu:wK,containerMenu760:kK,containerFilters:EK,teamBarParent:VK,topFilters:xK,topFilters1232:NK,topFilters420:TK,topFilters460:BK,losMejores:FK,losMejores380:PK,losMejores530:$K,losMejores730:AK,menuSectionHeader:zK,menuSectionHeader1232:IK,menuSectionHeader960:MK,menuSectionHeader730:LK,dropdown:DK,dropdown730:RK,dropdown1:OK,dropdown1730:jK,dropdownParent:vK,dropdownParent730:WK,menuSectionParentHeader:UK,menuSectionParentHeader1232:GK,menuSectionParentHeader960:HK,menuSectionParentHeader730:JK,menuSectionParentHeader430:qK,descubreVideos:ZK,descubreVideos1232:YK,descubreVideos960:KK,allCategories:XK,containerScountingBtn:QK,btnDeleteAplica:eX,SearchBtnBar:tX,btnLeyendTxt:aX,BtnSearchScounting:iX,containerPredefined:oX,containerPredefinedScounting:sX,titleContainerPredefined:lX,subtitleContainerPredefined:rX},dX=e.ref(Ys()),cX={components:{GSCTableHeader:os,GscSwitchComponent:bs,GSCFilterperteam:Bd,GSCFilters:Zs,GSCExpandedInfo:ys,GSCLabel:Wd,GSCSeasonSelect:ud,GSCTopCategory:RI,GSCTournamentSelect:_d,GSCRowTable:rs},computed:{...bx.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{...dX.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}=Re(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:T,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilterAux(){this.resetPredefinedTeamAll()},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(oe.All),i.clearFilters(oe.AGE_RANGE),i.clearFilters(oe.YEAR),i.clearFilters(oe.NATIONALITY),i.clearFilters(oe.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=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,elegible:this.FVeligible,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.isSelection?(this.detailsObjectSelection.gameSections[0].isSelected=!0,this.detailsObjectSelection.gameSections[1].isSelected=!0,this.detailsObjectSelection.gameSections[2].isSelected=!0,this.detailsObjectSelection.gameSections[3].isSelected=!0,this.detailsObjectSelection.gameSections[4].isSelected=!0,this.detailsObjectSelection.gameSections[5].isSelected=!0):(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0),this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.isSelection?(this.detailsObjectSelection.playingAs[0].isSelected=!0,this.detailsObjectSelection.playingAs[1].isSelected=!0):(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0),this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.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(oe.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(oe.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(oe.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(oe.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(i!=-1?this.arrayFiltersPlays[i].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(oe.All),a.clearFilters(oe.AGE_RANGE),a.clearFilters(oe.YEAR),a.clearFilters(oe.NATIONALITY),a.clearFilters(oe.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange&&(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h]);var l=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}else if(this.FVeligible=!1,t.hasOwnProperty("nationalities")){let h=0;this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let c=0;c<t.nationalities.length;c++)t.nationalities[c].isSelected&&(this.fVnationalities.add(t.nationalities[c].id),h++);if(h===t.nationalities.length){var l=this.arrayFiltersPlays.findIndex(u=>u.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}}if(t.hasOwnProperty("nationalities")&&!this.FVeligible&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}if(t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;if(t.hasOwnProperty("positions")){let h=0;for(let c=0;c<t.positions.length;c++)t.positions[c].isSelected&&(this.fVsetPositionsIds.push(t.positions[c].id),h++);if(h===t.positions.length){var r=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPosition");r!==-1&&this.arrayFiltersPlays.splice(r,1)}}if(t.hasOwnProperty("nationalities"))var n=t.nationalities.filter(h=>h.isSelected===!0);var d=t.positions.filter(h=>h.isSelected===!0);if(d.length==1&&(o=d[0].name),t.hasOwnProperty("nationalities")&&n.length==1&&(s=n[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");p!=-1?this.arrayFiltersPlays[p].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var p=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersElegibility");p!=-1&&this.arrayFiltersPlays.splice(p,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var r=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPosition");r!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[r].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(r,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.ageLimits&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");y!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[y].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var y=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersAge");y!=-1&&this.arrayFiltersPlays.splice(y,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.categoriesPlaysTypes={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},this.detailsObject={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},this.detailsObjectSelection={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.onClickDeleteFilterAux(),this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){if(this.isSelection){if(this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,t=="Más productivos"){this.optionSelected="Scouting",this.resetFilter(),this.resetLeagues(),this.filterScounting.nationalities=[138],this.filterScounting.last_months=6,this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}else this.optionSelected="Jugadores",this.typeTable=0,this.isTeam=!1,this.resetFilterTeamAndPlayers(),this.resetScouting(),await this.loadPreloadedTops();this.optionSelectedSubmenu=t}else t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=he.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=he.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(y=>{this.predefinedFiltersMatchLapse[y.toString()]=o[0].match_lapse_combinations[y]}),Object.keys(o[0].playing_as_combinations).forEach(y=>{this.predefinedFiltersPlayingAs[y.toString()]=o[0].playing_as_combinations[y]}),Object.keys(o[0].field_sections_combinations).forEach(y=>{this.predefinedFiltersSections[y.toString()]=o[0].field_sections_combinations[y]}),o[0]){for(let y=0;y<o[0].filter_records.length;y++){var s=o[0].description;if(o[0].filter_records[y].field_sections!==void 0){const c=o[0].filter_records[y].field_sections.toString();(this.predefinedFiltersSections[c]||this.predefinedFiltersSections[c]=="")&&(this.predefinedFiltersSections[c]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[c]):s=s.replace("{field_sections}",this.predefinedFiltersSections[c]))}if(o[0].filter_records[y].match_lapse!==void 0){const c=o[0].filter_records[y].match_lapse.toString();(this.predefinedFiltersMatchLapse[c]||this.predefinedFiltersMatchLapse[c]=="")&&(this.predefinedFiltersMatchLapse[c]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[c]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[c]))}if(o[0].filter_records[y].playing_as!==void 0){const c=o[0].filter_records[y].playing_as.toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[c]))}o[0].filter_records[y].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[y].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:y,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[y].match_result,playingAs:o[0].filter_records[y].playing_as,sections:o[0].filter_records[y].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[y].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let y=0;y<this.arrayPredefinedFilters.length;y++){var n=0,d=new Set,p={},f=this.arrayPredefinedFilters[y].text.replace(/\*.*?\*/,"");if(f=f.replace(/\*/g,""),f=f.replace(/ +/g," "),this.arrayPredefinedFilters[y].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[y].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[y].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[y].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[y].filtersPredefined.start_age,this.arrayPredefinedFilters[y].filtersPredefined.end_age]:this.arrayPredefinedFilters[y].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[y].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[y].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[y].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[y].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[y].filtersPredefined.end_age],this.arrayPredefinedFilters[y].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[y].filtersPredefined.matchResult,this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length;h++)d.add(this.arrayPredefinedFilters[y].filtersPredefined.nationalities[h]);p.setNationalitiesIds=d}else d.add(138),d.add(222),d.add(163),d.add(51),d.add(226),d.add(10),d.add(223),d.add(96),d.add(171),d.add(198),d.add(105),d.add(80),d.add(29),d.add(74),d.add(216),d.add(196),d.add(64),d.add(155),d.add(156),d.add(89),d.add(106),d.add(81),d.add(233),d.add(204),p.setNationalitiesIds=d;this.arrayPredefinedFilters[y].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[y].filtersPredefined.playingAs,this.arrayPredefinedFilters[y].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[y].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[y].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[y].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[y].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[y].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[y].filtersPredefined.typeZone,this.optionSelected=="Equipos"&&(this.tournamentSelectedObj.is_female?f=f.replace(/Jugadoras/g,"Equipos"):f=f.replace(/Jugadores/g,"Equipos")),p.setNationalitiesIds=[],r.push({id:y+1,name:f,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((f,y)=>f-y).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),d=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=d.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let f=1;f<=p.length;f++)f%2===0||(d=d.replace("*",'<span style="color: #ffff03" >'));else d=d.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=d},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const d=a.get(r[0])||{};return{id:d.id,name:d.name,img:d.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var d,p,f,y,h,c,u,m,g,_;const k=o.get(r[0])||{};return{age:k.numberAge,categoryName:s.name,country:(p=(d=k.countryId)==null?void 0:d[0])==null?void 0:p.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:k.min,name:k.stringFullName,name_short:k.stringFullName,nationality:k.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(y=(f=k.countryId)==null?void 0:f[0])==null?void 0:y.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((c=(h=k.teamName)==null?void 0:h[0])==null?void 0:c.acronym)||"",teamid:((m=(u=k.teamName)==null?void 0:u[0])==null?void 0:m.team_id)||"",teamname:((_=(g=k.teamName)==null?void 0:g[0])==null?void 0:_.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=he.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=he.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 he.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)}}},pX={ref:"myDivRefTopsFull"},mX={key:0,class:"overlay-loading"},yX=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),hX=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),uX=[yX,hX],fX=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),gX=[fX],_X={key:0,class:"cont-leyemd-multipleleagues"},bX=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),SX={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},CX={key:0,style:{"margin-left":"10px"}},wX=e.createElementVNode("span",null,"Todas las categorías",-1),kX=[wX],EX=e.createElementVNode("span",null,"Tipo de Jugada",-1),VX=e.createElementVNode("span",null,"Filtro GolStats",-1),xX={key:3,style:{width:"100%",height:"295px"}};function NX(t,i,a,o,s,l){const r=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),d=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCFilterperteam"),f=e.resolveComponent("GSCFilters"),y=e.resolveComponent("GSCLabel"),h=e.resolveComponent("GSCTopCategory"),c=e.resolveComponent("GSCTableHeader"),u=e.resolveComponent("GSCRowTable"),m=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",pX,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",mX,uX)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(d,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(p,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...g)=>l.clickOpenFilters&&l.clickOpenFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 15px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...g)=>l.clickCloseFilters&&l.clickCloseFilters(...g))},gX,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(d,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(d,{key:2,type:2,buttons:["Todas las jugadas","Más productivos"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:mp},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isSelection?(e.openBlock(),e.createBlock(f,e.mergeProps({key:0,"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:a.isSelection?s.detailsObjectSelection:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"?(e.openBlock(),e.createBlock(f,e.mergeProps({key:1,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","is-seleccion","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(f,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[4]||(i[4]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(f,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(f,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",_X,[bX,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(p,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",SX," 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",CX,[e.createVNode(y,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(g,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,style:{"margin-left":"10px"}},[e.createVNode(y,{"text-value":g.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:g.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(g=>g.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[5]||(i[5]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},kX,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,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(h,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[g.id],"border-radius":"12px","filters-prop":l.filterChange,category:g.id,"type-table":s.typeTable,categoryName:g.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded},null,8,["is-female","is-team","type-stats","is-selection","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":a.isSelection,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[EX,e.createTextVNode(" y un "),VX,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(c,{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,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[s.teamselectrec==0||s.teamselectrec==g.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(u,{type:2,"is-expanded":s.playerexpand==g.id&&s.expand,onMediadata:l.setMediaData,data:{position:g.position,player_name:g.player_name,player_photo:g.player_photo,total:g.total,id:g.id,player_age:g.player_age,team_abrev:g.team_abrev,team_logo:g.team_logo,player_position:s.positions[g.player_position-1].fullname,player_country_flag:g.player_country_flag,player_games:g.player_games,player_min:g.player_min,league_name:g.league_name,seasons:g.seasons,season_id:g.season_id},height:"71px",background:_%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==g.id?(e.openBlock(),e.createBlock(m,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:g.team_name,age:g.player_age,dataofbirth:g.date,nationality:g.nationality_name,countryFlag:g.player_country_flag,position:s.positions[g.player_position-1].name,games:g.player_games,min:g.player_min,goals:g.total,effectiveness:"-",category:"total",id:g.id},onViewprofile:k=>l.viewprofile(k,g.season_id,g.team_id),background:_%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[6]||(i[6]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[7]||(i[7]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",xX)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const TX={$style:nX},BX=Ce(cX,[["render",NX],["__cssModules",TX]]),Ks={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},yp=()=>{e.useCssVars(t=>({"39b08ebc":t.backgroundColor,"5bd2cafa":t.widthCircle,"73104bac":t.heightCircle}))},hp=Ks.setup;Ks.setup=hp?(t,i)=>(yp(),hp(t,i)):yp;const FX=["width","src"],PX=["checked"],$X=["width","src"];function AX(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(l.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["text-left",{inactive:s.OptionDefault}])},e.toDisplayString(a.textOptionLeft),3)):e.createCommentVNode("",!0),a.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA,class:e.normalizeClass({inactive:s.OptionDefault})},null,10,FX)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>l.handleSwitchChange&&l.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,PX),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([l.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB,class:e.normalizeClass({inactive:!s.OptionDefault})},null,10,$X)):e.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["text-right",{inactive:!s.OptionDefault}])},e.toDisplayString(a.textOptionRight),3)):e.createCommentVNode("",!0)],4)}const zX=Ce(Ks,[["render",AX],["__scopeId","data-v-a583325d"]]),IX={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},listId:{type:Number,required:!0},player:{type:Object,required:!0}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref(new Set),s=e.ref(""),l=e.ref([]),r=e.ref(!1),n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",d=e.ref(null),p=m=>{document.body.style.overflow=m?"hidden":"auto"},f=()=>{o.value.clear(),s.value="",d.value=null,l.value=[]},y=()=>{f(),i("close")},h=()=>{s.value=""},c=async()=>{if(t.userId){r.value=!0;try{const m=await he.create({headers:{Authorization:`${n}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`);l.value=m.data.data}catch(m){console.error("Error al obtener las listas:",m)}finally{r.value=!1}}};e.watch(()=>t.isVisible,m=>{p(m),m&&t.userId&&c()}),e.watch(()=>t.userId,m=>{m&&t.isVisible&&c()}),e.onMounted(()=>{t.isVisible&&p(!0)}),e.onUnmounted(()=>{p(!1)});const u=e.computed(()=>{if(!s.value)return l.value.map(g=>{var _;return{...g,isDisabled:((_=g.players)==null?void 0:_.some(k=>k.player_id===t.player.player_id))||!1}});const m=s.value.toLowerCase();return l.value.filter(g=>g.name.toLowerCase().includes(m)).map(g=>{var _;return{...g,isDisabled:((_=g.players)==null?void 0:_.some(k=>k.player_id===t.player.player_id))||!1}})});return{modalContent:a,selectedPlayers:o,searchQuery:s,closeModal:y,clearSearch:h,playlists:l,isLoading:r,filteredPlaylists:u,selectedPlaylist:d,handlePlaylistSelection:(m,g)=>{g||(d.value=m)},handleCreatePlaylist:async()=>{if(d.value)try{const m=he.create({headers:{Authorization:`${n}`}}),g={user_id:t.userId,id:d.value,players:[t.player]};await m.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${d.value}/players`,g),y()}catch(m){console.error("Error al guardar el jugador en la lista:",m)}},handleCreateListClick:()=>{i("create-list"),f()}}}},ut=t=>(e.pushScopeId("data-v-67caccaa"),t=t(),e.popScopeId(),t),MX={class:"modal-header"},LX=ut(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Agregar a lista")],-1)),DX=ut(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),RX=[DX],OX={class:"modal-body"},jX={class:"search-section"},vX={class:"search-container"},WX={class:"search-input"},UX=ut(()=>e.createElementVNode("svg",{class:"search-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M15.25 15.25L11.8855 11.8795L15.25 15.25ZM13.75 7.375C13.75 9.06576 13.0784 10.6873 11.8828 11.8828C10.6873 13.0784 9.06576 13.75 7.375 13.75C5.68424 13.75 4.06274 13.0784 2.86719 11.8828C1.67165 10.6873 1 9.06576 1 7.375C1 5.68424 1.67165 4.06274 2.86719 2.86719C4.06274 1.67165 5.68424 1 7.375 1C9.06576 1 10.6873 1.67165 11.8828 2.86719C13.0784 4.06274 13.75 5.68424 13.75 7.375V7.375Z",stroke:"white","stroke-opacity":"0.43","stroke-width":"1.5","stroke-linecap":"round"})],-1)),GX=ut(()=>e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)),HX=[GX],JX=ut(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),qX={class:"players-table-container"},ZX={class:"players-table"},YX={key:0,class:"loading-message"},KX={key:1,class:"empty-message"},XX={class:"checkbox-container"},QX=["id","checked","onChange"],eQ={key:1,class:"checkbox-placeholder"},tQ=ut(()=>e.createElementVNode("div",{class:"folder-icon"},[e.createElementVNode("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18 2H10L8 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V4C20 2.9 19.1 2 18 2Z",fill:"#ffffff","fill-opacity":"0.3"})])],-1)),aQ={class:"list-content"},iQ={class:"title"},oQ={class:"subtitle"},sQ={class:"modal-footer"},lQ={class:"buttons-container buttons-container-step2"},rQ=ut(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),nQ=ut(()=>e.createElementVNode("span",null,"Crear nueva lista",-1)),dQ=[rQ,nQ],cQ={class:"right-buttons"},pQ=["disabled"];function mQ(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[8]||(i[8]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[7]||(i[7]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",MX,[LX,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},RX)]),e.createElementVNode("div",OX,[e.createElementVNode("div",jX,[e.createElementVNode("div",vX,[e.createElementVNode("div",WX,[UX,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.searchQuery=r),type:"text",placeholder:"Buscar lista..."},null,512),[[e.vModelText,o.searchQuery]]),o.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:i[2]||(i[2]=(...r)=>o.clearSearch&&o.clearSearch(...r))},HX)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"crear-playlist",onClick:i[3]||(i[3]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},[JX,e.createTextVNode(" Crear nueva lista ")])])]),e.createElementVNode("div",qX,[e.createElementVNode("div",ZX,[o.isLoading?(e.openBlock(),e.createElementBlock("div",YX," Cargando listas... ")):o.filteredPlaylists.length===0?(e.openBlock(),e.createElementBlock("div",KX," No hay listas disponibles ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(o.filteredPlaylists,r=>{var n;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:e.normalizeClass(["list-item",{disabled:r.isDisabled}])},[e.createElementVNode("div",XX,[r.isDisabled?(e.openBlock(),e.createElementBlock("div",eQ)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"checkbox",id:r.id,checked:o.selectedPlaylist===r.id,onChange:d=>o.handlePlaylistSelection(r.id,r.isDisabled)},null,40,QX))]),tQ,e.createElementVNode("div",aQ,[e.createElementVNode("div",iQ,e.toDisplayString(r==null?void 0:r.name),1),e.createElementVNode("div",oQ,e.toDisplayString((n=r==null?void 0:r.template)==null?void 0:n.name),1)])],2)}),128))])])]),e.createElementVNode("div",sQ,[e.createElementVNode("div",lQ,[e.createElementVNode("button",{class:"create-list-link",onClick:i[4]||(i[4]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},dQ),e.createElementVNode("div",cQ,[e.createElementVNode("button",{class:"cancelar",onClick:i[5]||(i[5]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[6]||(i[6]=(...r)=>o.handleCreatePlaylist&&o.handleCreatePlaylist(...r)),disabled:!o.selectedPlaylist}," Guardar ",8,pQ)])])])],512)])):e.createCommentVNode("",!0)]),_:1})}const yQ=Ce(IX,[["render",mQ],["__scopeId","data-v-67caccaa"]]),hQ={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},player:{type:Object,required:!0},templates:{type:Array,default:()=>[]}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref({title:"",templateId:""}),s=e.ref(0),l=()=>{a.value&&(s.value=a.value.offsetWidth)},r=y=>{document.body.style.overflow=y?"hidden":"auto"},n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",d=()=>{l(),t.isVisible&&r(!0)},p=()=>{o.value={title:"",templateId:""},i("close")},f=async()=>{if(!(!o.value.title||!o.value.templateId))try{const y=t.templates.find(u=>u.id===o.value.templateId),h={user_id:t.userId,name:o.value.title,template:y,players:[t.player]},c=await he.create({headers:{Authorization:`${n}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,h);p()}catch(y){console.error("Error al crear la lista:",y)}};return e.onMounted(()=>{window.addEventListener("resize",d)}),e.onUnmounted(()=>{window.removeEventListener("resize",d),r(!1)}),e.watch(()=>t.isVisible,y=>{y?(setTimeout(l,0),r(!0)):r(!1)}),e.watch(()=>t.listData,y=>{y&&(y.name&&(o.value.title=y.name),y.template&&(o.value.templateId=Number(y.template)))},{immediate:!0}),{modalContent:a,playlistData:o,modalWidth:s,closeModal:p,handleNext:f}}},Xs=t=>(e.pushScopeId("data-v-0dd449b4"),t=t(),e.popScopeId(),t),uQ={class:"modal-header"},fQ=Xs(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Crear lista")],-1)),gQ=Xs(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),_Q=[gQ],bQ={class:"modal-body"},SQ=Xs(()=>e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una plantilla",-1)),CQ=["value"],wQ={class:"modal-footer"},kQ={class:"buttons-container buttons-container-step1"},EQ=["disabled"];function VQ(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[6]||(i[6]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[5]||(i[5]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",uQ,[fQ,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},_Q)]),e.createElementVNode("div",bQ,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.playlistData.title=r),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,o.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":i[2]||(i[2]=r=>o.playlistData.templateId=r),class:"select-position"},[SQ,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.templates,r=>(e.openBlock(),e.createElementBlock("option",{key:r.id,value:r.id},e.toDisplayString(r.name),9,CQ))),128))],512),[[e.vModelSelect,o.playlistData.templateId]])]),e.createElementVNode("div",wQ,[e.createElementVNode("div",kQ,[e.createElementVNode("button",{class:"cancelar",onClick:i[3]||(i[3]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[4]||(i[4]=(...r)=>o.handleNext&&o.handleNext(...r)),disabled:!o.playlistData.title||!o.playlistData.templateId}," Guardar ",8,EQ)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const xQ=Ce(hQ,[["render",VQ],["__scopeId","data-v-0dd449b4"]]),NQ=[{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}]}],TQ=[{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}]}],BQ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},FQ={key:1},PQ={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$Q=["fill"],AQ={key:0,class:"checkbox__teams"},zQ={class:"checkbox__teams__logo"},IQ=["src"],MQ={class:"checkbox__teams__logo"},LQ=["src"],DQ={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(t){return["left","right","top","bottom"].includes(t)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function d(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",FQ,[(e.openBlock(),e.createElementBlock("svg",PQ,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:t.boxValueColor},null,8,$Q)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",AQ,[e.createElementVNode("div",zQ,[e.createElementVNode("img",{src:d(t.teamsIds[0]),alt:""},null,8,IQ)]),e.createElementVNode("div",MQ,[e.createElementVNode("img",{src:d(t.teamsIds[1]),alt:""},null,8,LQ)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},RQ=BQ(DQ,[["__scopeId","data-v-b6f124d8"]]),OQ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Qs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},up=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},fp=Qs.setup;Qs.setup=fp?(t,i)=>(up(),fp(t,i)):up;const jQ=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),vQ=["src"],WQ={key:1,class:"text"},UQ=["src"],GQ={class:"stats"},HQ=jQ(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),JQ={class:"numstats"},qQ={class:"leyend"};function ZQ(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,vQ)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",WQ,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,UQ)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",GQ,[HQ,e.createElementVNode("div",JQ,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",qQ,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const YQ=OQ(Qs,[["render",ZQ],["__scopeId","data-v-f3ee6b2b"]]),gp=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},_p=t=>(e.pushScopeId("data-v-943c6e4b"),t=t(),e.popScopeId(),t),KQ={key:0,class:"overlay"},XQ={class:"name"},QQ=["onClick"],eee=_p(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),tee=[eee],aee=_p(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),iee=["onClick"],oee={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media","click-parameters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(null),r=e.ref(0);e.ref(!1);const n=e.computed(()=>{const c=o.availablePlayers[0];return c?c.stats:[]}),d=e.computed(()=>{const c=`repeat(${n.value.length}, max-content) 36px`;let u="";return r.value>0&&document.querySelectorAll(".column-title-2").forEach(m=>{u+=`${m.offsetWidth}px `}),{"--grid-template-columns":c,"--grid-template-columns-totals":u||c}});function p(){s.value=new ResizeObserver(c=>{for(const u of c){const{width:m}=u.contentRect;r.value=m}}),s.value.observe(l.value)}function f(c,u){const m=document.querySelectorAll(".scrollable-row-totals")[c+1];m&&(m.style.marginTop=`${u}px`)}function y({player:c,stat:u}){!u.total||u==="0%"||!u.seasons||!u.seasons.length||a("open-media",{...c,stat:u})}function h(c){!c||c==="no"||a("click-parameters",c)}return e.onMounted(()=>{p()}),i({setMarginTopDetails:f}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(d.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",KQ)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:l,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${g}`,class:"column-title-2"},[e.createElementVNode("div",XQ,e.toDisplayString(m.name),1),m.parameters&&m.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:_=>h(m.parameters)},tee,8,QQ)):e.createCommentVNode("",!0)]))),128)),aee],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(m,g)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${m.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.stats,_=>(e.openBlock(),e.createElementBlock("div",{key:_.category_id,class:e.normalizeClass(["row data-info",{odd:g%2!==0,underline:!!_.total&&_.total!=="0%"&&_.seasons&&_.seasons.length}]),onClick:k=>y({player:m,stat:_})},e.toDisplayString(_.total),11,iee))),128))]))),128))],4))}},see=gp(oee,[["__scopeId","data-v-943c6e4b"]]),Fe=t=>(e.pushScopeId("data-v-d89df432"),t=t(),e.popScopeId(),t),lee={class:"table__static-column"},ree=Fe(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),nee={class:"container"},dee={class:"details-row__info"},cee={class:"details-row__info__personal"},pee={class:"bold"},mee={class:"bold"},yee={class:"bold"},hee={class:"bold"},uee={class:"details-row__info__games"},fee={class:"bold"},gee={class:"bold"},_ee=["onClick"],bee=Fe(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),See=Fe(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),Cee=[bee,See],wee=["onClick"],kee=Fe(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),Eee=Fe(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Vee=[kee,Eee],xee=["onClick"],Nee=Fe(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),Tee=Fe(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Bee=[Nee,Tee],Fee=["onClick"],Pee=Fe(()=>e.createElementVNode("div",null,"Ver perfil",-1)),$ee=[Pee],Aee={class:"static-row__info-player"},zee={class:"position"},Iee=["onClick"],Mee=Fe(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Lee=Fe(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Dee=Fe(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Ree=[Mee,Lee,Dee],Oee=["onClick"],jee=Fe(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),vee=Fe(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Wee=Fe(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),Uee=[jee,vee,Wee],Gee={class:"player-photo"},Hee=["src"],Jee={class:"player-name"},qee={class:"arrow"},Zee=["onClick"],Yee=Fe(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),Kee=[Yee],Xee=e.createStaticVNode('<div class="titles scrollable-row" data-v-d89df432><div class="column-title" data-v-d89df432>Equipo</div><div class="column-title" data-v-d89df432>Posición</div><div class="column-title" data-v-d89df432>Edad</div><div class="column-title" data-v-d89df432>País</div><div class="column-title" data-v-d89df432>Partidos Jugados</div><div class="column-title" data-v-d89df432>Minutos Jugados</div><div class="column-title" data-v-d89df432>Liga</div><div class="column-title" data-v-d89df432>Videos</div><div class="column-title" data-v-d89df432></div></div>',1),Qee={class:"team-logo"},ete=["src"],tte={class:"team-name data-info"},ate=["src"],ite={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters"],setup(t,{emit:i}){const a=t;let o=null,s=null;const l=e.ref([]),r=e.ref(null),n=e.ref(null),d=e.ref(0),p=e.ref(0),f=e.ref(-1);e.ref(!1);const y=e.ref(null),h=e.ref(null),c=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${u.value?"8px":"18px"}`,"--width-static-column":`${u.value?"50%":"256px"}`})),u=e.computed(()=>d.value<600);e.watch(()=>a.players,x=>{x&&x.length&&(l.value=x.map((w,S)=>{const F=S+1,V={...w,position:F<10?`0${F}`:`${F}`,isSelected:!1,isExpanded:!1,isOdd:S%2!==0,index:S};return V.parameters&&Object.entries(V.parameters).forEach(([j,P])=>{const U=V.stats.find(O=>O.custom_category_id===Number(j));U&&(U.parameters=P)}),V}))},{immediate:!0,deep:!0}),e.watch(()=>a.isEditMode,x=>{x&&l.value.forEach(w=>{w.isSelected=!1})}),e.watch(p,x=>{const w=document.querySelectorAll(".static-row")[f.value+1];w&&(w.style.marginTop=`${x}px`),a.isGeneral?m(f.value,x):n.value&&n.value.setMarginTopDetails(f.value,x),x===0&&y.value&&R(y.value)});function m(x,w){const S=document.querySelectorAll(".scrollable-row")[x+2];S&&(S.style.marginTop=`${w}px`)}function g(x){i("click-parameters",x)}function _(x){const w=x.player||x.objeto_player,S=w?w.player_id||w.id||w.playerId:x.id||x.player_id,F=w?w.team_id||w.teamId:x.team_id||x.teamId,V={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:S?[S]:[],goalkeeperIds:[],teamId:F||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(x.stat&&x.stat.parameters&&(V.parameters=x.stat.parameters),x.stat&&x.stat.seasons&&x.stat.seasons.length||x.seasons&&x.seasons.length){const j=[...x.stat&&x.stat.seasons&&x.stat.seasons.length?x.stat.seasons:x.seasons];j.sort((P,U)=>P-U),V.seasonId=j.shift(),V.seasonsIds=j}else(x.season_id||x.seasonId)&&(V.seasonId=x.season_id||x.seasonId);x.stat?x.stat.category_id?V.categoryIds=x.stat.category_id:x.stat.custom_category_id&&(V.customCategoryIds=[x.stat.custom_category_id]):V.categoryIds=J(x.player_position),i("open-media",V)}function k(){o=new ResizeObserver(x=>{for(const w of x)d.value=w.contentRect.width}),o.observe(r.value)}function W(x){s=new ResizeObserver(w=>{for(const S of w)p.value=S.contentRect.height}),s.observe(x)}function J(x){return x==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]}function L(x,w){w.isSelected=x;const S=l.value.filter(F=>F.isSelected);i("change-selected-players",S)}function G(x){i("view-profile",x)}function Z(x){i("delete-from-list",x)}function q(x){i("add-to-list",x)}function Y(x){i("show-graph",x)}function R(x){if(x.isExpanded){x.isExpanded=!1,y.value=null;return}const w=l.value.find(F=>F.isExpanded);if(w&&(w.isExpanded=!1),w){y.value=x;return}const S=document.querySelectorAll(".details-row")[x.index];f.value=x.index,W(S),x.isExpanded=!0}let N=!1,D,$,H=function(x){N=!0,D=x.pageX-h.value.offsetLeft,$=h.value.scrollLeft},K=function(){N=!1};function ce(){h.value&&(h.value.addEventListener("mousemove",x=>{if(!N)return;const w=x.pageX-h.value.offsetLeft-D;h.value.scrollLeft=$-w}),h.value.addEventListener("mousedown",H,!1),h.value.addEventListener("mouseup",K,!1),h.value.addEventListener("mouseleave",K,!1))}return e.onMounted(()=>{k(),ce()}),e.onBeforeUnmount(()=>{o&&o.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",H,!1),h.value.removeEventListener("mouseup",K,!1),h.value.removeEventListener("mouseleave",K,!1))}),(x,w)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:r,style:e.normalizeStyle(c.value)},[e.createElementVNode("div",lee,[ree,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`s-${S.id}`,class:e.normalizeClass(["row static-row",{odd:S.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:S.isOdd}])},[e.createElementVNode("div",nee,[e.createElementVNode("div",dee,[e.createElementVNode("div",cee,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",pee,e.toDisplayString(S.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",mee,e.toDisplayString(S.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",yee,e.toDisplayString(S.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",hee,e.toDisplayString(S.position_name),1)])]),e.createElementVNode("div",uee,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",fee,e.toDisplayString(S.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",gee,e.toDisplayString(S.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(u.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:F=>Y(S)},Cee,8,_ee),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:F=>Z(S)},Vee,8,wee)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:F=>q(S)},Bee,8,xee)),e.createElementVNode("div",{role:"button",class:"button green",onClick:F=>G(S)},$ee,8,Fee)],4)])],2),[[e.vShow,S.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(RQ),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":S.isSelected,"onUpdate:modelValue":F=>L(F,S)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",Aee,[e.createElementVNode("div",zee,e.toDisplayString(S.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>Z(S)},Ree,8,Iee)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>q(S)},Uee,8,Oee)),e.createElementVNode("div",Gee,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:S.player_photo,alt:"player photo"},null,8,Hee)])]),e.createElementVNode("div",Jee,e.toDisplayString(S.player_name),1)]),e.createElementVNode("div",qee,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:S.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:F=>R(S)},Kee,10,Zee))])],2))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:h,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Xee,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`i-${S.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:S.isOdd}])},[e.createElementVNode("div",Qee,[e.createElementVNode("img",{src:S.team_logo,alt:"team logo"},null,8,ete)]),e.createElementVNode("div",tte,e.toDisplayString(S.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createElementVNode("img",{src:S.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,ate)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createVNode(e.unref(YQ),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:F=>_(S)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(see,{key:1,ref_key:"scrollColumns",ref:n,"available-players":l.value,"is-edit-mode":t.isEditMode,onOpenMedia:_,onClickParameters:g},null,8,["available-players","is-edit-mode"]))],512)],4))}},ote=gp(ite,[["__scopeId","data-v-d89df432"]]),el=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},tl={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1},title:{type:String,default:"Zona de origen del balón:"},quarters:{type:Array,default:()=>[1,2,3,4]}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,lastSelectedSections:[]}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){if(this.lastSelectedSections.every(a=>t.has(a)))return;const i=Array.from(t).map(Number).sort((a,o)=>a-o);this.lastSelectedSections=[...i],this.$emit("sections-changed",i)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const i=Math.ceil(t/4);this.isQuarterEnabled(i)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const i=Math.ceil(t/4);this.isQuarterEnabled(i)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const i=Math.ceil(t/4);if(!this.isQuarterEnabled(i))return;const a=t.toString();this.selectedSections.size===1&&this.selectedSections.has(a)||(this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState())},toggleAllSections(){if(this.selectAll)for(let t=1;t<=16;t++)this.selectedSections.add(t.toString());else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{this.selectAll=this.selectedSections.size===16})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t){if(this.displayMode)return;const i=Date.now();if(i-this.lastUpdateTime<16)return;this.lastUpdateTime=i;const a=t.toString(),o=Math.ceil(t/4);if(this.isQuarterEnabled(o)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(a)),this.dragSelectMode)this.selectedSections.add(a);else{if(this.selectedSections.size===1&&this.selectedSections.has(a))return;this.selectedSections.delete(a)}this.updateSelectAllState()}},getSectionNumber(t,i){return(t-1)*4+i},getSectionIndex(t,i){return(t-1)*4+i},selectColumn(t){if(!this.isQuarterEnabled(t))return;const i=(t-1)*4+1,a=t*4;if(Array.from({length:4},(o,s)=>(i+s).toString()).every(o=>this.selectedSections.has(o))&&this.selectedSections.size>4)for(let o=i;o<=a;o++)this.selectedSections.delete(o.toString());else for(let o=i;o<=a;o++)this.selectedSections.add(o.toString());this.updateSelectAllState()},isQuarterSelected(t){const i=(t-1)*4+1;return Array.from({length:4},(a,o)=>(i+o).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},bp=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Sp=tl.setup;tl.setup=Sp?(t,i)=>(bp(),Sp(t,i)):bp;const ste={class:"field-template-element"},lte={class:"field-container"},rte=["onMouseenter","onMousedown"],nte={class:"column-buttons"},dte=["onClick","disabled"];function cte(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",ste,[e.createElementVNode("div",lte,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":a.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:i[0]||(i[0]=(...r)=>l.startDragging&&l.startDragging(...r)),onMouseup:i[1]||(i[1]=(...r)=>l.stopDragging&&l.stopDragging(...r)),onMouseleave:i[2]||(i[2]=(...r)=>l.stopDragging&&l.stopDragging(...r))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,r=>e.createElementVNode("div",{key:r,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${r}-${n}`,class:e.normalizeClass(["field-section",{selected:l.isSelected(l.getSectionIndex(r,n)),"display-mode":a.displayMode}]),onMouseenter:d=>s.isDragging&&l.handleDragSelect(l.getSectionIndex(r,n)),onMousedown:e.withModifiers(d=>!a.displayMode&&l.toggleSection(l.getSectionIndex(r,n)),["prevent"])},null,42,rte)),64))])),64))],32),e.createElementVNode("div",nte,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,r=>e.createElementVNode("div",{key:r,class:"column-label"},e.toDisplayString(r)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,r=>e.createElementVNode("button",{key:r,class:e.normalizeClass(["column-button",{selected:l.isQuarterSelected(r),disabled:!l.isQuarterEnabled(r)}]),onClick:n=>l.selectColumn(r),disabled:!l.isQuarterEnabled(r)},e.toDisplayString(r)+"/4 tos ",11,dte)),64))])])])}const pte=el(tl,[["render",cte],["__scopeId","data-v-1f6351a4"]]),al={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,selectedCells:new Array(72).fill(!0)}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){const i=Array.from(t).map(l=>{const[r,n]=l.split("-").map(Number);return{row:r,col:n,value:this.getSequentialNumber(r,n)}}),a={};i.forEach(l=>{a[l.col]||(a[l.col]=[]),a[l.col].push(l)});const o=[];Object.values(a).forEach(l=>{l.sort((n,d)=>d.row-n.row);let r=[l[0]];for(let n=1;n<l.length;n++){const d=l[n];l[n-1].row-d.row===1?r.push(d):(r.length>0&&o.push(r),r=[d])}r.length>0&&o.push(r)});const s=o.sort((l,r)=>{const n=Math.min(...l.map(p=>p.value)),d=Math.min(...r.map(p=>p.value));return n-d}).map(l=>{const r=l.map(n=>n.value).sort((n,d)=>d-n);return r.length===1?[r[0],r[0]]:[r[0],r[r.length-1]]});this.$emit("sections-changed",s)},deep:!0}},methods:{initializeSections(){if(this.initialSections&&this.initialSections.length>0)this.selectedSections.clear(),this.initialSections.forEach(t=>{if(Array.isArray(t)&&t.length===2){const[i,a]=t,o=17-Math.floor((i-1)/21),s=(i-1)%21+1,l=17-Math.floor((a-1)/21),r=(a-1)%21+1;if(s===r){const n=Math.min(o,l),d=Math.max(o,l);for(let p=n;p<=d;p++)this.selectedSections.add(this.getSectionId(p,s))}else{const n=Math.min(s,r),d=Math.max(s,r);for(let p=n;p<=d;p++){const f=p===s?o:1,y=p===r?l:17;for(let h=Math.min(f,y);h<=Math.max(f,y);h++)this.selectedSections.add(this.getSectionId(h,p))}}}});else for(let t=1;t<=17;t++)for(let i=1;i<=21;i++)this.selectedSections.add(this.getSectionId(t,i));this.updateSelectAllState()},getSectionId(t,i){return`${t}-${i}`},isSelected(t,i){return this.selectedSections.has(this.getSectionId(t,i))},toggleSection(t,i){const a=this.getSectionId(t,i);this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let i=1;i<=21;i++)this.selectedSections.add(this.getSectionId(t,i));else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{let t=357;this.selectAll=this.selectedSections.size===t})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t,i){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const o=this.getSectionId(t,i);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(o)),this.dragSelectMode?this.selectedSections.add(o):this.selectedSections.delete(o),this.updateSelectAllState()},getSequentialNumber(t,i){return(17-t)*21+i}}},Cp=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},wp=al.setup;al.setup=wp?(t,i)=>(Cp(),wp(t,i)):Cp;const mte={class:"field-template-element"},yte={class:"field-container"},hte={key:0,class:"select-all-container"},ute={class:"select-all-label"},fte=["onMouseenter","onMousedown"];function gte(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",mte,[e.createElementVNode("div",yte,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",hte,[e.createElementVNode("label",ute,[i[5]||(i[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":i[0]||(i[0]=r=>s.selectAll=r),onChange:i[1]||(i[1]=(...r)=>l.toggleAllSections&&l.toggleAllSections(...r))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:i[2]||(i[2]=(...r)=>l.startDragging&&l.startDragging(...r)),onMouseup:i[3]||(i[3]=(...r)=>l.stopDragging&&l.stopDragging(...r)),onMouseleave:i[4]||(i[4]=(...r)=>l.stopDragging&&l.stopDragging(...r))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${r}-${n}`,class:e.normalizeClass(["field-section",{selected:l.isSelected(r,n),"display-mode":a.displayMode}]),onMouseenter:d=>s.isDragging&&l.handleDragSelect(r,n),onMousedown:e.withModifiers(d=>!a.displayMode&&l.toggleSection(r,n),["prevent"])},null,42,fte)),64))],64))),64))],32),i[6]||(i[6]=e.createStaticVNode('<div class="attack-direction" data-v-389c50fa><div class="arrow-line" data-v-389c50fa></div><span class="attack-text" data-v-389c50fa>Ataca</span><div class="arrow-line" data-v-389c50fa></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-389c50fa><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-389c50fa></polygon></svg></div>',1))])])}const _te=el(al,[["render",gte],["__scopeId","data-v-389c50fa"]]),bte={components:{FieldGolStatsTemplates:pte,FieldTemplatesElement:_te},name:"ModalPassConditions",props:{isVisible:{type:Boolean,required:!0},parameters:{type:Object,required:!0}},data(){return{quarters:[1,2],userId:24254,originSelection:[],destinationSelection:[],selectAllOrigin:!1,selectAllDestination:!1,minDistanceX:.5,minDistanceY:.5,minDistanceTotal:.5}},methods:{isArrayOfArrays(t){return Array.isArray(t)&&t.length>0&&t.every(i=>Array.isArray(i))},closeModal(){this.$emit("update:isVisible",!1)},updateOriginSelection(t){this.originSelection=t},updateDestinationSelection(t){this.destinationSelection=t},clearFilters(){this.originSelection=[],this.destinationSelection=[],this.selectAllOrigin=!1,this.selectAllDestination=!1,this.minDistanceX=0,this.minDistanceY=0,this.minDistanceTotal=0},applyFilters(){this.$emit("update:isVisible",!1)}}},Ste={key:0,class:"modal-wrapper"},Cte={class:"modal-overlay"},wte={class:"modal-container"},kte={class:"modal-content"},Ete={class:"modal-header"},Vte={class:"fields-container"},xte={class:"field-section"},Nte={class:"field-section"},Tte={class:"distance-section"},Bte={class:"distance-info"},Fte={class:"info-row"},Pte={class:"info-value"},$te={class:"info-row"},Ate={class:"info-value"},zte={class:"info-row"},Ite={class:"info-value"},Mte={class:"distance-section"},Lte={class:"distance-info"},Dte={class:"info-row"},Rte={class:"info-value"},Ote={class:"info-row"},jte={class:"info-value"},vte={class:"info-row"},Wte={class:"info-value"};function Ute(t,i,a,o,s,l){var r,n,d,p,f,y,h,c,u,m,g,_;const k=e.resolveComponent("FieldGolStatsTemplates"),W=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",Ste,[e.createElementVNode("div",Cte,[e.createElementVNode("div",wte,[e.createElementVNode("div",kte,[e.createElementVNode("div",Ete,[i[2]||(i[2]=e.createStaticVNode('<div class="header-content" data-v-834c0128><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-inspector="src/components/GSCTemplates.vue:100:15" data-v-a08c9209="" data-v-834c0128><path d="M5.18088 2.68185L3.12463 4.74435L2.31838 3.93185C2.20069 3.81416 2.04107 3.74805 1.87463 3.74805C1.70819 3.74805 1.54857 3.81416 1.43088 3.93185C1.31319 4.04954 1.24707 4.20917 1.24707 4.3756C1.24707 4.54204 1.31319 4.70166 1.43088 4.81935L2.68088 6.06935C2.73898 6.12793 2.80811 6.17443 2.88427 6.20616C2.96043 6.23789 3.04212 6.25423 3.12463 6.25423C3.20714 6.25423 3.28883 6.23789 3.36499 6.20616C3.44115 6.17443 3.51028 6.12793 3.56838 6.06935L6.06838 3.56935C6.12665 3.51108 6.17288 3.4419 6.20442 3.36576C6.23595 3.28962 6.25218 3.20802 6.25218 3.1256C6.25218 3.04319 6.23595 2.96159 6.20442 2.88545C6.17288 2.80931 6.12665 2.74013 6.06838 2.68185C6.0101 2.62358 5.94092 2.57735 5.86478 2.54582C5.78864 2.51428 5.70704 2.49805 5.62463 2.49805C5.54222 2.49805 5.46061 2.51428 5.38447 2.54582C5.30833 2.57735 5.23915 2.62358 5.18088 2.68185Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:101:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 8.125H2.5C2.33424 8.125 2.17527 8.19085 2.05806 8.30806C1.94085 8.42527 1.875 8.58424 1.875 8.75V11.25C1.875 11.4158 1.94085 11.5747 2.05806 11.6919C2.17527 11.8092 2.33424 11.875 2.5 11.875H5C5.16576 11.875 5.32473 11.8092 5.44194 11.6919C5.55915 11.5747 5.625 11.4158 5.625 11.25V8.75C5.625 8.58424 5.55915 8.42527 5.44194 8.30806C5.32473 8.19085 5.16576 8.125 5 8.125ZM4.375 10.625H3.125V9.375H4.375V10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:104:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 13.75H2.5C2.33424 13.75 2.17527 13.8158 2.05806 13.9331C1.94085 14.0503 1.875 14.2092 1.875 14.375V16.875C1.875 17.0408 1.94085 17.1997 2.05806 17.3169C2.17527 17.4342 2.33424 17.5 2.5 17.5H5C5.16576 17.5 5.32473 17.4342 5.44194 17.3169C5.55915 17.1997 5.625 17.0408 5.625 16.875V14.375C5.625 14.2092 5.55915 14.0503 5.44194 13.9331C5.32473 13.8158 5.16576 13.75 5 13.75ZM4.375 16.25H3.125V15H4.375V16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:107:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 9.375H13.125C13.2908 9.375 13.4497 9.30915 13.5669 9.19194C13.6842 9.07473 13.75 8.91576 13.75 8.75C13.75 8.58424 13.6842 8.42527 13.5669 8.30806C13.4497 8.19085 13.2908 8.125 13.125 8.125H8.125C7.95924 8.125 7.80027 8.19085 7.68306 8.30806C7.56585 8.42527 7.5 8.58424 7.5 8.75C7.5 8.91576 7.56585 9.07473 7.68306 9.19194C7.80027 9.30915 7.95924 9.375 8.125 9.375Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:110:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 10.625H8.125C7.95924 10.625 7.80027 10.6908 7.68306 10.8081C7.56585 10.9253 7.5 11.0842 7.5 11.25C7.5 11.4158 7.56585 11.5747 7.68306 11.6919C7.80027 11.8092 7.95924 11.875 8.125 11.875H18.125C18.2908 11.875 18.4497 11.8092 18.5669 11.6919C18.6842 11.5747 18.75 11.4158 18.75 11.25C18.75 11.0842 18.6842 10.9253 18.5669 10.8081C18.4497 10.6908 18.2908 10.625 18.125 10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:113:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 15H13.125C13.2908 15 13.4497 14.9342 13.5669 14.8169C13.6842 14.6997 13.75 14.5408 13.75 14.375C13.75 14.2092 13.6842 14.0503 13.5669 13.9331C13.4497 13.8158 13.2908 13.75 13.125 13.75H8.125C7.95924 13.75 7.80027 13.8158 7.68306 13.9331C7.56585 14.0503 7.5 14.2092 7.5 14.375C7.5 14.5408 7.56585 14.6997 7.68306 14.8169C7.80027 14.9342 7.95924 15 8.125 15Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:116:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 16.25H8.125C7.95924 16.25 7.80027 16.3158 7.68306 16.4331C7.56585 16.5503 7.5 16.7092 7.5 16.875C7.5 17.0408 7.56585 17.1997 7.68306 17.3169C7.80027 17.4342 7.95924 17.5 8.125 17.5H18.125C18.2908 17.5 18.4497 17.4342 18.5669 17.3169C18.6842 17.1997 18.75 17.0408 18.75 16.875C18.75 16.7092 18.6842 16.5503 18.5669 16.4331C18.4497 16.3158 18.2908 16.25 18.125 16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:119:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 3.75H13.125C13.2908 3.75 13.4497 3.68415 13.5669 3.56694C13.6842 3.44973 13.75 3.29076 13.75 3.125C13.75 2.95924 13.6842 2.80027 13.5669 2.68306C13.4497 2.56585 13.2908 2.5 13.125 2.5H8.125C7.95924 2.5 7.80027 2.56585 7.68306 2.68306C7.56585 2.80027 7.5 2.95924 7.5 3.125C7.5 3.29076 7.56585 3.44973 7.68306 3.56694C7.80027 3.68415 7.95924 3.75 8.125 3.75Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:122:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 6.25H18.125C18.2908 6.25 18.4497 6.18415 18.5669 6.06694C18.6842 5.94973 18.75 5.79076 18.75 5.625C18.75 5.45924 18.6842 5.30027 18.5669 5.18306C18.4497 5.06585 18.2908 5 18.125 5H8.125C7.95924 5 7.80027 5.06585 7.68306 5.18306C7.56585 5.30027 7.5 5.45924 7.5 5.625C7.5 5.79076 7.56585 5.94973 7.68306 6.06694C7.80027 6.18415 7.95924 6.25 8.125 6.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:125:17" data-v-a08c9209="" data-v-834c0128></path></svg><span data-v-834c0128>Elige las condiciones del pase</span></div>',1)),e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=J=>t.$emit("update:isVisible",!1))},i[1]||(i[1]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})],-1)]))]),e.createElementVNode("div",Vte,[e.createElementVNode("div",xte,[l.isArrayOfArrays((r=a.parameters)==null?void 0:r.origin_zones)?(e.openBlock(),e.createBlock(W,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(d=a.parameters)==null?void 0:d.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(k,{key:0,title:"Elige la zona de origen del balón:","initial-sections":(n=a.parameters)==null?void 0:n.origin_zones,"display-mode":!0},null,8,["initial-sections"]))]),e.createElementVNode("div",Nte,[l.isArrayOfArrays((p=a.parameters)==null?void 0:p.destiny_zones)?(e.openBlock(),e.createBlock(W,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(y=a.parameters)==null?void 0:y.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(k,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(f=a.parameters)==null?void 0:f.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",Tte,[i[6]||(i[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",Bte,[e.createElementVNode("div",Fte,[i[3]||(i[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Pte,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_distance_x)+" m",1)]),e.createElementVNode("div",$te,[i[4]||(i[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Ate,e.toDisplayString((c=a.parameters)==null?void 0:c.minimum_distance_y)+" m",1)]),e.createElementVNode("div",zte,[i[5]||(i[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Ite,e.toDisplayString((u=a.parameters)==null?void 0:u.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",Mte,[i[10]||(i[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",Lte,[e.createElementVNode("div",Dte,[i[7]||(i[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Rte,e.toDisplayString((m=a.parameters)==null?void 0:m.maximum_distance_x)+" m",1)]),e.createElementVNode("div",Ote,[i[8]||(i[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",jte,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",vte,[i[9]||(i[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Wte,e.toDisplayString((_=a.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const Gte=el(bte,[["render",Ute],["__scopeId","data-v-834c0128"]]),Hte={computed:{sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsFontMS(){const t=this.elementSize.width;return t<=600?"12px":t<=768?"13px":"14px"},sizeTabsMS(){const t=this.elementSize.width;return t<=480?"145px":t<=600?"153px":t<=620?"163px":t<=640?"170px":t<=660?"175px":t<=680?"180px":t<=700?"185px":t<=720?"195px":"200px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"68px":t<=330?"73px":t<=340?"78px":t<=350?"82px":t<=360||t<=370?"90px":t<=390?"95px":t<=410?"105px":t<=430?"110px":t<=450?"117px":t<=470?"122px":t<=500?"130px":t<=530?"138px":t<=560?"155px":t<=590?"163px":t<=620?"175px":t<=650?"180px":t<=680?"195px":t<=730?"210px":t<=768?"100px":"110px"},textleyemdmultipleleaguesClass(){return this.elementSize.width<=380?this.$style.textleyemdmultipleleagues380:this.$style.textleyemdmultipleleagues},dropdownParentClass(){return this.elementSize.width<=730?this.$style.dropdownParent730:this.$style.dropdownParent},descubreVideosClass(){const t=this.elementSize.width;return t<=960?this.$style.descubreVideos960:t<=1232?this.$style.descubreVideos1232:this.$style.descubreVideos},quitarFiltrosClass(){const t=this.elementSize.width;return t<=380?this.$style.quitarFiltros380:t<=480?this.$style.quitarFiltros480:t<=730?this.$style.quitarFiltros730:this.$style.quitarFiltros},mejoresJugadoresClass(){const t=this.elementSize.width;return t<=480?this.$style.mejoresJugadores480:t<=730?this.$style.mejoresJugadores730:this.$style.mejoresJugadores},menuSectionClass(){return this.elementSize.width<=960?this.$style.menuSection960:this.$style.menuSection},menuSectionPlayClass(){return this.elementSize.width<=960?this.$style.menuSectionPlay960:this.$style.menuSectionPlay},topFiltersClass(){const t=this.elementSize.width;return t<=420?this.$style.topFilters420:t<=460?this.$style.topFilters460:t<=1232?this.$style.topFilters1232:this.$style.topFilters},toniKroosWrapperClass(){const t=this.elementSize.width;return t<=319?this.$style.toniKroosWrapper320:t<=420?this.$style.toniKroosWrapper420:t<=916?this.$style.toniKroosWrapper760:t<=975?this.$style.toniKroosWrapper975:t<=1079?this.$style.toniKroosWrapper1080:this.$style.toniKroosWrapper},containerTablesClass(){const t=this.elementSize.width;return t<=319?this.$style.containerTables320:t<=916?this.$style.containerTables760:t<=1079?this.$style.containerTables960:this.$style.containerTables},containerTheBestClass(){const t=this.elementSize.width;return t<=319?this.$style.containerTheBest320:t<=960?this.$style.containerTheBest960:t<=1232?this.$style.containerTheBest1232:this.$style.containerTheBest},menuSectionHeaderClass(){const t=this.elementSize.width;return t<=730?this.$style.menuSectionHeader730:t<=960?this.$style.menuSectionHeader960:t<=1232?this.$style.menuSectionHeader1232:this.$style.menuSectionHeader},losMejoresClass(){const t=this.elementSize.width;return t<=380?this.$style.losMejores380:t<=530?this.$style.losMejores530:t<=730?this.$style.losMejores730:this.$style.losMejores},dropdownClass(){return this.elementSize.width<=730?this.$style.dropdown730:this.$style.dropdown},dropdown1Class(){return this.elementSize.width<=730?this.$style.dropdown1730:this.$style.dropdown1},menuSectionParentHeaderClass(){const t=this.elementSize.width;return t<=430?this.$style.menuSectionParentHeader430:t<=730?this.$style.menuSectionParentHeader730:t<=960?this.$style.menuSectionParentHeader960:t<=1232?this.$style.menuSectionParentHeader1232:this.$style.menuSectionParentHeader},templateLosMejoresClass(){const t=this.elementSize.width;return t<=319?this.$style.templateLosMejores320:t<=350?this.$style.templateLosMejores350:t<=420?this.$style.templateLosMejores420:t<=540?this.$style.templateLosMejores540:t<=960?this.$style.templateLosMejores960:t<=1232?this.$style.templateLosMejores1232:this.$style.templateLosMejores},containerMenuClass(){return this.elementSize.width<=760?this.$style.containerMenu760:this.$style.containerMenu},titleSectionClass(){return this.elementSize.width<=540?this.$style.titleSection540:this.$style.titleSection},containerSectionClass(){const t=this.elementSize.width;return t<=319?this.$style.containerSection320:t<=350?this.$style.containerSection350:t<=960?this.$style.containerSection960:t<=1232?this.$style.containerSection1232:this.$style.containerSection},containerSectionPlayClass(){const t=this.elementSize.width;return t<=319?this.$style.containerSectionPlay320:t<=350?this.$style.containerSectionPlay350:t<=960?this.$style.containerSectionPlay960:t<=1232?this.$style.containerSectionPlay1232:this.$style.containerSectionPlay},filtersContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.filtersContainer420:t<=760?this.$style.filtersContainer760:t<=1232?this.$style.filtersContainer1232:this.$style.filtersContainer},topFiltersParentClass(){const t=this.elementSize.width;return t<=420?this.$style.topFiltersParent420:t<=460?this.$style.topFiltersParent460:t<=1232?this.$style.topFiltersParent1232:this.$style.topFiltersParent}}},Jte="_tablePosition_s65tc_46",qte="_tablePositionWrapper_s65tc_62",Zte="_imgHenrryIcon_s65tc_71",Yte="_americaIcon_s65tc_79",Kte="_playerPhoto_s65tc_91",Xte="_toniKroos_s65tc_100",Qte="_shapeIcon_s65tc_111",eae="_menuiconsTeams_s65tc_117",tae="_component31_s65tc_126",aae="_playerName_s65tc_137",iae="_icnPlayIcon_s65tc_145",oae="_goles_s65tc_153",sae="_americaIcon1_s65tc_160",lae="_teamsAmerica_s65tc_174",rae="_topAddPlayer_s65tc_181",nae="_containerData_s65tc_185",dae="_shapeIcon1_s65tc_193",cae="_icnExpand1_s65tc_199",pae="_icnExpand_s65tc_199",mae="_playerData_s65tc_219",yae="_playerInfo_s65tc_230",hae="_headerTop_s65tc_245",uae="_playerRow_s65tc_259",fae="_groupsLeague_s65tc_270",gae="_text_s65tc_279",_ae="_btnViewFullList_s65tc_287",bae="_headerTops_s65tc_304",Sae="_btnVideosOptions_s65tc_376",Cae="_position_s65tc_553",wae="_positionWrapper_s65tc_565",kae="_imgNecaxaIcon_s65tc_573",Eae="_teamLogo_s65tc_579",Vae="_teamPhoto_s65tc_587",xae="_name_s65tc_595",Nae="_icnPlayIconType1_s65tc_603",Tae="_verVideosType1_s65tc_610",Bae="_btnVideosOptionsType1_s65tc_616",Fae="_btnVideosOptions1_s65tc_628",Pae="_leftContainer_s65tc_640",$ae="_shapeIconType1_s65tc_649",Aae="_icnExpandType1_s65tc_654",zae="_arrowExpand_s65tc_664",Iae="_containerInfo_s65tc_672",Mae="_headerTopTeam_s65tc_684",Lae="_containerHeader_s65tc_698",Dae="_goles1_s65tc_707",Rae="_golesType1_s65tc_710",Oae="_golesWrapper_s65tc_715",jae="_btnViewAll_s65tc_724",vae="_headerTopsTeams_s65tc_741",Wae="_arrowExpandIcon_s65tc_858",Uae="_rotate_s65tc_863",Gae={tablePosition:Jte,tablePositionWrapper:qte,imgHenrryIcon:Zte,americaIcon:Yte,playerPhoto:Kte,toniKroos:Xte,shapeIcon:Qte,menuiconsTeams:eae,component31:tae,playerName:aae,icnPlayIcon:iae,goles:oae,americaIcon1:sae,teamsAmerica:lae,topAddPlayer:rae,containerData:nae,shapeIcon1:dae,icnExpand1:cae,icnExpand:pae,playerData:mae,playerInfo:yae,headerTop:hae,playerRow:uae,groupsLeague:fae,text:gae,btnViewFullList:_ae,headerTops:bae,btnVideosOptions:Sae,position:Cae,positionWrapper:wae,imgNecaxaIcon:kae,teamLogo:Eae,teamPhoto:Vae,name:xae,icnPlayIconType1:Nae,verVideosType1:Tae,btnVideosOptionsType1:Bae,btnVideosOptions1:Fae,leftContainer:Pae,shapeIconType1:$ae,icnExpandType1:Aae,arrowExpand:zae,containerInfo:Iae,headerTopTeam:Mae,containerHeader:Lae,goles1:Dae,golesType1:Rae,golesWrapper:Oae,btnViewAll:jae,headerTopsTeams:vae,arrowExpandIcon:Wae,rotate:Uae},il={components:{GSCButton:fi},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(t){this.$emit("play",t)},clickMore(t){this.$emit("more",t)},clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},clickFav(t){this.$emit("fav",t)},clickEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},kp=()=>{e.useCssVars(t=>({"585cd937":t.fontSizeTopNum,"32d8991a":t.fontFamilyTopNum,"16a25bef":t.fontColorTopNum,"3f30455f":t.opacityColorTopNum,"74b0c809":t.fontColorName,"051a53f4":t.fontFamilyName,"63f9f751":t.fontSizeName,"91c50268":t.backgroundColorHeader,"1c9cb9e7":t.fontFamilyCategory,"1bdd3278":t.fontSizeCategory,"35011b7c":t.fontColorCategory,"0582c83f":t.borderColorCategory}))},Ep=il.setup;il.setup=Ep?(t,i)=>(kp(),Ep(t,i)):kp;const Hae=["src"],Jae=["src"],qae=["src"],Zae=e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Yae=e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Kae=e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Xae=[Zae,Yae,Kae],Qae=["fill"],eie=["fill"],tie=["src"],aie=["fill"],iie=["fill"];function oie(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.headerTops)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerRow),id:"player-row"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTop)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerPhoto),id:"container-player-photp"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.tablePositionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.tablePosition)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHenrryIcon),alt:"",src:a.data.photo},null,10,Hae),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,Jae)],2),e.createElementVNode("main",{class:e.normalizeClass(t.$style.playerInfo),id:"container-player-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerName)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.toniKroos)},e.toDisplayString(a.data.name),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createVNode(r,{"icon-size":"12px","icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.clickEventMedia(a.data))},null,8,["icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamsAmerica)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon1),alt:"",src:a.data.logo},null,10,qae)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.topAddPlayer)},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[1]||(i[1]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},Xae))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:i[2]||(i[2]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,eie)],10,Qae))],2)],2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.headerTopsTeams)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerHeader),id:"header-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTopTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamPhoto),id:"container-team"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.positionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.position)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamLogo)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgNecaxaIcon),alt:"",src:a.data.logo},null,10,tie)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerInfo)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leftContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(a.data.name_team),3),e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[3]||(i[3]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnVideosOptions1)},[e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.verVideosType1)},e.toDisplayString(a.data.total),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.arrowExpand),onClick:i[5]||(i[5]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,iie)],10,aie))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const sie={$style:Gae},lie=Ce(il,[["render",oie],["__cssModules",sie]]),rie="_rotate_1tou5_3",nie="_positionContainer_1tou5_50",die="_positionContainer620_1tou5_57",cie="_rowwPlayer_1tou5_64",pie="_rowwPlayer960_1tou5_80",mie="_rowwPlayer420_1tou5_95",yie="_rowwPlayer460_1tou5_111",hie="_containerLeft_1tou5_128",uie="_containerLeft420_1tou5_136",fie="_containerLeft620_1tou5_144",gie="_iconFavoritesType1_1tou5_151",_ie="_iconFavoritesType1320_1tou5_159",bie="_iconFavorites_1tou5_151",Sie="_iconFavorites420_1tou5_175",Cie="_playerContainer_1tou5_183",wie="_playerContainer420_1tou5_195",kie="_playerContainer460_1tou5_207",Eie="_playerContainerType1_1tou5_219",Vie="_playerContainerType1320_1tou5_229",xie="_playerContainerType1460_1tou5_239",Nie="_imgPlayerIcon_1tou5_249",Tie="_imgPlayerIcon460_1tou5_259",Bie="_imgPlayerIcon420_1tou5_269",Fie="_manchesterUnited_1tou5_279",Pie="_manchesterUnited360_1tou5_290",$ie="_manchesterUnited420_1tou5_301",Aie="_manchesterUnited460_1tou5_312",zie="_containerRight_1tou5_323",Iie="_containerRight960_1tou5_332",Mie="_containerRight420_1tou5_342",Lie="_numberOfVideos_1tou5_353",Die="_numberOfVideos620_1tou5_359",Rie="_block02_1tou5_365",Oie="_block02960_1tou5_375",jie="_block02620_1tou5_384",vie="_block02420_1tou5_391",Wie="_verVideos_1tou5_399",Uie="_verVideos620_1tou5_405",Gie="_numberPosition_1tou5_408",Hie="_shapeIcon_1tou5_414",Jie="_chivasIcon_1tou5_419",qie="_imgTeamIcon_1tou5_430",Zie="_teamName_1tou5_435",Yie="_nameTeam_1tou5_441",Kie="_dfC_1tou5_450",Xie="_position_1tou5_50",Qie="_age_1tou5_460",eoe="_manchesterUnitedIcon_1tou5_468",toe="_country_1tou5_475",aoe="_playedGames_1tou5_482",ioe="_playedMinutes_1tou5_489",ooe="_block01_1tou5_496",soe="_leagueName_1tou5_503",loe="_roleCharacterIcon_1tou5_509",roe="_btnVideos_1tou5_517",noe="_containerBtnVideos_1tou5_532",doe="_containerBtnVideos620_1tou5_542",coe="_containesOptions_1tou5_551",poe="_arrowExpandIcon_1tou5_558",moe="_rowTeam_1tou5_567",yoe="_rowTeam420_1tou5_585",hoe="_rowTeam320_1tou5_603",uoe="_rowTeam460_1tou5_622",foe="_rowTeam350_1tou5_641",goe="_containerLeftType1_1tou5_659",_oe="_containerLeftType1680_1tou5_665",boe="_containerLeftType1320_1tou5_672",Soe="_containerLeftType1350_1tou5_680",Coe="_positionContainertype1_1tou5_687",woe="_positionContainertype1380_1tou5_695",koe="_positionContainertype1680_1tou5_703",Eoe="_positionContainertype1420_1tou5_711",Voe="_manchesterUnitedType1_1tou5_719",xoe="_manchesterUnitedType1460_1tou5_725",Noe="_manchesterUnitedType1320_1tou5_732",Toe="_containerRightType1_1tou5_739",Boe="_containerRightType1420_1tou5_750",Foe="_containerRightType1320_1tou5_761",Poe="_teamNameWrapperType1_1tou5_772",$oe="_teamNameWrapperType1960_1tou5_779",Aoe="_teamNameWrapperType11086_1tou5_786",zoe="_ageWrapperType1_1tou5_793",Ioe="_ageWrapperType1680_1tou5_800",Moe="_ageWrapperType11086_1tou5_808",Loe="_ageType1_1tou5_816",Doe="_ageType1960_1tou5_824",Roe="_playedGamesWrapperType1_1tou5_827",Ooe="_playedGamesWrapperType1680_1tou5_834",joe="_playedGamesWrapperType1960_1tou5_837",voe="_playedGamesType1_1tou5_840",Woe="_playedGamesType1540_1tou5_847",Uoe="_playedGamesType1960_1tou5_851",Goe="_playedGamesType11086_1tou5_854",Hoe="_playedMinutesWrapperType1_1tou5_857",Joe="_playedMinutesWrapperType11086_1tou5_864",qoe="_playedMinutesType1_1tou5_871",Zoe="_playedMinutesType1680_1tou5_878",Yoe="_block02Type1_1tou5_881",Koe="_block02Type1680_1tou5_889",Xoe="_block02Type1320_1tou5_897",Qoe="_block02Type1350_1tou5_906",ese="_leagueNameWrapperType1_1tou5_914",tse="_leagueNameWrapperType1680_1tou5_922",ase="_leagueNameWrapperType1960_1tou5_925",ise="_leagueNameType1_1tou5_933",ose="_leagueNameType1960_1tou5_943",sse="_numberOfVideosType1_1tou5_953",lse="_numberOfVideosType1680_1tou5_960",rse="_numberOfVideosType11232_1tou5_967",nse="_vectorIconType1_1tou5_974",dse="_block01TitlesType1_1tou5_991",cse="_numberPositionType1_1tou5_998",pse="_shapeIconType1_1tou5_1004",mse="_tijuanaIconType1_1tou5_1010",yse="_tijuanaWrapperType1_1tou5_1016",hse="_tijuanaWrapperType1NoBg_1tou5_1027",use="_teamNameType1_1tou5_1035",fse="_roleCharacterIconType1_1tou5_1042",gse="_verVideosType1_1tou5_1049",_se="_btnVideosType1_1tou5_1055",bse="_containerBtnVideosType1_1tou5_1070",Sse="_containesOptionsType1_1tou5_1081",Cse="_arrowExpandIconType1_1tou5_1089",wse="_templateTablaProductividadType1_1tou5_1095",kse="_verVideosType11232_1tou5_1107",Ese="_templateTablaProductividadType1320_1tou5_1111",Vse="_verVideosType1680_1tou5_1115",xse={rotate:rie,positionContainer:nie,positionContainer620:die,rowwPlayer:cie,rowwPlayer960:pie,rowwPlayer420:mie,rowwPlayer460:yie,containerLeft:hie,containerLeft420:uie,containerLeft620:fie,iconFavoritesType1:gie,iconFavoritesType1320:_ie,iconFavorites:bie,iconFavorites420:Sie,playerContainer:Cie,playerContainer420:wie,playerContainer460:kie,playerContainerType1:Eie,playerContainerType1320:Vie,playerContainerType1460:xie,imgPlayerIcon:Nie,imgPlayerIcon460:Tie,imgPlayerIcon420:Bie,manchesterUnited:Fie,manchesterUnited360:Pie,manchesterUnited420:$ie,manchesterUnited460:Aie,containerRight:zie,containerRight960:Iie,containerRight420:Mie,numberOfVideos:Lie,numberOfVideos620:Die,block02:Rie,block02960:Oie,block02620:jie,block02420:vie,verVideos:Wie,verVideos620:Uie,numberPosition:Gie,shapeIcon:Hie,chivasIcon:Jie,imgTeamIcon:qie,teamName:Zie,nameTeam:Yie,dfC:Kie,position:Xie,age:Qie,manchesterUnitedIcon:eoe,country:toe,playedGames:aoe,playedMinutes:ioe,block01:ooe,leagueName:soe,roleCharacterIcon:loe,btnVideos:roe,containerBtnVideos:noe,containerBtnVideos620:doe,containesOptions:coe,arrowExpandIcon:poe,rowTeam:moe,rowTeam420:yoe,rowTeam320:hoe,rowTeam460:uoe,rowTeam350:foe,containerLeftType1:goe,containerLeftType1680:_oe,containerLeftType1320:boe,containerLeftType1350:Soe,positionContainertype1:Coe,positionContainertype1380:woe,positionContainertype1680:koe,positionContainertype1420:Eoe,manchesterUnitedType1:Voe,manchesterUnitedType1460:xoe,manchesterUnitedType1320:Noe,containerRightType1:Toe,containerRightType1420:Boe,containerRightType1320:Foe,teamNameWrapperType1:Poe,teamNameWrapperType1960:$oe,teamNameWrapperType11086:Aoe,ageWrapperType1:zoe,ageWrapperType1680:Ioe,ageWrapperType11086:Moe,ageType1:Loe,ageType1960:Doe,playedGamesWrapperType1:Roe,playedGamesWrapperType1680:Ooe,playedGamesWrapperType1960:joe,playedGamesType1:voe,playedGamesType1540:Woe,playedGamesType1960:Uoe,playedGamesType11086:Goe,playedMinutesWrapperType1:Hoe,playedMinutesWrapperType11086:Joe,playedMinutesType1:qoe,playedMinutesType1680:Zoe,block02Type1:Yoe,block02Type1680:Koe,block02Type1320:Xoe,block02Type1350:Qoe,leagueNameWrapperType1:ese,leagueNameWrapperType1680:tse,leagueNameWrapperType1960:ase,leagueNameType1:ise,leagueNameType1960:ose,numberOfVideosType1:sse,numberOfVideosType1680:lse,numberOfVideosType11232:rse,vectorIconType1:nse,block01TitlesType1:dse,numberPositionType1:cse,shapeIconType1:pse,tijuanaIconType1:mse,tijuanaWrapperType1:yse,tijuanaWrapperType1NoBg:hse,teamNameType1:use,roleCharacterIconType1:fse,verVideosType1:gse,btnVideosType1:_se,containerBtnVideosType1:bse,containesOptionsType1:Sse,arrowExpandIconType1:Cse,templateTablaProductividadType1:wse,verVideosType11232:kse,templateTablaProductividadType1320:Ese,verVideosType1680:Vse},ol={components:{GSCButton:fi},computed:{manchesterUnitedType1Class(){const t=this.elementSize.width;return t<=320?this.$style.manchesterUnitedType1320:t<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerRightType1320:t<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.teamNameWrapperType1960:t<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.ageWrapperType1680:t<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.playedGamesWrapperType1680:t<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const t=this.elementSize.width;return t<=540?this.$style.playedGamesType1540:t<=960?this.$style.playedGamesType1960:t<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const t=this.elementSize.width;return t<=320?this.$style.block02Type1320:t<=350?this.$style.block02Type1350:t<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.leagueNameWrapperType1680:t<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const t=this.elementSize.width;return t<=680?this.$style.numberOfVideosType1680:t<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerLeftType1320:t<=350?this.$style.containerLeftType1350:t<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const t=this.elementSize.width;return t<=380?this.$style.positionContainertype1380:t<=420?this.$style.positionContainertype1420:t<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const t=this.elementSize.width;return t<=320?this.$style.rowTeam320:t<=350?this.$style.rowTeam350:t<=420?this.$style.rowTeam420:t<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const t=this.elementSize.width;return t<=420?this.$style.block02420:t<=620?this.$style.block02620:t<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const t=this.elementSize.width;return t<=420?this.$style.imgPlayerIcon420:t<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const t=this.elementSize.width;return t<=360?this.$style.manchesterUnited360:t<=420?this.$style.manchesterUnited420:t<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const t=this.elementSize.width;return t<=420?this.$style.containerRight420:t<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const t=this.elementSize.width;return t<=320?this.$style.playerContainerType1320:t<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.playerContainer420:t<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeft420:t<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const t=this.elementSize.width;return t<=420?this.$style.rowwPlayer420:t<=460?this.$style.rowwPlayer460:t<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const t=e.ref("myDivRef2"),{elementSize:i}=Re(t);return{myDivRef2:t,elementSize:i}},props:{type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},emitEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},Vp=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},xp=ol.setup;ol.setup=xp?(t,i)=>(Vp(),xp(t,i)):Vp;const Nse={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},Tse=["src"],Bse=["src"],Fse=["src"],Pse=["src"],$se=e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Ase=e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),zse=e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Ise=[$se,Ase,zse],Mse=["fill"],Lse=["fill"],Dse=["src"],Rse=["src"],Ose=["fill"],jse=["fill"],vse=["src"],Wse=["src"],Use=["src"],Gse=["src"],Hse=["fill"],Jse=["fill"];function qse(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Nse,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,Tse),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},[o.elementSize.width<=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.data.player_short),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.data.player_name),1)],64))],2),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,Bse)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,Fse),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,Pse)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.leagueName)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[o.elementSize.width>635?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[1]||(i[1]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),o.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.numberOfVideosClass)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[2]||(i[2]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},Ise))],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[3]||(i[3]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Lse)],10,Mse))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.rowTeamClass),style:e.normalizeStyle(o.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(l.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,Dse)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(a.typeView==0?t.$style.tijuanaWrapperType1:t.$style.tijuanaWrapperType1NoBg)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.tijuanaIconType1),alt:"",src:a.data.team_logo},null,10,Rse)],2),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.teamNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamNameType1)},[e.createTextVNode(" C/"+e.toDisplayString(a.data.frequency)+" ",1),a.data.category!=2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("min")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("segs")],64))],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(l.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[o.elementSize.width>679?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[5]||(i[5]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),e.createElementVNode("div",{class:e.normalizeClass(l.numberOfVideosType1Class)},e.toDisplayString(a.data.total),3)],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[6]||(i[6]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,jse)],10,Ose))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,vse),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,Wse)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,Use),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,Gse)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.league_name),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[e.createVNode(r,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:o.elementSize.width<=680?"83px":a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[7]||(i[7]=n=>l.emitEventMedia(a.data)),style:e.normalizeStyle(o.elementSize.width<=680?o.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[8]||(i[8]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Jse)],10,Hse))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const Zse={$style:xse},Yse=Ce(ol,[["render",qse],["__cssModules",Zse]]),Kse="_containerLeftTitlesPlay_mmyc1_61",Xse="_containerLeftTitles420Play_mmyc1_69",Qse="_containerLeftTitles620Play_mmyc1_77",ele="_containerLeftTitlesTeamPlay_mmyc1_85",tle="_containerLeftTitlesTeam1180Play_mmyc1_93",ale="_containerLeftTitlesTeam1090Play_mmyc1_101",ile="_containerLeftTitlesTeam960Play_mmyc1_109",ole="_containerLeftTitlesTeam860Play_mmyc1_117",sle="_containerLeftTitlesTeam768Play_mmyc1_125",lle="_containerLeftTitlesTeam680Play_mmyc1_133",rle="_containerLeftTitlesTeam620Play_mmyc1_141",nle="_containerLeftTitlesTeam420Play_mmyc1_149",dle="_headTitlesPlay_mmyc1_158",cle="_headTitles960Play_mmyc1_173",ple="_headTitles420Play_mmyc1_188",mle="_headTitles540Play_mmyc1_208",yle="_headTitles460Play_mmyc1_223",hle="_headTitles620Play_mmyc1_238",ule="_positionPlay_mmyc1_253",fle="_position420Play_mmyc1_262",gle="_playerPlay_mmyc1_265",_le="_player420Play_mmyc1_276",ble="_containerRightType1Play_mmyc1_280",Sle="_containerRightTitlesPlay_mmyc1_287",Cle="_containerRightTitles960Play_mmyc1_296",wle="_block02TitlesPlay_mmyc1_305",kle="_block02Titles620Play_mmyc1_313",Ele="_mon1ScoutingPlay_mmyc1_317",Vle="_mon1Scouting960Play_mmyc1_327",xle="_mon1Play_mmyc1_336",Nle="_mon1420Play_mmyc1_345",Tle="_mon1620Play_mmyc1_355",Ble="_icnIconPlay_mmyc1_365",Fle="_icnIcon960Play_mmyc1_370",Ple="_icnIcon420Play_mmyc1_376",$le="_teamTitlePlay_mmyc1_380",Ale="_positionTitlePlay_mmyc1_390",zle="_ageTitlePlay_mmyc1_398",Ile="_partidosPlay_mmyc1_406",Mle="_playedGamesTitlePlay_mmyc1_410",Lle="_playedMinutesTitlePlay_mmyc1_420",Dle="_block01TitlesPlay_mmyc1_429",Rle="_monPlay_mmyc1_436",Ole="_containesOptionsTitlesPlay_mmyc1_445",jle="_templateTablaProductividadType1Play_mmyc1_451",vle="_templateTablaProductividadType1400Play_mmyc1_463",Wle="_headTitlesType1Play_mmyc1_477",Ule="_headTitlesType1420Play_mmyc1_490",Gle="_headTitlesType1400Play_mmyc1_506",Hle="_headTitlesType1540Play_mmyc1_522",Jle="_headTitlesType1460Play_mmyc1_536",qle="_headTitlesType1680Play_mmyc1_550",Zle="_headTitlesType1350Play_mmyc1_563",Yle="_positionType1Play_mmyc1_578",Kle="_positionType1400Play_mmyc1_587",Xle="_teamType1Play_mmyc1_597",Qle="_teamType1400Play_mmyc1_606",ere="_frecuenciaType1Play_mmyc1_616",tre="_frecuenciaType1540Play_mmyc1_624",are="_containerLeftTitlesType1Play_mmyc1_633",ire="_frecuenciaWrapperType1Play_mmyc1_641",ore="_frecuenciaWrapperType1680Play_mmyc1_650",sre="_promedioPartidoType1Play_mmyc1_658",lre="_promedioEstePartidoType1Play_mmyc1_662",rre="_promedioEstePartidoType1960Play_mmyc1_670",nre="_promedioEstePartidoWrapperType1Play_mmyc1_674",dre="_promedioEstePartidoWrapperType11200Play_mmyc1_682",cre="_promedioEstePartidoWrapperType11090Play_mmyc1_691",pre="_promedioEstePartidoWrapperType11086Play_mmyc1_701",mre="_promedioPartidosType1Play_mmyc1_710",yre="_promedioPartidosWrapperType1Play_mmyc1_717",hre="_promedioPartidosWrapperType1960Play_mmyc1_725",ure="_promedioPartidosWrapperType11086Play_mmyc1_728",fre="_partidosJugadosType1Play_mmyc1_731",gre="_partidosJugadosType1960Play_mmyc1_737",_re="_partidosJugadosWrapperType1Play_mmyc1_744",bre="_partidosJugadosWrapperType11200Play_mmyc1_752",Sre="_partidosJugadosWrapperType11180Play_mmyc1_760",Cre="_partidosJugadosWrapperType11170Play_mmyc1_768",wre="_partidosJugadosWrapperType11140Play_mmyc1_776",kre="_partidosJugadosWrapperType11086Play_mmyc1_784",Ere="_partidosJugadosWrapperType1960Play_mmyc1_792",Vre="_partidosJugadosWrapperType1880Play_mmyc1_800",xre="_partidosJugadosWrapperType1860Play_mmyc1_808",Nre="_partidosJugadosWrapperType1830Play_mmyc1_816",Tre="_partidosJugadosWrapperType1790Play_mmyc1_824",Bre="_partidosJugadosWrapperType1930Play_mmyc1_832",Fre="_partidosJugadosWrapperType1770Play_mmyc1_840",Pre="_block01TitlesType1Play_mmyc1_843",$re="_monType1Play_mmyc1_851",Are="_monType1960Play_mmyc1_860",zre="_monType1680Play_mmyc1_870",Ire="_videosType1Play_mmyc1_873",Mre="_videosType1680Play_mmyc1_883",Lre="_videosType1600Play_mmyc1_892",Dre="_videosType1540Play_mmyc1_901",Rre="_videosType1420Play_mmyc1_910",Ore="_videosType1400Play_mmyc1_919",jre="_containesOptionsTitlesType1Play_mmyc1_931",vre="_containesOptionsTitlesType1768Play_mmyc1_939",Wre="_containesOptionsTitlesType1730Play_mmyc1_946",Ure="_containesOptionsTitlesType1690Play_mmyc1_953",Gre="_icnIconType1Play_mmyc1_960",Hre="_icnIconType1420Play_mmyc1_966",Jre="_icnIconType1400Play_mmyc1_973",qre="_block02TitlesType1Play_mmyc1_977",Zre="_block02TitlesType1680Play_mmyc1_984",Yre="_block02TitlesType1350Play_mmyc1_991",Kre="_containerRightTitlesType1Play_mmyc1_998",Xre="_containerRightTitlesType1420Play_mmyc1_1007",Qre={containerLeftTitlesPlay:Kse,containerLeftTitles420Play:Xse,containerLeftTitles620Play:Qse,containerLeftTitlesTeamPlay:ele,containerLeftTitlesTeam1180Play:tle,containerLeftTitlesTeam1090Play:ale,containerLeftTitlesTeam960Play:ile,containerLeftTitlesTeam860Play:ole,containerLeftTitlesTeam768Play:sle,containerLeftTitlesTeam680Play:lle,containerLeftTitlesTeam620Play:rle,containerLeftTitlesTeam420Play:nle,headTitlesPlay:dle,headTitles960Play:cle,headTitles420Play:ple,headTitles540Play:mle,headTitles460Play:yle,headTitles620Play:hle,positionPlay:ule,position420Play:fle,playerPlay:gle,player420Play:_le,containerRightType1Play:ble,containerRightTitlesPlay:Sle,containerRightTitles960Play:Cle,block02TitlesPlay:wle,block02Titles620Play:kle,mon1ScoutingPlay:Ele,mon1Scouting960Play:Vle,mon1Play:xle,mon1420Play:Nle,mon1620Play:Tle,icnIconPlay:Ble,icnIcon960Play:Fle,icnIcon420Play:Ple,teamTitlePlay:$le,positionTitlePlay:Ale,ageTitlePlay:zle,partidosPlay:Ile,playedGamesTitlePlay:Mle,playedMinutesTitlePlay:Lle,block01TitlesPlay:Dle,monPlay:Rle,containesOptionsTitlesPlay:Ole,templateTablaProductividadType1Play:jle,templateTablaProductividadType1400Play:vle,headTitlesType1Play:Wle,headTitlesType1420Play:Ule,headTitlesType1400Play:Gle,headTitlesType1540Play:Hle,headTitlesType1460Play:Jle,headTitlesType1680Play:qle,headTitlesType1350Play:Zle,positionType1Play:Yle,positionType1400Play:Kle,teamType1Play:Xle,teamType1400Play:Qle,frecuenciaType1Play:ere,frecuenciaType1540Play:tre,containerLeftTitlesType1Play:are,frecuenciaWrapperType1Play:ire,frecuenciaWrapperType1680Play:ore,promedioPartidoType1Play:sre,promedioEstePartidoType1Play:lre,promedioEstePartidoType1960Play:rre,promedioEstePartidoWrapperType1Play:nre,promedioEstePartidoWrapperType11200Play:dre,promedioEstePartidoWrapperType11090Play:cre,promedioEstePartidoWrapperType11086Play:pre,promedioPartidosType1Play:mre,promedioPartidosWrapperType1Play:yre,promedioPartidosWrapperType1960Play:hre,promedioPartidosWrapperType11086Play:ure,partidosJugadosType1Play:fre,partidosJugadosType1960Play:gre,partidosJugadosWrapperType1Play:_re,partidosJugadosWrapperType11200Play:bre,partidosJugadosWrapperType11180Play:Sre,partidosJugadosWrapperType11170Play:Cre,partidosJugadosWrapperType11140Play:wre,partidosJugadosWrapperType11086Play:kre,partidosJugadosWrapperType1960Play:Ere,partidosJugadosWrapperType1880Play:Vre,partidosJugadosWrapperType1860Play:xre,partidosJugadosWrapperType1830Play:Nre,partidosJugadosWrapperType1790Play:Tre,partidosJugadosWrapperType1930Play:Bre,partidosJugadosWrapperType1770Play:Fre,block01TitlesType1Play:Pre,monType1Play:$re,monType1960Play:Are,monType1680Play:zre,videosType1Play:Ire,videosType1680Play:Mre,videosType1600Play:Lre,videosType1540Play:Dre,videosType1420Play:Rre,videosType1400Play:Ore,containesOptionsTitlesType1Play:jre,containesOptionsTitlesType1768Play:vre,containesOptionsTitlesType1730Play:Wre,containesOptionsTitlesType1690Play:Ure,icnIconType1Play:Gre,icnIconType1420Play:Hre,icnIconType1400Play:Jre,block02TitlesType1Play:qre,block02TitlesType1680Play:Zre,block02TitlesType1350Play:Yre,containerRightTitlesType1Play:Kre,containerRightTitlesType1420Play:Xre},sl={components:{},computed:{icnIconType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.icnIconType1400Play:t<=420?this.$style.icnIconType1420Play:this.$style.icnIconType1Play},videosType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.videosType1400Play:t<=420?this.$style.videosType1420Play:t<=540?this.$style.videosType1540Play:t<=600?this.$style.videosType1600Play:t<=680?this.$style.videosType1680Play:this.$style.videosType1Play},monType1ClassPlay(){const t=this.elementSize.width;return t<=680?this.$style.monType1680Play:t<=960?this.$style.monType1960Play:this.$style.monType1Play},block02TitlesType1ClassPlay(){const t=this.elementSize.width;return t<=350?this.$style.block02TitlesType1350Play:t<=680?this.$style.block02TitlesType1680Play:this.$style.block02TitlesType1Play},containesOptionsTitlesType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.containesOptionsTitlesType1400Play:t<=690?this.$style.containesOptionsTitlesType1690Play:t<=730?this.$style.containesOptionsTitlesType1730Play:t<=768?this.$style.containesOptionsTitlesType1768Play:this.$style.containesOptionsTitlesType1Play},partidosJugadosWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=770?this.$style.promedioPartidosWrapperType1770Play:t<=790?this.$style.partidosJugadosWrapperType1790Play:t<=830?this.$style.partidosJugadosWrapperType1830Play:t<=860?this.$style.partidosJugadosWrapperType1860Play:t<=880?this.$style.partidosJugadosWrapperType1880Play:t<=930?this.$style.partidosJugadosWrapperType1930Play:t<=960?this.$style.partidosJugadosWrapperType1960Play:t<=1086?this.$style.partidosJugadosWrapperType11086Play:t<=1140?this.$style.partidosJugadosWrapperType11140Play:t<=1170?this.$style.partidosJugadosWrapperType11170Play:t<=1180?this.$style.partidosJugadosWrapperType11180Play:t<=1200?this.$style.partidosJugadosWrapperType11200Play:this.$style.partidosJugadosWrapperType1Play},promedioPartidosWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=960?this.$style.promedioPartidosWrapperType1960Play:t<=1086?this.$style.promedioPartidosWrapperType11086Play:this.$style.promedioPartidosWrapperType1Play},partidosJugadosType1ClassPlay(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960Play:this.$style.partidosJugadosType1Play},templateTablaProductividadType1ClassPlay(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400Play:this.$style.templateTablaProductividadType1Play},promedioEstePartidoType1ClassPlay(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960Play:this.$style.promedioEstePartidoType1Play},headTitlesType1ClassPlay(){const t=this.elementSize.width;return t<=350?this.$style.headTitlesType1350Play:t<=400?this.$style.headTitlesType1400Play:t<=420?this.$style.headTitlesType1420Play:t<=460?this.$style.headTitlesType1460Play:t<=540?this.$style.headTitlesType1540Play:t<=680?this.$style.headTitlesType1680Play:this.$style.headTitlesType1Play},headTitlesClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.headTitles420Play:t<=460?this.$style.headTitles460Play:t<=540?this.$style.headTitles540Play:t<=620?this.$style.headTitles620Play:t<=960?this.$style.headTitles960Play:this.$style.headTitlesPlay},containerLeftTitlesClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitles420Play:t<=620?this.$style.containerLeftTitles620Play:this.$style.containerLeftTitlesPlay},containerLeftTitlesClassTeamPlay(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitlesTeam420Play:t<=620?this.$style.containerLeftTitlesTeam620Play:t<=680?this.$style.containerLeftTitlesTeam680Play:t<=768?this.$style.containerLeftTitlesTeam768Play:t<=860?this.$style.containerLeftTitlesTeam860Play:t<=960?this.$style.containerLeftTitlesTeam960Play:t<=1090?this.$style.containerLeftTitlesTeam1090Play:t<=1180?this.$style.containerLeftTitlesTeam1180Play:this.$style.containerLeftTitlesTeamPlay},icnIconClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.icnIcon420Play:t<=960?this.$style.icnIcon960Play:this.$style.icnIconPlay},mon1ClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.mon1420Play:t<=620?this.$style.mon1620Play:this.$style.mon1Play},mon1ScoutingClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.mon1420Play:t<=960?this.$style.mon1Scouting960Play:this.$style.mon1ScoutingPlay},promedioEstePartidoWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=1086?this.$style.promedioEstePartidoWrapperType11086Play:t<=1090?this.$style.promedioEstePartidoWrapperType11090Play:t<=1200?this.$style.promedioEstePartidoWrapperType11200Play:this.$style.promedioEstePartidoWrapperType1Play},frecuenciaWrapperType1ClassPlay(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680Play:this.$style.frecuenciaWrapperType1Play},frecuenciaType1ClassPlay(){return this.elementSize.width<=540?this.$style.frecuenciaType1540Play:this.$style.frecuenciaType1Play},positionType1ClassPlay(){return this.elementSize.width<=400?this.$style.positionType1400Play:this.$style.positionType1Play},containerRightType1ClassPlay(){return this.elementSize.width<=420?this.$style.containerRightType1420Play:this.$style.containerRightType1Play},containerRightTitlesType1ClassPlay(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420Play:this.$style.containerRightTitlesType1Play},teamType1ClassPlay(){return this.elementSize.width<=400?this.$style.teamType1400Play:this.$style.teamType1Play},playerClassPlay(){return this.elementSize.width<=420?this.$style.player420Play:this.$style.playerPlay},positionClassPlay(){return this.elementSize.width<=420?this.$style.position420Play:this.$style.positionPlay},containerRightTitlesClassPlay(){return this.elementSize.width<=960?this.$style.containerRightTitles960Play:this.$style.containerRightTitlesPlay},block02TitlesClassPlay(){return this.elementSize.width<=620?this.$style.block02Titles960Play:this.$style.block02TitlesPlay}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Re(t);return{myDivRef:t,elementSize:i}},props:{type:{type:Number,default:0},isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"total"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},Np=()=>{e.useCssVars(t=>({"8d117076":t.background,"39ae673e":t.height,"5bb96572":t.fontSize,"71676add":t.fontColor,"8040e1ac":t.fontFamily,"61b44ebb":t.heightTeam}))},Tp=sl.setup;sl.setup=Tp?(t,i)=>(Np(),Tp(t,i)):Np;const ene={ref:"myDivRef"},tne=e.createElementVNode("br",null,null,-1),ane=e.createElementVNode("br",null,null,-1),ine=e.createElementVNode("br",null,null,-1);function one(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",ene,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClassPlay)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.monPlay)},[a.typeStats==="total"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Total")],64)):e.createCommentVNode("",!0),a.typeStats==="average"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("PPP")],64)):e.createCommentVNode("",!0),a.typeStats==="every90"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Cada "),tne,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.mon1ClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.templateTablaProductividadType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(l.headTitlesType1ClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassTeamPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionType1ClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.teamType1ClassPlay)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(l.frecuenciaWrapperType1ClassPlay)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.frecuenciaType1ClassPlay)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.promedioEstePartidoWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(l.promedioEstePartidoType1ClassPlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},"Promedio partido",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},"este Torneo",2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.promedioPartidosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Promedio partido"),ane,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.partidosJugadosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Partidos "),ine,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containesOptionsTitlesType1ClassPlay)},[o.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.monType1ClassPlay)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.videosType1ClassPlay)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClassPlay)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Liga",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[e.createElementVNode("div",{class:e.normalizeClass(l.mon1ScoutingClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const sne={$style:Qre},lne=Ce(sl,[["render",one],["__cssModules",sne]]),rne="_equipo_1lpaa_38",nne="_atlasSeleccin_1lpaa_43",dne="_equipoAtlasSeleccinMexi_1lpaa_47",cne="_aos_1lpaa_51",pne="_span12_1lpaa_55",mne="_nacionalidadMex_1lpaa_58",yne="_manchesterUnited_1lpaa_61",hne="_manchesterUnited12_1lpaa_68",une="_containerInfo_1lpaa_78",fne="_verPerfil12_1lpaa_87",gne="_btnProfile_1lpaa_96",_ne="_containerButton_1lpaa_112",bne="_containerButton2_1lpaa_119",Sne="_dataContainer_1lpaa_125",Cne="_expandedInfoPlayer_1lpaa_135",wne="_containerDataBg_1lpaa_225",kne="_containerDataSm_1lpaa_236",Ene="_span_1lpaa_55",Vne="_manchesterUnited14_1lpaa_247",xne="_filter_1lpaa_252",Nne="_verPerfil_1lpaa_87",Tne="_manchesterUnited8_1lpaa_273",Bne="_manchesterUnitedParent1_1lpaa_279",Fne="_manchesterUnited1_1lpaa_68",Pne="_manchesterUnitedParent_1lpaa_279",$ne="_frameDiv_1lpaa_301",Ane="_infoExpanded_1lpaa_309",zne="_countryFlag_1lpaa_462",Ine={equipo:rne,atlasSeleccin:nne,equipoAtlasSeleccinMexi:dne,aos:cne,span12:pne,nacionalidadMex:mne,manchesterUnited:yne,manchesterUnited12:hne,containerInfo:une,verPerfil12:fne,btnProfile:gne,containerButton:_ne,containerButton2:bne,dataContainer:Sne,expandedInfoPlayer:Cne,containerDataBg:wne,containerDataSm:kne,span:Ene,manchesterUnited14:Vne,filter:xne,verPerfil:Nne,manchesterUnited8:Tne,manchesterUnitedParent1:Bne,manchesterUnited1:Fne,manchesterUnitedParent:Pne,frameDiv:$ne,infoExpanded:Ane,countryFlag:zne},ll={components:{GSCButton:zd},props:{isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"totals"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Re(t);return{myDivRef:t,elementSize:i}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},Bp=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},Fp=ll.setup;ll.setup=Fp?(t,i)=>(Bp(),Fp(t,i)):Bp;const Ie=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),Mne={ref:"myDivRef"},Lne=["src"],Dne=Ie(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Rne=Ie(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),One=Ie(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),jne=Ie(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),vne=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Wne=Ie(()=>e.createElementVNode("span",null,"xG: ",-1)),Une=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Gne=Ie(()=>e.createElementVNode("span",null,"xG: ",-1)),Hne=Ie(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Jne=Ie(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),qne=Ie(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Zne=Ie(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Yne=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Kne=Ie(()=>e.createElementVNode("span",null,"xG: ",-1));function Xne(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Mne,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.expandedInfoPlayer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.dataContainer),id:"data-container"},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerInfo,a.additionalClass]),id:"container-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},[a.viewTeam?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.equipoAtlasSeleccinMexi)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.equipo)},"Equipo: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.atlasSeleccin)},e.toDisplayString(a.data.teams),3)],2)):e.createCommentVNode("",!0),a.viewAge?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.equipo)},"Edad: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.age)+" años",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)}," ("+e.toDisplayString(a.data.dataofbirth)+")",3)],2)):e.createCommentVNode("",!0),a.viewNationality?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Nacionalidad: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.countryFlag)},[e.createElementVNode("img",{src:a.data.countryFlag},null,8,Lne)],2)],2)],2)):e.createCommentVNode("",!0),a.viewPosition?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Posición: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.isFemale?a.data.position.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):a.data.position),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited12)},[a.viewGames?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"partidos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.games),3)],2)):e.createCommentVNode("",!0),a.viewMin?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Minutos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.min),3)],2)):e.createCommentVNode("",!0),a.viewGoals?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},e.toDisplayString(a.data.category)+": ",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.goals),3)],2)):e.createCommentVNode("",!0),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Efectividad de pases: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[0]||(i[0]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:1,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/add-list-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Agregar","font-size":"10px",onClick:i[1]||(i[1]=n=>l.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Ver grafica","font-size":"10px",onClick:i[2]||(i[2]=n=>l.showGraph(a.data))},null,8,["style"])):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.infoExpanded)},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerDataBg,a.additionalClass])},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Dne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Rne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[One,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals_received),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[jne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.games_played),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited1)},[vne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Wne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited8)},[Une,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness)+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[Gne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerDataSm)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameDiv)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Hne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Jne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[qne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals_received),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Zne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.games_played),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent1)},[a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited14)},[Yne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Kne,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2)],2)],2),a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[3]||(i[3]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const rl={components:{GSCCarousel:Od,GSCLeaders:lie,GSCRowTable:Yse,GSCTableHeader:lne,GSCExpandedInfo:Ce(ll,[["render",Xne],["__cssModules",{$style:Ine}],["__scopeId","data-v-83d82c67"]])},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Re(t);return{myDivRef:t,elementSize:i}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,i){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(i)||this.sonConjuntosDistintos(t.setNationalitiesIds,i.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,i){t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},i={},a=[],o=[],s=[];return this.formatFilterStats.map(l=>{t[l.team_id]?(t[l.team_id].total+=l.total,t[l.team_id].uniqueGames.has(l.game_id)||t[l.team_id].uniqueGames.add(l.game_id)):this.teamInfo[l.team_id]&&(t[l.team_id]=this.initializeTeamData(l,this.teamInfo[l.team_id])),l.player_id!==0&&l.player_id!==62117&&(i[l.player_id]?(i[l.player_id].total+=l.total,i[l.player_id].uniqueGames.has(l.game_id)||i[l.player_id].uniqueGames.add(l.game_id)):i[l.player_id]=this.initializePlayerData(l,this.playersInfo[l.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,i),a=this.processTeamData(t),o=this.processPlayerData(i),this.filterTeam!==0&&!this.isTeam&&(s=o.filter(l=>l.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:o)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,i){return t.total>i.total?-1:t.total<i.total?1:t.minutes<i.minutes?-1:t.minutes>i.minutes?1:0},sonConjuntosDistintos(t,i){const a=Array.from(t),o=Array.from(i);if(a.length!==o.length)return!0;for(let s=0;s<a.length;s++)if(!i.has(a[s]))return!0;return!1},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,i){return t.total<i.total?-1:t.total>i.total?1:t.name<i.name?-1:t.name>i.name?1:0},sortAndSlice(t,i){return t.sort((a,o)=>(a.name<o.name?1:-1)&&(a.total<o.total?1:-1)).slice(0,i)},getCategoryName(t){let i="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(i=this.categories[a].name);return i},translateTopCategories(t){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[t]||[]},getCoordinatePointPerCategory(t){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[t]||0},emitEventMedia(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const d=1,p=2,f=3,y=this.isTeam?f:p,h=t.player_id;let c=[],u=this.isTeam?t.id:this.filterTeam;h?this.isTeam?u=h:(c=[h],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?u=t.id:(c=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const m={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:d,playListType:y,gameIds:null,playerIds:c,goalkeeperIds:[],categoryIds:this.translateTopCategories(i),teamId:u||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",m)},emitEventMediaFullTable(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const d=1,p=2,f=3,y=this.isTeam?f:p;let h=[],c=this.isTeam?t.id:this.filterTeam;this.isTeam?c=t.id:(h=[t.id],n=n.filter(m=>!m.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:d,playListType:y,gameIds:null,playerIds:h,goalkeeperIds:[],categoryIds:n,teamId:c||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",u)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,i){this.$emit("clickprofile",{id:t,teamId:i,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let i=[],a={},o={};this.arePlaysEmpty=!1;const s=await he.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){i=s.data.data.map(r=>this.formatStatsData(r)),s.data.teams.forEach(r=>{a[r[0]]={},a[r[0]].id=r[0],a[r[0]].name=r[1],a[r[0]].abrv=r[2],a[r[0]].img=r[3],a[r[0]].effectiveness=r[4],a[r[0]].games_played=r[5],a[r[0]].games_played_lastseason=r[6],a[r[0]].positiontable=r[7],a[r[0]].goals=r[8],a[r[0]].goalsrecived=r[9],a[r[0]].xg=r[10],a[r[0]].frecuency=r[11],a[r[0]].game_avg=r[12],a[r[0]].game_avg_last_season=r[13]});const l=new Set;s.data.players.forEach(r=>{const n=this.getObjectPlayer(r);this.mapPlayers.set(n.numberId,n);const d=n.numberAge,p=n.teamName[0].acronym,f=a[n.teamName[0].team_id].name,y=n.teamName[0].team_id,h=this.positions[n.numberPositionId-1].fullname,c=this.positions[n.numberPositionId-1].name,u=n.countryId[0].nationality_id,m=n.effectiveness,g=n.min,_=n.games,k=n.date;n.arrayNationalities.forEach(W=>{l.add(W.numberId)}),o[r[0]]={id:r[0],name:r[1],img:r[2],age:d,team:p,teamname:f,teamid:y,position:h,positionfull:c,effectiveness:m,country:u,games_played:_,minutes_played:g,nationalityId:g,date:k,nationality:r[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=l,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(i){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(i)}}},filterRecords(t){if(!this.formatStats.length)return[];const i={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!i.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),i.setNationalitiesIds=!0),!Object.values(i).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),o=new Set(t.setPositionsIds),[s,l]=t.arrayAgeRange||[0,100],r=t.setYear||0;return this.formatStats.filter(n=>{const d=this.mapPlayers.get(n.player_id);if(!d||i.playingAs&&!t.playingAs.includes(n.playing_as)||i.matchResult&&!t.matchResult.includes(n.match_result)||i.sections&&!t.sections.includes(n.section)||i.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||i.setNationalitiesIds&&!d.arrayNationalitiesIds.some(p=>a.has(p))||i.setPositionsIds&&!o.has(d.numberPositionId))return!1;if(i.arrayAgeRange){const p=d.numberAge;if(p<s||p>l)return!1}return!(i.setYear&&d.date<r||i.elegible&&t.elegible&&!d.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const i={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return i.hasFilters=this.checkActiveFilters(i),Object.freeze(i)},checkActiveFilters(t){const{basic:i,player:a}=t;return i.playingAs.size>0||i.matchResult.size>0||i.sections.size>0||i.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,i){return t.filter(a=>!(!this.passesBasicFilters(a,i.basic)||i.player&&!this.passesPlayerFilters(a,i.player)))},passesBasicFilters(t,i){const{playingAs:a,matchResult:o,sections:s,zone:l,typeZone:r}=i;if(a.size&&!a.has(t.playing_as)||o.size&&!o.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(l.size){const n=r===1?t.origen:t.destino;if(!l.has(n))return!1}return!0},passesPlayerFilters(t,i){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(i.nationalTeams.enabled){if(i.nationalTeams.players.size&&!i.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(l=>i.nationalities.has(l)))return!1;const{ageRange:o,yearLimit:s}=i;if(a.numberAge<o[0]||a.numberAge>o[1]||a.date<s||!i.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const i={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,o)=>{i[a]=t[o]}),i},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},formatArrayPaginate(t){const i=Math.ceil(t.length/this.numRows);return Array.from({length:i},(a,o)=>{const s=o*this.numRows,l=s+this.numRows;return t.slice(s,l)})},initializeTeamData(t,i){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:i.id,name:i.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:i.effectiveness,frecuency:i.frecuency,game_avg:i.game_avg,game_avg_last_season:i.game_avg_last_season,games_played:i.games_played,games_played_lastseason:i.games_played_lastseason,positiontable:i.positiontable,goals:i.goals,goalsrecived:i.goalsrecived,xg:i.xg};return this.typeStats==="every90"&&(a.minutes=i.minutes||0),a},initializePlayerData(t,i){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return i?Object.assign(a,{name:i.name,name_short:this.getnameshort(i.name),img:i.img,id:i.id,age:i.age,team:i.team,teamname:i.teamname,teamid:i.teamid,position:i.position,positionId:i.positionId,positionfull:i.positionfull,country:i.country,effectiveness:i.effectiveness,minutes:i.minutes_played,games:i.games_played,date:i.date,nationality:i.nationality,player_country_flag:i.player_country_flag,categoryName:this.categoryName,goals:i.goals||0,goalsrecived:i.goalsrecived||0,xg:i.xg||0,positiontable:i.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,i){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(i).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(i).forEach(a=>{i[a].minutes<90&&delete i[a]})},processTeamData(t){return Object.values(t).sort((i,a)=>a.total-i.total).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},HandlerAddplayer(t){this.$emit("add-player",t)},HandlerShowGraph(t){this.$emit("show-graph",t)}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},Pp=()=>{e.useCssVars(t=>({"14b8a4d8":t.borderRadius,c64876f8:t.borderWidth,c87673be:t.borderColor}))},$p=rl.setup;rl.setup=$p?(t,i)=>(Pp(),$p(t,i)):Pp;const Mi=t=>(e.pushScopeId("data-v-01e14e57"),t=t(),e.popScopeId(),t),Qne={ref:"myDivRef"},ede={class:"text"},tde={class:"groupsLeague"},ade={class:"row-table-carrousel"},ide={key:1,class:"container-no-search-result"},ode={key:0,class:"overlay-loading-top"},sde=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),lde=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),rde=[sde,lde],nde=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),dde=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1));function cde(t,i,a,o,s,l){const r=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),d=e.resolveComponent("GSCExpandedInfo"),p=e.resolveComponent("GSCCarousel"),f=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Qne,[l.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:i[0]||(i[0]=y=>l.clickMore(a.category))},[e.createElementVNode("div",ede,[e.createElementVNode("div",tde,e.toDisplayString(a.categoryName)+" → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.displayData.length>0?(e.openBlock(),e.createBlock(p,{key:0,items:l.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:e.withCtx(({item:y})=>[e.createElementVNode("div",ade,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,(h,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[h.top==="01"?(e.openBlock(),e.createBlock(r,{key:0,onAddPlayer:l.HandlerAddplayer,onMediadata:i[1]||(i[1]=u=>l.emitEventMedia(u,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==h.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:h.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",name:h.name,player_short:h.name_short,player_id:h.id,categoryId:a.category,total:h.total}:{top:"01",logo:h.img,total:h.total,name_team:h.name,player_id:h.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?o.elementSize.width>360?"210px":"130px":o.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["onAddPlayer","type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==h.id&&t.expand,onAddPlayer:l.HandlerAddplayer,onMediadata:i[2]||(i[2]=u=>l.emitEventMedia(u,a.category,a.categoryName)),data:a.typeTable==0?{position:h.top,player_name:h.name,player_short:h.name_short,player_photo:h.img,total:h.total,id:h.id,player_age:h.age,team_abrev:h.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",player_position:h.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+h.country+".jpg",player_games:h.minutes,player_min:h.games,league_name:" Liga MX "}:{position:h.top,team_logo:h.img,team_abrev:h.name,frequency:h.frecuency,promthistournament:h.game_avg,promlasttournament:h.game_avg_last_season,teams_games:"-",category:a.category,total:h.total,id:h.id},height:"71px",background:c%2===0?a.backgroundEven:a.backgroundOdd,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==h.id?(e.openBlock(),e.createBlock(d,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":h.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:h.teamname,age:h.age,dataofbirth:h.date,nationality:h.nationality,countryFlag:h.player_country_flag,position:h.position,games:h.games,min:h.minutes,goals:h.originalTotal||h.total,effectiveness:h.effectiveness,category:a.categoryName,id:h.id}:{position:h.position,goals:h.goals,goals_received:h.goalsrecived,games_played:h.games_played,category:a.categoryName,effectiveness:h.effectiveness,xg:h.xg,total:h.originalTotal||h.total,attendance:"-",id:h.id},onViewprofile:u=>l.viewprofile(u,h.teamid),background:c%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(e.openBlock(),e.createElementBlock("div",ide,[t.isloading?(e.openBlock(),e.createElementBlock("div",ode,rde)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[nde,dde],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(f,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.displayData,(y,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:u},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==c.id&&t.expand,onMediadata:i[3]||(i[3]=m=>l.emitEventMediaFullTable(m,a.category,a.categoryName)),onAddPlayer:l.HandlerAddplayer,data:a.typeTable==0?{position:c.top,player_name:c.name,player_short:c.name_short,player_photo:c.img,total:c.total,id:c.id,player_age:c.age,team_abrev:c.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+c.teamid+".png",player_position:c.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+c.country+".jpg",player_games:c.games,player_min:c.minutes,league_name:" Liga MX "}:{position:c.positiontable,team_logo:c.img,team_abrev:c.name,frequency:c.frecuency,promthistournament:c.game_avg,promlasttournament:c.game_avg_last_season,category:a.category,team_games:c.games_played,total:c.total,id:c.id},height:"71px",background:((h+1)*5+u)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==c.id?(e.openBlock(),e.createBlock(d,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":c.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:c.teamname,age:c.age,dataofbirth:c.date,nationality:c.nationality,countryFlag:c.player_country_flag,position:c.position,positionfull:c.positionfull,games:c.games,min:c.minutes,goals:c.originalTotal||c.total,effectiveness:c.effectiveness,category:l.getCategoryName(a.category),id:c.id}:{position:c.positiontable,goals:c.goals,goals_received:c.goalsrecived,games_played:c.games_played,category:a.categoryName,effectiveness:c.effectiveness,xg:c.xg,total:c.originalTotal||c.total,category:l.getCategoryName(a.category),attendance:"-",id:c.id},onViewprofile:m=>l.viewprofile(m,c.teamid),background:u%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const pde=Ce(rl,[["render",cde],["__scopeId","data-v-01e14e57"]]),mde="_filtersContainer_b9wc6_1",yde="_filtersContainer1232_b9wc6_1",hde="_closeFiltersPc_b9wc6_1",ude="_textleyemdmultipleleagues_b9wc6_1",fde="_textleyemdmultipleleagues380_b9wc6_1",gde="_filtersContainer760_b9wc6_1",_de="_filtersContainer460_b9wc6_1",bde="_containerSectionPlay_b9wc6_1",Sde="_containerSectionPlay1232_b9wc6_1",Cde="_containerSectionPlay960_b9wc6_1",wde="_containerSectionPlay320_b9wc6_1",kde="_containerSectionPlay350_b9wc6_1",Ede="_containerSection_b9wc6_1",Vde="_containerSection1232_b9wc6_1",xde="_containerSection960_b9wc6_1",Nde="_containerSection320_b9wc6_1",Tde="_containerSection350_b9wc6_1",Bde="_templateLosMejores_b9wc6_1",Fde="_templateLosMejores1232_b9wc6_1",Pde="_templateLosMejores960_b9wc6_1",$de="_templateLosMejores420_b9wc6_1",Ade="_templateLosMejores320_b9wc6_1",zde="_templateLosMejores540_b9wc6_1",Ide="_templateLosMejores350_b9wc6_1",Mde="_topFiltersParent_b9wc6_1",Lde="_topFiltersParent1232_b9wc6_1",Dde="_topFiltersParent960_b9wc6_1",Rde="_topFiltersParent460_b9wc6_1",Ode="_topFiltersParent420_b9wc6_1",jde="_containerTheBest_b9wc6_1",vde="_containerTheBest1232_b9wc6_1",Wde="_containerTheBest960_b9wc6_1",Ude="_containerTheBest320_b9wc6_1",Gde="_titleSection_b9wc6_1",Hde="_titleSection540_b9wc6_1",Jde="_containerTables_b9wc6_1",qde="_containerTables960_b9wc6_1",Zde="_containerTables760_b9wc6_1",Yde="_containerTables320_b9wc6_1",Kde="_toniKroosWrapper_b9wc6_1",Xde="_toniKroosWrapper1080_b9wc6_1",Qde="_toniKroosWrapper975_b9wc6_1",ece="_toniKroosWrapper760_b9wc6_1",tce="_toniKroosWrapper420_b9wc6_1",ace="_toniKroosWrapper320_b9wc6_1",ice="_frameChild_b9wc6_1",oce="_filtros_b9wc6_1",sce="_groupParent_b9wc6_1",lce="_shapeIcon_b9wc6_1",rce="_btnFilters_b9wc6_1",nce="_btnFiltersPC_b9wc6_1",dce="_quitarFiltros_b9wc6_1",cce="_quitarFiltros730_b9wc6_1",pce="_quitarFiltros480_b9wc6_1",mce="_quitarFiltros380_b9wc6_1",yce="_btnCloseFilters_b9wc6_1",hce="_mejoresJugadores_b9wc6_1",uce="_mejoresJugadores730_b9wc6_1",fce="_mejoresJugadores480_b9wc6_1",gce="_mejoresJugadoresSM_b9wc6_1",_ce="_toniKroos_b9wc6_1",bce="_teamBar_b9wc6_1",Sce="_menuSection_b9wc6_1",Cce="_menuSection960_b9wc6_1",wce="_menuSectionPlay_b9wc6_1",kce="_menuSectionPlay960_b9wc6_1",Ece="_containerMenu_b9wc6_1",Vce="_containerMenu760_b9wc6_1",xce="_containerFilters_b9wc6_1",Nce="_teamBarParent_b9wc6_1",Tce="_topFilters_b9wc6_1",Bce="_topFilters1232_b9wc6_1",Fce="_topFilters420_b9wc6_1",Pce="_topFilters460_b9wc6_1",$ce="_losMejores_b9wc6_1",Ace="_losMejores380_b9wc6_1",zce="_losMejores530_b9wc6_1",Ice="_losMejores730_b9wc6_1",Mce="_menuSectionHeader_b9wc6_1",Lce="_menuSectionHeader1232_b9wc6_1",Dce="_menuSectionHeader960_b9wc6_1",Rce="_menuSectionHeader730_b9wc6_1",Oce="_dropdown_b9wc6_1",jce="_dropdown730_b9wc6_1",vce="_dropdown1_b9wc6_1",Wce="_dropdown1730_b9wc6_1",Uce="_dropdownParent_b9wc6_1",Gce="_dropdownParent730_b9wc6_1",Hce="_menuSectionParentHeader_b9wc6_1",Jce="_menuSectionParentHeader1232_b9wc6_1",qce="_menuSectionParentHeader960_b9wc6_1",Zce="_menuSectionParentHeader730_b9wc6_1",Yce="_menuSectionParentHeader430_b9wc6_1",Kce="_descubreVideos_b9wc6_1",Xce="_descubreVideos1232_b9wc6_1",Qce="_descubreVideos960_b9wc6_1",epe="_allCategories_b9wc6_1",tpe="_containerScountingBtn_b9wc6_3",ape="_btnDeleteAplica_b9wc6_13",ipe="_SearchBtnBar_b9wc6_33",ope="_btnLeyendTxt_b9wc6_52",spe="_BtnSearchScounting_b9wc6_61",lpe="_containerPredefined_b9wc6_85",rpe="_containerPredefinedScounting_b9wc6_92",npe="_titleContainerPredefined_b9wc6_100",dpe="_subtitleContainerPredefined_b9wc6_111",cpe={filtersContainer:mde,filtersContainer1232:yde,closeFiltersPc:hde,textleyemdmultipleleagues:ude,textleyemdmultipleleagues380:fde,filtersContainer760:gde,filtersContainer460:_de,containerSectionPlay:bde,containerSectionPlay1232:Sde,containerSectionPlay960:Cde,containerSectionPlay320:wde,containerSectionPlay350:kde,containerSection:Ede,containerSection1232:Vde,containerSection960:xde,containerSection320:Nde,containerSection350:Tde,templateLosMejores:Bde,templateLosMejores1232:Fde,templateLosMejores960:Pde,templateLosMejores420:$de,templateLosMejores320:Ade,templateLosMejores540:zde,templateLosMejores350:Ide,topFiltersParent:Mde,topFiltersParent1232:Lde,topFiltersParent960:Dde,topFiltersParent460:Rde,topFiltersParent420:Ode,containerTheBest:jde,containerTheBest1232:vde,containerTheBest960:Wde,containerTheBest320:Ude,titleSection:Gde,titleSection540:Hde,containerTables:Jde,containerTables960:qde,containerTables760:Zde,containerTables320:Yde,toniKroosWrapper:Kde,toniKroosWrapper1080:Xde,toniKroosWrapper975:Qde,toniKroosWrapper760:ece,toniKroosWrapper420:tce,toniKroosWrapper320:ace,frameChild:ice,filtros:oce,groupParent:sce,shapeIcon:lce,btnFilters:rce,btnFiltersPC:nce,quitarFiltros:dce,quitarFiltros730:cce,quitarFiltros480:pce,quitarFiltros380:mce,btnCloseFilters:yce,mejoresJugadores:hce,mejoresJugadores730:uce,mejoresJugadores480:fce,mejoresJugadoresSM:gce,toniKroos:_ce,teamBar:bce,menuSection:Sce,menuSection960:Cce,menuSectionPlay:wce,menuSectionPlay960:kce,containerMenu:Ece,containerMenu760:Vce,containerFilters:xce,teamBarParent:Nce,topFilters:Tce,topFilters1232:Bce,topFilters420:Fce,topFilters460:Pce,losMejores:$ce,losMejores380:Ace,losMejores530:zce,losMejores730:Ice,menuSectionHeader:Mce,menuSectionHeader1232:Lce,menuSectionHeader960:Dce,menuSectionHeader730:Rce,dropdown:Oce,dropdown730:jce,dropdown1:vce,dropdown1730:Wce,dropdownParent:Uce,dropdownParent730:Gce,menuSectionParentHeader:Hce,menuSectionParentHeader1232:Jce,menuSectionParentHeader960:qce,menuSectionParentHeader730:Zce,menuSectionParentHeader430:Yce,descubreVideos:Kce,descubreVideos1232:Xce,descubreVideos960:Qce,allCategories:epe,containerScountingBtn:tpe,btnDeleteAplica:ape,SearchBtnBar:ipe,btnLeyendTxt:ope,BtnSearchScounting:spe,containerPredefined:lpe,containerPredefinedScounting:rpe,titleContainerPredefined:npe,subtitleContainerPredefined:dpe},ppe=e.ref(Ys()),mpe=e.ref(dY()),ype=e.ref(pp()),hpe={components:{GSCTableHeader:os,GscSwitchComponent:bs,GSCFilterperteam:Bd,DropdownYears:cp,GSCFilters:Zs,DropdownPositions:dp,GSCExpandedInfo:ys,GSCLabel:Wd,GSCSeasonSelect:ud,GSCTopCategory:pde,GSCTournamentSelect:_d,GSCRowTable:rs},computed:{...Hte.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{...ppe.value}},filterButtonPropsAux(){return{...mpe.value}},filterButtonPropsTournaments(){return{...ype.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!0},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Re(t);return{myDivRefTopsFull:t,elementSize:i}},data(){return{cachedPlayersMap:[],dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},isAvanced:!1,elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],fvTypeStats:"totals",seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,seasonsArray:[{id:1933,tournament:1}],updateTablesfull:0,teamselect:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:T,personalDataFilters:Zt,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{onChangeYear(t){this.personalDataFilters.selectedYear=t},onChangePositions(){},async fillPersonalDataFilters(){try{this.personalDataFilters=await Cv(this.seasonsArray,this.tokenFree)}catch(t){console.error("error",t)}},toggleAdvancedView(){this.isAvanced=!this.isAvanced},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(oe.All),i.clearFilters(oe.AGE_RANGE),i.clearFilters(oe.YEAR),i.clearFilters(oe.NATIONALITY),i.clearFilters(oe.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},HandlerShowGraph(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id);if(o){const s={id:t.id,player_name:o.stringFullName,position:t.position,is_female:(o==null?void 0:o.is_female)||0,team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,nationality:o.stringNationalityName,photo:o.stringImageUrl,countryFlag:o.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id||t.player_id);if(o){const s={player_id:o.numberId,name:o.stringFullName,position:o.numberPositionId,is_female:(o==null?void 0:o.is_female)||0,dob:"",team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:o.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.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(oe.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(oe.AGE_RANGE)):t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(oe.YEAR),this.FVYear=1981,this.personalDataFilters.selectedYear=1981,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(oe.ELIGIBILITY)}this.arrayFiltersPlays.splice(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(i!=-1?this.arrayFiltersPlays[i].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(oe.All),a.clearFilters(oe.AGE_RANGE),a.clearFilters(oe.YEAR),a.clearFilters(oe.NATIONALITY),a.clearFilters(oe.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange?(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let h=0;h<t.nationalities.length;h++)t.nationalities[h].isSelected&&this.fVnationalities.add(t.nationalities[h].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;for(let h=0;h<t.positions.length;h++)t.positions[h].isSelected&&this.fVsetPositionsIds.push(t.positions[h].id);if(t.hasOwnProperty("nationalities"))var l=t.nationalities.filter(h=>h.isSelected===!0);var r=t.positions.filter(h=>h.isSelected===!0);if(r.length==1&&(o=r[0].name),t.hasOwnProperty("nationalities")&&l.length==1&&(s=l[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var d=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersPosition");d!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[d].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(d,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(t.hasOwnProperty("ageLimits")){if(this.arrayFiltersPlays=this.arrayFiltersPlays.filter(h=>h.type!=="onFiltersYear"),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 p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");p!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[p].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(p,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 p=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersAge");p!=-1&&this.arrayFiltersPlays.splice(p,1)}}else if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");y!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[y].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(y,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(oe.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=he.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=he.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=he.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(y=>{this.predefinedFiltersMatchLapse[y.toString()]=o[0].match_lapse_combinations[y]}),Object.keys(o[0].playing_as_combinations).forEach(y=>{this.predefinedFiltersPlayingAs[y.toString()]=o[0].playing_as_combinations[y]}),Object.keys(o[0].field_sections_combinations).forEach(y=>{this.predefinedFiltersSections[y.toString()]=o[0].field_sections_combinations[y]}),o[0]){for(let y=0;y<o[0].filter_records.length;y++){var s=o[0].description;if(o[0].filter_records[y].field_sections!==void 0){const c=o[0].filter_records[y].field_sections.toString();(this.predefinedFiltersSections[c]||this.predefinedFiltersSections[c]=="")&&(this.predefinedFiltersSections[c]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[c]):s=s.replace("{field_sections}",this.predefinedFiltersSections[c]))}if(o[0].filter_records[y].match_lapse!==void 0){const c=o[0].filter_records[y].match_lapse.toString();(this.predefinedFiltersMatchLapse[c]||this.predefinedFiltersMatchLapse[c]=="")&&(this.predefinedFiltersMatchLapse[c]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[c]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[c]))}if(o[0].filter_records[y].playing_as!==void 0){const c=o[0].filter_records[y].playing_as.toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[c]))}o[0].filter_records[y].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[y].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:y,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[y].match_result,playingAs:o[0].filter_records[y].playing_as,sections:o[0].filter_records[y].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[y].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let y=0;y<this.arrayPredefinedFilters.length;y++){var n=0,d=new Set,p={},f=this.arrayPredefinedFilters[y].text.replace(/\*.*?\*/,"");if(f=f.replace(/\*/g,""),f=f.replace(/ +/g," "),this.arrayPredefinedFilters[y].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[y].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[y].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[y].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[y].filtersPredefined.start_age,this.arrayPredefinedFilters[y].filtersPredefined.end_age]:this.arrayPredefinedFilters[y].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[y].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[y].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[y].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[y].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[y].filtersPredefined.end_age],this.arrayPredefinedFilters[y].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[y].filtersPredefined.matchResult,this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[y].filtersPredefined.nationalities.length;h++)d.add(this.arrayPredefinedFilters[y].filtersPredefined.nationalities[h]);p.setNationalitiesIds=d}else d.add(138),d.add(222),d.add(163),d.add(51),d.add(226),d.add(10),d.add(223),d.add(96),d.add(171),d.add(198),d.add(105),d.add(80),d.add(29),d.add(74),d.add(216),d.add(196),d.add(64),d.add(155),d.add(156),d.add(89),d.add(106),d.add(81),d.add(233),d.add(204),p.setNationalitiesIds=d;this.arrayPredefinedFilters[y].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[y].filtersPredefined.playingAs,this.arrayPredefinedFilters[y].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[y].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[y].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[y].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[y].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[y].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[y].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[y].filtersPredefined.typeZone,r.push({id:y+1,name:f,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((f,y)=>f-y).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),d=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=d.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let f=1;f<=p.length;f++)f%2===0||(d=d.replace("*",'<span style="color: #ffff03" >'));else d=d.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=d},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=o,t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const d=a.get(r[0])||{};return{id:d.id,name:d.name,img:d.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var d,p,f,y,h,c,u,m,g,_;const k=o.get(r[0])||{};return{age:k.numberAge,categoryName:s.name,country:(p=(d=k.countryId)==null?void 0:d[0])==null?void 0:p.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:k.min,name:k.stringFullName,name_short:k.stringFullName,nationality:k.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(y=(f=k.countryId)==null?void 0:f[0])==null?void 0:y.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((c=(h=k.teamName)==null?void 0:h[0])==null?void 0:c.acronym)||"",teamid:((m=(u=k.teamName)==null?void 0:u[0])==null?void 0:m.team_id)||"",teamname:((_=(g=k.teamName)==null?void 0:g[0])==null?void 0:_.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=he.create({headers:{Authorization:`${this.token}`}}),i=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=he.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 he.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.fillPersonalDataFilters()}catch(t){throw new Error(t)}}},upe={ref:"myDivRefTopsFull",class:"play-tops"},fpe={key:0,class:"overlay-loading"},gpe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),_pe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),bpe=[gpe,_pe],Spe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),Cpe=[Spe],wpe={style:{display:"contents"}},kpe={style:{display:"contents"}},Epe={key:0,class:"cont-leyemd-multipleleagues"},Vpe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),xpe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},Npe={key:0,style:{"margin-left":"10px"}},Tpe=e.createElementVNode("span",null,"Todas las categorías",-1),Bpe=[Tpe],Fpe=e.createElementVNode("span",null,"Tipo de Jugada",-1),Ppe=e.createElementVNode("span",null,"Filtro GolStats",-1),$pe={key:3,style:{width:"100%",height:"295px"}};function Ape(t,i,a,o,s,l){var r,n,d;const p=e.resolveComponent("GSCTournamentSelect"),f=e.resolveComponent("GSCSeasonSelect"),y=e.resolveComponent("GscSwitchComponent"),h=e.resolveComponent("GSCFilterperteam"),c=e.resolveComponent("GSCFilters"),u=e.resolveComponent("DropdownPositions"),m=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),_=e.resolveComponent("GSCTopCategory"),k=e.resolveComponent("GSCTableHeader"),W=e.resolveComponent("GSCRowTable"),J=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",upe,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",fpe,bpe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(f,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(y,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(f,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(h,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...L)=>l.clickOpenFilters&&l.clickOpenFilters(...L))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...L)=>l.clickCloseFilters&&l.clickCloseFilters(...L))},Cpe,2)):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...L)=>l.openMenuFilters&&l.openMenuFilters(...L))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:mp},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]=(...L)=>l.openMenuFilters&&l.openMenuFilters(...L))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(o.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:i[4]||(i[4]=(...L)=>l.toggleAdvancedView&&l.toggleAdvancedView(...L))},[s.isAvanced?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ocultar avanzado")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ver avanzado")],64))],2),e.withDirectives(e.createElementVNode("div",null,"Liga:",512),[[e.vShow,!s.isAvanced]]),e.createElementVNode("div",{style:e.normalizeStyle(s.isAvanced?"width: auto;":o.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(c,e.mergeProps({key:0,"button-filter-props":s.isAvanced?l.filterButtonPropsTournaments:l.filterButtonProps,width:"100%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",wpe,[e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 61px;"))},"Posición:",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(u,{"dropdown-props":s.dropdownProps,positions:(r=s.personalDataFilters)==null?void 0:r.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(m,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(d=s.personalDataFilters)==null?void 0:d.selectedYear,onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",kpe,[e.withDirectives(e.createVNode(c,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(c,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(c,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(c,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonPropsTournaments,filters:s.personalDataFilters},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","filters","filter-type","season","token","onUpdate:filters"]),[[e.vShow,s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"]])],512),[[e.vShow,s.isAvanced]])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(c,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(c,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(c,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(c,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[5]||(i[5]=(...L)=>l.getScoutingData&&l.getScoutingData(...L))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(c,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(c,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",Epe,[Vpe,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(h,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",xpe," 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",Npe,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(L,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":L.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:L.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(L=>L.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[6]||(i[6]=(...L)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...L))}," 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)},Bpe,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,(L,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(L.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(_,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[L.id],"border-radius":"12px","filters-prop":l.filterChange,category:L.id,"type-table":s.typeTable,categoryName:L.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded","onShowGraph","onAddPlayer"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(L.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(_,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":!1,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(_,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Fpe,e.createTextVNode(" y un "),Ppe,e.createTextVNode(" en la ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("que has seleccionado.")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("parte superior.")],64)):e.createCommentVNode("",!0)],2)],2))],64))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefinedScounting),style:e.normalizeStyle(s.rowScoutingData.length>0?"height: auto;":"")},[s.loadingActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.rowScoutingData.length>0?(e.openBlock(),e.createBlock(k,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(L,G)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:G},[s.teamselectrec==0||s.teamselectrec==L.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(W,{type:2,"is-expanded":s.playerexpand==L.id&&s.expand,onMediadata:l.setMediaData,data:{position:L.position,player_name:L.player_name,player_photo:L.player_photo,total:L.total,id:L.id,player_age:L.player_age,team_abrev:L.team_abrev,team_logo:L.team_logo,player_position:s.positions[L.player_position-1].fullname,player_country_flag:L.player_country_flag,player_games:L.player_games,player_min:L.player_min,league_name:L.league_name,seasons:L.seasons,season_id:L.season_id},height:"71px",background:G%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==L.id?(e.openBlock(),e.createBlock(J,{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:L.team_name,age:L.player_age,dataofbirth:L.date,nationality:L.nationality_name,countryFlag:L.player_country_flag,position:s.positions[L.player_position-1].name,games:L.player_games,min:L.player_min,goals:L.total,effectiveness:"-",category:"total",id:L.id},onViewprofile:Z=>l.viewprofile(Z,L.season_id,L.team_id),background:G%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[7]||(i[7]=(...L)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...L))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[8]||(i[8]=(...L)=>l.getScoutingData&&l.getScoutingData(...L))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",$pe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const zpe={$style:cpe},Ipe=Ce(hpe,[["render",Ape],["__cssModules",zpe]]),Mpe=e.ref(Ys()),Lpe=e.ref(pp()),Dpe={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0},templates:{type:Array,default:()=>[]}},components:{GscSwitchComponent:bs,GSCRadioToggle:zX,ModalAddPlayList:yQ,DropdownTemplates:nY,GSCTableScrollable:ote,GSCFilters:Zs,ModalAddLista:xQ,DropdownYears:cp,DropdownPositions:dp,PlayTops:Ipe,ModalViewVarGolstats:Gte},computed:{filterButtonProps(){return{...Mpe.value}},filterButtonPropsTournamentsAdvanced(){return{...Lpe.value}},sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"90px":t<=330?"95px":t<=340||t<=350?"110px":t<=360?"120px":t<=470?"122px":"130px"},advancedText(){return this.showAdvanced?"Ocultar avanzado":"Ver avanzado"}},data(){return{showModal:!1,currentParameters:{},MobileFilterDesing:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},showtableType:!0,formattedPlayers:[],totalNationalities:0,defaultFiltersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},visibleModalAddPlaylist:!1,showCreatePlaylistModal:!1,filtersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},positions:[{id:1,name:"Portero",fullname:"POR"},{id:2,name:"Defensa central",fullname:"DFC"},{id:3,name:"Lateral por izquierda",fullname:"LI"},{id:4,name:"Lateral por derecha",fullname:"LD"},{id:5,name:"Volante por izquierda",fullname:"VI"},{id:6,name:"Volante por derecha",fullname:"VD"},{id:7,name:"Volante defensivo",fullname:"VDF"},{id:8,name:"Volante ofensivo",fullname:"VO"},{id:9,name:"Delantero",fullname:"DEL"},{id:10,name:"Desconocida",fullname:"Desc"}],tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],filtersTypes:T,personalDataFilters:Zt,personalDataSubFiltersTypes:oe,tournamentsToFilter:NQ,tournamentsToFilterVariables:TQ,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"Poppins-Regular"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},optionSelected:"Los mejores",showVariables:!0,selectedRadioOption:"Variables propias",showAdvanced:!1,isSearchActive:!1,lastSearchFilters:null,seasonsArray:[],activeFilters:[],isLoading:!1,selectedPlayerToAdd:null}},setup(){const t=e.ref("myDivRefTopsBestPlay"),i=e.ref(null),a=e.ref(null),{elementSize:o}=Re(t),{elementSize:s}=Re(i),{elementSize:l}=Re(a);return{myDivRefTopsBestPlay:t,midLayoutRef:i,filterBoxRef:a,elementSize:o,midLayoutSize:s,filterBoxSize:l}},created(){},async mounted(){try{await this.fillPersonalDataFilters(),this.isSearchActive=!0,this.hasTemplates?await new Promise(t=>{const i=()=>{this.filtersObject.template_id?t(!0):setTimeout(i,100)};i()}):(this.selectedRadioOption="Info general",delete this.filtersObject.template_id,this.showVariables=!1,this.checkSearchButton()),await this.toggleSearch()}catch(t){console.error("Error durante la inicialización:",t)}},methods:{onClickParameters(t){this.currentParameters=t,this.showModal=!0},closeModal(){this.showModal=!1},onViewProfile(t){this.$emit("open-profile-player",t)},onAddToList(t){this.selectedPlayerToAdd={player_id:t.objeto_player.player_id,name:t.objeto_player.name,position:t.objeto_player.position_id,is_female:t.objeto_player.is_female||0,dob:t.objeto_player.dob,team_id:t.objeto_player.teams[0].team_id,jersey:t.objeto_player.jersey||0,nationality:t.objeto_player.nationality},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",t)},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),i=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==i},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(i=>i.isSelected).map(i=>i.id),this.seasonsArray=t.filter(i=>i.isSelected).map(i=>({id:i.seasons[0].id,tournamentId:i.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[o,s],this.filtersObject.age_or_year=1}else t.hasOwnProperty("year")?(this.filtersObject.year=t.year,this.filtersObject.age_or_year=0,this.filtersObject.range_age=[]):this.filtersObject.year=0;var i=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=i,this.checkSearchButton()},onFiltersField(t){this.checkSearchButton()},onFiltersUniverse(t){this.filtersObject.minutes_played=Number(t.minutesPlayed),this.filtersObject.last_months=Number(t.lastMonths),this.filtersObject.minutes_played_avg=Number(t.percentMinutesPlayed),this.filtersObject.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1,this.checkSearchButton()},onFiltersProductivity(t){var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filtersObject.categories=i,this.filtersObject.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filtersObject.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filtersObject.red_cards=t.offensesConditions.areRedCardsSelected,this.checkSearchButton()},onChangePositions(t){this.filtersObject.positions=t.filter(i=>i.isSelected&&i.id!==0).map(i=>i.id),this.checkSearchButton()},onChangeYear(t){this.filtersObject.year=t,this.personalDataFilters.selectedYear=t,this.checkSearchButton()},async toggleSearch(){if(this.isSearchActive)try{this.isLoading=!0;const t=await(await fetch("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...this.filtersObject,year:this.filtersObject.year==="Sin límite"?this.personalDataFilters.availableYears[this.personalDataFilters.availableYears.length-1]:this.filtersObject.year})})).json();this.showtableType=!this.filtersObject.template_id,this.formattedPlayers=t.map(i=>({objeto_player:i,player_photo:i.photo,player_name:i.acronym,player_age:this.calculateAge(i.dob),team_abrev:i.teams[0].acronym,jersey:i.jersey||"",nationality:i.nationality,team_name:i.team_name,is_female:i.is_female||0,parameters:i.internal_parameters,position_name:this.positions[i.position_id-1].fullname,player_position:this.positions[i.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${i.nationality_id}.jpg`,player_games:i.games_played,player_min:i.minutes_played,nationality_name:ct[i.nationality_id],league_name:i.tournament_name,seasons:i.seasons,season_id:i.seasons[0],stats:i.stats?i.stats.map(a=>({category_id:a[4]||null,custom_category_id:a[0]||null,name:a[1]||"",total:a[2]||0,seasons:a[3]||null})):[]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(t){console.error("Error al realizar la búsqueda:",t)}finally{this.isLoading=!1}},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},resetFilters(){this.filtersObject=JSON.parse(JSON.stringify(this.defaultFiltersObject)),this.lastSearchFilters=null,this.checkSearchButton()},async fillPersonalDataFilters(){this.seasonsArray,this.tokenFree},async changeTabsGeneral(t){this.optionSelected=t},closeModalAddPlaylist(){this.visibleModalAddPlaylist=!1},ChangeRadio(t){if(!this.hasTemplates){this.selectedRadioOption="Info general";return}typeof t=="string"?(this.selectedRadioOption=t,this.showVariables=t==="Variables propias",t==="Info general"&&delete this.filtersObject.template_id,this.checkSearchButton()):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t&&(this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton())},updateActiveFilters(){const t=[];if(this.filtersObject.tournaments.length>0&&this.filtersObject.tournaments.length!=6)if(this.filtersObject.tournaments.length>1)t.push(`Ligas ${this.filtersObject.tournaments.length}`);else{const i=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));i&&t.push(i.name)}else t.push("Todas las ligas");if(this.filtersObject.nationalities.length>0&&this.filtersObject.nationalities.length!==this.totalNationalities&&this.filtersObject.nationalities.length!==231){const i=this.filtersObject.nationalities.length;i===1?t.push("Nacionalidad "+ct[this.filtersObject.nationalities[0]]):t.push(`${i} nacionalidades`)}if(this.filtersObject.elegibles&&this.filtersObject.elegibles.length>0&&t.push("Nacionalidad Mexicana"),this.filtersObject.positions.length>0&&this.filtersObject.positions.length!==9)if(this.filtersObject.positions.length===1){const i=this.positions.find(a=>a.id===this.filtersObject.positions[0]);i&&t.push(i.name)}else t.push(`${this.filtersObject.positions.length} posiciones de juego`);if(this.filtersObject.year>0&&t.push(`A partir del ${this.filtersObject.year}`),this.filtersObject.range_age.length===2&&t.push(`${this.filtersObject.range_age[0]}-${this.filtersObject.range_age[1]} años`),this.filtersObject.last_months&&this.filtersObject.last_months!==12&&t.push(`Últimos ${this.filtersObject.last_months} meses`),this.filtersObject.minutes_played>0&&t.push(`Min. ${this.filtersObject.minutes_played} min`),this.filtersObject.minutes_played_avg>0&&t.push(`Min. ${this.filtersObject.minutes_played_avg}% min`),this.filtersObject.type_stats!==1){const i=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(i)}this.activeFilters=t},handleCreateList(){this.showCreatePlaylistModal=!0,this.visibleModalAddPlaylist=!1},closeCreatePlaylistModal(){this.showCreatePlaylistModal=!1},changeSeasonId(t){this.$emit("change-season-id",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},topsLoaded(t){this.$emit("tops-loaded",t)},handleCompareClick(){this.formattedPlayers.length>0&&this.$emit("compare-players",this.formattedPlayers)}}},st=t=>(e.pushScopeId("data-v-5441505c"),t=t(),e.popScopeId(),t),Rpe={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},Ope={class:"overlay-loading"},jpe=st(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),vpe=st(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),Wpe=[jpe,vpe],Upe={class:"strip-menu"},Gpe={class:"strip-options-vars"},Hpe={key:0,class:"desktop-layout"},Jpe={class:"left-containers"},qpe={class:"filter-container filter-container-variables container-372"},Zpe={key:0,class:"filter-container filter-container-variables container-291"},Ype=st(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),Kpe={class:"variables-indicator"},Xpe=st(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),Qpe={class:"filter-container-box"},e1e=st(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),t1e={class:"filter-container-box-2"},a1e=st(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),i1e={class:"filter-container-box-3"},o1e={class:"advanced-row-top"},s1e=st(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),l1e={class:"stats-section"},r1e={class:"filters-applied"},n1e=st(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),d1e={class:"filters-tags-wrapper"},c1e={class:"filters-tags"},p1e=st(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),m1e={key:0,class:"no-results"},y1e={key:1,class:"content-container"};function h1e(t,i,a,o,s,l){const r=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("ModalAddPlayList"),d=e.resolveComponent("ModalAddLista"),p=e.resolveComponent("GscSwitchComponent"),f=e.resolveComponent("GSCRadioToggle"),y=e.resolveComponent("DropdownTemplates"),h=e.resolveComponent("GSCFilters"),c=e.resolveComponent("DropdownPositions"),u=e.resolveComponent("DropdownYears"),m=e.resolveComponent("GSCTableScrollable"),g=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(r,{isVisible:s.showModal,"onUpdate:isVisible":i[0]||(i[0]=_=>s.showModal=_),onClose:l.closeModal,parameters:s.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",Rpe,[e.createVNode(n,{isVisible:s.visibleModalAddPlaylist,onClose:l.closeModalAddPlaylist,"user-id":a.userId,onCreateList:l.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(d,{isVisible:s.showCreatePlaylistModal,onClose:l.closeCreatePlaylistModal,"user-id":a.userId,player:s.selectedPlayerToAdd,templates:a.templates.data},null,8,["isVisible","onClose","user-id","player","templates"]),e.withDirectives(e.createElementVNode("div",Ope,Wpe,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",Upe,[e.createVNode(p,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":l.sizeTabsFontMP,width:l.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",Gpe,[o.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",Hpe,[e.createElementVNode("div",Jpe,[e.createElementVNode("div",qpe,[a.hasTemplates?(e.openBlock(),e.createBlock(f,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",Zpe,[Ype,e.createElementVNode("div",Kpe,[e.createVNode(y,{"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:i[1]||(i[1]=(..._)=>l.toggleAdvanced&&l.toggleAdvanced(..._))},e.toDisplayString(l.advancedText),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":o.elementSize.width<=480,"mid-layout":o.elementSize.width<=780&&o.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":o.elementSize.width<=780&&o.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":o.elementSize.width<=480}])},[a.hasTemplates?(e.openBlock(),e.createBlock(f,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),o.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[2]||(i[2]=(..._)=>l.toggleAdvanced&&l.toggleAdvanced(..._))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container container-291",{"mobile-container":o.elementSize.width<=480,"mid-container":o.elementSize.width<=780&&o.elementSize.width>480,"container-292":o.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":o.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":o.elementSize.width<=480}])},[e.createVNode(y,{"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["team-id","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),o.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[3]||(i[3]=(..._)=>l.toggleAdvanced&&l.toggleAdvanced(..._))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var _,k;return[s.showAdvanced?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":o.elementSize.width<=890,"layout-480":o.elementSize.width<=480}])},[e.createElementVNode("div",o1e,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(h,e.mergeProps({width:"99.7%","button-filter-props":l.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":l.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(h,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":""},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":l.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(h,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(h,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-75",{"equal-width":o.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[5]||(i[5]=(...W)=>l.toggleSearch&&l.toggleSearch(...W))},"Buscar",2)],2)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":o.elementSize.width<=780,"gap-reduced-850":o.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-tournament":o.elementSize.width<=1e3}])},[Xpe,e.createElementVNode("div",Qpe,[e.createVNode(h,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.tournamentsToFilter,"onUpdate:filters":l.onUpdateTournaments},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-2",{"filter-half-position":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-position":o.elementSize.width<=1e3}])},[e1e,e.createElementVNode("div",t1e,[e.createVNode(c,{"dropdown-props":s.dropdownProps,positions:(_=s.personalDataFilters)==null?void 0:_.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced":o.elementSize.width<=1e3}])},[a1e,e.createElementVNode("div",i1e,[e.createVNode(u,{"dropdown-props":s.dropdownProps,years:(k=s.personalDataFilters)==null?void 0:k.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[4]||(i[4]=(...W)=>l.toggleSearch&&l.toggleSearch(...W))},"Buscar",2)],2)],2)],2))]}),_:1}),s1e,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":o.elementSize.width<=780}])},[e.createElementVNode("div",l1e,[e.createElementVNode("div",r1e,[n1e,e.createElementVNode("div",d1e,[e.createElementVNode("div",c1e,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(_,k)=>(e.openBlock(),e.createElementBlock("span",{key:k,class:"filter-tag"},e.toDisplayString(_),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":o.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:i[6]||(i[6]=(..._)=>l.handleCompareClick&&l.handleCompareClick(..._))},[e.createTextVNode(" Comparar jugadores "),p1e])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",m1e," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",y1e,[e.createVNode(m,{players:s.formattedPlayers,"is-general":s.showtableType,onViewProfile:l.onViewProfile,onAddToList:l.onAddToList,onShowGraph:l.onShowGraph,onOpenMedia:l.onOpenMedia,onClickParameters:l.onClickParameters},null,8,["players","is-general","onViewProfile","onAddToList","onShowGraph","onOpenMedia","onClickParameters"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(g,{key:1,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded,onShowGraph:l.onShowGraph,onAddPlayer:l.onAddPlayer},null,8,["onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)],64)}const u1e=Ce(Dpe,[["render",h1e],["__scopeId","data-v-5441505c"]]),f1e={name:"SwitchTopsType",components:{TopsFull:BX,TopsBestAndPlay:u1e},data(){return{templates:[],hasTemplates:!1,isTemplatesLoaded:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},created(){this.fetchTemplates()},props:{type:{type:Number,default:1},userId:{type:String,required:!0},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1}},methods:{async fetchTemplates(){var t;try{const i=await he.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${this.teamId}/templates`);(t=i.data)!=null&&t.data&&Array.isArray(i.data.data)&&i.data.data.length>0?(this.templates=i.data.data,this.hasTemplates=!0):(this.templates=[],this.hasTemplates=!1)}catch(i){console.error("Error al obtener templates:",i),this.templates=[],this.hasTemplates=!1}finally{this.isTemplatesLoaded=!0}},topsLoaded(t){this.$emit("tops-loaded",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},changeSeasonId(t){this.$emit("change-season-id",t)},comparePlayers(t){this.$emit("compare-players",t)},onOpenMedia(t){this.$emit("open-media",t)},onShowGraph(t){this.$emit("show-graph",t)},onOpenProfilePlayer(t){this.$emit("open-profile-player",t)},onAddToList(t){this.$emit("add-to-list",t)}}};function g1e(t,i,a,o,s,l){const r=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(r,{key:0,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,"team-id":a.teamId,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded},null,8,["onChangeSeasonId","onOpenmedia","team-id","current-season-id","is-selection","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded"])):s.isTemplatesLoaded?(e.openBlock(),e.createBlock(n,{key:1,"team-id":a.teamId,"has-templates":s.hasTemplates,templates:s.templates,onOpenMedia:l.onOpenMedia,onShowGraph:l.onShowGraph,onComparePlayers:l.comparePlayers,onOpenProfilePlayer:l.onOpenProfilePlayer,onAddToList:l.onAddToList,onChangeSeasonId:l.changeSeasonId,onOpenProfileTeam:l.openProfileTeam,onTopsLoaded:l.topsLoaded,"user-id":a.userId},null,8,["team-id","has-templates","templates","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id"])):e.createCommentVNode("",!0)])}const _1e=Ce(f1e,[["render",g1e]]),b1e={class:"elegibles"},Ap=Qt(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=t,o=f=>{i("openmedia",f)},s=f=>{i("open-profile-team",f)},l=f=>{i("open-profile-player",f)};function r(f){i("showGraph",f)}function n(f){i("change-season-id",f)}function d(f){i("tops-loaded",f)}function p(f){i("comparePlayers",f)}return(f,y)=>(e.openBlock(),e.createElementBlock("div",b1e,[e.createVNode(e.unref(_1e),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores",onOpenmedia:o,onComparePlayers:p,onOpenMedia:o,onOpenProfileTeam:s,onOpenProfilePlayer:l,onShowGraph:r,onChangeSeasonId:n,onTopsLoaded:d},null,8,["user-id","team-id"])]))}}),[["__scopeId","data-v-f4842a4e"]]),S1e=(t=>(e.pushScopeId("data-v-e97cf879"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),C1e={class:""},w1e={class:"tabs"},k1e=Qt({__name:"PlayersTrackingMain",props:{tournamentsApiUrl:{type:String,default:""},tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},userType:{type:String,default:"presidents"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},isSeleccionUser:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},userId:{type:Number,default:24254,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:i}){const a=t,o={fontFamily:"Poppins-Light",logosUrl:"https://golstatsimages.blob.core.windows.net/todoelfut/",logoFileType:"png",height:"40px",width:"179px",borderRadius:8,arrowHeight:24,arrowWidth:24,borderType:"solid",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#0d1d29",color:"white",arrowColor:"#CBEE6B"},s=a.userType==="seleccion"?["Detección de jugadores","Lista de seguimientos","Última convocatoria"]:["Detección de jugadores","Lista de seguimientos"],l=e.ref("Detección de jugadores"),r=e.ref({width:0}),n=e.ref(null),d=e.ref(0),p=e.ref(0),f=e.ref([]),y=e.ref([]),h=e.ref(!1),c=e.ref(!1),u=e.ref({}),m=e.ref([]),g=e.ref({});e.ref([]),e.watch(()=>a.tournamentId,P=>{P&&W()},{immediate:!0}),e.watch(()=>a.teamId,async P=>{P&&(await k(),await W())},{immediate:!0});const _=P=>{l.value=P};async function k(){try{const P=[fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/last-call/teams/${a.teamId}/seasons`,{method:"GET",headers:{Authorization:a.token}}),fetch("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",{method:"GET",headers:{Authorization:a.token}})],[U,O]=await Promise.all(P),b=await U.json(),C=await O.json();b.forEach(E=>{E.seasonsIds=new Set(E.seasons.map(v=>v.id)),E.availableTournaments=E.seasonsIds?C.reduce((v,X)=>{if(X.seasons.some(je=>E.seasonsIds.has(je.id))){const je=X.seasons.filter(Ri=>E.seasonsIds.has(Ri.id));v.push({...X.tournament,seasonsIds:E.seasonsIds,seasons:je,teamId:E.team_id})}return v},[]):[]}),m.value=b.filter(E=>E.availableTournaments.length>0),g.value=m.value[0]}catch(P){console.error(P)}}async function W(){try{if(d.value!==a.tournamentId||p.value!==a.teamId){const P=[L()];d.value=a.tournamentId,p.value=a.teamId;const[U]=await Promise.all(P);y.value=U}}catch(P){console.error("Error filling data",P)}}function J(){G().then(P=>{f.value=P})}async function L(){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(P){console.error("Error fetching in followed",P)}}async function G(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${u.value.id}/teams/${u.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(P){console.error("Error fetching last called",P)}}const Z=()=>{n.value&&(r.value.width=n.value.offsetWidth,h.value=r.value.width<700,c.value=r.value.width<420)};e.onMounted(()=>{Z();const P=new ResizeObserver(Z);n.value&&P.observe(n.value)});const q=e.computed(()=>{const P=r.value.width;return P<=560?"170px":(P<=650||P<=768,"225px")}),Y=e.computed(()=>{const P=r.value.width;return P<=460?"12px":P<=650?"13px":P<=768?"14px":"16px"});e.computed(()=>r.value.width<=380?"18px":"22px");const R=e.computed(()=>{switch(l.value){case"Detección de jugadores":return Ap;case"Lista de seguimientos":return OE;case"Última convocatoria":return ym;default:return Ap}}),N=e.computed(()=>c.value||h.value?"100%":"179px"),D=P=>{i("openmedia",P)},$=P=>{i("showGraph",P)},H=P=>{i("open-profile-team",P)},K=P=>{i("open-profile-player",P)},ce=P=>{i("open-profile-player",P)},x=P=>{i("comparePlayers",P)};function w(P){i("change-season-id",P)}function S(P){i("tops-loaded",P)}const F=P=>{u.value=P,J()};function V(P){g.value=P}function j(P){g.value=P}return(P,U)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":h.value}])},[S1e,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":h.value}])},[t.isSeleccionUser&&l.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[e.createVNode(e.unref(t1),e.mergeProps(o,{"model-value":g.value,items:m.value,onInput:V,"onUpdate:modelValue":j}),{default:e.withCtx(({selectedItem:O})=>[e.createElementVNode("div",C1e,e.toDisplayString(O.team_name),1)]),availableItem:e.withCtx(({item:O})=>[e.createElementVNode("div",null,e.toDisplayString(O.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(B1),{key:0,items:g.value.availableTournaments,width:N.value,onInput:F},null,8,["items","width"])):e.createCommentVNode("",!0)],2)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",w1e,[e.createVNode(e.unref(K1),{type:2,buttons:e.unref(s),"font-family":"Poppins-Medium","selected-option":l.value,"font-size":Y.value,width:q.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:_},null,8,["buttons","selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":l.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R.value),{"parent-width":r.value.width,"user-id":a.userId,"team-id":a.teamId,"user-team-id":a.userTeamId,"last-called-players":f.value,"in-followed-players":y.value,onShowGraph:$,onShowProfile:ce,onOpenmedia:D,onOpenMedia:D,onOpenProfileTeam:H,onOpenProfilePlayer:K,onChangeSeasonId:w,onTopsLoaded:S,onComparePlayers:x},null,40,["parent-width","user-id","team-id","user-team-id","last-called-players","in-followed-players"]))],2)],512))}},[["__scopeId","data-v-e97cf879"]]),E1e={class:"subcategory-group"},V1e={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",E1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(le),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},x1e=ne(V1e,[["__scopeId","data-v-ae6f3d72"]]),N1e={class:"filter-subcategories"},T1e=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",N1e,[(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(x1e,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Li=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),B1e={class:"details__header"},F1e=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),P1e={class:"details__header__checkbox"},$1e={class:"details__body"},A1e={class:"details__body__playing-as"},z1e=["onClick"],I1e={class:"details__header"},M1e=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),L1e={class:"details__header__checkbox"},D1e={class:"details__body"},R1e=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),O1e={class:"details__body__game-section"},j1e=["onClick"],v1e={class:"details__body"},W1e=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),U1e={class:"details__body__game-section"},G1e=["onClick"],H1e=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__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(f=>({"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(f=>f.isSelected)),o=e.computed(()=>i.gameSections.every(f=>f.isSelected)),s=e.computed(()=>i.gameSections.reduce((f,y)=>(y.value<=3?f.firstHalf.push(y):f.secondHalf.push(y),f),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(f){f?i.playingAs.forEach(y=>{y.isSelected=!0}):i.playingAs.forEach((y,h)=>{y.isSelected=h===0})}function n(f){i.playingAs.filter(y=>y.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function d(f){i.gameSections.filter(y=>y.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function p(f){f?i.gameSections.forEach(y=>{y.isSelected=!0}):i.gameSections.forEach((y,h)=>{y.isSelected=h===0})}return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",B1e,[F1e,e.createElementVNode("div",P1e,[e.createVNode(e.unref(le),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",$1e,[e.createElementVNode("div",A1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>n(h)},e.toDisplayString(h.name),11,z1e))),128))])]),e.createElementVNode("div",I1e,[M1e,e.createElementVNode("div",L1e,[e.createVNode(e.unref(le),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",D1e,[R1e,e.createElementVNode("div",O1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>d(h)},e.toDisplayString(h.text),11,j1e))),128))])]),e.createElementVNode("div",v1e,[W1e,e.createElementVNode("div",U1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>d(h)},e.toDisplayString(h.text),11,G1e))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),J1e={class:"filter-field"},q1e=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__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",J1e,[e.createVNode(e.unref(Pr),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),Z1e={class:"subcategory-group"},Y1e={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Z1e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(se),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},K1e=re(Y1e,[["__scopeId","data-v-ae6f3d72"]]),X1e={class:"filter-subcategories"},Q1e=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",X1e,[(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(K1e,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Di=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),eme={class:"details__header"},tme=Di(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),ame={class:"details__header__checkbox"},ime={class:"details__body"},ome={class:"details__body__playing-as"},sme=["onClick"],lme={class:"details__header"},rme=Di(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),nme={class:"details__header__checkbox"},dme={class:"details__body"},cme=Di(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),pme={class:"details__body__game-section"},mme=["onClick"],yme={class:"details__body"},hme=Di(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),ume={class:"details__body__game-section"},fme=["onClick"],gme=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const i=t;e.useCssVars(f=>({"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(f=>f.isSelected)),o=e.computed(()=>i.gameSections.every(f=>f.isSelected)),s=e.computed(()=>i.gameSections.reduce((f,y)=>(y.value<=3?f.firstHalf.push(y):f.secondHalf.push(y),f),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(f){f?i.playingAs.forEach(y=>{y.isSelected=!0}):i.playingAs.forEach((y,h)=>{y.isSelected=h===0})}function n(f){i.playingAs.filter(y=>y.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function d(f){i.gameSections.filter(y=>y.isSelected).length===1&&f.isSelected||(f.isSelected=!f.isSelected)}function p(f){f?i.gameSections.forEach(y=>{y.isSelected=!0}):i.gameSections.forEach((y,h)=>{y.isSelected=h===0})}return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",eme,[tme,e.createElementVNode("div",ame,[e.createVNode(e.unref(se),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",ime,[e.createElementVNode("div",ome,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>n(h)},e.toDisplayString(h.name),11,sme))),128))])]),e.createElementVNode("div",lme,[rme,e.createElementVNode("div",nme,[e.createVNode(e.unref(se),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",dme,[cme,e.createElementVNode("div",pme,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>d(h)},e.toDisplayString(h.text),11,mme))),128))])]),e.createElementVNode("div",yme,[hme,e.createElementVNode("div",ume,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,c)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${c}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:u=>d(h)},e.toDisplayString(h.text),11,fme))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),_me={class:"filter-field"},bme=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",_me,[e.createVNode(e.unref(mc),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));ft.GSCPlayersTracking=k1e,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});
|