@golstats/gsc-players-tracking 1.0.57 → 1.0.58

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.
@@ -61,4 +61,4 @@
61
61
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const a=new this(t);return o.forEach(i=>a.set(i)),a}static accessor(t){const o=(this[B5]=this[B5]={accessors:{}}).accessors,a=this.prototype;function i(s){const r=Ts(s);o[r]||(TPe(a,s),o[r]=!0)}return ie.isArray(t)?t.forEach(i):i(t),this}};Rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ie.reduceDescriptors(Rt.prototype,({value:t},o)=>{let a=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(i){this[a]=i}}}),ie.freezeMethods(Rt);function D1(t,o){const a=this||Ns,i=o||a,s=Rt.from(i.headers);let r=i.data;return ie.forEach(t,function(l){r=l.call(a,r,s.normalize(),o?o.status:void 0)}),s.normalize(),r}function F5(t){return!!(t&&t.__CANCEL__)}function ki(t,o,a){Ne.call(this,t??"canceled",Ne.ERR_CANCELED,o,a),this.name="CanceledError"}ie.inherits(ki,Ne,{__CANCEL__:!0});function P5(t,o,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?t(a):o(new Ne("Request failed with status code "+a.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function BPe(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function FPe(t,o){t=t||10;const a=new Array(t),i=new Array(t);let s=0,r=0,l;return o=o!==void 0?o:1e3,function(n){const c=Date.now(),d=i[r];l||(l=c),a[s]=n,i[s]=c;let m=r,u=0;for(;m!==s;)u+=a[m++],m=m%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),c-l<o)return;const y=d&&c-d;return y?Math.round(u*1e3/y):void 0}}function PPe(t,o){let a=0,i=1e3/o,s,r;const l=(n,c=Date.now())=>{a=c,s=null,r&&(clearTimeout(r),r=null),t.apply(null,n)};return[(...n)=>{const c=Date.now(),d=c-a;d>=i?l(n,c):(s=n,r||(r=setTimeout(()=>{r=null,l(s)},i-d)))},()=>s&&l(s)]}const En=(t,o,a=3)=>{let i=0;const s=FPe(50,250);return PPe(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,c=l-i,d=s(c),m=l<=n;i=l;const u={loaded:l,total:n,progress:n?l/n:void 0,bytes:c,rate:d||void 0,estimated:d&&n&&m?(n-l)/d:void 0,event:r,lengthComputable:n!=null,[o?"download":"upload"]:!0};t(u)},a)},$5=(t,o)=>{const a=t!=null;return[i=>o[0]({lengthComputable:a,total:t,loaded:i}),o[1]]},A5=t=>(...o)=>ie.asap(()=>t(...o)),$Pe=yt.hasStandardBrowserEnv?((t,o)=>a=>(a=new URL(a,yt.origin),t.protocol===a.protocol&&t.host===a.host&&(o||t.port===a.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,APe=yt.hasStandardBrowserEnv?{write(t,o,a,i,s,r){const l=[t+"="+encodeURIComponent(o)];ie.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),ie.isString(i)&&l.push("path="+i),ie.isString(s)&&l.push("domain="+s),r===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function MPe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function IPe(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function M5(t,o,a){let i=!MPe(o);return t&&(i||a==!1)?IPe(t,o):o}const I5=t=>t instanceof Rt?{...t}:t;function zo(t,o){o=o||{};const a={};function i(d,m,u,y){return ie.isPlainObject(d)&&ie.isPlainObject(m)?ie.merge.call({caseless:y},d,m):ie.isPlainObject(m)?ie.merge({},m):ie.isArray(m)?m.slice():m}function s(d,m,u,y){if(ie.isUndefined(m)){if(!ie.isUndefined(d))return i(void 0,d,u,y)}else return i(d,m,u,y)}function r(d,m){if(!ie.isUndefined(m))return i(void 0,m)}function l(d,m){if(ie.isUndefined(m)){if(!ie.isUndefined(d))return i(void 0,d)}else return i(void 0,m)}function n(d,m,u){if(u in o)return i(d,m);if(u in t)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(d,m,u)=>s(I5(d),I5(m),u,!0)};return ie.forEach(Object.keys(Object.assign({},t,o)),function(d){const m=c[d]||s,u=m(t[d],o[d],d);ie.isUndefined(u)&&m!==n||(a[d]=u)}),a}const z5=t=>{const o=zo({},t);let{data:a,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=o;o.headers=l=Rt.from(l),o.url=V5(M5(o.baseURL,o.url,o.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let c;if(ie.isFormData(a)){if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...m]=c?c.split(";").map(u=>u.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...m].join("; "))}}if(yt.hasStandardBrowserEnv&&(i&&ie.isFunction(i)&&(i=i(o)),i||i!==!1&&$Pe(o.url))){const d=s&&r&&APe.read(r);d&&l.set(s,d)}return o},zPe=typeof XMLHttpRequest<"u",OPe=zPe&&function(t){return new Promise(function(o,a){const i=z5(t);let s=i.data;const r=Rt.from(i.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:c}=i,d,m,u,y,p;function h(){y&&y(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function g(){if(!f)return;const b=Rt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),T={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:b,config:t,request:f};P5(function(R){o(R),h()},function(R){a(R),h()},T),f=null}"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(a(new Ne("Request aborted",Ne.ECONNABORTED,t,f)),f=null)},f.onerror=function(){a(new Ne("Network Error",Ne.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||N5;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),a(new Ne(b,T.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,t,f)),f=null},s===void 0&&r.setContentType(null),"setRequestHeader"in f&&ie.forEach(r.toJSON(),function(b,T){f.setRequestHeader(T,b)}),ie.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),l&&l!=="json"&&(f.responseType=i.responseType),c&&([u,p]=En(c,!0),f.addEventListener("progress",u)),n&&f.upload&&([m,y]=En(n),f.upload.addEventListener("progress",m),f.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=b=>{f&&(a(!b||b.type?new ki(null,t,f):b),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const _=BPe(i.url);if(_&&yt.protocols.indexOf(_)===-1){a(new Ne("Unsupported protocol "+_+":",Ne.ERR_BAD_REQUEST,t));return}f.send(s||null)})},RPe=(t,o)=>{const{length:a}=t=t?t.filter(Boolean):[];if(o||a){let i=new AbortController,s;const r=function(d){if(!s){s=!0,n();const m=d instanceof Error?d:this.reason;i.abort(m instanceof Ne?m:new ki(m instanceof Error?m.message:m))}};let l=o&&setTimeout(()=>{l=null,r(new Ne(`timeout ${o} of ms exceeded`,Ne.ETIMEDOUT))},o);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),t=null)};t.forEach(d=>d.addEventListener("abort",r));const{signal:c}=i;return c.unsubscribe=()=>ie.asap(n),c}},LPe=function*(t,o){let a=t.byteLength;if(a<o){yield t;return}let i=0,s;for(;i<a;)s=i+o,yield t.slice(i,s),i=s},DPe=async function*(t,o){for await(const a of vPe(t))yield*LPe(a,o)},vPe=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const o=t.getReader();try{for(;;){const{done:a,value:i}=await o.read();if(a)break;yield i}}finally{await o.cancel()}},O5=(t,o,a,i)=>{const s=DPe(t,o);let r=0,l,n=c=>{l||(l=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:d,value:m}=await s.next();if(d){n(),c.close();return}let u=m.byteLength;if(a){let y=r+=u;a(y)}c.enqueue(new Uint8Array(m))}catch(d){throw n(d),d}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},Vn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",R5=Vn&&typeof ReadableStream=="function",jPe=Vn&&(typeof TextEncoder=="function"?(t=>o=>t.encode(o))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),L5=(t,...o)=>{try{return!!t(...o)}catch{return!1}},UPe=R5&&L5(()=>{let t=!1;const o=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!o}),D5=64*1024,v1=R5&&L5(()=>ie.isReadableStream(new Response("").body)),xn={stream:v1&&(t=>t.body)};Vn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!xn[o]&&(xn[o]=ie.isFunction(t[o])?a=>a[o]():(a,i)=>{throw new Ne(`Response type '${o}' is not supported`,Ne.ERR_NOT_SUPPORT,i)})})})(new Response);const WPe=async t=>{if(t==null)return 0;if(ie.isBlob(t))return t.size;if(ie.isSpecCompliantForm(t))return(await new Request(yt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(t)||ie.isArrayBuffer(t))return t.byteLength;if(ie.isURLSearchParams(t)&&(t=t+""),ie.isString(t))return(await jPe(t)).byteLength},GPe=async(t,o)=>ie.toFiniteNumber(t.getContentLength())??WPe(o),HPe=Vn&&(async t=>{let{url:o,method:a,data:i,signal:s,cancelToken:r,timeout:l,onDownloadProgress:n,onUploadProgress:c,responseType:d,headers:m,withCredentials:u="same-origin",fetchOptions:y}=z5(t);d=d?(d+"").toLowerCase():"text";let p=RPe([s,r&&r.toAbortSignal()],l),h;const f=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&UPe&&a!=="get"&&a!=="head"&&(g=await GPe(m,i))!==0){let P=new Request(o,{method:"POST",body:i,duplex:"half"}),A;if(ie.isFormData(i)&&(A=P.headers.get("content-type"))&&m.setContentType(A),P.body){const[G,N]=$5(g,En(A5(c)));i=O5(P.body,D5,G,N)}}ie.isString(u)||(u=u?"include":"omit");const _="credentials"in Request.prototype;h=new Request(o,{...y,signal:p,method:a.toUpperCase(),headers:m.normalize().toJSON(),body:i,duplex:"half",credentials:_?u:void 0});let b=await fetch(h);const T=v1&&(d==="stream"||d==="response");if(v1&&(n||T&&f)){const P={};["status","statusText","headers"].forEach(q=>{P[q]=b[q]});const A=ie.toFiniteNumber(b.headers.get("content-length")),[G,N]=n&&$5(A,En(A5(n),!0))||[];b=new Response(O5(b.body,D5,G,()=>{N&&N(),f&&f()}),P)}d=d||"text";let R=await xn[ie.findKey(xn,d)||"text"](b,t);return!T&&f&&f(),await new Promise((P,A)=>{P5(P,A,{data:R,headers:Rt.from(b.headers),status:b.status,statusText:b.statusText,config:t,request:h})})}catch(_){throw f&&f(),_&&_.name==="TypeError"&&/Load failed|fetch/i.test(_.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,t,h),{cause:_.cause||_}):Ne.from(_,_&&_.code,t,h)}}),j1={http:lPe,xhr:OPe,fetch:HPe};ie.forEach(j1,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const v5=t=>`- ${t}`,qPe=t=>ie.isFunction(t)||t===null||t===!1,j5={getAdapter:t=>{t=ie.isArray(t)?t:[t];const{length:o}=t;let a,i;const s={};for(let r=0;r<o;r++){a=t[r];let l;if(i=a,!qPe(a)&&(i=j1[(l=String(a)).toLowerCase()],i===void 0))throw new Ne(`Unknown adapter '${l}'`);if(i)break;s[l||"#"+r]=i}if(!i){const r=Object.entries(s).map(([n,c])=>`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=o?r.length>1?`since :
62
62
  `+r.map(v5).join(`
63
63
  `):" "+v5(r[0]):"as no adapter specified";throw new Ne("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:j1};function U1(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ki(null,t)}function U5(t){return U1(t),t.headers=Rt.from(t.headers),t.data=D1.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),j5.getAdapter(t.adapter||Ns.adapter)(t).then(function(o){return U1(t),o.data=D1.call(t,t.transformResponse,o),o.headers=Rt.from(o.headers),o},function(o){return F5(o)||(U1(t),o&&o.response&&(o.response.data=D1.call(t,t.transformResponse,o.response),o.response.headers=Rt.from(o.response.headers))),Promise.reject(o)})}const W5="1.9.0",Nn={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{Nn[t]=function(a){return typeof a===t||"a"+(o<1?"n ":" ")+t}});const G5={};Nn.transitional=function(t,o,a){function i(s,r){return"[Axios v"+W5+"] Transitional option '"+s+"'"+r+(a?". "+a:"")}return(s,r,l)=>{if(t===!1)throw new Ne(i(r," has been removed"+(o?" in "+o:"")),Ne.ERR_DEPRECATED);return o&&!G5[r]&&(G5[r]=!0,console.warn(i(r," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(s,r,l):!0}},Nn.spelling=function(t){return(o,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function JPe(t,o,a){if(typeof t!="object")throw new Ne("options must be an object",Ne.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const r=i[s],l=o[r];if(l){const n=t[r],c=n===void 0||l(n,r,t);if(c!==!0)throw new Ne("option "+r+" must be "+c,Ne.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Ne("Unknown option "+r,Ne.ERR_BAD_OPTION)}}const Tn={assertOptions:JPe,validators:Nn},ka=Tn.validators;let Oo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new x5,response:new x5}}async request(t,o){try{return await this._request(t,o)}catch(a){if(a instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
64
- `+s):a.stack=s}catch{}}throw a}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=zo(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:s}=o;a!==void 0&&Tn.assertOptions(a,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),i!=null&&(ie.isFunction(i)?o.paramsSerializer={serialize:i}:Tn.assertOptions(i,{encode:ka.function,serialize:ka.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Tn.assertOptions(o,{baseUrl:ka.spelling("baseURL"),withXsrfToken:ka.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=s&&ie.merge(s.common,s[o.method]);s&&ie.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),o.headers=Rt.concat(r,s);const l=[];let n=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(n=n&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let d,m=0,u;if(!n){const p=[U5.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),u=p.length,d=Promise.resolve(o);m<u;)d=d.then(p[m++],p[m++]);return d}u=l.length;let y=o;for(m=0;m<u;){const p=l[m++],h=l[m++];try{y=p(y)}catch(f){h.call(this,f);break}}try{d=U5.call(this,y)}catch(p){return Promise.reject(p)}for(m=0,u=c.length;m<u;)d=d.then(c[m++],c[m++]);return d}getUri(t){t=zo(this.defaults,t);const o=M5(t.baseURL,t.url,t.allowAbsoluteUrls);return V5(o,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){Oo.prototype[t]=function(o,a){return this.request(zo(a||{},{method:t,url:o,data:(a||{}).data}))}}),ie.forEach(["post","put","patch"],function(t){function o(a){return function(i,s,r){return this.request(zo(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Oo.prototype[t]=o(),Oo.prototype[t+"Form"]=o(!0)});let YPe=class b4{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{i.subscribe(n),r=n}).then(s);return l.cancel=function(){i.unsubscribe(r)},l},o(function(s,r,l){i.reason||(i.reason=new ki(s,r,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const o=new AbortController,a=i=>{o.abort(i)};return this.subscribe(a),o.signal.unsubscribe=()=>this.unsubscribe(a),o.signal}static source(){let o;return{token:new b4(function(a){o=a}),cancel:o}}};function ZPe(t){return function(o){return t.apply(null,o)}}function KPe(t){return ie.isObject(t)&&t.isAxiosError===!0}const W1={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(W1).forEach(([t,o])=>{W1[o]=t});function H5(t){const o=new Oo(t),a=c5(Oo.prototype.request,o);return ie.extend(a,Oo.prototype,o,{allOwnKeys:!0}),ie.extend(a,o,null,{allOwnKeys:!0}),a.create=function(i){return H5(zo(t,i))},a}const Ke=H5(Ns);Ke.Axios=Oo,Ke.CanceledError=ki,Ke.CancelToken=YPe,Ke.isCancel=F5,Ke.VERSION=W5,Ke.toFormData=Cn,Ke.AxiosError=Ne,Ke.Cancel=Ke.CanceledError,Ke.all=function(t){return Promise.all(t)},Ke.spread=ZPe,Ke.isAxiosError=KPe,Ke.mergeConfig=zo,Ke.AxiosHeaders=Rt,Ke.formToJSON=t=>T5(ie.isHTMLForm(t)?new FormData(t):t),Ke.getAdapter=j5.getAdapter,Ke.HttpStatusCode=W1,Ke.default=Ke;const XPe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},QPe={class:"modal-overlay"},e$e={key:0,class:"modal-content"},t$e={class:"modal-select-container"},a$e={class:"modal-input-wrapper"},o$e=["disabled"],i$e={key:0,class:"modal-input-loading"},s$e={key:0,class:"modal-dropdown-empty"},r$e={key:1,class:"modal-dropdown-scroll"},l$e={class:"variable-selection"},n$e=["value","onClick","disabled"],d$e={class:"variable-text"},c$e={class:"modal-dropdown-actions"},p$e={key:1,class:"modal-error"},m$e={key:0,class:"modal-name-error"},u$e={class:"modal-actions"},f$e=["disabled"],q5=3,h$e={__name:"CreateListModal",props:{userId:{type:String,required:!0},token:{type:String,required:!0},lists:{type:Array,default:()=>[]}},emits:["close","createList","listCreated"],setup(t,{emit:o}){const a=o,i=t,s=e.ref(""),r=e.ref(""),l=e.ref([]),n=e.ref(!1),c=e.ref(!1),d=e.ref([]),m=e.ref(!1),u=e.ref(null),y=e.ref(!1),p=e.computed(()=>i.lists.some(C=>C.name.toLowerCase()===s.value.toLowerCase().trim())),h=e.computed(()=>s.value.trim()!==""&&l.value.length>0&&!p.value);function f(){n.value=!n.value}async function g(){var C,V;try{m.value=!0;const x=await Ke.create({headers:{Authorization:`${i.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables`);d.value=x.data.data,l.value=d.value.filter(O=>O.checked)}catch(x){u.value=((V=(C=x.response)==null?void 0:C.data)==null?void 0:V.message)||"Error al obtener las variables",console.error("Error fetching variables:",x)}finally{m.value=!1}}const _=e.computed(()=>{if(!d.value.length)return[];const C=r.value.toLowerCase().trim();return C?d.value.filter(V=>V.name.toLowerCase().includes(C)):d.value});function b(){n.value=!0,y.value=!1}function T(){n.value=!0}function R(){setTimeout(()=>{y.value||(n.value=!1,r.value="")},200)}function P(){r.value="",n.value=!1,y.value=!1}function A(C){if(l.value.includes(C)){if(l.value.length<=q5)return;l.value=l.value.filter(V=>V!==C)}else l.value.push(C)}async function G(){var C,V;try{if(s.value&&l.value.length){const x=Ke.create({headers:{Authorization:`${i.token}`}}),O={user_id:parseInt(i.userId),name:s.value,variables:l.value};console.log("Lo que se guarda es:");const se=await x.post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,O);se.data&&(a("createList",{nombre:s.value,variables:l.value,id:se.data.data.id}),a("listCreated"),s.value="",l.value=[],r.value="",n.value=!1,a("close"))}}catch(x){console.error("Error creating list:",x),u.value=((V=(C=x.response)==null?void 0:C.data)==null?void 0:V.message)||"Error al crear la lista"}}function N(){n.value=!1,a("close")}function q(){document.body.style.overflow="hidden"}function F(){document.body.style.overflow=""}return e.onMounted(async()=>{c.value=!0,n.value=!1,q(),await g()}),e.onUnmounted(()=>{F()}),(C,V)=>(e.openBlock(),e.createElementBlock("div",QPe,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",e$e,[e.createElementVNode("button",{class:"modal-close",onClick:N},"×"),V[7]||(V[7]=e.createElementVNode("div",{class:"modal-title"},[e.createElementVNode("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.3877 4.88909H1.70676C1.11931 4.88909 0.638672 5.35562 0.638672 5.92582C0.638672 6.49602 1.11931 6.96254 1.70676 6.96254H12.3877C12.9751 6.96254 13.4558 6.49602 13.4558 5.92582C13.4558 5.35562 12.9751 4.88909 12.3877 4.88909ZM12.3877 0.742188H1.70676C1.11931 0.742188 0.638672 1.20871 0.638672 1.77891C0.638672 2.34911 1.11931 2.81564 1.70676 2.81564H12.3877C12.9751 2.81564 13.4558 2.34911 13.4558 1.77891C13.4558 1.20871 12.9751 0.742188 12.3877 0.742188ZM17.7281 9.03599V5.92582C17.7281 5.35562 17.2475 4.88909 16.6601 4.88909C16.0726 4.88909 15.592 5.35562 15.592 5.92582V9.03599H12.3877C11.8002 9.03599 11.3196 9.50252 11.3196 10.0727C11.3196 10.6429 11.8002 11.1094 12.3877 11.1094H15.592V14.2196C15.592 14.7898 16.0726 15.2563 16.6601 15.2563C17.2475 15.2563 17.7281 14.7898 17.7281 14.2196V11.1094H20.9324C21.5199 11.1094 22.0005 10.6429 22.0005 10.0727C22.0005 9.50252 21.5199 9.03599 20.9324 9.03599H17.7281ZM1.70676 11.1094H8.11532C8.70277 11.1094 9.18341 10.6429 9.18341 10.0727C9.18341 9.50252 8.70277 9.03599 8.11532 9.03599H1.70676C1.11931 9.03599 0.638672 9.50252 0.638672 10.0727C0.638672 10.6429 1.11931 11.1094 1.70676 11.1094Z",fill:"#FFFFFF",stroke:"#FFFFFF","stroke-width":"0.091682"})]),e.createTextVNode(" Crear nueva lista ")],-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V[0]||(V[0]=x=>s.value=x),class:"modal-input",type:"text",placeholder:"Nombre de tu lista"},null,512),[[e.vModelText,s.value]]),e.createElementVNode("div",t$e,[e.createElementVNode("div",a$e,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V[1]||(V[1]=x=>r.value=x),class:"modal-input",type:"text",placeholder:"Selecciona las variables que quieres que se vean",onFocus:b,onBlur:R,onInput:T,disabled:m.value},null,40,o$e),[[e.vModelText,r.value]]),m.value?(e.openBlock(),e.createElementBlock("div",i$e,V[4]||(V[4]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1)]))):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["modal-dropdown-arrow",{"arrow-up":n.value}]),onMousedown:e.withModifiers(f,["prevent"])},V[5]||(V[5]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M2 4L6 8L10 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),34))]),n.value&&!m.value&&!u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-dropdown",onMousedown:V[3]||(V[3]=x=>y.value=!0)},[_.value.length===0?(e.openBlock(),e.createElementBlock("div",s$e," No se encontraron variables ")):(e.openBlock(),e.createElementBlock("div",r$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,x=>(e.openBlock(),e.createElementBlock("div",{key:x.custom_id,class:"modal-dropdown-item"},[e.createElementVNode("label",l$e,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:x,"onUpdate:modelValue":V[2]||(V[2]=O=>l.value=O),onClick:e.withModifiers(O=>A(x),["stop"]),disabled:l.value.length<=q5&&l.value.includes(x)},null,8,n$e),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",d$e,e.toDisplayString(x.name),1)])]))),128))])),e.createElementVNode("div",c$e,[e.createElementVNode("button",{class:"modal-listo-btn",onMousedown:e.withModifiers(P,["prevent"])},"Listo",32)])],32)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",p$e,[V[6]||(V[6]=e.createElementVNode("span",{class:"error-icon"},"!",-1)),e.createTextVNode(" "+e.toDisplayString(u.value),1)])):e.createCommentVNode("",!0)]),p.value?(e.openBlock(),e.createElementBlock("div",m$e," Ya existe una lista con este nombre, utiliza otro para poder continuar. ")):e.createCommentVNode("",!0),V[8]||(V[8]=e.createElementVNode("div",{class:"modal-divider"},null,-1)),e.createElementVNode("div",u$e,[e.createElementVNode("button",{class:"modal-cancel",onClick:N},"Cancelar"),e.createElementVNode("button",{class:e.normalizeClass(["modal-create",{"modal-create--disabled":!h.value}]),onClick:G,disabled:!h.value}," Crear lista ",10,f$e)])])):e.createCommentVNode("",!0)]),_:1})]))}},y$e=XPe(h$e,[["__scopeId","data-v-71419cea"]]),Re=t=>(e.pushScopeId("data-v-7c36553e"),t=t(),e.popScopeId(),t),g$e=Re(()=>e.createElementVNode("div",{class:"top-scroll-spacer"},null,-1)),b$e={class:"table__static-column"},_$e={class:"static-title column-title restore"},S$e={class:"titles-left"},w$e=Re(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".6",stroke:"#fff","stroke-width":"1.333","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M15.333 2.667v4h-4M.667 13.333v-4h4"}),e.createElementVNode("path",{d:"M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24"})])],-1)),C$e=["id"],k$e={class:"container"},E$e={class:"details-row__info"},V$e={class:"details-row__info__personal"},x$e={class:"bold"},N$e={class:"bold"},T$e={class:"bold"},B$e={class:"bold"},F$e={class:"details-row__info__games"},P$e={class:"bold"},$$e={class:"bold"},A$e=["onClick"],M$e=Re(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),I$e=Re(()=>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)),z$e=[M$e,I$e],O$e=["onClick"],R$e=Re(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),L$e=Re(()=>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)),D$e=[R$e,L$e],v$e=["onClick"],j$e=Re(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),U$e=Re(()=>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)),W$e=[j$e,U$e],G$e=["onClick"],H$e=Re(()=>e.createElementVNode("div",null,"Ver perfil",-1)),q$e=[H$e],J$e={class:"static-row__info-player"},Y$e=["onClick"],Z$e=Re(()=>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)),K$e=Re(()=>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)),X$e=Re(()=>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)),Q$e=[Z$e,K$e,X$e],eAe=["onClick"],tAe=Re(()=>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)),aAe=Re(()=>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)),oAe=Re(()=>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)),iAe=[tAe,aAe,oAe],sAe={class:"player-photo"},rAe=["src"],lAe={class:"player-name"},nAe={class:"arrow"},dAe=["onClick"],cAe=Re(()=>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)),pAe=[cAe],mAe={class:"titles scrollable-row"},uAe={class:"column-title"},fAe=Re(()=>e.createElementVNode("div",null," Equipo ",-1)),hAe=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),yAe=[hAe],gAe={class:"column-title"},bAe=Re(()=>e.createElementVNode("div",null," Posición ",-1)),_Ae=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),SAe=[_Ae],wAe={class:"column-title"},CAe=Re(()=>e.createElementVNode("div",null," Edad ",-1)),kAe=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),EAe=[kAe],VAe=Re(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),xAe={class:"column-title"},NAe=Re(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),TAe=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),BAe=[TAe],FAe={class:"column-title"},PAe=Re(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),$Ae=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),AAe=[$Ae],MAe={class:"column-title"},IAe=Re(()=>e.createElementVNode("div",null," Liga ",-1)),zAe=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),OAe=[zAe],RAe=Re(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),LAe={class:"team-logo"},DAe=["src"],vAe={class:"team-name data-info"},jAe=["src"],UAe={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1},isGraphButtonVisible:{type:Boolean,default:!0},isAddToListButtonVisible:{type:Boolean,default:!0},isAddToListPlayerVisible:{type:Boolean,default:!0},lists:{type:Array,default:()=>[]},userId:{type:Number,default:0},token:{type:String,default:""}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters","list-created","delete-from-list"],setup(t,{emit:o}){const a=t;let i=null,s=null;const r=e.ref([]),l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(0),m=e.ref(0),u=e.ref(-1),y=e.ref(!1),p=e.ref(null),h=e.ref(null),f=e.ref(null),g=e.ref([]),_=e.ref([{name:"team_abrev",isDesc:!1,isRoot:!0},{name:"player_position",isDesc:!1,isRoot:!0},{name:"player_age",isDesc:!1,isRoot:!0},{name:"player_games",isDesc:!1,isRoot:!0},{name:"player_min",isDesc:!1,isRoot:!0},{name:"league_name",isDesc:!1,isRoot:!0}]),b=e.ref(0),T=e.ref("922px"),R=e.ref(!1),P=e.ref(!1),A=e.ref(null),G=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${N.value?"8px":"18px"}`,"--width-static-column":`${N.value?"65%":"436px"}`})),N=e.computed(()=>d.value<600);e.watch(()=>a.players,B=>{B&&B.length&&(r.value=B.map((z,M)=>{const ce=M+1,Te={...z,position:ce<10?`0${ce}`:`${ce}`,isSelected:!1,isExpanded:!1,isOdd:M%2!==0,index:M};return z.stats&&z.stats.length&&(Te.stats=z.stats.map(ue=>({...ue,isDesc:!1,isRoot:!1}))),Te.parameters&&Object.entries(Te.parameters).forEach(([ue,Le])=>{const Dt=Te.stats.find(Q1=>Q1.custom_category_id===Number(ue));Dt&&(Dt.parameters=Le)}),Te}),g.value=r.value.map(z=>({...z})))},{immediate:!0,deep:!0}),e.watch(()=>a.isEditMode,B=>{B&&r.value.forEach(z=>{z.isSelected=!1})}),e.watch(()=>f.value,B=>{if(B){let z=[...g.value];B.isRoot?z.sort((M,ce)=>typeof M[B.name]=="string"?B.isDesc?M[B.name].localeCompare(ce[B.name]):M[B.name].localeCompare(ce[B.name])*-1:B.isDesc?ce[B.name]-M[B.name]:M[B.name]-ce[B.name]):z.sort((M,ce)=>{const Te=M.stats.find(Le=>Le.name===B.name),ue=ce.stats.find(Le=>Le.name===B.name);return typeof Te.value=="string"?B.isDesc?Te.total.localeCompare(ue.total):Te.total.localeCompare(ue.total)*-1:B.isDesc?ue.total-Te.total:Te.total-ue.total}),z.forEach((M,ce)=>{M.isOdd=ce%2!==0}),g.value=z}else g.value.sort((z,M)=>z.index-M.index).forEach((z,M)=>{z.isOdd=M%2!==0})},{immediate:!0,deep:!0}),e.watch(m,B=>{const z=document.querySelectorAll(".static-row")[u.value+1];z&&(z.style.marginTop=`${B}px`),a.isGeneral?q(u.value,B):n.value&&n.value.setMarginTopDetails(u.value,B),B===0&&p.value&&I(p.value)});function q(B,z){const M=document.querySelectorAll(".scrollable-row")[B+2];M&&(M.style.marginTop=`${z}px`)}function F(B){o("click-parameters",B)}function C(B){B&&(B.isDesc=!B.isDesc),f.value=B}function V(B){const z=B.player||B.objeto_player,M=z?z.player_id||z.id||z.playerId:B.id||B.player_id,ce={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:M?[M]:[],goalkeeperIds:[],matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(B.stat&&B.stat.parameters&&(ce.parameters=B.stat.parameters),B.stat&&B.stat.seasons&&B.stat.seasons.length||B.seasons&&B.seasons.length){const Te=[...B.stat&&B.stat.seasons&&B.stat.seasons.length?B.stat.seasons:B.seasons];Te.sort((ue,Le)=>ue-Le),ce.seasonId=Te.shift(),ce.seasonsIds=Te}else(B.season_id||B.seasonId)&&(ce.seasonId=B.season_id||B.seasonId);B.stat?B.stat.category_id&&B.stat.category_id.length?ce.categoryIds=B.stat.category_id:B.stat.custom_category_id&&(ce.customCategoryIds=[B.stat.custom_category_id]):ce.categoryIds=se(B.player_position),o("open-media",ce)}function x(){i=new ResizeObserver(B=>{for(const z of B)d.value=z.contentRect.width}),i.observe(l.value)}function O(B){s=new ResizeObserver(z=>{for(const M of z)m.value=M.contentRect.height}),s.observe(B)}function se(B){return B==="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 me(B,z){z.isSelected=B;const M=r.value.filter(ce=>ce.isSelected);o("change-selected-players",M)}function he(B){o("view-profile",B)}function k(B){o("delete-from-list",B)}function $(B){A.value=B.objeto_player||B,o("add-to-list",B),B.showTooltip=!0}function W(B){o("show-graph",B)}function I(B){if(B.isExpanded){B.isExpanded=!1,p.value=null;return}const z=r.value.find(ue=>ue.isExpanded);if(z&&(z.isExpanded=!1),z){p.value=B;return}const M=document.querySelectorAll(".details-row");let ce=-1;M.forEach((ue,Le)=>{ue.id===`dr-${B.id}`&&(ce=Le)});const Te=M[ce];u.value=ce,O(Te),B.isExpanded=!0,r.value.forEach(ue=>{ue.isExpanded=!1}),setTimeout(()=>{if(!y.value){const ue=document.querySelectorAll(".details-row")[B.index];u.value=B.index,O(ue)}B.isExpanded=!y.value},1)}let L=!1,ne,le,U=function(B){L=!0,ne=B.pageX-h.value.offsetLeft,le=h.value.scrollLeft},w=function(B){L=!0,ne=B.pageX-c.value.offsetLeft,le=c.value.scrollLeft},H=function(){L=!1};function S(B){h.value&&(h.value.scrollLeft=B.target.scrollLeft)}function E(B){c.value&&(c.value.scrollLeft=B.target.scrollLeft)}function re(){h.value&&(h.value.addEventListener("mousemove",B=>{if(!L)return;const z=B.pageX-h.value.offsetLeft-ne,M=le-z;h.value.scrollLeft=M,c.value&&(c.value.scrollLeft=M)}),h.value.addEventListener("mousedown",U,!1),h.value.addEventListener("mouseup",H,!1),h.value.addEventListener("mouseleave",H,!1),h.value.addEventListener("scroll",E)),c.value&&(c.value.addEventListener("mousemove",B=>{if(!L)return;const z=B.pageX-c.value.offsetLeft-ne,M=le-z;c.value.scrollLeft=M,h.value&&(h.value.scrollLeft=M)}),c.value.addEventListener("mousedown",w,!1),c.value.addEventListener("mouseup",H,!1),c.value.addEventListener("mouseleave",H,!1),c.value.addEventListener("scroll",S))}function pe(){a.isGeneral?T.value="922px":e.nextTick(()=>{const B=document.querySelector(".scrollable-row-2");if(B){const z=window.getComputedStyle(B),M=B.scrollWidth||parseInt(z.width);T.value=`${M}px`}else if(r.value.length&&r.value[0].stats){const z=r.value[0].stats.length,M=120;T.value=`${(z+1)*M}px`}})}e.watch(()=>[a.players,a.isGeneral],()=>{pe()},{immediate:!0});function ye(){R.value=!0}async function fe(B){try{const z={dob:A.value.dob,is_female:0,jersey:0,name:A.value.name,nationality:A.value.nationality,nationality_id:A.value.nationality_id,player_id:A.value.player_id,position:A.value.position_id,team_id:A.value.team_id},M={user_id:a.userId,id:B.id,players:[z]};await fetch(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${a.userId}/in-followed/${B.id}/players`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:a.token},body:JSON.stringify(M)}),o("list-created")}catch(z){console.error("Error creating list:",z)}}function de(){o("list-created")}return e.onMounted(()=>{x(),re()}),e.onBeforeUnmount(()=>{i&&i.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",U,!1),h.value.removeEventListener("mouseup",H,!1),h.value.removeEventListener("mouseleave",H,!1),h.value.removeEventListener("scroll",E)),c.value&&(c.value.removeEventListener("mousemove",w,!1),c.value.removeEventListener("mouseup",H,!1),c.value.removeEventListener("mouseleave",H,!1),c.value.removeEventListener("scroll",S))}),(B,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[R.value?(e.openBlock(),e.createBlock(e.unref(y$e),{key:0,token:t.token,"user-id":t.userId,onClose:z[0]||(z[0]=M=>R.value=!1),onCreateList:fe},null,8,["token","user-id"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"top-scroll-container",style:e.normalizeStyle(G.value)},[g$e,e.createElementVNode("div",{ref_key:"topScrollableColumns",ref:c,class:"top-scroll"},[e.createElementVNode("div",{class:"top-scroll-content",style:e.normalizeStyle({width:T.value})},null,4)],512)],4),(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:l,style:e.normalizeStyle(G.value),key:b.value},[e.createElementVNode("div",b$e,[e.createElementVNode("div",_$e,[e.createElementVNode("div",S$e,[e.createElementVNode("div",{class:"title",style:e.normalizeStyle(N.value?"font-size: 8px":"")},"Ranking",4),t.isAddToListPlayerVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title",style:e.normalizeStyle(N.value?"font-size: 8px":"")},"Agregar a lista",4)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{role:"button",class:"restore-button",onClick:z[1]||(z[1]=M=>C(null))},[w$e,e.createElementVNode("div",{style:e.normalizeStyle(N.value?"font-size: 10px; white-space: wrap;":"")},"Restaurar orden",4)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,M=>(e.openBlock(),e.createElementBlock("div",{key:`s-${M.id}`,class:e.normalizeClass(["row static-row",{odd:M.isOdd}]),style:e.normalizeStyle(N.value?"width: auto":"")},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:`dr-${M.id}`,class:e.normalizeClass(["details-row",{odd:M.isOdd}])},[e.createElementVNode("div",k$e,[e.createElementVNode("div",E$e,[e.createElementVNode("div",V$e,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",x$e,e.toDisplayString(M.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",N$e,e.toDisplayString(M.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",T$e,e.toDisplayString(M.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",B$e,e.toDisplayString(M.position_name),1)])]),e.createElementVNode("div",F$e,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",P$e,e.toDisplayString(M.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",$$e,e.toDisplayString(M.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(N.value?"margin-left: 0; gap: 8px;":"")},[t.isGraphButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:ce=>W(M)},z$e,8,A$e)):e.createCommentVNode("",!0),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:ce=>k(M)},D$e,8,O$e)):t.isAddToListButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:2,role:"button",class:"button",onClick:ce=>$(M)},W$e,8,v$e)):e.createCommentVNode("",!0),e.createElementVNode("div",{role:"button",class:"button green",onClick:ce=>he(M)},q$e,8,G$e)],4)])],10,C$e),[[e.vShow,M.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(uTe),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":M.isSelected,"onUpdate:modelValue":ce=>me(ce,M)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",J$e,[e.createElementVNode("div",{class:"position",style:e.normalizeStyle(N.value?"width:20px;":"")},e.toDisplayString(M.position),5),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-to-list-container",style:e.normalizeStyle(N.value?"width:20px;":"")},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:ce=>k(M)},Q$e,8,Y$e))],4)):t.isAddToListPlayerVisible?(e.openBlock(),e.createElementBlock("div",{key:1,class:"add-to-list",style:e.normalizeStyle(N.value?"width:20px;":"")},[M.showTooltip?(e.openBlock(),e.createBlock(e.unref(wFe),{key:0,token:t.token,"user-id":t.userId,lists:t.lists,isModalOpen:P.value,"selected-player":M.objeto_player,onClose:ce=>M.showTooltip=!1,onCreateNewList:ye,onPlayerAdded:de},null,8,["token","user-id","lists","isModalOpen","selected-player","onClose"])):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:ce=>$(M)},iAe,8,eAe))],4)):e.createCommentVNode("",!0),e.createElementVNode("div",sAe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:M.player_photo,alt:"player photo"},null,8,rAe)])]),e.createElementVNode("div",lAe,e.toDisplayString(M.player_name),1)]),e.createElementVNode("div",nAe,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:M.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:ce=>I(M)},pAe,10,dAe))])],6))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:h,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",mAe,[e.createElementVNode("div",uAe,[fAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[2]||(z[2]=M=>C(_.value[0]))},yAe))]),e.createElementVNode("div",gAe,[bAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[3]||(z[3]=M=>C(_.value[1]))},SAe))]),e.createElementVNode("div",wAe,[CAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[4]||(z[4]=M=>C(_.value[2]))},EAe))]),VAe,e.createElementVNode("div",xAe,[NAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[5]||(z[5]=M=>C(_.value[3]))},BAe))]),e.createElementVNode("div",FAe,[PAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[6]||(z[6]=M=>C(_.value[4]))},AAe))]),e.createElementVNode("div",MAe,[IAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[7]||(z[7]=M=>C(_.value[5]))},OAe))]),RAe]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,M=>(e.openBlock(),e.createElementBlock("div",{key:`i-${M.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:M.isOdd}])},[e.createElementVNode("div",LAe,[e.createElementVNode("img",{src:M.team_logo,alt:"team logo"},null,8,DAe)]),e.createElementVNode("div",vAe,e.toDisplayString(M.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},[e.createElementVNode("img",{src:M.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,jAe)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},[e.createVNode(e.unref(ETe),{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:ce=>V(M)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(ITe,{key:1,ref_key:"scrollColumns",ref:n,"available-players":g.value,"is-edit-mode":t.isEditMode,"is-mobile":N.value,onOpenMedia:V,onClickParameters:F,onSort:C},null,8,["available-players","is-edit-mode","is-mobile"]))],512)],4))],64))}},WAe=xb(UAe,[["__scopeId","data-v-7c36553e"]]),G1=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},H1={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 o=Array.from(t).map(Number).sort((a,i)=>a-i);this.lastSelectedSections=[...o],this.$emit("sections-changed",o)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const o=Math.ceil(t/4);if(!this.isQuarterEnabled(o))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 o=Date.now();if(o-this.lastUpdateTime<16)return;this.lastUpdateTime=o;const a=t.toString(),i=Math.ceil(t/4);if(this.isQuarterEnabled(i)){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,o){return(t-1)*4+o},getSectionIndex(t,o){return(t-1)*4+o},selectColumn(t){if(!this.isQuarterEnabled(t))return;const o=(t-1)*4+1,a=t*4;if(Array.from({length:4},(i,s)=>(o+s).toString()).every(i=>this.selectedSections.has(i))&&this.selectedSections.size>4)for(let i=o;i<=a;i++)this.selectedSections.delete(i.toString());else for(let i=o;i<=a;i++)this.selectedSections.add(i.toString());this.updateSelectAllState()},isQuarterSelected(t){const o=(t-1)*4+1;return Array.from({length:4},(a,i)=>(o+i).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},J5=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Y5=H1.setup;H1.setup=Y5?(t,o)=>(J5(),Y5(t,o)):J5;const GAe={class:"field-template-element"},HAe={class:"field-container"},qAe=["onMouseenter","onMousedown"],JAe={class:"column-buttons"},YAe=["onClick","disabled"];function ZAe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",GAe,[e.createElementVNode("div",HAe,[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:o[0]||(o[0]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[1]||(o[1]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[2]||(o[2]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(r.getSectionIndex(l,n)),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(r.getSectionIndex(l,n)),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(r.getSectionIndex(l,n)),["prevent"])},null,42,qAe)),64))])),64))],32),e.createElementVNode("div",JAe,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"column-label"},e.toDisplayString(l)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,l=>e.createElementVNode("button",{key:l,class:e.normalizeClass(["column-button",{selected:r.isQuarterSelected(l),disabled:!r.isQuarterEnabled(l)}]),onClick:n=>r.selectColumn(l),disabled:!r.isQuarterEnabled(l)},e.toDisplayString(l)+"/4 tos ",11,YAe)),64))])])])}const KAe=G1(H1,[["render",ZAe],["__scopeId","data-v-1f6351a4"]]),q1={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 o=Array.from(t).map(r=>{const[l,n]=r.split("-").map(Number);return{row:l,col:n,value:this.getSequentialNumber(l,n)}}),a={};o.forEach(r=>{a[r.col]||(a[r.col]=[]),a[r.col].push(r)});const i=[];Object.values(a).forEach(r=>{r.sort((n,c)=>c.row-n.row);let l=[r[0]];for(let n=1;n<r.length;n++){const c=r[n];r[n-1].row-c.row===1?l.push(c):(l.length>0&&i.push(l),l=[c])}l.length>0&&i.push(l)});const s=i.sort((r,l)=>{const n=Math.min(...r.map(d=>d.value)),c=Math.min(...l.map(d=>d.value));return n-c}).map(r=>{const l=r.map(n=>n.value).sort((n,c)=>c-n);return l.length===1?[l[0],l[0]]:[l[0],l[l.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[o,a]=t,i=17-Math.floor((o-1)/21),s=(o-1)%21+1,r=17-Math.floor((a-1)/21),l=(a-1)%21+1;if(s===l){const n=Math.min(i,r),c=Math.max(i,r);for(let d=n;d<=c;d++)this.selectedSections.add(this.getSectionId(d,s))}else{const n=Math.min(s,l),c=Math.max(s,l);for(let d=n;d<=c;d++){const m=d===s?i:1,u=d===l?r:17;for(let y=Math.min(m,u);y<=Math.max(m,u);y++)this.selectedSections.add(this.getSectionId(y,d))}}}});else for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));this.updateSelectAllState()},getSectionId(t,o){return`${t}-${o}`},isSelected(t,o){return this.selectedSections.has(this.getSectionId(t,o))},toggleSection(t,o){const a=this.getSectionId(t,o);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 o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));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,o){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const i=this.getSectionId(t,o);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(i)),this.dragSelectMode?this.selectedSections.add(i):this.selectedSections.delete(i),this.updateSelectAllState()},getSequentialNumber(t,o){return(17-t)*21+o}}},Z5=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},K5=q1.setup;q1.setup=K5?(t,o)=>(Z5(),K5(t,o)):Z5;const XAe={class:"field-template-element"},QAe={class:"field-container"},eMe={key:0,class:"select-all-container"},tMe={class:"select-all-label"},aMe=["onMouseenter","onMousedown"];function oMe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",XAe,[e.createElementVNode("div",QAe,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",eMe,[e.createElementVNode("label",tMe,[o[5]||(o[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":o[0]||(o[0]=l=>s.selectAll=l),onChange:o[1]||(o[1]=(...l)=>r.toggleAllSections&&r.toggleAllSections(...l))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[2]||(o[2]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[3]||(o[3]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[4]||(o[4]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(l,n),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(l,n),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(l,n),["prevent"])},null,42,aMe)),64))],64))),64))],32),o[6]||(o[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 iMe=G1(q1,[["render",oMe],["__scopeId","data-v-389c50fa"]]),sMe={components:{FieldGolStatsTemplates:KAe,FieldTemplatesElement:iMe},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(o=>Array.isArray(o))},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)}}},rMe={key:0,class:"modal-wrapper"},lMe={class:"modal-overlay"},nMe={class:"modal-container"},dMe={class:"modal-content"},cMe={class:"modal-header"},pMe={class:"fields-container"},mMe={class:"field-section"},uMe={class:"field-section"},fMe={class:"distance-section"},hMe={class:"distance-info"},yMe={class:"info-row"},gMe={class:"info-value"},bMe={class:"info-row"},_Me={class:"info-value"},SMe={class:"info-row"},wMe={class:"info-value"},CMe={class:"distance-section"},kMe={class:"distance-info"},EMe={class:"info-row"},VMe={class:"info-value"},xMe={class:"info-row"},NMe={class:"info-value"},TMe={class:"info-row"},BMe={class:"info-value"};function FMe(t,o,a,i,s,r){var l,n,c,d,m,u,y,p,h,f,g,_;const b=e.resolveComponent("FieldGolStatsTemplates"),T=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",rMe,[e.createElementVNode("div",lMe,[e.createElementVNode("div",nMe,[e.createElementVNode("div",dMe,[e.createElementVNode("div",cMe,[o[2]||(o[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:o[0]||(o[0]=R=>t.$emit("update:isVisible",!1))},o[1]||(o[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",pMe,[e.createElementVNode("div",mMe,[r.isArrayOfArrays((l=a.parameters)==null?void 0:l.origin_zones)?(e.openBlock(),e.createBlock(T,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(c=a.parameters)==null?void 0:c.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(b,{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",uMe,[r.isArrayOfArrays((d=a.parameters)==null?void 0:d.destiny_zones)?(e.openBlock(),e.createBlock(T,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(u=a.parameters)==null?void 0:u.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(b,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(m=a.parameters)==null?void 0:m.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",fMe,[o[6]||(o[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",hMe,[e.createElementVNode("div",yMe,[o[3]||(o[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",gMe,e.toDisplayString((y=a.parameters)==null?void 0:y.minimum_distance_x)+" m",1)]),e.createElementVNode("div",bMe,[o[4]||(o[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",_Me,e.toDisplayString((p=a.parameters)==null?void 0:p.minimum_distance_y)+" m",1)]),e.createElementVNode("div",SMe,[o[5]||(o[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",wMe,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",CMe,[o[10]||(o[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",kMe,[e.createElementVNode("div",EMe,[o[7]||(o[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",VMe,e.toDisplayString((f=a.parameters)==null?void 0:f.maximum_distance_x)+" m",1)]),e.createElementVNode("div",xMe,[o[8]||(o[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",NMe,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",TMe,[o[9]||(o[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",BMe,e.toDisplayString((_=a.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const PMe=G1(sMe,[["render",FMe],["__scopeId","data-v-834c0128"]]),$Me={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}}},AMe="_tablePosition_s65tc_46",MMe="_tablePositionWrapper_s65tc_62",IMe="_imgHenrryIcon_s65tc_71",zMe="_americaIcon_s65tc_79",OMe="_playerPhoto_s65tc_91",RMe="_toniKroos_s65tc_100",LMe="_shapeIcon_s65tc_111",DMe="_menuiconsTeams_s65tc_117",vMe="_component31_s65tc_126",jMe="_playerName_s65tc_137",UMe="_icnPlayIcon_s65tc_145",WMe="_goles_s65tc_153",GMe="_americaIcon1_s65tc_160",HMe="_teamsAmerica_s65tc_174",qMe="_topAddPlayer_s65tc_181",JMe="_containerData_s65tc_185",YMe="_shapeIcon1_s65tc_193",ZMe="_icnExpand1_s65tc_199",KMe="_icnExpand_s65tc_199",XMe="_playerData_s65tc_219",QMe="_playerInfo_s65tc_230",eIe="_headerTop_s65tc_245",tIe="_playerRow_s65tc_259",aIe="_groupsLeague_s65tc_270",oIe="_text_s65tc_279",iIe="_btnViewFullList_s65tc_287",sIe="_headerTops_s65tc_304",rIe="_btnVideosOptions_s65tc_376",lIe="_position_s65tc_553",nIe="_positionWrapper_s65tc_565",dIe="_imgNecaxaIcon_s65tc_573",cIe="_teamLogo_s65tc_579",pIe="_teamPhoto_s65tc_587",mIe="_name_s65tc_595",uIe="_icnPlayIconType1_s65tc_603",fIe="_verVideosType1_s65tc_610",hIe="_btnVideosOptionsType1_s65tc_616",yIe="_btnVideosOptions1_s65tc_628",gIe="_leftContainer_s65tc_640",bIe="_shapeIconType1_s65tc_649",_Ie="_icnExpandType1_s65tc_654",SIe="_arrowExpand_s65tc_664",wIe="_containerInfo_s65tc_672",CIe="_headerTopTeam_s65tc_684",kIe="_containerHeader_s65tc_698",EIe="_goles1_s65tc_707",VIe="_golesType1_s65tc_710",xIe="_golesWrapper_s65tc_715",NIe="_btnViewAll_s65tc_724",TIe="_headerTopsTeams_s65tc_741",BIe="_arrowExpandIcon_s65tc_858",FIe="_rotate_s65tc_863",PIe={tablePosition:AMe,tablePositionWrapper:MMe,imgHenrryIcon:IMe,americaIcon:zMe,playerPhoto:OMe,toniKroos:RMe,shapeIcon:LMe,menuiconsTeams:DMe,component31:vMe,playerName:jMe,icnPlayIcon:UMe,goles:WMe,americaIcon1:GMe,teamsAmerica:HMe,topAddPlayer:qMe,containerData:JMe,shapeIcon1:YMe,icnExpand1:ZMe,icnExpand:KMe,playerData:XMe,playerInfo:QMe,headerTop:eIe,playerRow:tIe,groupsLeague:aIe,text:oIe,btnViewFullList:iIe,headerTops:sIe,btnVideosOptions:rIe,position:lIe,positionWrapper:nIe,imgNecaxaIcon:dIe,teamLogo:cIe,teamPhoto:pIe,name:mIe,icnPlayIconType1:uIe,verVideosType1:fIe,btnVideosOptionsType1:hIe,btnVideosOptions1:yIe,leftContainer:gIe,shapeIconType1:bIe,icnExpandType1:_Ie,arrowExpand:SIe,containerInfo:wIe,headerTopTeam:CIe,containerHeader:kIe,goles1:EIe,golesType1:VIe,golesWrapper:xIe,btnViewAll:NIe,headerTopsTeams:TIe,arrowExpandIcon:BIe,rotate:FIe},J1={components:{GSCButton:Ol},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)}}},X5=()=>{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}))},Q5=J1.setup;J1.setup=Q5?(t,o)=>(X5(),Q5(t,o)):X5;const $Ie=["src"],AIe=["src"],MIe=["src"],IIe=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),zIe=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),OIe=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),RIe=[IIe,zIe,OIe],LIe=["fill"],DIe=["fill"],vIe=["src"],jIe=["fill"],UIe=["fill"];function WIe(t,o,a,i,s,r){const l=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,$Ie),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,AIe)],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(l,{"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:o[0]||(o[0]=n=>r.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,MIe)],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:o[1]||(o[1]=n=>r.emitAddPlayer(a.data)),style:{cursor:"pointer"}},RIe))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:o[2]||(o[2]=n=>r.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,DIe)],10,LIe))],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,vIe)],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(l,{"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:o[3]||(o[3]=n=>r.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(l,{"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:o[4]||(o[4]=n=>r.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:o[5]||(o[5]=n=>r.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,UIe)],10,jIe))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const GIe={$style:PIe},HIe=ot(J1,[["render",WIe],["__cssModules",GIe]]),qIe="_rotate_1tou5_3",JIe="_positionContainer_1tou5_50",YIe="_positionContainer620_1tou5_57",ZIe="_rowwPlayer_1tou5_64",KIe="_rowwPlayer960_1tou5_80",XIe="_rowwPlayer420_1tou5_95",QIe="_rowwPlayer460_1tou5_111",eze="_containerLeft_1tou5_128",tze="_containerLeft420_1tou5_136",aze="_containerLeft620_1tou5_144",oze="_iconFavoritesType1_1tou5_151",ize="_iconFavoritesType1320_1tou5_159",sze="_iconFavorites_1tou5_151",rze="_iconFavorites420_1tou5_175",lze="_playerContainer_1tou5_183",nze="_playerContainer420_1tou5_195",dze="_playerContainer460_1tou5_207",cze="_playerContainerType1_1tou5_219",pze="_playerContainerType1320_1tou5_229",mze="_playerContainerType1460_1tou5_239",uze="_imgPlayerIcon_1tou5_249",fze="_imgPlayerIcon460_1tou5_259",hze="_imgPlayerIcon420_1tou5_269",yze="_manchesterUnited_1tou5_279",gze="_manchesterUnited360_1tou5_290",bze="_manchesterUnited420_1tou5_301",_ze="_manchesterUnited460_1tou5_312",Sze="_containerRight_1tou5_323",wze="_containerRight960_1tou5_332",Cze="_containerRight420_1tou5_342",kze="_numberOfVideos_1tou5_353",Eze="_numberOfVideos620_1tou5_359",Vze="_block02_1tou5_365",xze="_block02960_1tou5_375",Nze="_block02620_1tou5_384",Tze="_block02420_1tou5_391",Bze="_verVideos_1tou5_399",Fze="_verVideos620_1tou5_405",Pze="_numberPosition_1tou5_408",$ze="_shapeIcon_1tou5_414",Aze="_chivasIcon_1tou5_419",Mze="_imgTeamIcon_1tou5_430",Ize="_teamName_1tou5_435",zze="_nameTeam_1tou5_441",Oze="_dfC_1tou5_450",Rze="_position_1tou5_50",Lze="_age_1tou5_460",Dze="_manchesterUnitedIcon_1tou5_468",vze="_country_1tou5_475",jze="_playedGames_1tou5_482",Uze="_playedMinutes_1tou5_489",Wze="_block01_1tou5_496",Gze="_leagueName_1tou5_503",Hze="_roleCharacterIcon_1tou5_509",qze="_btnVideos_1tou5_517",Jze="_containerBtnVideos_1tou5_532",Yze="_containerBtnVideos620_1tou5_542",Zze="_containesOptions_1tou5_551",Kze="_arrowExpandIcon_1tou5_558",Xze="_rowTeam_1tou5_567",Qze="_rowTeam420_1tou5_585",eOe="_rowTeam320_1tou5_603",tOe="_rowTeam460_1tou5_622",aOe="_rowTeam350_1tou5_641",oOe="_containerLeftType1_1tou5_659",iOe="_containerLeftType1680_1tou5_665",sOe="_containerLeftType1320_1tou5_672",rOe="_containerLeftType1350_1tou5_680",lOe="_positionContainertype1_1tou5_687",nOe="_positionContainertype1380_1tou5_695",dOe="_positionContainertype1680_1tou5_703",cOe="_positionContainertype1420_1tou5_711",pOe="_manchesterUnitedType1_1tou5_719",mOe="_manchesterUnitedType1460_1tou5_725",uOe="_manchesterUnitedType1320_1tou5_732",fOe="_containerRightType1_1tou5_739",hOe="_containerRightType1420_1tou5_750",yOe="_containerRightType1320_1tou5_761",gOe="_teamNameWrapperType1_1tou5_772",bOe="_teamNameWrapperType1960_1tou5_779",_Oe="_teamNameWrapperType11086_1tou5_786",SOe="_ageWrapperType1_1tou5_793",wOe="_ageWrapperType1680_1tou5_800",COe="_ageWrapperType11086_1tou5_808",kOe="_ageType1_1tou5_816",EOe="_ageType1960_1tou5_824",VOe="_playedGamesWrapperType1_1tou5_827",xOe="_playedGamesWrapperType1680_1tou5_834",NOe="_playedGamesWrapperType1960_1tou5_837",TOe="_playedGamesType1_1tou5_840",BOe="_playedGamesType1540_1tou5_847",FOe="_playedGamesType1960_1tou5_851",POe="_playedGamesType11086_1tou5_854",$Oe="_playedMinutesWrapperType1_1tou5_857",AOe="_playedMinutesWrapperType11086_1tou5_864",MOe="_playedMinutesType1_1tou5_871",IOe="_playedMinutesType1680_1tou5_878",zOe="_block02Type1_1tou5_881",OOe="_block02Type1680_1tou5_889",ROe="_block02Type1320_1tou5_897",LOe="_block02Type1350_1tou5_906",DOe="_leagueNameWrapperType1_1tou5_914",vOe="_leagueNameWrapperType1680_1tou5_922",jOe="_leagueNameWrapperType1960_1tou5_925",UOe="_leagueNameType1_1tou5_933",WOe="_leagueNameType1960_1tou5_943",GOe="_numberOfVideosType1_1tou5_953",HOe="_numberOfVideosType1680_1tou5_960",qOe="_numberOfVideosType11232_1tou5_967",JOe="_vectorIconType1_1tou5_974",YOe="_block01TitlesType1_1tou5_991",ZOe="_numberPositionType1_1tou5_998",KOe="_shapeIconType1_1tou5_1004",XOe="_tijuanaIconType1_1tou5_1010",QOe="_tijuanaWrapperType1_1tou5_1016",eRe="_tijuanaWrapperType1NoBg_1tou5_1027",tRe="_teamNameType1_1tou5_1035",aRe="_roleCharacterIconType1_1tou5_1042",oRe="_verVideosType1_1tou5_1049",iRe="_btnVideosType1_1tou5_1055",sRe="_containerBtnVideosType1_1tou5_1070",rRe="_containesOptionsType1_1tou5_1081",lRe="_arrowExpandIconType1_1tou5_1089",nRe="_templateTablaProductividadType1_1tou5_1095",dRe="_verVideosType11232_1tou5_1107",cRe="_templateTablaProductividadType1320_1tou5_1111",pRe="_verVideosType1680_1tou5_1115",mRe={rotate:qIe,positionContainer:JIe,positionContainer620:YIe,rowwPlayer:ZIe,rowwPlayer960:KIe,rowwPlayer420:XIe,rowwPlayer460:QIe,containerLeft:eze,containerLeft420:tze,containerLeft620:aze,iconFavoritesType1:oze,iconFavoritesType1320:ize,iconFavorites:sze,iconFavorites420:rze,playerContainer:lze,playerContainer420:nze,playerContainer460:dze,playerContainerType1:cze,playerContainerType1320:pze,playerContainerType1460:mze,imgPlayerIcon:uze,imgPlayerIcon460:fze,imgPlayerIcon420:hze,manchesterUnited:yze,manchesterUnited360:gze,manchesterUnited420:bze,manchesterUnited460:_ze,containerRight:Sze,containerRight960:wze,containerRight420:Cze,numberOfVideos:kze,numberOfVideos620:Eze,block02:Vze,block02960:xze,block02620:Nze,block02420:Tze,verVideos:Bze,verVideos620:Fze,numberPosition:Pze,shapeIcon:$ze,chivasIcon:Aze,imgTeamIcon:Mze,teamName:Ize,nameTeam:zze,dfC:Oze,position:Rze,age:Lze,manchesterUnitedIcon:Dze,country:vze,playedGames:jze,playedMinutes:Uze,block01:Wze,leagueName:Gze,roleCharacterIcon:Hze,btnVideos:qze,containerBtnVideos:Jze,containerBtnVideos620:Yze,containesOptions:Zze,arrowExpandIcon:Kze,rowTeam:Xze,rowTeam420:Qze,rowTeam320:eOe,rowTeam460:tOe,rowTeam350:aOe,containerLeftType1:oOe,containerLeftType1680:iOe,containerLeftType1320:sOe,containerLeftType1350:rOe,positionContainertype1:lOe,positionContainertype1380:nOe,positionContainertype1680:dOe,positionContainertype1420:cOe,manchesterUnitedType1:pOe,manchesterUnitedType1460:mOe,manchesterUnitedType1320:uOe,containerRightType1:fOe,containerRightType1420:hOe,containerRightType1320:yOe,teamNameWrapperType1:gOe,teamNameWrapperType1960:bOe,teamNameWrapperType11086:_Oe,ageWrapperType1:SOe,ageWrapperType1680:wOe,ageWrapperType11086:COe,ageType1:kOe,ageType1960:EOe,playedGamesWrapperType1:VOe,playedGamesWrapperType1680:xOe,playedGamesWrapperType1960:NOe,playedGamesType1:TOe,playedGamesType1540:BOe,playedGamesType1960:FOe,playedGamesType11086:POe,playedMinutesWrapperType1:$Oe,playedMinutesWrapperType11086:AOe,playedMinutesType1:MOe,playedMinutesType1680:IOe,block02Type1:zOe,block02Type1680:OOe,block02Type1320:ROe,block02Type1350:LOe,leagueNameWrapperType1:DOe,leagueNameWrapperType1680:vOe,leagueNameWrapperType1960:jOe,leagueNameType1:UOe,leagueNameType1960:WOe,numberOfVideosType1:GOe,numberOfVideosType1680:HOe,numberOfVideosType11232:qOe,vectorIconType1:JOe,block01TitlesType1:YOe,numberPositionType1:ZOe,shapeIconType1:KOe,tijuanaIconType1:XOe,tijuanaWrapperType1:QOe,tijuanaWrapperType1NoBg:eRe,teamNameType1:tRe,roleCharacterIconType1:aRe,verVideosType1:oRe,btnVideosType1:iRe,containerBtnVideosType1:sRe,containesOptionsType1:rRe,arrowExpandIconType1:lRe,templateTablaProductividadType1:nRe,verVideosType11232:dRe,templateTablaProductividadType1320:cRe,verVideosType1680:pRe},Y1={components:{GSCButton:Ol},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:o}=jt(t);return{myDivRef2:t,elementSize:o}},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)}}},e4=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},t4=Y1.setup;Y1.setup=t4?(t,o)=>(e4(),t4(t,o)):e4;const uRe={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},fRe=["src"],hRe=["src"],yRe=["src"],gRe=["src"],bRe=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),_Re=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),SRe=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),wRe=[bRe,_Re,SRe],CRe=["fill"],kRe=["fill"],ERe=["src"],VRe=["src"],xRe=["fill"],NRe=["fill"],TRe=["src"],BRe=["src"],FRe=["src"],PRe=["src"],$Re=["fill"],ARe=["fill"];function MRe(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",uRe,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(r.imgPlayerIconClass),src:a.data.player_photo},null,10,fRe),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedClass)},[i.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),i.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,hRe)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[i.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,yRe),i.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),i.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),i.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),i.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,gRe)],2)):e.createCommentVNode("",!0),i.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),i.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(r.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[i.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(r.containerBtnVideosClass)},[i.elementSize.width>635?(e.openBlock(),e.createBlock(l,{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:o[0]||(o[0]=n=>r.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(l,{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:o[1]||(o[1]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),i.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.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:o[2]||(o[2]=n=>r.emitAddPlayer(a.data)),style:{cursor:"pointer"}},wRe))],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:o[3]||(o[3]=n=>r.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,kRe)],10,CRe))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.rowTeamClass),style:e.normalizeStyle(i.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(r.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,ERe)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.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,VRe)],2),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.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),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(r.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(r.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[i.elementSize.width>679?(e.openBlock(),e.createBlock(l,{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:o[4]||(o[4]=n=>r.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(l,{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:o[5]||(o[5]=n=>r.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(r.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:o[6]||(o[6]=n=>r.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,NRe)],10,xRe))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(r.imgPlayerIconClass),src:a.data.player_photo},null,10,TRe),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),i.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,BRe)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[i.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,FRe),i.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),i.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),i.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),i.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,PRe)],2)):e.createCommentVNode("",!0),i.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),i.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),i.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(r.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(r.containerBtnVideosClass)},[e.createVNode(l,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:i.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:o[7]||(o[7]=n=>r.emitEventMedia(a.data)),style:e.normalizeStyle(i.elementSize.width<=680?i.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:o[8]||(o[8]=n=>r.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,ARe)],10,$Re))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const IRe={$style:mRe},zRe=ot(Y1,[["render",MRe],["__cssModules",IRe]]),ORe="_containerLeftTitlesPlay_mmyc1_61",RRe="_containerLeftTitles420Play_mmyc1_69",LRe="_containerLeftTitles620Play_mmyc1_77",DRe="_containerLeftTitlesTeamPlay_mmyc1_85",vRe="_containerLeftTitlesTeam1180Play_mmyc1_93",jRe="_containerLeftTitlesTeam1090Play_mmyc1_101",URe="_containerLeftTitlesTeam960Play_mmyc1_109",WRe="_containerLeftTitlesTeam860Play_mmyc1_117",GRe="_containerLeftTitlesTeam768Play_mmyc1_125",HRe="_containerLeftTitlesTeam680Play_mmyc1_133",qRe="_containerLeftTitlesTeam620Play_mmyc1_141",JRe="_containerLeftTitlesTeam420Play_mmyc1_149",YRe="_headTitlesPlay_mmyc1_158",ZRe="_headTitles960Play_mmyc1_173",KRe="_headTitles420Play_mmyc1_188",XRe="_headTitles540Play_mmyc1_208",QRe="_headTitles460Play_mmyc1_223",eLe="_headTitles620Play_mmyc1_238",tLe="_positionPlay_mmyc1_253",aLe="_position420Play_mmyc1_262",oLe="_playerPlay_mmyc1_265",iLe="_player420Play_mmyc1_276",sLe="_containerRightType1Play_mmyc1_280",rLe="_containerRightTitlesPlay_mmyc1_287",lLe="_containerRightTitles960Play_mmyc1_296",nLe="_block02TitlesPlay_mmyc1_305",dLe="_block02Titles620Play_mmyc1_313",cLe="_mon1ScoutingPlay_mmyc1_317",pLe="_mon1Scouting960Play_mmyc1_327",mLe="_mon1Play_mmyc1_336",uLe="_mon1420Play_mmyc1_345",fLe="_mon1620Play_mmyc1_355",hLe="_icnIconPlay_mmyc1_365",yLe="_icnIcon960Play_mmyc1_370",gLe="_icnIcon420Play_mmyc1_376",bLe="_teamTitlePlay_mmyc1_380",_Le="_positionTitlePlay_mmyc1_390",SLe="_ageTitlePlay_mmyc1_398",wLe="_partidosPlay_mmyc1_406",CLe="_playedGamesTitlePlay_mmyc1_410",kLe="_playedMinutesTitlePlay_mmyc1_420",ELe="_block01TitlesPlay_mmyc1_429",VLe="_monPlay_mmyc1_436",xLe="_containesOptionsTitlesPlay_mmyc1_445",NLe="_templateTablaProductividadType1Play_mmyc1_451",TLe="_templateTablaProductividadType1400Play_mmyc1_463",BLe="_headTitlesType1Play_mmyc1_477",FLe="_headTitlesType1420Play_mmyc1_490",PLe="_headTitlesType1400Play_mmyc1_506",$Le="_headTitlesType1540Play_mmyc1_522",ALe="_headTitlesType1460Play_mmyc1_536",MLe="_headTitlesType1680Play_mmyc1_550",ILe="_headTitlesType1350Play_mmyc1_563",zLe="_positionType1Play_mmyc1_578",OLe="_positionType1400Play_mmyc1_587",RLe="_teamType1Play_mmyc1_597",LLe="_teamType1400Play_mmyc1_606",DLe="_frecuenciaType1Play_mmyc1_616",vLe="_frecuenciaType1540Play_mmyc1_624",jLe="_containerLeftTitlesType1Play_mmyc1_633",ULe="_frecuenciaWrapperType1Play_mmyc1_641",WLe="_frecuenciaWrapperType1680Play_mmyc1_650",GLe="_promedioPartidoType1Play_mmyc1_658",HLe="_promedioEstePartidoType1Play_mmyc1_662",qLe="_promedioEstePartidoType1960Play_mmyc1_670",JLe="_promedioEstePartidoWrapperType1Play_mmyc1_674",YLe="_promedioEstePartidoWrapperType11200Play_mmyc1_682",ZLe="_promedioEstePartidoWrapperType11090Play_mmyc1_691",KLe="_promedioEstePartidoWrapperType11086Play_mmyc1_701",XLe="_promedioPartidosType1Play_mmyc1_710",QLe="_promedioPartidosWrapperType1Play_mmyc1_717",eDe="_promedioPartidosWrapperType1960Play_mmyc1_725",tDe="_promedioPartidosWrapperType11086Play_mmyc1_728",aDe="_partidosJugadosType1Play_mmyc1_731",oDe="_partidosJugadosType1960Play_mmyc1_737",iDe="_partidosJugadosWrapperType1Play_mmyc1_744",sDe="_partidosJugadosWrapperType11200Play_mmyc1_752",rDe="_partidosJugadosWrapperType11180Play_mmyc1_760",lDe="_partidosJugadosWrapperType11170Play_mmyc1_768",nDe="_partidosJugadosWrapperType11140Play_mmyc1_776",dDe="_partidosJugadosWrapperType11086Play_mmyc1_784",cDe="_partidosJugadosWrapperType1960Play_mmyc1_792",pDe="_partidosJugadosWrapperType1880Play_mmyc1_800",mDe="_partidosJugadosWrapperType1860Play_mmyc1_808",uDe="_partidosJugadosWrapperType1830Play_mmyc1_816",fDe="_partidosJugadosWrapperType1790Play_mmyc1_824",hDe="_partidosJugadosWrapperType1930Play_mmyc1_832",yDe="_partidosJugadosWrapperType1770Play_mmyc1_840",gDe="_block01TitlesType1Play_mmyc1_843",bDe="_monType1Play_mmyc1_851",_De="_monType1960Play_mmyc1_860",SDe="_monType1680Play_mmyc1_870",wDe="_videosType1Play_mmyc1_873",CDe="_videosType1680Play_mmyc1_883",kDe="_videosType1600Play_mmyc1_892",EDe="_videosType1540Play_mmyc1_901",VDe="_videosType1420Play_mmyc1_910",xDe="_videosType1400Play_mmyc1_919",NDe="_containesOptionsTitlesType1Play_mmyc1_931",TDe="_containesOptionsTitlesType1768Play_mmyc1_939",BDe="_containesOptionsTitlesType1730Play_mmyc1_946",FDe="_containesOptionsTitlesType1690Play_mmyc1_953",PDe="_icnIconType1Play_mmyc1_960",$De="_icnIconType1420Play_mmyc1_966",ADe="_icnIconType1400Play_mmyc1_973",MDe="_block02TitlesType1Play_mmyc1_977",IDe="_block02TitlesType1680Play_mmyc1_984",zDe="_block02TitlesType1350Play_mmyc1_991",ODe="_containerRightTitlesType1Play_mmyc1_998",RDe="_containerRightTitlesType1420Play_mmyc1_1007",LDe={containerLeftTitlesPlay:ORe,containerLeftTitles420Play:RRe,containerLeftTitles620Play:LRe,containerLeftTitlesTeamPlay:DRe,containerLeftTitlesTeam1180Play:vRe,containerLeftTitlesTeam1090Play:jRe,containerLeftTitlesTeam960Play:URe,containerLeftTitlesTeam860Play:WRe,containerLeftTitlesTeam768Play:GRe,containerLeftTitlesTeam680Play:HRe,containerLeftTitlesTeam620Play:qRe,containerLeftTitlesTeam420Play:JRe,headTitlesPlay:YRe,headTitles960Play:ZRe,headTitles420Play:KRe,headTitles540Play:XRe,headTitles460Play:QRe,headTitles620Play:eLe,positionPlay:tLe,position420Play:aLe,playerPlay:oLe,player420Play:iLe,containerRightType1Play:sLe,containerRightTitlesPlay:rLe,containerRightTitles960Play:lLe,block02TitlesPlay:nLe,block02Titles620Play:dLe,mon1ScoutingPlay:cLe,mon1Scouting960Play:pLe,mon1Play:mLe,mon1420Play:uLe,mon1620Play:fLe,icnIconPlay:hLe,icnIcon960Play:yLe,icnIcon420Play:gLe,teamTitlePlay:bLe,positionTitlePlay:_Le,ageTitlePlay:SLe,partidosPlay:wLe,playedGamesTitlePlay:CLe,playedMinutesTitlePlay:kLe,block01TitlesPlay:ELe,monPlay:VLe,containesOptionsTitlesPlay:xLe,templateTablaProductividadType1Play:NLe,templateTablaProductividadType1400Play:TLe,headTitlesType1Play:BLe,headTitlesType1420Play:FLe,headTitlesType1400Play:PLe,headTitlesType1540Play:$Le,headTitlesType1460Play:ALe,headTitlesType1680Play:MLe,headTitlesType1350Play:ILe,positionType1Play:zLe,positionType1400Play:OLe,teamType1Play:RLe,teamType1400Play:LLe,frecuenciaType1Play:DLe,frecuenciaType1540Play:vLe,containerLeftTitlesType1Play:jLe,frecuenciaWrapperType1Play:ULe,frecuenciaWrapperType1680Play:WLe,promedioPartidoType1Play:GLe,promedioEstePartidoType1Play:HLe,promedioEstePartidoType1960Play:qLe,promedioEstePartidoWrapperType1Play:JLe,promedioEstePartidoWrapperType11200Play:YLe,promedioEstePartidoWrapperType11090Play:ZLe,promedioEstePartidoWrapperType11086Play:KLe,promedioPartidosType1Play:XLe,promedioPartidosWrapperType1Play:QLe,promedioPartidosWrapperType1960Play:eDe,promedioPartidosWrapperType11086Play:tDe,partidosJugadosType1Play:aDe,partidosJugadosType1960Play:oDe,partidosJugadosWrapperType1Play:iDe,partidosJugadosWrapperType11200Play:sDe,partidosJugadosWrapperType11180Play:rDe,partidosJugadosWrapperType11170Play:lDe,partidosJugadosWrapperType11140Play:nDe,partidosJugadosWrapperType11086Play:dDe,partidosJugadosWrapperType1960Play:cDe,partidosJugadosWrapperType1880Play:pDe,partidosJugadosWrapperType1860Play:mDe,partidosJugadosWrapperType1830Play:uDe,partidosJugadosWrapperType1790Play:fDe,partidosJugadosWrapperType1930Play:hDe,partidosJugadosWrapperType1770Play:yDe,block01TitlesType1Play:gDe,monType1Play:bDe,monType1960Play:_De,monType1680Play:SDe,videosType1Play:wDe,videosType1680Play:CDe,videosType1600Play:kDe,videosType1540Play:EDe,videosType1420Play:VDe,videosType1400Play:xDe,containesOptionsTitlesType1Play:NDe,containesOptionsTitlesType1768Play:TDe,containesOptionsTitlesType1730Play:BDe,containesOptionsTitlesType1690Play:FDe,icnIconType1Play:PDe,icnIconType1420Play:$De,icnIconType1400Play:ADe,block02TitlesType1Play:MDe,block02TitlesType1680Play:IDe,block02TitlesType1350Play:zDe,containerRightTitlesType1Play:ODe,containerRightTitlesType1420Play:RDe},Z1={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:o}=jt(t);return{myDivRef:t,elementSize:o}},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:{}},a4=()=>{e.useCssVars(t=>({"8d117076":t.background,"39ae673e":t.height,"5bb96572":t.fontSize,"71676add":t.fontColor,"8040e1ac":t.fontFamily,"61b44ebb":t.heightTeam}))},o4=Z1.setup;Z1.setup=o4?(t,o)=>(a4(),o4(t,o)):a4;const DDe={ref:"myDivRef"},vDe=e.createElementVNode("br",null,null,-1),jDe=e.createElementVNode("br",null,null,-1),UDe=e.createElementVNode("br",null,null,-1);function WDe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",DDe,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.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(r.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),i.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),i.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(r.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[i.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 "),vDe,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.mon1ClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.templateTablaProductividadType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.headTitlesType1ClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassTeamPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionType1ClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.teamType1ClassPlay)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.frecuenciaWrapperType1ClassPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.frecuenciaType1ClassPlay)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.promedioEstePartidoWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.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),i.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.promedioPartidosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Promedio partido"),jDe,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),i.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.partidosJugadosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Partidos "),UDe,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containesOptionsTitlesType1ClassPlay)},[i.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.monType1ClassPlay)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.videosType1ClassPlay)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.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(r.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),i.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),i.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),i.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(r.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.mon1ScoutingClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const GDe={$style:LDe},HDe=ot(Z1,[["render",WDe],["__cssModules",GDe]]),qDe="_equipo_1lpaa_38",JDe="_atlasSeleccin_1lpaa_43",YDe="_equipoAtlasSeleccinMexi_1lpaa_47",ZDe="_aos_1lpaa_51",KDe="_span12_1lpaa_55",XDe="_nacionalidadMex_1lpaa_58",QDe="_manchesterUnited_1lpaa_61",eve="_manchesterUnited12_1lpaa_68",tve="_containerInfo_1lpaa_78",ave="_verPerfil12_1lpaa_87",ove="_btnProfile_1lpaa_96",ive="_containerButton_1lpaa_112",sve="_containerButton2_1lpaa_119",rve="_dataContainer_1lpaa_125",lve="_expandedInfoPlayer_1lpaa_135",nve="_containerDataBg_1lpaa_225",dve="_containerDataSm_1lpaa_236",cve="_span_1lpaa_55",pve="_manchesterUnited14_1lpaa_247",mve="_filter_1lpaa_252",uve="_verPerfil_1lpaa_87",fve="_manchesterUnited8_1lpaa_273",hve="_manchesterUnitedParent1_1lpaa_279",yve="_manchesterUnited1_1lpaa_68",gve="_manchesterUnitedParent_1lpaa_279",bve="_frameDiv_1lpaa_301",_ve="_infoExpanded_1lpaa_309",Sve="_countryFlag_1lpaa_462",wve={equipo:qDe,atlasSeleccin:JDe,equipoAtlasSeleccinMexi:YDe,aos:ZDe,span12:KDe,nacionalidadMex:XDe,manchesterUnited:QDe,manchesterUnited12:eve,containerInfo:tve,verPerfil12:ave,btnProfile:ove,containerButton:ive,containerButton2:sve,dataContainer:rve,expandedInfoPlayer:lve,containerDataBg:nve,containerDataSm:dve,span:cve,manchesterUnited14:pve,filter:mve,verPerfil:uve,manchesterUnited8:fve,manchesterUnitedParent1:hve,manchesterUnited1:yve,manchesterUnitedParent:gve,frameDiv:bve,infoExpanded:_ve,countryFlag:Sve},K1={components:{GSCButton:v2},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:o}=jt(t);return{myDivRef:t,elementSize:o}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},i4=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},s4=K1.setup;K1.setup=s4?(t,o)=>(i4(),s4(t,o)):i4;const Lt=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),Cve={ref:"myDivRef"},kve=["src"],Eve=Lt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Vve=Lt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),xve=Lt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Nve=Lt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Tve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Bve=Lt(()=>e.createElementVNode("span",null,"xG: ",-1)),Fve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Pve=Lt(()=>e.createElementVNode("span",null,"xG: ",-1)),$ve=Lt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Ave=Lt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Mve=Lt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Ive=Lt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),zve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Ove=Lt(()=>e.createElementVNode("span",null,"xG: ",-1));function Rve(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Cve,[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,kve)],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(i.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(l,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.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:o[0]||(o[0]=n=>r.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(l,{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!=""&&i.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:o[1]||(o[1]=n=>r.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(l,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.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:o[2]||(o[2]=n=>r.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)},[Eve,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)},[Vve,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)},[xve,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)},[Nve,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)},[Tve,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)},[Bve,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)},[Fve,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)},[Pve,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)},[$ve,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)},[Ave,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)},[Mve,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)},[Ive,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)},[zve,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)},[Ove,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(l,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&i.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:o[3]||(o[3]=n=>r.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const X1={components:{GSCCarousel:q2,GSCLeaders:HIe,GSCRowTable:zRe,GSCTableHeader:HDe,GSCExpandedInfo:ot(K1,[["render",Rve],["__cssModules",{$style:wve}],["__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:o}=jt(t);return{myDivRef:t,elementSize:o}},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,o){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(o)||this.sonConjuntosDistintos(t.setNationalitiesIds,o.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,o){t.length>0&&JSON.stringify(t)!==JSON.stringify(o)&&(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={},o={},a=[],i=[],s=[];return this.formatFilterStats.map(r=>{t[r.team_id]?(t[r.team_id].total+=r.total,t[r.team_id].uniqueGames.has(r.game_id)||t[r.team_id].uniqueGames.add(r.game_id)):this.teamInfo[r.team_id]&&(t[r.team_id]=this.initializeTeamData(r,this.teamInfo[r.team_id])),r.player_id!==0&&r.player_id!==62117&&(o[r.player_id]?(o[r.player_id].total+=r.total,o[r.player_id].uniqueGames.has(r.game_id)||o[r.player_id].uniqueGames.add(r.game_id)):o[r.player_id]=this.initializePlayerData(r,this.playersInfo[r.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,o),a=this.processTeamData(t),i=this.processPlayerData(o),this.filterTeam!==0&&!this.isTeam&&(s=i.filter(r=>r.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:i)}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,o){return t.total>o.total?-1:t.total<o.total?1:t.minutes<o.minutes?-1:t.minutes>o.minutes?1:0},sonConjuntosDistintos(t,o){const a=Array.from(t),i=Array.from(o);if(a.length!==i.length)return!0;for(let s=0;s<a.length;s++)if(!o.has(a[s]))return!0;return!1},getnameshort(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,o){return t.total<o.total?-1:t.total>o.total?1:t.name<o.name?-1:t.name>o.name?1:0},sortAndSlice(t,o){return t.sort((a,i)=>(a.name<i.name?1:-1)&&(a.total<i.total?1:-1)).slice(0,o)},getCategoryName(t){let o="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(o=this.categories[a].name);return o},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,o,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,r=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,r=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const c=1,d=2,m=3,u=this.isTeam?m:d,y=t.player_id;let p=[],h=this.isTeam?t.id:this.filterTeam;y?this.isTeam?h=y:(p=[y],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?h=t.id:(p=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:u,gameIds:null,playerIds:p,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:h||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:r,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",f)},emitEventMediaFullTable(t,o,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,r=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,r=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const c=1,d=2,m=3,u=this.isTeam?m:d;let y=[],p=this.isTeam?t.id:this.filterTeam;this.isTeam?p=t.id:(y=[t.id],n=n.filter(f=>!f.toString().includes("_r")));const h={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:u,gameIds:null,playerIds:y,goalkeeperIds:[],categoryIds:n,teamId:p||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:r,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",h)},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 o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,o){this.$emit("clickprofile",{id:t,teamId:o,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 o=[],a={},i={};this.arePlaysEmpty=!1;const s=await Ge.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){o=s.data.data.map(l=>this.formatStatsData(l)),s.data.teams.forEach(l=>{a[l[0]]={},a[l[0]].id=l[0],a[l[0]].name=l[1],a[l[0]].abrv=l[2],a[l[0]].img=l[3],a[l[0]].effectiveness=l[4],a[l[0]].games_played=l[5],a[l[0]].games_played_lastseason=l[6],a[l[0]].positiontable=l[7],a[l[0]].goals=l[8],a[l[0]].goalsrecived=l[9],a[l[0]].xg=l[10],a[l[0]].frecuency=l[11],a[l[0]].game_avg=l[12],a[l[0]].game_avg_last_season=l[13]});const r=new Set;s.data.players.forEach(l=>{const n=this.getObjectPlayer(l);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,d=n.teamName[0].acronym,m=a[n.teamName[0].team_id].name,u=n.teamName[0].team_id,y=this.positions[n.numberPositionId-1].fullname,p=this.positions[n.numberPositionId-1].name,h=n.countryId[0].nationality_id,f=n.effectiveness,g=n.min,_=n.games,b=n.date;n.arrayNationalities.forEach(T=>{r.add(T.numberId)}),i[l[0]]={id:l[0],name:l[1],img:l[2],age:c,team:d,teamname:m,teamid:u,position:y,positionfull:p,effectiveness:f,country:h,games_played:_,minutes_played:g,nationalityId:g,date:b,nationality:l[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=r,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=i,this.formatStats=o,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(o){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(o)}}},filterRecords(t){if(!this.formatStats.length)return[];const o={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&&!o.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),o.setNationalitiesIds=!0),!Object.values(o).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),i=new Set(t.setPositionsIds),[s,r]=t.arrayAgeRange||[0,100],l=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(!c||o.playingAs&&!t.playingAs.includes(n.playing_as)||o.matchResult&&!t.matchResult.includes(n.match_result)||o.sections&&!t.sections.includes(n.section)||o.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||o.setNationalitiesIds&&!c.arrayNationalitiesIds.some(d=>a.has(d))||o.setPositionsIds&&!i.has(c.numberPositionId))return!1;if(o.arrayAgeRange){const d=c.numberAge;if(d<s||d>r)return!1}return!(o.setYear&&c.date<l||o.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const o={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 o.hasFilters=this.checkActiveFilters(o),Object.freeze(o)},checkActiveFilters(t){const{basic:o,player:a}=t;return o.playingAs.size>0||o.matchResult.size>0||o.sections.size>0||o.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,o){return t.filter(a=>!(!this.passesBasicFilters(a,o.basic)||o.player&&!this.passesPlayerFilters(a,o.player)))},passesBasicFilters(t,o){const{playingAs:a,matchResult:i,sections:s,zone:r,typeZone:l}=o;if(a.size&&!a.has(t.playing_as)||i.size&&!i.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(r.size){const n=l===1?t.origen:t.destino;if(!r.has(n))return!1}return!0},passesPlayerFilters(t,o){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(o.nationalTeams.enabled){if(o.nationalTeams.players.size&&!o.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(r=>o.nationalities.has(r)))return!1;const{ageRange:i,yearLimit:s}=o;if(a.numberAge<i[0]||a.numberAge>i[1]||a.date<s||!o.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const o={};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,i)=>{o[a]=t[i]}),o},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=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:Ra[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(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},formatArrayPaginate(t){const o=Math.ceil(t.length/this.numRows);return Array.from({length:o},(a,i)=>{const s=i*this.numRows,r=s+this.numRows;return t.slice(s,r)})},initializeTeamData(t,o){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:o.id,name:o.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:o.effectiveness,frecuency:o.frecuency,game_avg:o.game_avg,game_avg_last_season:o.game_avg_last_season,games_played:o.games_played,games_played_lastseason:o.games_played_lastseason,positiontable:o.positiontable,goals:o.goals,goalsrecived:o.goalsrecived,xg:o.xg};return this.typeStats==="every90"&&(a.minutes=o.minutes||0),a},initializePlayerData(t,o){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return o?Object.assign(a,{name:o.name,name_short:this.getnameshort(o.name),img:o.img,id:o.id,age:o.age,team:o.team,teamname:o.teamname,teamid:o.teamid,position:o.position,positionId:o.positionId,positionfull:o.positionfull,country:o.country,effectiveness:o.effectiveness,minutes:o.minutes_played,games:o.games_played,date:o.date,nationality:o.nationality,player_country_flag:o.player_country_flag,categoryName:this.categoryName,goals:o.goals||0,goalsrecived:o.goalsrecived||0,xg:o.xg||0,positiontable:o.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,o){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(o).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(o).forEach(a=>{o[a].minutes<90&&delete o[a]})},processTeamData(t){return Object.values(t).sort((o,a)=>a.total-o.total).slice(0,60).map((o,a)=>{const i=a+1;return{...o,top:i<10?`0${i}`:`${i}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((o,a)=>{const i=a+1;return{...o,top:i<10?`0${i}`:`${i}`}})},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)}}},r4=()=>{e.useCssVars(t=>({"14b8a4d8":t.borderRadius,c64876f8:t.borderWidth,c87673be:t.borderColor}))},l4=X1.setup;X1.setup=l4?(t,o)=>(r4(),l4(t,o)):r4;const Bn=t=>(e.pushScopeId("data-v-01e14e57"),t=t(),e.popScopeId(),t),Lve={ref:"myDivRef"},Dve={class:"text"},vve={class:"groupsLeague"},jve={class:"row-table-carrousel"},Uve={key:1,class:"container-no-search-result"},Wve={key:0,class:"overlay-loading-top"},Gve=Bn(()=>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)),Hve=Bn(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),qve=[Gve,Hve],Jve=Bn(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Yve=Bn(()=>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 Zve(t,o,a,i,s,r){const l=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),d=e.resolveComponent("GSCCarousel"),m=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Lve,[r.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:o[0]||(o[0]=u=>r.clickMore(a.category))},[e.createElementVNode("div",Dve,[e.createElementVNode("div",vve,e.toDisplayString(a.categoryName)+"  → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[r.displayData.length>0?(e.openBlock(),e.createBlock(d,{key:0,items:r.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:r.changeCarrousel},{default:e.withCtx(({item:u})=>[e.createElementVNode("div",jve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,(y,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[y.top==="01"?(e.openBlock(),e.createBlock(l,{key:0,onAddPlayer:r.HandlerAddplayer,onMediadata:o[1]||(o[1]=h=>r.emitEventMedia(h,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==y.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:y.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",name:y.name,player_short:y.name_short,player_id:y.id,categoryId:a.category,total:y.total}:{top:"01",logo:y.img,total:y.total,name_team:y.name,player_id:y.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?i.elementSize.width>360?"210px":"130px":i.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:r.clickexpand,onMore:r.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==y.id&&t.expand,onAddPlayer:r.HandlerAddplayer,onMediadata:o[2]||(o[2]=h=>r.emitEventMedia(h,a.category,a.categoryName)),data:a.typeTable==0?{position:y.top,player_name:y.name,player_short:y.name_short,player_photo:y.img,total:y.total,id:y.id,player_age:y.age,team_abrev:y.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",player_position:y.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+y.country+".jpg",player_games:y.minutes,player_min:y.games,league_name:"          Liga MX          "}:{position:y.top,team_logo:y.img,team_abrev:y.name,frequency:y.frecuency,promthistournament:y.game_avg,promlasttournament:y.game_avg_last_season,teams_games:"-",category:a.category,total:y.total,id:y.id},height:"71px",background:p%2===0?a.backgroundEven:a.backgroundOdd,onExpand:r.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==y.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":y.positionId!==1,onAddPlayer:r.HandlerAddplayer,onShowGraph:r.HandlerShowGraph,data:a.typeTable==0?{teams:y.teamname,age:y.age,dataofbirth:y.date,nationality:y.nationality,countryFlag:y.player_country_flag,position:y.position,games:y.games,min:y.minutes,goals:y.originalTotal||y.total,effectiveness:y.effectiveness,category:a.categoryName,id:y.id}:{position:y.position,goals:y.goals,goals_received:y.goalsrecived,games_played:y.games_played,category:a.categoryName,effectiveness:y.effectiveness,xg:y.xg,total:y.originalTotal||y.total,attendance:"-",id:y.id},onViewprofile:h=>r.viewprofile(h,y.teamid),background:p%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",Uve,[t.isloading?(e.openBlock(),e.createElementBlock("div",Wve,qve)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Jve,Yve],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(m,{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(r.displayData,(u,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,(p,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==p.id&&t.expand,onMediadata:o[3]||(o[3]=f=>r.emitEventMediaFullTable(f,a.category,a.categoryName)),onAddPlayer:r.HandlerAddplayer,data:a.typeTable==0?{position:p.top,player_name:p.name,player_short:p.name_short,player_photo:p.img,total:p.total,id:p.id,player_age:p.age,team_abrev:p.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.teamid+".png",player_position:p.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+p.country+".jpg",player_games:p.games,player_min:p.minutes,league_name:"          Liga MX          "}:{position:p.positiontable,team_logo:p.img,team_abrev:p.name,frequency:p.frecuency,promthistournament:p.game_avg,promlasttournament:p.game_avg_last_season,category:a.category,team_games:p.games_played,total:p.total,id:p.id},height:"71px",background:((y+1)*5+h)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==p.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":p.positionId!==1,onAddPlayer:r.HandlerAddplayer,onShowGraph:r.HandlerShowGraph,data:a.typeTable==0?{teams:p.teamname,age:p.age,dataofbirth:p.date,nationality:p.nationality,countryFlag:p.player_country_flag,position:p.position,positionfull:p.positionfull,games:p.games,min:p.minutes,goals:p.originalTotal||p.total,effectiveness:p.effectiveness,category:r.getCategoryName(a.category),id:p.id}:{position:p.positiontable,goals:p.goals,goals_received:p.goalsrecived,games_played:p.games_played,category:a.categoryName,effectiveness:p.effectiveness,xg:p.xg,total:p.originalTotal||p.total,category:r.getCategoryName(a.category),attendance:"-",id:p.id},onViewprofile:f=>r.viewprofile(f,p.teamid),background:h%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 Kve=ot(X1,[["render",Zve],["__scopeId","data-v-01e14e57"]]),Xve="_filtersContainer_b9wc6_1",Qve="_filtersContainer1232_b9wc6_1",eje="_closeFiltersPc_b9wc6_1",tje="_textleyemdmultipleleagues_b9wc6_1",aje="_textleyemdmultipleleagues380_b9wc6_1",oje="_filtersContainer760_b9wc6_1",ije="_filtersContainer460_b9wc6_1",sje="_containerSectionPlay_b9wc6_1",rje="_containerSectionPlay1232_b9wc6_1",lje="_containerSectionPlay960_b9wc6_1",nje="_containerSectionPlay320_b9wc6_1",dje="_containerSectionPlay350_b9wc6_1",cje="_containerSection_b9wc6_1",pje="_containerSection1232_b9wc6_1",mje="_containerSection960_b9wc6_1",uje="_containerSection320_b9wc6_1",fje="_containerSection350_b9wc6_1",hje="_templateLosMejores_b9wc6_1",yje="_templateLosMejores1232_b9wc6_1",gje="_templateLosMejores960_b9wc6_1",bje="_templateLosMejores420_b9wc6_1",_je="_templateLosMejores320_b9wc6_1",Sje="_templateLosMejores540_b9wc6_1",wje="_templateLosMejores350_b9wc6_1",Cje="_topFiltersParent_b9wc6_1",kje="_topFiltersParent1232_b9wc6_1",Eje="_topFiltersParent960_b9wc6_1",Vje="_topFiltersParent460_b9wc6_1",xje="_topFiltersParent420_b9wc6_1",Nje="_containerTheBest_b9wc6_1",Tje="_containerTheBest1232_b9wc6_1",Bje="_containerTheBest960_b9wc6_1",Fje="_containerTheBest320_b9wc6_1",Pje="_titleSection_b9wc6_1",$je="_titleSection540_b9wc6_1",Aje="_containerTables_b9wc6_1",Mje="_containerTables960_b9wc6_1",Ije="_containerTables760_b9wc6_1",zje="_containerTables320_b9wc6_1",Oje="_toniKroosWrapper_b9wc6_1",Rje="_toniKroosWrapper1080_b9wc6_1",Lje="_toniKroosWrapper975_b9wc6_1",Dje="_toniKroosWrapper760_b9wc6_1",vje="_toniKroosWrapper420_b9wc6_1",jje="_toniKroosWrapper320_b9wc6_1",Uje="_frameChild_b9wc6_1",Wje="_filtros_b9wc6_1",Gje="_groupParent_b9wc6_1",Hje="_shapeIcon_b9wc6_1",qje="_btnFilters_b9wc6_1",Jje="_btnFiltersPC_b9wc6_1",Yje="_quitarFiltros_b9wc6_1",Zje="_quitarFiltros730_b9wc6_1",Kje="_quitarFiltros480_b9wc6_1",Xje="_quitarFiltros380_b9wc6_1",Qje="_btnCloseFilters_b9wc6_1",eUe="_mejoresJugadores_b9wc6_1",tUe="_mejoresJugadores730_b9wc6_1",aUe="_mejoresJugadores480_b9wc6_1",oUe="_mejoresJugadoresSM_b9wc6_1",iUe="_toniKroos_b9wc6_1",sUe="_teamBar_b9wc6_1",rUe="_menuSection_b9wc6_1",lUe="_menuSection960_b9wc6_1",nUe="_menuSectionPlay_b9wc6_1",dUe="_menuSectionPlay960_b9wc6_1",cUe="_containerMenu_b9wc6_1",pUe="_containerMenu760_b9wc6_1",mUe="_containerFilters_b9wc6_1",uUe="_teamBarParent_b9wc6_1",fUe="_topFilters_b9wc6_1",hUe="_topFilters1232_b9wc6_1",yUe="_topFilters420_b9wc6_1",gUe="_topFilters460_b9wc6_1",bUe="_losMejores_b9wc6_1",_Ue="_losMejores380_b9wc6_1",SUe="_losMejores530_b9wc6_1",wUe="_losMejores730_b9wc6_1",CUe="_menuSectionHeader_b9wc6_1",kUe="_menuSectionHeader1232_b9wc6_1",EUe="_menuSectionHeader960_b9wc6_1",VUe="_menuSectionHeader730_b9wc6_1",xUe="_dropdown_b9wc6_1",NUe="_dropdown730_b9wc6_1",TUe="_dropdown1_b9wc6_1",BUe="_dropdown1730_b9wc6_1",FUe="_dropdownParent_b9wc6_1",PUe="_dropdownParent730_b9wc6_1",$Ue="_menuSectionParentHeader_b9wc6_1",AUe="_menuSectionParentHeader1232_b9wc6_1",MUe="_menuSectionParentHeader960_b9wc6_1",IUe="_menuSectionParentHeader730_b9wc6_1",zUe="_menuSectionParentHeader430_b9wc6_1",OUe="_descubreVideos_b9wc6_1",RUe="_descubreVideos1232_b9wc6_1",LUe="_descubreVideos960_b9wc6_1",DUe="_allCategories_b9wc6_1",vUe="_containerScountingBtn_b9wc6_3",jUe="_btnDeleteAplica_b9wc6_13",UUe="_SearchBtnBar_b9wc6_33",WUe="_btnLeyendTxt_b9wc6_52",GUe="_BtnSearchScounting_b9wc6_61",HUe="_containerPredefined_b9wc6_85",qUe="_containerPredefinedScounting_b9wc6_92",JUe="_titleContainerPredefined_b9wc6_100",YUe="_subtitleContainerPredefined_b9wc6_111",ZUe={filtersContainer:Xve,filtersContainer1232:Qve,closeFiltersPc:eje,textleyemdmultipleleagues:tje,textleyemdmultipleleagues380:aje,filtersContainer760:oje,filtersContainer460:ije,containerSectionPlay:sje,containerSectionPlay1232:rje,containerSectionPlay960:lje,containerSectionPlay320:nje,containerSectionPlay350:dje,containerSection:cje,containerSection1232:pje,containerSection960:mje,containerSection320:uje,containerSection350:fje,templateLosMejores:hje,templateLosMejores1232:yje,templateLosMejores960:gje,templateLosMejores420:bje,templateLosMejores320:_je,templateLosMejores540:Sje,templateLosMejores350:wje,topFiltersParent:Cje,topFiltersParent1232:kje,topFiltersParent960:Eje,topFiltersParent460:Vje,topFiltersParent420:xje,containerTheBest:Nje,containerTheBest1232:Tje,containerTheBest960:Bje,containerTheBest320:Fje,titleSection:Pje,titleSection540:$je,containerTables:Aje,containerTables960:Mje,containerTables760:Ije,containerTables320:zje,toniKroosWrapper:Oje,toniKroosWrapper1080:Rje,toniKroosWrapper975:Lje,toniKroosWrapper760:Dje,toniKroosWrapper420:vje,toniKroosWrapper320:jje,frameChild:Uje,filtros:Wje,groupParent:Gje,shapeIcon:Hje,btnFilters:qje,btnFiltersPC:Jje,quitarFiltros:Yje,quitarFiltros730:Zje,quitarFiltros480:Kje,quitarFiltros380:Xje,btnCloseFilters:Qje,mejoresJugadores:eUe,mejoresJugadores730:tUe,mejoresJugadores480:aUe,mejoresJugadoresSM:oUe,toniKroos:iUe,teamBar:sUe,menuSection:rUe,menuSection960:lUe,menuSectionPlay:nUe,menuSectionPlay960:dUe,containerMenu:cUe,containerMenu760:pUe,containerFilters:mUe,teamBarParent:uUe,topFilters:fUe,topFilters1232:hUe,topFilters420:yUe,topFilters460:gUe,losMejores:bUe,losMejores380:_Ue,losMejores530:SUe,losMejores730:wUe,menuSectionHeader:CUe,menuSectionHeader1232:kUe,menuSectionHeader960:EUe,menuSectionHeader730:VUe,dropdown:xUe,dropdown730:NUe,dropdown1:TUe,dropdown1730:BUe,dropdownParent:FUe,dropdownParent730:PUe,menuSectionParentHeader:$Ue,menuSectionParentHeader1232:AUe,menuSectionParentHeader960:MUe,menuSectionParentHeader730:IUe,menuSectionParentHeader430:zUe,descubreVideos:OUe,descubreVideos1232:RUe,descubreVideos960:LUe,allCategories:DUe,containerScountingBtn:vUe,btnDeleteAplica:jUe,SearchBtnBar:UUe,btnLeyendTxt:WUe,BtnSearchScounting:GUe,containerPredefined:HUe,containerPredefinedScounting:qUe,titleContainerPredefined:JUe,subtitleContainerPredefined:YUe},KUe=e.ref(_b()),XUe=e.ref(OEe()),QUe=e.ref(Sb()),eWe={components:{GSCTableHeader:Vp,GscSwitchComponent:Dp,GSCFilterperteam:z2,DropdownYears:bb,GSCFilters:h1,DropdownPositions:yb,GSCExpandedInfo:Mp,GSCLabel:Z2,GSCSeasonSelect:C2,GSCTopCategory:Kve,GSCTournamentSelect:V2,GSCRowTable:Tp},computed:{...$Me.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},o=JSON.stringify(t);if(JSON.stringify(this.filters)!=o)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...KUe.value}},filterButtonPropsAux(){return{...XUe.value}},filterButtonPropsTournaments(){return{...QUe.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 o=0;o<t.teams.length;o++)this.teams.push({id:t.teams[o].team_id,team:t.teams[o].colloquial_name,logo:t.teams[o].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:o}=jt(t);return{myDivRefTopsFull:t,elementSize:o}},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,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+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:D,personalDataFilters:yi,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 q_e(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 o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const o=t.id===this.selectedTournament.id;t.isSelected=o,t.isDefaultTournament=o})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let i=0;i<this.detaildProductivityCategories.offensive.categories.length;i++)this.detaildProductivityCategories.offensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.defensive.categories.length;i++)this.detaildProductivityCategories.defensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.possession.categories.length;i++)this.detaildProductivityCategories.possession.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.offensesConditions.length;i++)this.detaildProductivityCategories.offensesConditions[i]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters(Fe.All),o.clearFilters(Fe.AGE_RANGE),o.clearFilters(Fe.YEAR),o.clearFilters(Fe.NATIONALITY),o.clearFilters(Fe.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(i,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let i=0;i<a.teams.length;i++)this.teamsscouting.push({id:a.teams[i].team_id,team:a.teams[i].colloquial_name,logo:a.teams[i].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 o,a;const i=(o=this.cachedPlayersMap)==null?void 0:o.get(t.id);if(i){const s={id:t.id,player_name:i.stringFullName,position:t.position,is_female:(i==null?void 0:i.is_female)||0,team_id:(a=i==null?void 0:i.teamName[0])==null?void 0:a.team_id,nationality:i.stringNationalityName,photo:i.stringImageUrl,countryFlag:i.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var o,a;const i=(o=this.cachedPlayersMap)==null?void 0:o.get(t.id||t.player_id);if(i){const s={player_id:i.numberId,name:i.stringFullName,position:i.numberPositionId,is_female:(i==null?void 0:i.is_female)||0,dob:"",team_id:(a=i==null?void 0:i.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:i.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let o=[t.id],a=t.team_id;const i={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o,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",i)},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,o,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:o||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=Ge.create({headers:{Authorization:`${this.token}`}}),{data:o}=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<o.length;s++){o[s];let r=o[s].dob.split("T")[0].split("-");var i={position:s+1,player_name:this.abrevName(o[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[s].player_id+".png",total:o[s].total.toFixed(0),id:o[s].player_id,player_age:this.calcularEdad(o[s].dob),team_abrev:o[s].teams[0].acronym,team_name:o[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o[s].teams[0].team_id+".png",player_position:o[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[s].nationality_id+".jpg",date:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:o[s].team_id,nationality_name:Ra[o[s].nationality_id],player_games:o[s].games_played,player_min:o[s].minutes_played,league_name:o[s].tournament_name,seasons:o[s].seasons,season_id:o[s].seasons[0]};this.rowScoutingData.push(i)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let r=0;r<s.teams.length;r++)this.teamsscouting.push({id:s.teams[r].team_id,team:s.teams[r].colloquial_name,logo:s.teams[r].logo})}this.loadingActive=!1},abrevName(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},calcularEdad(t){var o=new Date(t),a=new Date,i=a-o,s=Math.floor(i/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var o;const a=t.find(n=>n.isSelected),i=a?a.id:null,s=a?a.name:null,r=((o=a==null?void 0:a.seasons[0])==null?void 0:o.id)||null;var l=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");l!==-1?this.arrayFiltersPlays[l].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),i!==null&&r!==null&&(this.seasonActive=r,this.selectedTournament=i,this.tournamentSelectedObj={propName:"id",value:i,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",r),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.length;a++)t[a].isSelected&&o.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),o.length==0&&(o=[1]),o.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,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[i,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 o=[];if(t.hasOwnProperty("nationalities")){for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=o},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 o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filterScounting.categories=o,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 o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(i=>i.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 o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(a!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].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 o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,o){return Math.floor(Math.random()*(o-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 o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(t){var o=this.arrayFiltersPlays.findIndex(i=>i.type===t);if(o!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,r)=>r+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<i.teams.length;s++)this.teamsscouting.push({id:i.teams[s].team_id,team:i.teams[s].colloquial_name,logo:i.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.categoriesPlaysTypes.offensive.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.categoriesPlaysTypes.defensive.categories[i].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.categoriesPlaysTypes.possession.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.categoriesPlaysTypes.offenses.categories[i].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 i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].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(i=>i.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].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(Fe.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(Fe.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(Fe.AGE_RANGE)):t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Fe.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(Fe.ELIGIBILITY)}this.arrayFiltersPlays.splice(o,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 o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(o=>o.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 o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let l=0;l<t.playingAs.length;l++)if(t.playingAs[l].isSelected){const n=t.playingAs[l].name=="Local"?1:2;o.push(n)}for(let l=0;l<t.gameSections.length;l++)t.gameSections[l].isSelected&&a.push(t.gameSections[l].value);this.fVsections=a,this.fVplayingAs=o,this.fvTypeStats=t.statisticType;var i=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?i!=-1&&this.arrayFiltersPlays.splice(i,1):i!=-1?this.arrayFiltersPlays[i].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTime"),r="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(r+=", 0-15"),this.fVsections.includes(2)&&(r+=", 15-30"),this.fVsections.includes(3)&&(r+=", 30-45"),this.fVsections.includes(4)&&(r+=", 45-60"),this.fVsections.includes(5)&&(r+=", 60-75"),this.fVsections.includes(6)&&(r+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=r:this.arrayFiltersPlays.push({name:r,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,i)=>i+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(Fe.All),a.clearFilters(Fe.AGE_RANGE),a.clearFilters(Fe.YEAR),a.clearFilters(Fe.NATIONALITY),a.clearFilters(Fe.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 o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo})},onFiltersData(t){var o=0,a=0;t.ageByRange?(t.ageByRange.min==0?o=1:o=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[o,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let i="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let y=0;y<t.nationalities.length;y++)t.nationalities[y].isSelected&&this.fVnationalities.add(t.nationalities[y].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y])}else this.FVeligible=!1;for(let y=0;y<t.positions.length;y++)t.positions[y].isSelected&&this.fVsetPositionsIds.push(t.positions[y].id);if(t.hasOwnProperty("nationalities"))var r=t.nationalities.filter(y=>y.isSelected===!0);var l=t.positions.filter(y=>y.isSelected===!0);if(l.length==1&&(i=l[0].name),t.hasOwnProperty("nationalities")&&r.length==1&&(s=r[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var c=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersPosition");c!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[c].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i:this.arrayFiltersPlays.splice(c,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i,type:"onFiltersPosition"})}if(t.hasOwnProperty("ageLimits")){if(this.arrayFiltersPlays=this.arrayFiltersPlays.filter(y=>y.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 d=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");d!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[d].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(d,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 d=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersAge");d!=-1&&this.arrayFiltersPlays.splice(d,1)}}else if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var m=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");m!=-1?this.arrayFiltersPlays[m].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 u=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");u!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[u].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(u,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(Fe.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 o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(o){console.error("Error changing tabs:",o),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 o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(o!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,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=Ge.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.get(this.tournamentsUrl);return o},async fetchTeams(){const t=Ge.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(t){const o=Ge.create({headers:{Authorization:`${this.token}`}}),{data:a}=await o.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";t.id==1?o=this.urlFilter:o=this.urlFilter;const a=Ge.create({headers:{Authorization:`${this.token}`}}),{data:i}=await a.get(o+t.id);if(Object.keys(i[0].match_lapse_combinations).forEach(u=>{this.predefinedFiltersMatchLapse[u.toString()]=i[0].match_lapse_combinations[u]}),Object.keys(i[0].playing_as_combinations).forEach(u=>{this.predefinedFiltersPlayingAs[u.toString()]=i[0].playing_as_combinations[u]}),Object.keys(i[0].field_sections_combinations).forEach(u=>{this.predefinedFiltersSections[u.toString()]=i[0].field_sections_combinations[u]}),i[0]){for(let u=0;u<i[0].filter_records.length;u++){var s=i[0].description;if(i[0].filter_records[u].field_sections!==void 0){const p=i[0].filter_records[u].field_sections.toString();(this.predefinedFiltersSections[p]||this.predefinedFiltersSections[p]=="")&&(this.predefinedFiltersSections[p]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[p]):s=s.replace("{field_sections}",this.predefinedFiltersSections[p]))}if(i[0].filter_records[u].match_lapse!==void 0){const p=i[0].filter_records[u].match_lapse.toString();(this.predefinedFiltersMatchLapse[p]||this.predefinedFiltersMatchLapse[p]=="")&&(this.predefinedFiltersMatchLapse[p]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[p]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[p]))}if(i[0].filter_records[u].playing_as!==void 0){const p=i[0].filter_records[u].playing_as.toString();(this.predefinedFiltersPlayingAs[p]||this.predefinedFiltersPlayingAs[p]=="")&&(this.predefinedFiltersPlayingAs[p]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[p]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[p]))}i[0].filter_records[u].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}",i[0].category_name);const y=s.split(": ");var r=y[1];r.length>129&&this.windowWidth>1358&&(r=r.substring(0,129),r=r+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||i[0].filter_records[u].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:u,category_name:t.name,id_category:i[0].id,title:y[0]+":",text:y[1],textOrigin:i[0].description,titledots:r,filtersPredefined:{matchResult:i[0].filter_records[u].match_result,playingAs:i[0].filter_records[u].playing_as,sections:i[0].filter_records[u].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[u].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let u=0;u<this.arrayPredefinedFilters.length;u++){var n=0,c=new Set,d={},m=this.arrayPredefinedFilters[u].text.replace(/\*.*?\*/,"");if(m=m.replace(/\*/g,""),m=m.replace(/ +/g," "),this.arrayPredefinedFilters[u].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[u].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[u].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[u].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[u].filtersPredefined.start_age,this.arrayPredefinedFilters[u].filtersPredefined.end_age]:this.arrayPredefinedFilters[u].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[u].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[u].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[u].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[u].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[u].filtersPredefined.end_age],this.arrayPredefinedFilters[u].filtersPredefined.matchResult.length!=3&&(n+=1),d.matchResult=this.arrayPredefinedFilters[u].filtersPredefined.matchResult,this.arrayPredefinedFilters[u].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[u].filtersPredefined.nationalities.length;y++)c.add(this.arrayPredefinedFilters[u].filtersPredefined.nationalities[y]);d.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),d.setNationalitiesIds=c;this.arrayPredefinedFilters[u].filtersPredefined.playingAs.length!=2&&(n+=1),d.playingAs=this.arrayPredefinedFilters[u].filtersPredefined.playingAs,this.arrayPredefinedFilters[u].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[u].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[u].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[u].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[u].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[u].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[u].filtersPredefined.typeZone,l.push({id:u+1,name:m,isSelected:!1,value:n,filters:d})}this.FVfilterGolstats=l,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((m,u)=>m-u).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections[o]):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 i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[i]||this.predefinedFiltersMatchLapse[i]=="")this.predefinedFiltersMatchLapse[i]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";i.includes(1)&&(s=s+"0-15, "),i.includes(2)&&(s=s+"16-30, "),i.includes(3)&&(s=s+"31-45, "),i.includes(4)&&(s=s+"46-60, "),i.includes(5)&&(s=s+"61-75, "),i.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[r]||this.predefinedFiltersPlayingAs[r]=="")&&(this.predefinedFiltersPlayingAs[r]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[r]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[r])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const l=t.split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),c=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const d=c.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let m=1;m<=d.length;m++)m%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=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:Ra[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(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},processPreloadedTops(t){const o={},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`}])),i=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=i,t.tops.forEach(s=>{const r=s.category;o[r]||(o[r]={teams:[],players:[]}),s.teams&&(o[r].teams=s.teams.map((l,n)=>{const c=a.get(l[0])||{};return{id:c.id,name:c.name,img:c.logo,total:l[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(o[r].players=s.players.map((l,n)=>{var c,d,m,u,y,p,h,f,g,_;const b=i.get(l[0])||{};return{age:b.numberAge,categoryName:s.name,country:(d=(c=b.countryId)==null?void 0:c[0])==null?void 0:d.nationality_id,date:b.date,effectiveness:b.effectiveness||0,games:b.games,id:l[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${l[0]}.png`,minutes:b.min,name:b.stringFullName,name_short:b.stringFullName,nationality:b.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(u=(m=b.countryId)==null?void 0:m[0])==null?void 0:u.nationality_id}.jpg`,position:b.position_short,positionId:b.numberPositionId,positionfull:this.positions[b.numberPositionId-1],team:((p=(y=b.teamName)==null?void 0:y[0])==null?void 0:p.acronym)||"",teamid:((f=(h=b.teamName)==null?void 0:h[0])==null?void 0:f.team_id)||"",teamname:((_=(g=b.teamName)==null?void 0:g[0])==null?void 0:_.acronym)||"",top:String(n+1).padStart(2,"0"),total:l[1]}}))}),o},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=Ge.create({headers:{Authorization:`${this.token}`}}),o=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(o);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,o){return`${t}-${o}`},async getTopData(t,o){const a=this.getCacheKey(t,o);if(this.topsCache.has(a))return this.topsCache.get(a);const i=Ge.create({headers:{Authorization:`${this.token}`}}),{data:s}=await i.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${o}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),o=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(o.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 Ge.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)}}},tWe={ref:"myDivRefTopsFull",class:"play-tops"},aWe={key:0,class:"overlay-loading"},oWe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),iWe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),sWe=[oWe,iWe],rWe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),lWe=[rWe],nWe={style:{display:"contents"}},dWe={style:{display:"contents"}},cWe={key:0,class:"cont-leyemd-multipleleagues"},pWe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),mWe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},uWe={key:0,style:{"margin-left":"10px"}},fWe=e.createElementVNode("span",null,"Todas las categorías",-1),hWe=[fWe],yWe=e.createElementVNode("span",null,"Tipo de Jugada",-1),gWe=e.createElementVNode("span",null,"Filtro GolStats",-1),bWe={key:3,style:{width:"100%",height:"295px"}};function _We(t,o,a,i,s,r){var l,n,c;const d=e.resolveComponent("GSCTournamentSelect"),m=e.resolveComponent("GSCSeasonSelect"),u=e.resolveComponent("GscSwitchComponent"),y=e.resolveComponent("GSCFilterperteam"),p=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),f=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),_=e.resolveComponent("GSCTopCategory"),b=e.resolveComponent("GSCTableHeader"),T=e.resolveComponent("GSCRowTable"),R=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",tWe,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",aWe,sWe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[i.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[i.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(d,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:r.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(m,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[i.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(u,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[i.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(d,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:r.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(m,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(y,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),i.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:o[0]||(o[0]=(...P)=>r.clickOpenFilters&&r.clickOpenFilters(...P))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:on},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?"":i.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...P)=>r.clickCloseFilters&&r.clickCloseFilters(...P))},lWe,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:o[2]||(o[2]=(...P)=>r.openMenuFilters&&r.openMenuFilters(...P))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:on},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:wb},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:o[3]||(o[3]=(...P)=>r.openMenuFilters&&r.openMenuFilters(...P))},null,6),[[e.vShow,i.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},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(i.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:o[4]||(o[4]=(...P)=>r.toggleAdvancedView&&r.toggleAdvancedView(...P))},[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;":i.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(p,e.mergeProps({key:0,"button-filter-props":s.isAvanced?r.filterButtonPropsTournaments:r.filterButtonProps,width:"100%"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.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":r.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",nWe,[e.createElementVNode("div",{style:e.normalizeStyle((i.elementSize.width>=768,"width: 61px;"))},"Posición:",4),e.createElementVNode("div",{style:e.normalizeStyle(i.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(h,{"dropdown-props":s.dropdownProps,positions:(l=s.personalDataFilters)==null?void 0:l.positions,onChangePositions:r.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((i.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(i.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(f,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(c=s.personalDataFilters)==null?void 0:c.selectedYear,onChangeYear:r.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",dWe,[e.withDirectives(e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:r.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(p,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":r.filterButtonPropsTournaments,filters:s.personalDataFilters},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.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":r.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},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.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":r.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":r.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:o[5]||(o[5]=(...P)=>r.getScoutingData&&r.getScoutingData(...P))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":r.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(p,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":r.onFiltersGolStats,filters:r.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,i.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",cWe,[pWe,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(y,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:r.clickTeamScouting,onClickAll:r.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",mWe," 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",uWe,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(P,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":P.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteLabelFilter,id:P.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:i.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(P=>P.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:o[6]||(o[6]=(...P)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...P))}," 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)},hWe,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,(P,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(P.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:r.onShowFullTable,"border-width":0,preload:s.preloadedTops[P.id],"border-radius":"12px","filters-prop":r.filterChange,category:P.id,"type-table":s.typeTable,categoryName:P.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.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(P.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":r.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.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":r.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.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},[yWe,e.createTextVNode(" y un "),gWe,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(b,{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,(P,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:A},[s.teamselectrec==0||s.teamselectrec==P.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{type:2,"is-expanded":s.playerexpand==P.id&&s.expand,onMediadata:r.setMediaData,data:{position:P.position,player_name:P.player_name,player_photo:P.player_photo,total:P.total,id:P.id,player_age:P.player_age,team_abrev:P.team_abrev,team_logo:P.team_logo,player_position:s.positions[P.player_position-1].fullname,player_country_flag:P.player_country_flag,player_games:P.player_games,player_min:P.player_min,league_name:P.league_name,seasons:P.seasons,season_id:P.season_id},height:"71px",background:A%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==P.id?(e.openBlock(),e.createBlock(R,{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:P.team_name,age:P.player_age,dataofbirth:P.date,nationality:P.nationality_name,countryFlag:P.player_country_flag,position:s.positions[P.player_position-1].name,games:P.player_games,min:P.player_min,goals:P.total,effectiveness:"-",category:"total",id:P.id},onViewprofile:G=>r.viewprofile(G,P.season_id,P.team_id),background:A%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:o[7]||(o[7]=(...P)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...P))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:o[8]||(o[8]=(...P)=>r.getScoutingData&&r.getScoutingData(...P))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",bWe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const SWe={$style:ZUe},wWe=ot(eWe,[["render",_We],["__cssModules",SWe]]),CWe=e.ref(_b()),kWe=e.ref(Sb()),EWe={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0},templates:{type:Array,default:()=>[]},hidePersonalizableVariables:{type:Boolean,default:!1}},components:{GscSwitchComponent:Dp,GSCRadioToggle:nNe,ModalAddPlayList:vNe,DropdownTemplates:IEe,GSCTableScrollable:WAe,GSCFilters:h1,ModalAddLista:eTe,DropdownYears:bb,DropdownPositions:yb,PlayTops:wWe,ModalViewVarGolstats:PMe},computed:{filterButtonProps(){return{...CWe.value}},filterButtonPropsTournamentsAdvanced(){return{...kWe.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:6,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:6,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:D,personalDataFilters:yi,personalDataSubFiltersTypes:Fe,tournamentsToFilter:tTe,tournamentsToFilterVariables:aTe,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,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"),o=e.ref(null),a=e.ref(null),{elementSize:i}=jt(t),{elementSize:s}=jt(o),{elementSize:r}=jt(a);return{myDivRefTopsBestPlay:t,midLayoutRef:o,filterBoxRef:a,elementSize:i,midLayoutSize:s,filterBoxSize:r}},created(){},async mounted(){try{await this.fillPersonalDataFilters(),this.isSearchActive=!0,!this.hasTemplates||this.hidePersonalizableVariables?(this.selectedRadioOption="Info general",delete this.filtersObject.template_id,this.showVariables=!1,this.checkSearchButton()):await new Promise(t=>{const o=()=>{this.filtersObject.template_id?t(!0):setTimeout(o,100)};o()}),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",{data:t,templateId:this.selectedRadioOption==="Info general"||this.optionSelected==="Por jugada"?null:this.currentTemplateId})},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),o=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==o},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(o=>o.isSelected).map(o=>o.id),this.seasonsArray=t.filter(o=>o.isSelected).map(o=>({id:o.seasons[0].id,tournamentId:o.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[i,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 o=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=o,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 o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filtersObject.categories=o,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(o=>o.isSelected&&o.id!==0).map(o=>o.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(o=>({objeto_player:o,player_photo:o.photo,player_name:o.acronym,player_age:this.calculateAge(o.dob),team_abrev:o.teams[0].acronym,jersey:o.jersey||"",nationality:o.nationality,team_name:o.team_name,is_female:o.is_female||0,parameters:o.internal_parameters,position_name:this.positions[o.position_id-1].fullname,player_position:this.positions[o.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${o.nationality_id}.jpg`,player_games:o.games_played,player_min:o.minutes_played,nationality_name:Ra[o.nationality_id],league_name:o.tournament_name,seasons:o.seasons,season_id:o.seasons[0],stats:o.stats?o.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 o=new Date(t),a=new Date;let i=a.getFullYear()-o.getFullYear();const s=a.getMonth()-o.getMonth();return(s<0||s===0&&a.getDate()<o.getDate())&&i--,i},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(),this.toggleSearch())):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t?(this.currentTemplateId=t.id,this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton(),this.toggleSearch()):this.currentTemplateId=null},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 o=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));o&&t.push(o.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 o=this.filtersObject.nationalities.length;o===1?t.push("Nacionalidad "+Ra[this.filtersObject.nationalities[0]]):t.push(`${o} 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 o=this.positions.find(a=>a.id===this.filtersObject.positions[0]);o&&t.push(o.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!==6&&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 o=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(o)}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",{data:this.formattedPlayers,templateId:this.selectedRadioOption==="Info general"||this.optionSelected==="Por jugada"?null:this.currentTemplateId})}}},Ta=t=>(e.pushScopeId("data-v-63d6c34b"),t=t(),e.popScopeId(),t),VWe={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},xWe={class:"overlay-loading"},NWe=Ta(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),TWe=Ta(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),BWe=[NWe,TWe],FWe={class:"strip-menu"},PWe={class:"strip-options-vars"},$We={key:0,class:"desktop-layout"},AWe={class:"left-containers"},MWe={class:"filter-container filter-container-variables container-372"},IWe={key:0,class:"filter-container filter-container-variables container-291"},zWe=Ta(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),OWe={class:"variables-indicator"},RWe=Ta(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),LWe={class:"filter-container-box"},DWe=Ta(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),vWe={class:"filter-container-box-2"},jWe=Ta(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),UWe={class:"filter-container-box-3"},WWe={class:"advanced-row-top"},GWe=Ta(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),HWe={class:"stats-section"},qWe={class:"filters-applied"},JWe=Ta(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),YWe={class:"filters-tags-wrapper"},ZWe={class:"filters-tags"},KWe=Ta(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),XWe={key:0,class:"no-results"},QWe={key:1,class:"content-container"};function eGe(t,o,a,i,s,r){const l=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("ModalAddPlayList"),c=e.resolveComponent("ModalAddLista"),d=e.resolveComponent("GscSwitchComponent"),m=e.resolveComponent("GSCRadioToggle"),u=e.resolveComponent("DropdownTemplates"),y=e.resolveComponent("GSCFilters"),p=e.resolveComponent("DropdownPositions"),h=e.resolveComponent("DropdownYears"),f=e.resolveComponent("GSCTableScrollable"),g=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{isVisible:s.showModal,"onUpdate:isVisible":o[0]||(o[0]=_=>s.showModal=_),onClose:r.closeModal,parameters:s.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",VWe,[e.createVNode(n,{isVisible:s.visibleModalAddPlaylist,onClose:r.closeModalAddPlaylist,"user-id":a.userId,onCreateList:r.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(c,{isVisible:s.showCreatePlaylistModal,onClose:r.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",xWe,BWe,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",FWe,[e.createVNode(d,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":r.sizeTabsFontMP,width:r.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",PWe,[i.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",$We,[e.createElementVNode("div",AWe,[e.createElementVNode("div",MWe,[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(m,{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:r.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",IWe,[zWe,e.createElementVNode("div",OWe,[e.createVNode(u,{"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:r.onChangeTemplate},null,8,["dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:o[1]||(o[1]=(..._)=>r.toggleAdvanced&&r.toggleAdvanced(..._))},e.toDisplayString(r.advancedText),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":i.elementSize.width<=480,"mid-layout":i.elementSize.width<=780&&i.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":i.elementSize.width<=780&&i.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":i.elementSize.width<=480}])},[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(m,{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:r.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),i.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":i.elementSize.width<=480}]),onClick:o[2]||(o[2]=(..._)=>r.toggleAdvanced&&r.toggleAdvanced(..._))},e.toDisplayString(r.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":i.elementSize.width<=480,"mid-container":i.elementSize.width<=780&&i.elementSize.width>480,"container-292":i.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":i.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":i.elementSize.width<=480}])},[e.createVNode(u,{"team-id":a.teamId,onChangeTemplate:r.onChangeTemplate},null,8,["team-id","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),i.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":i.elementSize.width<=480}]),onClick:o[3]||(o[3]=(..._)=>r.toggleAdvanced&&r.toggleAdvanced(..._))},e.toDisplayString(r.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var _,b;return[s.showAdvanced?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":i.elementSize.width<=890,"layout-480":i.elementSize.width<=480}])},[e.createElementVNode("div",WWe,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({width:"99.7%","button-filter-props":r.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":r.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":""},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":r.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":r.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":i.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:o[5]||(o[5]=(...T)=>r.toggleSearch&&r.toggleSearch(...T))},"Buscar",2)],2)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":i.elementSize.width<=780,"gap-reduced-850":i.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":i.elementSize.width<=780,"stack-vertical":i.elementSize.width<=480,"gap-reduced-850":i.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced-tournament":i.elementSize.width<=1e3}])},[RWe,e.createElementVNode("div",LWe,[e.createVNode(y,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":r.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.tournamentsToFilter,"onUpdate:filters":r.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":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced-position":i.elementSize.width<=1e3}])},[DWe,e.createElementVNode("div",vWe,[e.createVNode(p,{"dropdown-props":s.dropdownProps,positions:(_=s.personalDataFilters)==null?void 0:_.positions,onChangePositions:r.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":i.elementSize.width<=780,"stack-vertical":i.elementSize.width<=480,"gap-reduced-850":i.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced":i.elementSize.width<=1e3}])},[jWe,e.createElementVNode("div",UWe,[e.createVNode(h,{"dropdown-props":s.dropdownProps,years:(b=s.personalDataFilters)==null?void 0:b.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:r.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:o[4]||(o[4]=(...T)=>r.toggleSearch&&r.toggleSearch(...T))},"Buscar",2)],2)],2)],2))]}),_:1}),GWe,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":i.elementSize.width<=780}])},[e.createElementVNode("div",HWe,[e.createElementVNode("div",qWe,[JWe,e.createElementVNode("div",YWe,[e.createElementVNode("div",ZWe,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(_,b)=>(e.openBlock(),e.createElementBlock("span",{key:b,class:"filter-tag"},e.toDisplayString(_),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":i.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:o[6]||(o[6]=(..._)=>r.handleCompareClick&&r.handleCompareClick(..._))},[e.createTextVNode(" Comparar jugadores "),KWe])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",XWe," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",QWe,[e.createVNode(f,{players:s.formattedPlayers,"is-general":s.showtableType,onViewProfile:r.onViewProfile,onAddToList:r.onAddToList,onShowGraph:r.onShowGraph,onOpenMedia:r.onOpenMedia,onClickParameters:r.onClickParameters},null,8,["players","is-general","onViewProfile","onAddToList","onShowGraph","onOpenMedia","onClickParameters"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(g,{key:1,onChangeSeasonId:r.changeSeasonId,onOpenmedia:r.onOpenMedia,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded,onShowGraph:r.onShowGraph,onAddPlayer:r.onAddPlayer},null,8,["onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)],64)}const tGe=ot(EWe,[["render",eGe],["__scopeId","data-v-63d6c34b"]]),aGe={name:"SwitchTopsType",components:{TopsFull:oNe,TopsBestAndPlay:tGe},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},hidePersonalizableVariables:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzQwNDcsIm5hbWUiOiJHb2xTdGF0cyBTYW50b3MiLCJ1c2VybmFtZSI6Imdzc2FudG9zIiwiZW1haWwiOiIiLCJwcm92aWRlcl9pZCI6MSwibG9naW5fZ29sc3RhdHMiOjEsImlhdCI6MTc0NjIyMjQ3NCwiZXhwIjoxNzc3NzU4NDc0fQ.fga__q8pm-HbeHeNPWOqz32n8xkE_zcVPiPu8NTAiOM"}},methods:{async fetchTemplates(){var t;try{const o=await Ge.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/teams/${this.teamId}/templates?general=1&onlyPublic=1`+(this.hidePersonalizableVariables?"&onlyGeneral=1":""));(t=o.data)!=null&&t.data&&Array.isArray(o.data.data)&&o.data.data.length>0?(this.templates=o.data,this.hasTemplates=!0):(this.templates=[],this.hasTemplates=!1)}catch(o){console.error("Error al obtener templates:",o),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 oGe(t,o,a,i,s,r){const l=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(l,{key:0,onChangeSeasonId:r.changeSeasonId,onOpenMedia:r.onOpenMedia,onOpenmedia:r.onOpenMedia,"team-id":a.teamId,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded},null,8,["onChangeSeasonId","onOpenMedia","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:r.onOpenMedia,onShowGraph:r.onShowGraph,onComparePlayers:r.comparePlayers,onOpenProfilePlayer:r.onOpenProfilePlayer,onAddToList:r.onAddToList,onChangeSeasonId:r.changeSeasonId,onOpenProfileTeam:r.openProfileTeam,onTopsLoaded:r.topsLoaded,"user-id":a.userId,"hide-personalizable-variables":a.hidePersonalizableVariables},null,8,["team-id","has-templates","templates","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id","hide-personalizable-variables"])):e.createCommentVNode("",!0)])}const iGe=ot(aGe,[["render",oGe]]),sGe={class:"elegibles"},n4=Ei(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1},hidePersonalizableVariables:{type:Boolean,default:!1}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:o}){const a=t,i=m=>{o("openmedia",m)},s=m=>{o("open-profile-team",m)},r=m=>{o("open-profile-player",m)};function l(m){o("showGraph",m)}function n(m){o("change-season-id",m)}function c(m){o("tops-loaded",m)}function d(m){o("comparePlayers",m)}return(m,u)=>(e.openBlock(),e.createElementBlock("div",sGe,[e.createVNode(e.unref(iGe),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores","hide-personalizable-variables":t.hidePersonalizableVariables,onOpenmedia:i,onComparePlayers:d,onOpenMedia:i,onOpenProfileTeam:s,onOpenProfilePlayer:r,onShowGraph:l,onChangeSeasonId:n,onTopsLoaded:c},null,8,["user-id","team-id","hide-personalizable-variables"])]))}}),[["__scopeId","data-v-fc818971"]]),rGe=(t=>(e.pushScopeId("data-v-5ab76500"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),lGe={class:""},nGe={class:""},dGe={class:"tabs"},cGe=Ei({__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},areFemaleTeamsExcluded:{type:Boolean,default:!1},hidePersonalizableVariables:{type:Boolean,default:!1}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:o}){const a=t,i={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","Listas de seguimiento","Última convocatoria"]:["Detección de jugadores","Listas de seguimiento"],r=e.ref("Detección de jugadores"),l=e.ref({width:0}),n=e.ref(null),c=e.ref(0),d=e.ref(0),m=e.ref([]),u=e.ref([]),y=e.ref(!1),p=e.ref(!1),h=e.ref({}),f=e.ref([]),g=e.ref({}),_=e.ref({});e.watch(()=>a.tournamentId,w=>{w&&R()},{immediate:!0}),e.watch(()=>a.teamId,async w=>{w&&(await T(),await R())},{immediate:!0});const b=w=>{r.value=w};async function T(){try{const w=[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}})],[H,S]=await Promise.all(w);let E=await H.json();const re=await S.json();a.areFemaleTeamsExcluded&&(E=E.filter(pe=>!pe.team_name.toLowerCase().includes("femenil"))),E.forEach(pe=>{pe.seasonsIds=new Set(pe.seasons.map(ye=>ye.id)),pe.availableTournaments=pe.seasonsIds?re.reduce((ye,fe)=>{if(fe.seasons.some(B=>pe.seasonsIds.has(B.id))){const B=fe.seasons.filter(z=>pe.seasonsIds.has(z.id));ye.push({...fe.tournament,seasons:pe.seasons.reduce((z,M)=>(B.forEach(ce=>{ce.id===M.id&&z.push(M)}),z),[]),seasonsIds:pe.seasonsIds,teamId:pe.team_id})}return ye},[]):[]}),f.value=E.filter(pe=>pe.availableTournaments.length>0),g.value=f.value[0]}catch(w){console.error(w)}}async function R(){try{if(c.value!==a.tournamentId||d.value!==a.teamId){const w=[A()];c.value=a.tournamentId,d.value=a.teamId;const[H]=await Promise.all(w);u.value=H}}catch(w){console.error("Error filling data",w)}}function P(){G().then(w=>{m.value=w})}async function A(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/in-followed/teams/${a.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(w){console.error("Error fetching in followed",w)}}async function G(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${h.value.id}/teams/${h.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(w){console.error("Error fetching last called",w)}}const N=()=>{n.value&&(l.value.width=n.value.offsetWidth,y.value=l.value.width<700,p.value=l.value.width<420)};e.onMounted(()=>{N();const w=new ResizeObserver(N);n.value&&w.observe(n.value)});const q=e.computed(()=>{const w=l.value.width;return w<=560?"170px":(w<=650||w<=768,"225px")}),F=e.computed(()=>{const w=l.value.width;return w<=460?"12px":w<=650?"13px":w<=768?"14px":"16px"});e.computed(()=>l.value.width<=380?"18px":"22px");const C=e.computed(()=>{switch(r.value){case"Detección de jugadores":return n4;case"Listas de seguimiento":return dde;case"Última convocatoria":return Y6;default:return n4}}),V=e.computed(()=>p.value||y.value?"100%":"179px"),x=w=>{o("openmedia",w)},O=w=>{o("showGraph",w)},se=w=>{o("open-profile-team",w)},me=w=>{o("open-profile-player",w)},he=w=>{o("open-profile-player",w)},k=w=>{o("comparePlayers",w)};function $(w){o("change-season-id",w)}function W(w){o("tops-loaded",w)}async function I(){if(h.value.friendlyGames&&h.value.friendlyGames.length>0)try{const H=await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/games/${_.value.game_id}/teams/${g.value.team_id}`,{method:"GET",headers:{Authorization:a.token}})).json();m.value=H.players||[]}catch(w){console.error("Error fetching last called players by game",w)}}function L(w){_.value=w,I()}async function ne(w){const H=w.name.toLowerCase();w.isFriendly=H.includes("friend"),w.isFriendly&&!w.friendlyGames&&(w.friendlyGames=w.seasons.reduce((S,E)=>(E.games&&(S=[...S,...E.games]),S),[])),h.value=w,h.value.friendlyGames?(_.value=h.value.friendlyGames[0],await I()):P()}function le(w){g.value=w}function U(w){g.value=w}return(w,H)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":y.value}])},[rGe,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":y.value}])},[t.isSeleccionUser&&r.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[e.createVNode(e.unref(am),e.mergeProps(i,{"model-value":g.value,items:f.value,onInput:le,"onUpdate:modelValue":U}),{default:e.withCtx(({selectedItem:S})=>[e.createElementVNode("div",lGe,e.toDisplayString(S.team_name),1)]),availableItem:e.withCtx(({item:S})=>[e.createElementVNode("div",null,e.toDisplayString(S.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(p6),{key:0,items:g.value.availableTournaments,width:V.value,onInput:ne},null,8,["items","width"])):e.createCommentVNode("",!0)],2),h.value.friendlyGames?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[e.createVNode(e.unref(am),e.mergeProps(i,{width:"250px","model-value":_.value,items:h.value.friendlyGames,onInput:L}),{default:e.withCtx(({selectedItem:S})=>[e.createElementVNode("div",nGe,e.toDisplayString(S.game),1)]),availableItem:e.withCtx(({item:S})=>[e.createElementVNode("div",null,e.toDisplayString(S.game),1)]),_:1},16,["model-value","items"])],2)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",dGe,[e.createVNode(e.unref(A6),{type:2,buttons:e.unref(s),"font-family":"Poppins-Medium","selected-option":r.value,"font-size":F.value,width:q.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:b},null,8,["buttons","selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":r.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value),{"parent-width":l.value.width,"user-id":a.userId,"team-id":a.teamId,"user-team-id":a.userTeamId,"last-called-players":m.value,"in-followed-players":u.value,"hide-personalizable-variables":t.hidePersonalizableVariables,onShowGraph:O,onShowProfile:he,onOpenmedia:x,onOpenMedia:x,onOpenProfileTeam:se,onOpenProfilePlayer:me,onChangeSeasonId:$,onTopsLoaded:W,onComparePlayers:k},null,40,["parent-width","user-id","team-id","user-team-id","last-called-players","in-followed-players","hide-personalizable-variables"]))],2)],512))}},[["__scopeId","data-v-5ab76500"]]),pGe={class:"subcategory-group"},mGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",pGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref($e),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},uGe=ze(mGe,[["__scopeId","data-v-ae6f3d72"]]),fGe={class:"filter-subcategories"},hGe=Object.freeze(Object.defineProperty({__proto__:null,default:ze({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",fGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(uGe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Fn=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),yGe={class:"details__header"},gGe=Fn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),bGe={class:"details__header__checkbox"},_Ge={class:"details__body"},SGe={class:"details__body__playing-as"},wGe=["onClick"],CGe={class:"details__header"},kGe=Fn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),EGe={class:"details__header__checkbox"},VGe={class:"details__body"},xGe=Fn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),NGe={class:"details__body__game-section"},TGe=["onClick"],BGe={class:"details__body"},FGe=Fn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),PGe={class:"details__body__game-section"},$Ge=["onClick"],AGe=Object.freeze(Object.defineProperty({__proto__:null,default:ze({__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 o=t;e.useCssVars(m=>({"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(()=>o.playingAs.every(m=>m.isSelected)),i=e.computed(()=>o.gameSections.every(m=>m.isSelected)),s=e.computed(()=>o.gameSections.reduce((m,u)=>(u.value<=3?m.firstHalf.push(u):m.secondHalf.push(u),m),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(m){m?o.playingAs.forEach(u=>{u.isSelected=!0}):o.playingAs.forEach((u,y)=>{u.isSelected=y===0})}function n(m){o.playingAs.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function c(m){o.gameSections.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function d(m){m?o.gameSections.forEach(u=>{u.isSelected=!0}):o.gameSections.forEach((u,y)=>{u.isSelected=y===0})}return(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",yGe,[gGe,e.createElementVNode("div",bGe,[e.createVNode(e.unref($e),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",_Ge,[e.createElementVNode("div",SGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,wGe))),128))])]),e.createElementVNode("div",CGe,[kGe,e.createElementVNode("div",EGe,[e.createVNode(e.unref($e),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",VGe,[xGe,e.createElementVNode("div",NGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,TGe))),128))])]),e.createElementVNode("div",BGe,[FGe,e.createElementVNode("div",PGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,$Ge))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),MGe={class:"filter-field"},IGe=Object.freeze(Object.defineProperty({__proto__:null,default:ze({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",MGe,[e.createVNode(e.unref(Th),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),zGe={class:"subcategory-group"},OGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",zGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(Be),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},RGe=Ae(OGe,[["__scopeId","data-v-ae6f3d72"]]),LGe={class:"filter-subcategories"},DGe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",LGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(RGe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Pn=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),vGe={class:"details__header"},jGe=Pn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),UGe={class:"details__header__checkbox"},WGe={class:"details__body"},GGe={class:"details__body__playing-as"},HGe=["onClick"],qGe={class:"details__header"},JGe=Pn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),YGe={class:"details__header__checkbox"},ZGe={class:"details__body"},KGe=Pn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),XGe={class:"details__body__game-section"},QGe=["onClick"],eHe={class:"details__body"},tHe=Pn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),aHe={class:"details__body__game-section"},oHe=["onClick"],iHe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__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 o=t;e.useCssVars(m=>({"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(()=>o.playingAs.every(m=>m.isSelected)),i=e.computed(()=>o.gameSections.every(m=>m.isSelected)),s=e.computed(()=>o.gameSections.reduce((m,u)=>(u.value<=3?m.firstHalf.push(u):m.secondHalf.push(u),m),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(m){m?o.playingAs.forEach(u=>{u.isSelected=!0}):o.playingAs.forEach((u,y)=>{u.isSelected=y===0})}function n(m){o.playingAs.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function c(m){o.gameSections.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function d(m){m?o.gameSections.forEach(u=>{u.isSelected=!0}):o.gameSections.forEach((u,y)=>{u.isSelected=y===0})}return(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",vGe,[jGe,e.createElementVNode("div",UGe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",WGe,[e.createElementVNode("div",GGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,HGe))),128))])]),e.createElementVNode("div",qGe,[JGe,e.createElementVNode("div",YGe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",ZGe,[KGe,e.createElementVNode("div",XGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,QGe))),128))])]),e.createElementVNode("div",eHe,[tHe,e.createElementVNode("div",aHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,oHe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),sHe={class:"filter-field"},rHe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",sHe,[e.createVNode(e.unref(M0),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),lHe={class:"subcategory-group"},nHe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",lHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(Pe),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},dHe=Me(nHe,[["__scopeId","data-v-ae6f3d72"]]),cHe={class:"filter-subcategories"},pHe=Object.freeze(Object.defineProperty({__proto__:null,default:Me({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",cHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(dHe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),$n=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),mHe={class:"details__header"},uHe=$n(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),fHe={class:"details__header__checkbox"},hHe={class:"details__body"},yHe={class:"details__body__playing-as"},gHe=["onClick"],bHe={class:"details__header"},_He=$n(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),SHe={class:"details__header__checkbox"},wHe={class:"details__body"},CHe=$n(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),kHe={class:"details__body__game-section"},EHe=["onClick"],VHe={class:"details__body"},xHe=$n(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),NHe={class:"details__body__game-section"},THe=["onClick"],BHe=Object.freeze(Object.defineProperty({__proto__:null,default:Me({__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 o=t;e.useCssVars(m=>({"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(()=>o.playingAs.every(m=>m.isSelected)),i=e.computed(()=>o.gameSections.every(m=>m.isSelected)),s=e.computed(()=>o.gameSections.reduce((m,u)=>(u.value<=3?m.firstHalf.push(u):m.secondHalf.push(u),m),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(m){m?o.playingAs.forEach(u=>{u.isSelected=!0}):o.playingAs.forEach((u,y)=>{u.isSelected=y===0})}function n(m){o.playingAs.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function c(m){o.gameSections.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function d(m){m?o.gameSections.forEach(u=>{u.isSelected=!0}):o.gameSections.forEach((u,y)=>{u.isSelected=y===0})}return(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",mHe,[uHe,e.createElementVNode("div",fHe,[e.createVNode(e.unref(Pe),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",hHe,[e.createElementVNode("div",yHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,gHe))),128))])]),e.createElementVNode("div",bHe,[_He,e.createElementVNode("div",SHe,[e.createVNode(e.unref(Pe),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",wHe,[CHe,e.createElementVNode("div",kHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,EHe))),128))])]),e.createElementVNode("div",VHe,[xHe,e.createElementVNode("div",NHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,THe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),FHe={class:"filter-field"},PHe=Object.freeze(Object.defineProperty({__proto__:null,default:Me({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",FHe,[e.createVNode(e.unref(b3),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Ga.GSCPlayersTracking=cGe,Object.defineProperty(Ga,Symbol.toStringTag,{value:"Module"})});
64
+ `+s):a.stack=s}catch{}}throw a}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=zo(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:s}=o;a!==void 0&&Tn.assertOptions(a,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),i!=null&&(ie.isFunction(i)?o.paramsSerializer={serialize:i}:Tn.assertOptions(i,{encode:ka.function,serialize:ka.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Tn.assertOptions(o,{baseUrl:ka.spelling("baseURL"),withXsrfToken:ka.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=s&&ie.merge(s.common,s[o.method]);s&&ie.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),o.headers=Rt.concat(r,s);const l=[];let n=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(n=n&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let d,m=0,u;if(!n){const p=[U5.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),u=p.length,d=Promise.resolve(o);m<u;)d=d.then(p[m++],p[m++]);return d}u=l.length;let y=o;for(m=0;m<u;){const p=l[m++],h=l[m++];try{y=p(y)}catch(f){h.call(this,f);break}}try{d=U5.call(this,y)}catch(p){return Promise.reject(p)}for(m=0,u=c.length;m<u;)d=d.then(c[m++],c[m++]);return d}getUri(t){t=zo(this.defaults,t);const o=M5(t.baseURL,t.url,t.allowAbsoluteUrls);return V5(o,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){Oo.prototype[t]=function(o,a){return this.request(zo(a||{},{method:t,url:o,data:(a||{}).data}))}}),ie.forEach(["post","put","patch"],function(t){function o(a){return function(i,s,r){return this.request(zo(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Oo.prototype[t]=o(),Oo.prototype[t+"Form"]=o(!0)});let YPe=class b4{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{i.subscribe(n),r=n}).then(s);return l.cancel=function(){i.unsubscribe(r)},l},o(function(s,r,l){i.reason||(i.reason=new ki(s,r,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const o=new AbortController,a=i=>{o.abort(i)};return this.subscribe(a),o.signal.unsubscribe=()=>this.unsubscribe(a),o.signal}static source(){let o;return{token:new b4(function(a){o=a}),cancel:o}}};function ZPe(t){return function(o){return t.apply(null,o)}}function KPe(t){return ie.isObject(t)&&t.isAxiosError===!0}const W1={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(W1).forEach(([t,o])=>{W1[o]=t});function H5(t){const o=new Oo(t),a=c5(Oo.prototype.request,o);return ie.extend(a,Oo.prototype,o,{allOwnKeys:!0}),ie.extend(a,o,null,{allOwnKeys:!0}),a.create=function(i){return H5(zo(t,i))},a}const Ke=H5(Ns);Ke.Axios=Oo,Ke.CanceledError=ki,Ke.CancelToken=YPe,Ke.isCancel=F5,Ke.VERSION=W5,Ke.toFormData=Cn,Ke.AxiosError=Ne,Ke.Cancel=Ke.CanceledError,Ke.all=function(t){return Promise.all(t)},Ke.spread=ZPe,Ke.isAxiosError=KPe,Ke.mergeConfig=zo,Ke.AxiosHeaders=Rt,Ke.formToJSON=t=>T5(ie.isHTMLForm(t)?new FormData(t):t),Ke.getAdapter=j5.getAdapter,Ke.HttpStatusCode=W1,Ke.default=Ke;const XPe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},QPe={class:"modal-overlay"},e$e={key:0,class:"modal-content"},t$e={class:"modal-select-container"},a$e={class:"modal-input-wrapper"},o$e=["disabled"],i$e={key:0,class:"modal-input-loading"},s$e={key:0,class:"modal-dropdown-empty"},r$e={key:1,class:"modal-dropdown-scroll"},l$e={class:"variable-selection"},n$e=["value","onClick","disabled"],d$e={class:"variable-text"},c$e={class:"modal-dropdown-actions"},p$e={key:1,class:"modal-error"},m$e={key:0,class:"modal-name-error"},u$e={class:"modal-actions"},f$e=["disabled"],q5=3,h$e={__name:"CreateListModal",props:{userId:{type:String,required:!0},token:{type:String,required:!0},lists:{type:Array,default:()=>[]}},emits:["close","createList","listCreated"],setup(t,{emit:o}){const a=o,i=t,s=e.ref(""),r=e.ref(""),l=e.ref([]),n=e.ref(!1),c=e.ref(!1),d=e.ref([]),m=e.ref(!1),u=e.ref(null),y=e.ref(!1),p=e.computed(()=>i.lists.some(C=>C.name.toLowerCase()===s.value.toLowerCase().trim())),h=e.computed(()=>s.value.trim()!==""&&l.value.length>0&&!p.value);function f(){n.value=!n.value}async function g(){var C,V;try{m.value=!0;const x=await Ke.create({headers:{Authorization:`${i.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables`);d.value=x.data.data,l.value=d.value.filter(O=>O.checked)}catch(x){u.value=((V=(C=x.response)==null?void 0:C.data)==null?void 0:V.message)||"Error al obtener las variables",console.error("Error fetching variables:",x)}finally{m.value=!1}}const _=e.computed(()=>{if(!d.value.length)return[];const C=r.value.toLowerCase().trim();return C?d.value.filter(V=>V.name.toLowerCase().includes(C)):d.value});function b(){n.value=!0,y.value=!1}function T(){n.value=!0}function R(){setTimeout(()=>{y.value||(n.value=!1,r.value="")},200)}function P(){r.value="",n.value=!1,y.value=!1}function A(C){if(l.value.includes(C)){if(l.value.length<=q5)return;l.value=l.value.filter(V=>V!==C)}else l.value.push(C)}async function G(){var C,V;try{if(s.value&&l.value.length){const x=Ke.create({headers:{Authorization:`${i.token}`}}),O={user_id:parseInt(i.userId),name:s.value,variables:l.value};console.log("Lo que se guarda es:");const se=await x.post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,O);se.data&&(a("createList",{nombre:s.value,variables:l.value,id:se.data.data.id}),a("listCreated"),s.value="",l.value=[],r.value="",n.value=!1,a("close"))}}catch(x){console.error("Error creating list:",x),u.value=((V=(C=x.response)==null?void 0:C.data)==null?void 0:V.message)||"Error al crear la lista"}}function N(){n.value=!1,a("close")}function q(){document.body.style.overflow="hidden"}function F(){document.body.style.overflow=""}return e.onMounted(async()=>{c.value=!0,n.value=!1,q(),await g()}),e.onUnmounted(()=>{F()}),(C,V)=>(e.openBlock(),e.createElementBlock("div",QPe,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",e$e,[e.createElementVNode("button",{class:"modal-close",onClick:N},"×"),V[7]||(V[7]=e.createElementVNode("div",{class:"modal-title"},[e.createElementVNode("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.3877 4.88909H1.70676C1.11931 4.88909 0.638672 5.35562 0.638672 5.92582C0.638672 6.49602 1.11931 6.96254 1.70676 6.96254H12.3877C12.9751 6.96254 13.4558 6.49602 13.4558 5.92582C13.4558 5.35562 12.9751 4.88909 12.3877 4.88909ZM12.3877 0.742188H1.70676C1.11931 0.742188 0.638672 1.20871 0.638672 1.77891C0.638672 2.34911 1.11931 2.81564 1.70676 2.81564H12.3877C12.9751 2.81564 13.4558 2.34911 13.4558 1.77891C13.4558 1.20871 12.9751 0.742188 12.3877 0.742188ZM17.7281 9.03599V5.92582C17.7281 5.35562 17.2475 4.88909 16.6601 4.88909C16.0726 4.88909 15.592 5.35562 15.592 5.92582V9.03599H12.3877C11.8002 9.03599 11.3196 9.50252 11.3196 10.0727C11.3196 10.6429 11.8002 11.1094 12.3877 11.1094H15.592V14.2196C15.592 14.7898 16.0726 15.2563 16.6601 15.2563C17.2475 15.2563 17.7281 14.7898 17.7281 14.2196V11.1094H20.9324C21.5199 11.1094 22.0005 10.6429 22.0005 10.0727C22.0005 9.50252 21.5199 9.03599 20.9324 9.03599H17.7281ZM1.70676 11.1094H8.11532C8.70277 11.1094 9.18341 10.6429 9.18341 10.0727C9.18341 9.50252 8.70277 9.03599 8.11532 9.03599H1.70676C1.11931 9.03599 0.638672 9.50252 0.638672 10.0727C0.638672 10.6429 1.11931 11.1094 1.70676 11.1094Z",fill:"#FFFFFF",stroke:"#FFFFFF","stroke-width":"0.091682"})]),e.createTextVNode(" Crear nueva lista ")],-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V[0]||(V[0]=x=>s.value=x),class:"modal-input",type:"text",placeholder:"Nombre de tu lista"},null,512),[[e.vModelText,s.value]]),e.createElementVNode("div",t$e,[e.createElementVNode("div",a$e,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":V[1]||(V[1]=x=>r.value=x),class:"modal-input",type:"text",placeholder:"Selecciona las variables que quieres que se vean",onFocus:b,onBlur:R,onInput:T,disabled:m.value},null,40,o$e),[[e.vModelText,r.value]]),m.value?(e.openBlock(),e.createElementBlock("div",i$e,V[4]||(V[4]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1)]))):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["modal-dropdown-arrow",{"arrow-up":n.value}]),onMousedown:e.withModifiers(f,["prevent"])},V[5]||(V[5]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M2 4L6 8L10 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),34))]),n.value&&!m.value&&!u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-dropdown",onMousedown:V[3]||(V[3]=x=>y.value=!0)},[_.value.length===0?(e.openBlock(),e.createElementBlock("div",s$e," No se encontraron variables ")):(e.openBlock(),e.createElementBlock("div",r$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,x=>(e.openBlock(),e.createElementBlock("div",{key:x.custom_id,class:"modal-dropdown-item"},[e.createElementVNode("label",l$e,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:x,"onUpdate:modelValue":V[2]||(V[2]=O=>l.value=O),onClick:e.withModifiers(O=>A(x),["stop"]),disabled:l.value.length<=q5&&l.value.includes(x)},null,8,n$e),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",d$e,e.toDisplayString(x.name),1)])]))),128))])),e.createElementVNode("div",c$e,[e.createElementVNode("button",{class:"modal-listo-btn",onMousedown:e.withModifiers(P,["prevent"])},"Listo",32)])],32)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("div",p$e,[V[6]||(V[6]=e.createElementVNode("span",{class:"error-icon"},"!",-1)),e.createTextVNode(" "+e.toDisplayString(u.value),1)])):e.createCommentVNode("",!0)]),p.value?(e.openBlock(),e.createElementBlock("div",m$e," Ya existe una lista con este nombre, utiliza otro para poder continuar. ")):e.createCommentVNode("",!0),V[8]||(V[8]=e.createElementVNode("div",{class:"modal-divider"},null,-1)),e.createElementVNode("div",u$e,[e.createElementVNode("button",{class:"modal-cancel",onClick:N},"Cancelar"),e.createElementVNode("button",{class:e.normalizeClass(["modal-create",{"modal-create--disabled":!h.value}]),onClick:G,disabled:!h.value}," Crear lista ",10,f$e)])])):e.createCommentVNode("",!0)]),_:1})]))}},y$e=XPe(h$e,[["__scopeId","data-v-71419cea"]]),Re=t=>(e.pushScopeId("data-v-7c36553e"),t=t(),e.popScopeId(),t),g$e=Re(()=>e.createElementVNode("div",{class:"top-scroll-spacer"},null,-1)),b$e={class:"table__static-column"},_$e={class:"static-title column-title restore"},S$e={class:"titles-left"},w$e=Re(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".6",stroke:"#fff","stroke-width":"1.333","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M15.333 2.667v4h-4M.667 13.333v-4h4"}),e.createElementVNode("path",{d:"M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24"})])],-1)),C$e=["id"],k$e={class:"container"},E$e={class:"details-row__info"},V$e={class:"details-row__info__personal"},x$e={class:"bold"},N$e={class:"bold"},T$e={class:"bold"},B$e={class:"bold"},F$e={class:"details-row__info__games"},P$e={class:"bold"},$$e={class:"bold"},A$e=["onClick"],M$e=Re(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),I$e=Re(()=>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)),z$e=[M$e,I$e],O$e=["onClick"],R$e=Re(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),L$e=Re(()=>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)),D$e=[R$e,L$e],v$e=["onClick"],j$e=Re(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),U$e=Re(()=>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)),W$e=[j$e,U$e],G$e=["onClick"],H$e=Re(()=>e.createElementVNode("div",null,"Ver perfil",-1)),q$e=[H$e],J$e={class:"static-row__info-player"},Y$e=["onClick"],Z$e=Re(()=>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)),K$e=Re(()=>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)),X$e=Re(()=>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)),Q$e=[Z$e,K$e,X$e],eAe=["onClick"],tAe=Re(()=>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)),aAe=Re(()=>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)),oAe=Re(()=>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)),iAe=[tAe,aAe,oAe],sAe={class:"player-photo"},rAe=["src"],lAe={class:"player-name"},nAe={class:"arrow"},dAe=["onClick"],cAe=Re(()=>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)),pAe=[cAe],mAe={class:"titles scrollable-row"},uAe={class:"column-title"},fAe=Re(()=>e.createElementVNode("div",null," Equipo ",-1)),hAe=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),yAe=[hAe],gAe={class:"column-title"},bAe=Re(()=>e.createElementVNode("div",null," Posición ",-1)),_Ae=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),SAe=[_Ae],wAe={class:"column-title"},CAe=Re(()=>e.createElementVNode("div",null," Edad ",-1)),kAe=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),EAe=[kAe],VAe=Re(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),xAe={class:"column-title"},NAe=Re(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),TAe=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),BAe=[TAe],FAe={class:"column-title"},PAe=Re(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),$Ae=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),AAe=[$Ae],MAe={class:"column-title"},IAe=Re(()=>e.createElementVNode("div",null," Liga ",-1)),zAe=Re(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),OAe=[zAe],RAe=Re(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),LAe={class:"team-logo"},DAe=["src"],vAe={class:"team-name data-info"},jAe=["src"],UAe={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1},isGraphButtonVisible:{type:Boolean,default:!0},isAddToListButtonVisible:{type:Boolean,default:!0},isAddToListPlayerVisible:{type:Boolean,default:!0},lists:{type:Array,default:()=>[]},userId:{type:Number,default:0},token:{type:String,default:""}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters","list-created","delete-from-list"],setup(t,{emit:o}){const a=t;let i=null,s=null;const r=e.ref([]),l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(0),m=e.ref(0),u=e.ref(-1),y=e.ref(!1),p=e.ref(null),h=e.ref(null),f=e.ref(null),g=e.ref([]),_=e.ref([{name:"team_abrev",isDesc:!1,isRoot:!0},{name:"player_position",isDesc:!1,isRoot:!0},{name:"player_age",isDesc:!1,isRoot:!0},{name:"player_games",isDesc:!1,isRoot:!0},{name:"player_min",isDesc:!1,isRoot:!0},{name:"league_name",isDesc:!1,isRoot:!0}]),b=e.ref(0),T=e.ref("922px"),R=e.ref(!1),P=e.ref(!1),A=e.ref(null),G=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${N.value?"8px":"18px"}`,"--width-static-column":`${N.value?"65%":"436px"}`})),N=e.computed(()=>d.value<600);e.watch(()=>a.players,B=>{B&&B.length&&(r.value=B.map((z,M)=>{const ce=M+1,Te={...z,position:ce<10?`0${ce}`:`${ce}`,isSelected:!1,isExpanded:!1,isOdd:M%2!==0,index:M};return z.stats&&z.stats.length&&(Te.stats=z.stats.map(ue=>({...ue,isDesc:!1,isRoot:!1}))),Te.parameters&&Object.entries(Te.parameters).forEach(([ue,Le])=>{const Dt=Te.stats.find(Q1=>Q1.custom_category_id===Number(ue));Dt&&(Dt.parameters=Le)}),Te}),g.value=r.value.map(z=>({...z})))},{immediate:!0,deep:!0}),e.watch(()=>a.isEditMode,B=>{B&&r.value.forEach(z=>{z.isSelected=!1})}),e.watch(()=>f.value,B=>{if(B){let z=[...g.value];B.isRoot?z.sort((M,ce)=>typeof M[B.name]=="string"?B.isDesc?M[B.name].localeCompare(ce[B.name]):M[B.name].localeCompare(ce[B.name])*-1:B.isDesc?ce[B.name]-M[B.name]:M[B.name]-ce[B.name]):z.sort((M,ce)=>{const Te=M.stats.find(Le=>Le.name===B.name),ue=ce.stats.find(Le=>Le.name===B.name);return typeof Te.value=="string"?B.isDesc?Te.total.localeCompare(ue.total):Te.total.localeCompare(ue.total)*-1:B.isDesc?ue.total-Te.total:Te.total-ue.total}),z.forEach((M,ce)=>{M.isOdd=ce%2!==0}),g.value=z}else g.value.sort((z,M)=>z.index-M.index).forEach((z,M)=>{z.isOdd=M%2!==0})},{immediate:!0,deep:!0}),e.watch(m,B=>{const z=document.querySelectorAll(".static-row")[u.value+1];z&&(z.style.marginTop=`${B}px`),a.isGeneral?q(u.value,B):n.value&&n.value.setMarginTopDetails(u.value,B),B===0&&p.value&&I(p.value)});function q(B,z){const M=document.querySelectorAll(".scrollable-row")[B+2];M&&(M.style.marginTop=`${z}px`)}function F(B){o("click-parameters",B)}function C(B){B&&(B.isDesc=!B.isDesc),f.value=B}function V(B){const z=B.player||B.objeto_player,M=z?z.player_id||z.id||z.playerId:B.id||B.player_id,ce={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:M?[M]:[],goalkeeperIds:[],matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(B.stat&&B.stat.parameters&&(ce.parameters=B.stat.parameters),B.stat&&B.stat.seasons&&B.stat.seasons.length||B.seasons&&B.seasons.length){const Te=[...B.stat&&B.stat.seasons&&B.stat.seasons.length?B.stat.seasons:B.seasons];Te.sort((ue,Le)=>ue-Le),ce.seasonId=Te.shift(),ce.seasonsIds=Te}else(B.season_id||B.seasonId)&&(ce.seasonId=B.season_id||B.seasonId);B.stat?B.stat.category_id&&B.stat.category_id.length?ce.categoryIds=B.stat.category_id:B.stat.custom_category_id&&(ce.customCategoryIds=[B.stat.custom_category_id]):ce.categoryIds=se(B.player_position),o("open-media",ce)}function x(){i=new ResizeObserver(B=>{for(const z of B)d.value=z.contentRect.width}),i.observe(l.value)}function O(B){s=new ResizeObserver(z=>{for(const M of z)m.value=M.contentRect.height}),s.observe(B)}function se(B){return B==="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 me(B,z){z.isSelected=B;const M=r.value.filter(ce=>ce.isSelected);o("change-selected-players",M)}function he(B){o("view-profile",B)}function k(B){o("delete-from-list",B)}function $(B){A.value=B.objeto_player||B,o("add-to-list",B),B.showTooltip=!0}function W(B){o("show-graph",B)}function I(B){if(B.isExpanded){B.isExpanded=!1,p.value=null;return}const z=r.value.find(ue=>ue.isExpanded);if(z&&(z.isExpanded=!1),z){p.value=B;return}const M=document.querySelectorAll(".details-row");let ce=-1;M.forEach((ue,Le)=>{ue.id===`dr-${B.id}`&&(ce=Le)});const Te=M[ce];u.value=ce,O(Te),B.isExpanded=!0,r.value.forEach(ue=>{ue.isExpanded=!1}),setTimeout(()=>{if(!y.value){const ue=document.querySelectorAll(".details-row")[B.index];u.value=B.index,O(ue)}B.isExpanded=!y.value},1)}let L=!1,ne,le,U=function(B){L=!0,ne=B.pageX-h.value.offsetLeft,le=h.value.scrollLeft},w=function(B){L=!0,ne=B.pageX-c.value.offsetLeft,le=c.value.scrollLeft},H=function(){L=!1};function S(B){h.value&&(h.value.scrollLeft=B.target.scrollLeft)}function E(B){c.value&&(c.value.scrollLeft=B.target.scrollLeft)}function re(){h.value&&(h.value.addEventListener("mousemove",B=>{if(!L)return;const z=B.pageX-h.value.offsetLeft-ne,M=le-z;h.value.scrollLeft=M,c.value&&(c.value.scrollLeft=M)}),h.value.addEventListener("mousedown",U,!1),h.value.addEventListener("mouseup",H,!1),h.value.addEventListener("mouseleave",H,!1),h.value.addEventListener("scroll",E)),c.value&&(c.value.addEventListener("mousemove",B=>{if(!L)return;const z=B.pageX-c.value.offsetLeft-ne,M=le-z;c.value.scrollLeft=M,h.value&&(h.value.scrollLeft=M)}),c.value.addEventListener("mousedown",w,!1),c.value.addEventListener("mouseup",H,!1),c.value.addEventListener("mouseleave",H,!1),c.value.addEventListener("scroll",S))}function pe(){a.isGeneral?T.value="922px":e.nextTick(()=>{const B=document.querySelector(".scrollable-row-2");if(B){const z=window.getComputedStyle(B),M=B.scrollWidth||parseInt(z.width);T.value=`${M}px`}else if(r.value.length&&r.value[0].stats){const z=r.value[0].stats.length,M=120;T.value=`${(z+1)*M}px`}})}e.watch(()=>[a.players,a.isGeneral],()=>{pe()},{immediate:!0});function ye(){R.value=!0}async function fe(B){try{const z={dob:A.value.dob,is_female:0,jersey:0,name:A.value.name,nationality:A.value.nationality,nationality_id:A.value.nationality_id,player_id:A.value.player_id,position:A.value.position_id,team_id:A.value.team_id},M={user_id:a.userId,id:B.id,players:[z]};await fetch(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${a.userId}/in-followed/${B.id}/players`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:a.token},body:JSON.stringify(M)}),o("list-created")}catch(z){console.error("Error creating list:",z)}}function de(){o("list-created")}return e.onMounted(()=>{x(),re()}),e.onBeforeUnmount(()=>{i&&i.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",U,!1),h.value.removeEventListener("mouseup",H,!1),h.value.removeEventListener("mouseleave",H,!1),h.value.removeEventListener("scroll",E)),c.value&&(c.value.removeEventListener("mousemove",w,!1),c.value.removeEventListener("mouseup",H,!1),c.value.removeEventListener("mouseleave",H,!1),c.value.removeEventListener("scroll",S))}),(B,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[R.value?(e.openBlock(),e.createBlock(e.unref(y$e),{key:0,token:t.token,"user-id":t.userId,onClose:z[0]||(z[0]=M=>R.value=!1),onCreateList:fe},null,8,["token","user-id"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"top-scroll-container",style:e.normalizeStyle(G.value)},[g$e,e.createElementVNode("div",{ref_key:"topScrollableColumns",ref:c,class:"top-scroll"},[e.createElementVNode("div",{class:"top-scroll-content",style:e.normalizeStyle({width:T.value})},null,4)],512)],4),(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:l,style:e.normalizeStyle(G.value),key:b.value},[e.createElementVNode("div",b$e,[e.createElementVNode("div",_$e,[e.createElementVNode("div",S$e,[e.createElementVNode("div",{class:"title",style:e.normalizeStyle(N.value?"font-size: 8px":"")},"Ranking",4),t.isAddToListPlayerVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title",style:e.normalizeStyle(N.value?"font-size: 8px":"")},"Agregar a lista",4)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{role:"button",class:"restore-button",onClick:z[1]||(z[1]=M=>C(null))},[w$e,e.createElementVNode("div",{style:e.normalizeStyle(N.value?"font-size: 10px; white-space: wrap;":"")},"Restaurar orden",4)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,M=>(e.openBlock(),e.createElementBlock("div",{key:`s-${M.id}`,class:e.normalizeClass(["row static-row",{odd:M.isOdd}]),style:e.normalizeStyle(N.value?"width: auto":"")},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:`dr-${M.id}`,class:e.normalizeClass(["details-row",{odd:M.isOdd}])},[e.createElementVNode("div",k$e,[e.createElementVNode("div",E$e,[e.createElementVNode("div",V$e,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",x$e,e.toDisplayString(M.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",N$e,e.toDisplayString(M.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",T$e,e.toDisplayString(M.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",B$e,e.toDisplayString(M.position_name),1)])]),e.createElementVNode("div",F$e,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",P$e,e.toDisplayString(M.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",$$e,e.toDisplayString(M.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(N.value?"margin-left: 0; gap: 8px;":"")},[t.isGraphButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:ce=>W(M)},z$e,8,A$e)):e.createCommentVNode("",!0),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:ce=>k(M)},D$e,8,O$e)):t.isAddToListButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:2,role:"button",class:"button",onClick:ce=>$(M)},W$e,8,v$e)):e.createCommentVNode("",!0),e.createElementVNode("div",{role:"button",class:"button green",onClick:ce=>he(M)},q$e,8,G$e)],4)])],10,C$e),[[e.vShow,M.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(uTe),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":M.isSelected,"onUpdate:modelValue":ce=>me(ce,M)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",J$e,[e.createElementVNode("div",{class:"position",style:e.normalizeStyle(N.value?"width:20px;":"")},e.toDisplayString(M.position),5),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-to-list-container",style:e.normalizeStyle(N.value?"width:20px;":"")},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:ce=>k(M)},Q$e,8,Y$e))],4)):t.isAddToListPlayerVisible?(e.openBlock(),e.createElementBlock("div",{key:1,class:"add-to-list",style:e.normalizeStyle(N.value?"width:20px;":"")},[M.showTooltip?(e.openBlock(),e.createBlock(e.unref(wFe),{key:0,token:t.token,"user-id":t.userId,lists:t.lists,isModalOpen:P.value,"selected-player":M.objeto_player,onClose:ce=>M.showTooltip=!1,onCreateNewList:ye,onPlayerAdded:de},null,8,["token","user-id","lists","isModalOpen","selected-player","onClose"])):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:ce=>$(M)},iAe,8,eAe))],4)):e.createCommentVNode("",!0),e.createElementVNode("div",sAe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:M.player_photo,alt:"player photo"},null,8,rAe)])]),e.createElementVNode("div",lAe,e.toDisplayString(M.player_name),1)]),e.createElementVNode("div",nAe,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:M.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:ce=>I(M)},pAe,10,dAe))])],6))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:h,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",mAe,[e.createElementVNode("div",uAe,[fAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[2]||(z[2]=M=>C(_.value[0]))},yAe))]),e.createElementVNode("div",gAe,[bAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[3]||(z[3]=M=>C(_.value[1]))},SAe))]),e.createElementVNode("div",wAe,[CAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[4]||(z[4]=M=>C(_.value[2]))},EAe))]),VAe,e.createElementVNode("div",xAe,[NAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[5]||(z[5]=M=>C(_.value[3]))},BAe))]),e.createElementVNode("div",FAe,[PAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[6]||(z[6]=M=>C(_.value[4]))},AAe))]),e.createElementVNode("div",MAe,[IAe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:z[7]||(z[7]=M=>C(_.value[5]))},OAe))]),RAe]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,M=>(e.openBlock(),e.createElementBlock("div",{key:`i-${M.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:M.isOdd}])},[e.createElementVNode("div",LAe,[e.createElementVNode("img",{src:M.team_logo,alt:"team logo"},null,8,DAe)]),e.createElementVNode("div",vAe,e.toDisplayString(M.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},[e.createElementVNode("img",{src:M.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,jAe)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},e.toDisplayString(M.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:M.isOdd}])},[e.createVNode(e.unref(ETe),{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:ce=>V(M)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(ITe,{key:1,ref_key:"scrollColumns",ref:n,"available-players":g.value,"is-edit-mode":t.isEditMode,"is-mobile":N.value,onOpenMedia:V,onClickParameters:F,onSort:C},null,8,["available-players","is-edit-mode","is-mobile"]))],512)],4))],64))}},WAe=xb(UAe,[["__scopeId","data-v-7c36553e"]]),G1=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},H1={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 o=Array.from(t).map(Number).sort((a,i)=>a-i);this.lastSelectedSections=[...o],this.$emit("sections-changed",o)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const o=Math.ceil(t/4);if(!this.isQuarterEnabled(o))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 o=Date.now();if(o-this.lastUpdateTime<16)return;this.lastUpdateTime=o;const a=t.toString(),i=Math.ceil(t/4);if(this.isQuarterEnabled(i)){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,o){return(t-1)*4+o},getSectionIndex(t,o){return(t-1)*4+o},selectColumn(t){if(!this.isQuarterEnabled(t))return;const o=(t-1)*4+1,a=t*4;if(Array.from({length:4},(i,s)=>(o+s).toString()).every(i=>this.selectedSections.has(i))&&this.selectedSections.size>4)for(let i=o;i<=a;i++)this.selectedSections.delete(i.toString());else for(let i=o;i<=a;i++)this.selectedSections.add(i.toString());this.updateSelectAllState()},isQuarterSelected(t){const o=(t-1)*4+1;return Array.from({length:4},(a,i)=>(o+i).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},J5=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Y5=H1.setup;H1.setup=Y5?(t,o)=>(J5(),Y5(t,o)):J5;const GAe={class:"field-template-element"},HAe={class:"field-container"},qAe=["onMouseenter","onMousedown"],JAe={class:"column-buttons"},YAe=["onClick","disabled"];function ZAe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",GAe,[e.createElementVNode("div",HAe,[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:o[0]||(o[0]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[1]||(o[1]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[2]||(o[2]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(r.getSectionIndex(l,n)),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(r.getSectionIndex(l,n)),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(r.getSectionIndex(l,n)),["prevent"])},null,42,qAe)),64))])),64))],32),e.createElementVNode("div",JAe,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"column-label"},e.toDisplayString(l)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,l=>e.createElementVNode("button",{key:l,class:e.normalizeClass(["column-button",{selected:r.isQuarterSelected(l),disabled:!r.isQuarterEnabled(l)}]),onClick:n=>r.selectColumn(l),disabled:!r.isQuarterEnabled(l)},e.toDisplayString(l)+"/4 tos ",11,YAe)),64))])])])}const KAe=G1(H1,[["render",ZAe],["__scopeId","data-v-1f6351a4"]]),q1={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 o=Array.from(t).map(r=>{const[l,n]=r.split("-").map(Number);return{row:l,col:n,value:this.getSequentialNumber(l,n)}}),a={};o.forEach(r=>{a[r.col]||(a[r.col]=[]),a[r.col].push(r)});const i=[];Object.values(a).forEach(r=>{r.sort((n,c)=>c.row-n.row);let l=[r[0]];for(let n=1;n<r.length;n++){const c=r[n];r[n-1].row-c.row===1?l.push(c):(l.length>0&&i.push(l),l=[c])}l.length>0&&i.push(l)});const s=i.sort((r,l)=>{const n=Math.min(...r.map(d=>d.value)),c=Math.min(...l.map(d=>d.value));return n-c}).map(r=>{const l=r.map(n=>n.value).sort((n,c)=>c-n);return l.length===1?[l[0],l[0]]:[l[0],l[l.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[o,a]=t,i=17-Math.floor((o-1)/21),s=(o-1)%21+1,r=17-Math.floor((a-1)/21),l=(a-1)%21+1;if(s===l){const n=Math.min(i,r),c=Math.max(i,r);for(let d=n;d<=c;d++)this.selectedSections.add(this.getSectionId(d,s))}else{const n=Math.min(s,l),c=Math.max(s,l);for(let d=n;d<=c;d++){const m=d===s?i:1,u=d===l?r:17;for(let y=Math.min(m,u);y<=Math.max(m,u);y++)this.selectedSections.add(this.getSectionId(y,d))}}}});else for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));this.updateSelectAllState()},getSectionId(t,o){return`${t}-${o}`},isSelected(t,o){return this.selectedSections.has(this.getSectionId(t,o))},toggleSection(t,o){const a=this.getSectionId(t,o);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 o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));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,o){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const i=this.getSectionId(t,o);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(i)),this.dragSelectMode?this.selectedSections.add(i):this.selectedSections.delete(i),this.updateSelectAllState()},getSequentialNumber(t,o){return(17-t)*21+o}}},Z5=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},K5=q1.setup;q1.setup=K5?(t,o)=>(Z5(),K5(t,o)):Z5;const XAe={class:"field-template-element"},QAe={class:"field-container"},eMe={key:0,class:"select-all-container"},tMe={class:"select-all-label"},aMe=["onMouseenter","onMousedown"];function oMe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",XAe,[e.createElementVNode("div",QAe,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",eMe,[e.createElementVNode("label",tMe,[o[5]||(o[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":o[0]||(o[0]=l=>s.selectAll=l),onChange:o[1]||(o[1]=(...l)=>r.toggleAllSections&&r.toggleAllSections(...l))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[2]||(o[2]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[3]||(o[3]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[4]||(o[4]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(l,n),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(l,n),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(l,n),["prevent"])},null,42,aMe)),64))],64))),64))],32),o[6]||(o[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 iMe=G1(q1,[["render",oMe],["__scopeId","data-v-389c50fa"]]),sMe={components:{FieldGolStatsTemplates:KAe,FieldTemplatesElement:iMe},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(o=>Array.isArray(o))},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)}}},rMe={key:0,class:"modal-wrapper"},lMe={class:"modal-overlay"},nMe={class:"modal-container"},dMe={class:"modal-content"},cMe={class:"modal-header"},pMe={class:"fields-container"},mMe={class:"field-section"},uMe={class:"field-section"},fMe={class:"distance-section"},hMe={class:"distance-info"},yMe={class:"info-row"},gMe={class:"info-value"},bMe={class:"info-row"},_Me={class:"info-value"},SMe={class:"info-row"},wMe={class:"info-value"},CMe={class:"distance-section"},kMe={class:"distance-info"},EMe={class:"info-row"},VMe={class:"info-value"},xMe={class:"info-row"},NMe={class:"info-value"},TMe={class:"info-row"},BMe={class:"info-value"};function FMe(t,o,a,i,s,r){var l,n,c,d,m,u,y,p,h,f,g,_;const b=e.resolveComponent("FieldGolStatsTemplates"),T=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",rMe,[e.createElementVNode("div",lMe,[e.createElementVNode("div",nMe,[e.createElementVNode("div",dMe,[e.createElementVNode("div",cMe,[o[2]||(o[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:o[0]||(o[0]=R=>t.$emit("update:isVisible",!1))},o[1]||(o[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",pMe,[e.createElementVNode("div",mMe,[r.isArrayOfArrays((l=a.parameters)==null?void 0:l.origin_zones)?(e.openBlock(),e.createBlock(T,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(c=a.parameters)==null?void 0:c.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(b,{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",uMe,[r.isArrayOfArrays((d=a.parameters)==null?void 0:d.destiny_zones)?(e.openBlock(),e.createBlock(T,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(u=a.parameters)==null?void 0:u.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(b,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(m=a.parameters)==null?void 0:m.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",fMe,[o[6]||(o[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",hMe,[e.createElementVNode("div",yMe,[o[3]||(o[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",gMe,e.toDisplayString((y=a.parameters)==null?void 0:y.minimum_distance_x)+" m",1)]),e.createElementVNode("div",bMe,[o[4]||(o[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",_Me,e.toDisplayString((p=a.parameters)==null?void 0:p.minimum_distance_y)+" m",1)]),e.createElementVNode("div",SMe,[o[5]||(o[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",wMe,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",CMe,[o[10]||(o[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",kMe,[e.createElementVNode("div",EMe,[o[7]||(o[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",VMe,e.toDisplayString((f=a.parameters)==null?void 0:f.maximum_distance_x)+" m",1)]),e.createElementVNode("div",xMe,[o[8]||(o[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",NMe,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",TMe,[o[9]||(o[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",BMe,e.toDisplayString((_=a.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const PMe=G1(sMe,[["render",FMe],["__scopeId","data-v-834c0128"]]),$Me={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}}},AMe="_tablePosition_s65tc_46",MMe="_tablePositionWrapper_s65tc_62",IMe="_imgHenrryIcon_s65tc_71",zMe="_americaIcon_s65tc_79",OMe="_playerPhoto_s65tc_91",RMe="_toniKroos_s65tc_100",LMe="_shapeIcon_s65tc_111",DMe="_menuiconsTeams_s65tc_117",vMe="_component31_s65tc_126",jMe="_playerName_s65tc_137",UMe="_icnPlayIcon_s65tc_145",WMe="_goles_s65tc_153",GMe="_americaIcon1_s65tc_160",HMe="_teamsAmerica_s65tc_174",qMe="_topAddPlayer_s65tc_181",JMe="_containerData_s65tc_185",YMe="_shapeIcon1_s65tc_193",ZMe="_icnExpand1_s65tc_199",KMe="_icnExpand_s65tc_199",XMe="_playerData_s65tc_219",QMe="_playerInfo_s65tc_230",eIe="_headerTop_s65tc_245",tIe="_playerRow_s65tc_259",aIe="_groupsLeague_s65tc_270",oIe="_text_s65tc_279",iIe="_btnViewFullList_s65tc_287",sIe="_headerTops_s65tc_304",rIe="_btnVideosOptions_s65tc_376",lIe="_position_s65tc_553",nIe="_positionWrapper_s65tc_565",dIe="_imgNecaxaIcon_s65tc_573",cIe="_teamLogo_s65tc_579",pIe="_teamPhoto_s65tc_587",mIe="_name_s65tc_595",uIe="_icnPlayIconType1_s65tc_603",fIe="_verVideosType1_s65tc_610",hIe="_btnVideosOptionsType1_s65tc_616",yIe="_btnVideosOptions1_s65tc_628",gIe="_leftContainer_s65tc_640",bIe="_shapeIconType1_s65tc_649",_Ie="_icnExpandType1_s65tc_654",SIe="_arrowExpand_s65tc_664",wIe="_containerInfo_s65tc_672",CIe="_headerTopTeam_s65tc_684",kIe="_containerHeader_s65tc_698",EIe="_goles1_s65tc_707",VIe="_golesType1_s65tc_710",xIe="_golesWrapper_s65tc_715",NIe="_btnViewAll_s65tc_724",TIe="_headerTopsTeams_s65tc_741",BIe="_arrowExpandIcon_s65tc_858",FIe="_rotate_s65tc_863",PIe={tablePosition:AMe,tablePositionWrapper:MMe,imgHenrryIcon:IMe,americaIcon:zMe,playerPhoto:OMe,toniKroos:RMe,shapeIcon:LMe,menuiconsTeams:DMe,component31:vMe,playerName:jMe,icnPlayIcon:UMe,goles:WMe,americaIcon1:GMe,teamsAmerica:HMe,topAddPlayer:qMe,containerData:JMe,shapeIcon1:YMe,icnExpand1:ZMe,icnExpand:KMe,playerData:XMe,playerInfo:QMe,headerTop:eIe,playerRow:tIe,groupsLeague:aIe,text:oIe,btnViewFullList:iIe,headerTops:sIe,btnVideosOptions:rIe,position:lIe,positionWrapper:nIe,imgNecaxaIcon:dIe,teamLogo:cIe,teamPhoto:pIe,name:mIe,icnPlayIconType1:uIe,verVideosType1:fIe,btnVideosOptionsType1:hIe,btnVideosOptions1:yIe,leftContainer:gIe,shapeIconType1:bIe,icnExpandType1:_Ie,arrowExpand:SIe,containerInfo:wIe,headerTopTeam:CIe,containerHeader:kIe,goles1:EIe,golesType1:VIe,golesWrapper:xIe,btnViewAll:NIe,headerTopsTeams:TIe,arrowExpandIcon:BIe,rotate:FIe},J1={components:{GSCButton:Ol},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)}}},X5=()=>{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}))},Q5=J1.setup;J1.setup=Q5?(t,o)=>(X5(),Q5(t,o)):X5;const $Ie=["src"],AIe=["src"],MIe=["src"],IIe=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),zIe=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),OIe=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),RIe=[IIe,zIe,OIe],LIe=["fill"],DIe=["fill"],vIe=["src"],jIe=["fill"],UIe=["fill"];function WIe(t,o,a,i,s,r){const l=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,$Ie),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,AIe)],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(l,{"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:o[0]||(o[0]=n=>r.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,MIe)],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:o[1]||(o[1]=n=>r.emitAddPlayer(a.data)),style:{cursor:"pointer"}},RIe))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:o[2]||(o[2]=n=>r.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,DIe)],10,LIe))],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,vIe)],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(l,{"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:o[3]||(o[3]=n=>r.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(l,{"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:o[4]||(o[4]=n=>r.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:o[5]||(o[5]=n=>r.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,UIe)],10,jIe))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const GIe={$style:PIe},HIe=ot(J1,[["render",WIe],["__cssModules",GIe]]),qIe="_rotate_1tou5_3",JIe="_positionContainer_1tou5_50",YIe="_positionContainer620_1tou5_57",ZIe="_rowwPlayer_1tou5_64",KIe="_rowwPlayer960_1tou5_80",XIe="_rowwPlayer420_1tou5_95",QIe="_rowwPlayer460_1tou5_111",eze="_containerLeft_1tou5_128",tze="_containerLeft420_1tou5_136",aze="_containerLeft620_1tou5_144",oze="_iconFavoritesType1_1tou5_151",ize="_iconFavoritesType1320_1tou5_159",sze="_iconFavorites_1tou5_151",rze="_iconFavorites420_1tou5_175",lze="_playerContainer_1tou5_183",nze="_playerContainer420_1tou5_195",dze="_playerContainer460_1tou5_207",cze="_playerContainerType1_1tou5_219",pze="_playerContainerType1320_1tou5_229",mze="_playerContainerType1460_1tou5_239",uze="_imgPlayerIcon_1tou5_249",fze="_imgPlayerIcon460_1tou5_259",hze="_imgPlayerIcon420_1tou5_269",yze="_manchesterUnited_1tou5_279",gze="_manchesterUnited360_1tou5_290",bze="_manchesterUnited420_1tou5_301",_ze="_manchesterUnited460_1tou5_312",Sze="_containerRight_1tou5_323",wze="_containerRight960_1tou5_332",Cze="_containerRight420_1tou5_342",kze="_numberOfVideos_1tou5_353",Eze="_numberOfVideos620_1tou5_359",Vze="_block02_1tou5_365",xze="_block02960_1tou5_375",Nze="_block02620_1tou5_384",Tze="_block02420_1tou5_391",Bze="_verVideos_1tou5_399",Fze="_verVideos620_1tou5_405",Pze="_numberPosition_1tou5_408",$ze="_shapeIcon_1tou5_414",Aze="_chivasIcon_1tou5_419",Mze="_imgTeamIcon_1tou5_430",Ize="_teamName_1tou5_435",zze="_nameTeam_1tou5_441",Oze="_dfC_1tou5_450",Rze="_position_1tou5_50",Lze="_age_1tou5_460",Dze="_manchesterUnitedIcon_1tou5_468",vze="_country_1tou5_475",jze="_playedGames_1tou5_482",Uze="_playedMinutes_1tou5_489",Wze="_block01_1tou5_496",Gze="_leagueName_1tou5_503",Hze="_roleCharacterIcon_1tou5_509",qze="_btnVideos_1tou5_517",Jze="_containerBtnVideos_1tou5_532",Yze="_containerBtnVideos620_1tou5_542",Zze="_containesOptions_1tou5_551",Kze="_arrowExpandIcon_1tou5_558",Xze="_rowTeam_1tou5_567",Qze="_rowTeam420_1tou5_585",eOe="_rowTeam320_1tou5_603",tOe="_rowTeam460_1tou5_622",aOe="_rowTeam350_1tou5_641",oOe="_containerLeftType1_1tou5_659",iOe="_containerLeftType1680_1tou5_665",sOe="_containerLeftType1320_1tou5_672",rOe="_containerLeftType1350_1tou5_680",lOe="_positionContainertype1_1tou5_687",nOe="_positionContainertype1380_1tou5_695",dOe="_positionContainertype1680_1tou5_703",cOe="_positionContainertype1420_1tou5_711",pOe="_manchesterUnitedType1_1tou5_719",mOe="_manchesterUnitedType1460_1tou5_725",uOe="_manchesterUnitedType1320_1tou5_732",fOe="_containerRightType1_1tou5_739",hOe="_containerRightType1420_1tou5_750",yOe="_containerRightType1320_1tou5_761",gOe="_teamNameWrapperType1_1tou5_772",bOe="_teamNameWrapperType1960_1tou5_779",_Oe="_teamNameWrapperType11086_1tou5_786",SOe="_ageWrapperType1_1tou5_793",wOe="_ageWrapperType1680_1tou5_800",COe="_ageWrapperType11086_1tou5_808",kOe="_ageType1_1tou5_816",EOe="_ageType1960_1tou5_824",VOe="_playedGamesWrapperType1_1tou5_827",xOe="_playedGamesWrapperType1680_1tou5_834",NOe="_playedGamesWrapperType1960_1tou5_837",TOe="_playedGamesType1_1tou5_840",BOe="_playedGamesType1540_1tou5_847",FOe="_playedGamesType1960_1tou5_851",POe="_playedGamesType11086_1tou5_854",$Oe="_playedMinutesWrapperType1_1tou5_857",AOe="_playedMinutesWrapperType11086_1tou5_864",MOe="_playedMinutesType1_1tou5_871",IOe="_playedMinutesType1680_1tou5_878",zOe="_block02Type1_1tou5_881",OOe="_block02Type1680_1tou5_889",ROe="_block02Type1320_1tou5_897",LOe="_block02Type1350_1tou5_906",DOe="_leagueNameWrapperType1_1tou5_914",vOe="_leagueNameWrapperType1680_1tou5_922",jOe="_leagueNameWrapperType1960_1tou5_925",UOe="_leagueNameType1_1tou5_933",WOe="_leagueNameType1960_1tou5_943",GOe="_numberOfVideosType1_1tou5_953",HOe="_numberOfVideosType1680_1tou5_960",qOe="_numberOfVideosType11232_1tou5_967",JOe="_vectorIconType1_1tou5_974",YOe="_block01TitlesType1_1tou5_991",ZOe="_numberPositionType1_1tou5_998",KOe="_shapeIconType1_1tou5_1004",XOe="_tijuanaIconType1_1tou5_1010",QOe="_tijuanaWrapperType1_1tou5_1016",eRe="_tijuanaWrapperType1NoBg_1tou5_1027",tRe="_teamNameType1_1tou5_1035",aRe="_roleCharacterIconType1_1tou5_1042",oRe="_verVideosType1_1tou5_1049",iRe="_btnVideosType1_1tou5_1055",sRe="_containerBtnVideosType1_1tou5_1070",rRe="_containesOptionsType1_1tou5_1081",lRe="_arrowExpandIconType1_1tou5_1089",nRe="_templateTablaProductividadType1_1tou5_1095",dRe="_verVideosType11232_1tou5_1107",cRe="_templateTablaProductividadType1320_1tou5_1111",pRe="_verVideosType1680_1tou5_1115",mRe={rotate:qIe,positionContainer:JIe,positionContainer620:YIe,rowwPlayer:ZIe,rowwPlayer960:KIe,rowwPlayer420:XIe,rowwPlayer460:QIe,containerLeft:eze,containerLeft420:tze,containerLeft620:aze,iconFavoritesType1:oze,iconFavoritesType1320:ize,iconFavorites:sze,iconFavorites420:rze,playerContainer:lze,playerContainer420:nze,playerContainer460:dze,playerContainerType1:cze,playerContainerType1320:pze,playerContainerType1460:mze,imgPlayerIcon:uze,imgPlayerIcon460:fze,imgPlayerIcon420:hze,manchesterUnited:yze,manchesterUnited360:gze,manchesterUnited420:bze,manchesterUnited460:_ze,containerRight:Sze,containerRight960:wze,containerRight420:Cze,numberOfVideos:kze,numberOfVideos620:Eze,block02:Vze,block02960:xze,block02620:Nze,block02420:Tze,verVideos:Bze,verVideos620:Fze,numberPosition:Pze,shapeIcon:$ze,chivasIcon:Aze,imgTeamIcon:Mze,teamName:Ize,nameTeam:zze,dfC:Oze,position:Rze,age:Lze,manchesterUnitedIcon:Dze,country:vze,playedGames:jze,playedMinutes:Uze,block01:Wze,leagueName:Gze,roleCharacterIcon:Hze,btnVideos:qze,containerBtnVideos:Jze,containerBtnVideos620:Yze,containesOptions:Zze,arrowExpandIcon:Kze,rowTeam:Xze,rowTeam420:Qze,rowTeam320:eOe,rowTeam460:tOe,rowTeam350:aOe,containerLeftType1:oOe,containerLeftType1680:iOe,containerLeftType1320:sOe,containerLeftType1350:rOe,positionContainertype1:lOe,positionContainertype1380:nOe,positionContainertype1680:dOe,positionContainertype1420:cOe,manchesterUnitedType1:pOe,manchesterUnitedType1460:mOe,manchesterUnitedType1320:uOe,containerRightType1:fOe,containerRightType1420:hOe,containerRightType1320:yOe,teamNameWrapperType1:gOe,teamNameWrapperType1960:bOe,teamNameWrapperType11086:_Oe,ageWrapperType1:SOe,ageWrapperType1680:wOe,ageWrapperType11086:COe,ageType1:kOe,ageType1960:EOe,playedGamesWrapperType1:VOe,playedGamesWrapperType1680:xOe,playedGamesWrapperType1960:NOe,playedGamesType1:TOe,playedGamesType1540:BOe,playedGamesType1960:FOe,playedGamesType11086:POe,playedMinutesWrapperType1:$Oe,playedMinutesWrapperType11086:AOe,playedMinutesType1:MOe,playedMinutesType1680:IOe,block02Type1:zOe,block02Type1680:OOe,block02Type1320:ROe,block02Type1350:LOe,leagueNameWrapperType1:DOe,leagueNameWrapperType1680:vOe,leagueNameWrapperType1960:jOe,leagueNameType1:UOe,leagueNameType1960:WOe,numberOfVideosType1:GOe,numberOfVideosType1680:HOe,numberOfVideosType11232:qOe,vectorIconType1:JOe,block01TitlesType1:YOe,numberPositionType1:ZOe,shapeIconType1:KOe,tijuanaIconType1:XOe,tijuanaWrapperType1:QOe,tijuanaWrapperType1NoBg:eRe,teamNameType1:tRe,roleCharacterIconType1:aRe,verVideosType1:oRe,btnVideosType1:iRe,containerBtnVideosType1:sRe,containesOptionsType1:rRe,arrowExpandIconType1:lRe,templateTablaProductividadType1:nRe,verVideosType11232:dRe,templateTablaProductividadType1320:cRe,verVideosType1680:pRe},Y1={components:{GSCButton:Ol},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:o}=jt(t);return{myDivRef2:t,elementSize:o}},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)}}},e4=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},t4=Y1.setup;Y1.setup=t4?(t,o)=>(e4(),t4(t,o)):e4;const uRe={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},fRe=["src"],hRe=["src"],yRe=["src"],gRe=["src"],bRe=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),_Re=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),SRe=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),wRe=[bRe,_Re,SRe],CRe=["fill"],kRe=["fill"],ERe=["src"],VRe=["src"],xRe=["fill"],NRe=["fill"],TRe=["src"],BRe=["src"],FRe=["src"],PRe=["src"],$Re=["fill"],ARe=["fill"];function MRe(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",uRe,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(r.imgPlayerIconClass),src:a.data.player_photo},null,10,fRe),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedClass)},[i.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),i.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,hRe)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[i.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,yRe),i.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),i.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),i.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),i.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,gRe)],2)):e.createCommentVNode("",!0),i.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),i.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(r.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[i.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(r.containerBtnVideosClass)},[i.elementSize.width>635?(e.openBlock(),e.createBlock(l,{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:o[0]||(o[0]=n=>r.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(l,{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:o[1]||(o[1]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),i.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.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:o[2]||(o[2]=n=>r.emitAddPlayer(a.data)),style:{cursor:"pointer"}},wRe))],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:o[3]||(o[3]=n=>r.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,kRe)],10,CRe))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.rowTeamClass),style:e.normalizeStyle(i.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(r.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,ERe)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.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,VRe)],2),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.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),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(r.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(r.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[i.elementSize.width>679?(e.openBlock(),e.createBlock(l,{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:o[4]||(o[4]=n=>r.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(l,{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:o[5]||(o[5]=n=>r.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(r.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:o[6]||(o[6]=n=>r.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,NRe)],10,xRe))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(r.imgPlayerIconClass),src:a.data.player_photo},null,10,TRe),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),i.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,BRe)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[i.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,FRe),i.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),i.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),i.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),i.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,PRe)],2)):e.createCommentVNode("",!0),i.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),i.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),i.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(r.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(r.containerBtnVideosClass)},[e.createVNode(l,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:i.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:o[7]||(o[7]=n=>r.emitEventMedia(a.data)),style:e.normalizeStyle(i.elementSize.width<=680?i.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:o[8]||(o[8]=n=>r.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,ARe)],10,$Re))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const IRe={$style:mRe},zRe=ot(Y1,[["render",MRe],["__cssModules",IRe]]),ORe="_containerLeftTitlesPlay_mmyc1_61",RRe="_containerLeftTitles420Play_mmyc1_69",LRe="_containerLeftTitles620Play_mmyc1_77",DRe="_containerLeftTitlesTeamPlay_mmyc1_85",vRe="_containerLeftTitlesTeam1180Play_mmyc1_93",jRe="_containerLeftTitlesTeam1090Play_mmyc1_101",URe="_containerLeftTitlesTeam960Play_mmyc1_109",WRe="_containerLeftTitlesTeam860Play_mmyc1_117",GRe="_containerLeftTitlesTeam768Play_mmyc1_125",HRe="_containerLeftTitlesTeam680Play_mmyc1_133",qRe="_containerLeftTitlesTeam620Play_mmyc1_141",JRe="_containerLeftTitlesTeam420Play_mmyc1_149",YRe="_headTitlesPlay_mmyc1_158",ZRe="_headTitles960Play_mmyc1_173",KRe="_headTitles420Play_mmyc1_188",XRe="_headTitles540Play_mmyc1_208",QRe="_headTitles460Play_mmyc1_223",eLe="_headTitles620Play_mmyc1_238",tLe="_positionPlay_mmyc1_253",aLe="_position420Play_mmyc1_262",oLe="_playerPlay_mmyc1_265",iLe="_player420Play_mmyc1_276",sLe="_containerRightType1Play_mmyc1_280",rLe="_containerRightTitlesPlay_mmyc1_287",lLe="_containerRightTitles960Play_mmyc1_296",nLe="_block02TitlesPlay_mmyc1_305",dLe="_block02Titles620Play_mmyc1_313",cLe="_mon1ScoutingPlay_mmyc1_317",pLe="_mon1Scouting960Play_mmyc1_327",mLe="_mon1Play_mmyc1_336",uLe="_mon1420Play_mmyc1_345",fLe="_mon1620Play_mmyc1_355",hLe="_icnIconPlay_mmyc1_365",yLe="_icnIcon960Play_mmyc1_370",gLe="_icnIcon420Play_mmyc1_376",bLe="_teamTitlePlay_mmyc1_380",_Le="_positionTitlePlay_mmyc1_390",SLe="_ageTitlePlay_mmyc1_398",wLe="_partidosPlay_mmyc1_406",CLe="_playedGamesTitlePlay_mmyc1_410",kLe="_playedMinutesTitlePlay_mmyc1_420",ELe="_block01TitlesPlay_mmyc1_429",VLe="_monPlay_mmyc1_436",xLe="_containesOptionsTitlesPlay_mmyc1_445",NLe="_templateTablaProductividadType1Play_mmyc1_451",TLe="_templateTablaProductividadType1400Play_mmyc1_463",BLe="_headTitlesType1Play_mmyc1_477",FLe="_headTitlesType1420Play_mmyc1_490",PLe="_headTitlesType1400Play_mmyc1_506",$Le="_headTitlesType1540Play_mmyc1_522",ALe="_headTitlesType1460Play_mmyc1_536",MLe="_headTitlesType1680Play_mmyc1_550",ILe="_headTitlesType1350Play_mmyc1_563",zLe="_positionType1Play_mmyc1_578",OLe="_positionType1400Play_mmyc1_587",RLe="_teamType1Play_mmyc1_597",LLe="_teamType1400Play_mmyc1_606",DLe="_frecuenciaType1Play_mmyc1_616",vLe="_frecuenciaType1540Play_mmyc1_624",jLe="_containerLeftTitlesType1Play_mmyc1_633",ULe="_frecuenciaWrapperType1Play_mmyc1_641",WLe="_frecuenciaWrapperType1680Play_mmyc1_650",GLe="_promedioPartidoType1Play_mmyc1_658",HLe="_promedioEstePartidoType1Play_mmyc1_662",qLe="_promedioEstePartidoType1960Play_mmyc1_670",JLe="_promedioEstePartidoWrapperType1Play_mmyc1_674",YLe="_promedioEstePartidoWrapperType11200Play_mmyc1_682",ZLe="_promedioEstePartidoWrapperType11090Play_mmyc1_691",KLe="_promedioEstePartidoWrapperType11086Play_mmyc1_701",XLe="_promedioPartidosType1Play_mmyc1_710",QLe="_promedioPartidosWrapperType1Play_mmyc1_717",eDe="_promedioPartidosWrapperType1960Play_mmyc1_725",tDe="_promedioPartidosWrapperType11086Play_mmyc1_728",aDe="_partidosJugadosType1Play_mmyc1_731",oDe="_partidosJugadosType1960Play_mmyc1_737",iDe="_partidosJugadosWrapperType1Play_mmyc1_744",sDe="_partidosJugadosWrapperType11200Play_mmyc1_752",rDe="_partidosJugadosWrapperType11180Play_mmyc1_760",lDe="_partidosJugadosWrapperType11170Play_mmyc1_768",nDe="_partidosJugadosWrapperType11140Play_mmyc1_776",dDe="_partidosJugadosWrapperType11086Play_mmyc1_784",cDe="_partidosJugadosWrapperType1960Play_mmyc1_792",pDe="_partidosJugadosWrapperType1880Play_mmyc1_800",mDe="_partidosJugadosWrapperType1860Play_mmyc1_808",uDe="_partidosJugadosWrapperType1830Play_mmyc1_816",fDe="_partidosJugadosWrapperType1790Play_mmyc1_824",hDe="_partidosJugadosWrapperType1930Play_mmyc1_832",yDe="_partidosJugadosWrapperType1770Play_mmyc1_840",gDe="_block01TitlesType1Play_mmyc1_843",bDe="_monType1Play_mmyc1_851",_De="_monType1960Play_mmyc1_860",SDe="_monType1680Play_mmyc1_870",wDe="_videosType1Play_mmyc1_873",CDe="_videosType1680Play_mmyc1_883",kDe="_videosType1600Play_mmyc1_892",EDe="_videosType1540Play_mmyc1_901",VDe="_videosType1420Play_mmyc1_910",xDe="_videosType1400Play_mmyc1_919",NDe="_containesOptionsTitlesType1Play_mmyc1_931",TDe="_containesOptionsTitlesType1768Play_mmyc1_939",BDe="_containesOptionsTitlesType1730Play_mmyc1_946",FDe="_containesOptionsTitlesType1690Play_mmyc1_953",PDe="_icnIconType1Play_mmyc1_960",$De="_icnIconType1420Play_mmyc1_966",ADe="_icnIconType1400Play_mmyc1_973",MDe="_block02TitlesType1Play_mmyc1_977",IDe="_block02TitlesType1680Play_mmyc1_984",zDe="_block02TitlesType1350Play_mmyc1_991",ODe="_containerRightTitlesType1Play_mmyc1_998",RDe="_containerRightTitlesType1420Play_mmyc1_1007",LDe={containerLeftTitlesPlay:ORe,containerLeftTitles420Play:RRe,containerLeftTitles620Play:LRe,containerLeftTitlesTeamPlay:DRe,containerLeftTitlesTeam1180Play:vRe,containerLeftTitlesTeam1090Play:jRe,containerLeftTitlesTeam960Play:URe,containerLeftTitlesTeam860Play:WRe,containerLeftTitlesTeam768Play:GRe,containerLeftTitlesTeam680Play:HRe,containerLeftTitlesTeam620Play:qRe,containerLeftTitlesTeam420Play:JRe,headTitlesPlay:YRe,headTitles960Play:ZRe,headTitles420Play:KRe,headTitles540Play:XRe,headTitles460Play:QRe,headTitles620Play:eLe,positionPlay:tLe,position420Play:aLe,playerPlay:oLe,player420Play:iLe,containerRightType1Play:sLe,containerRightTitlesPlay:rLe,containerRightTitles960Play:lLe,block02TitlesPlay:nLe,block02Titles620Play:dLe,mon1ScoutingPlay:cLe,mon1Scouting960Play:pLe,mon1Play:mLe,mon1420Play:uLe,mon1620Play:fLe,icnIconPlay:hLe,icnIcon960Play:yLe,icnIcon420Play:gLe,teamTitlePlay:bLe,positionTitlePlay:_Le,ageTitlePlay:SLe,partidosPlay:wLe,playedGamesTitlePlay:CLe,playedMinutesTitlePlay:kLe,block01TitlesPlay:ELe,monPlay:VLe,containesOptionsTitlesPlay:xLe,templateTablaProductividadType1Play:NLe,templateTablaProductividadType1400Play:TLe,headTitlesType1Play:BLe,headTitlesType1420Play:FLe,headTitlesType1400Play:PLe,headTitlesType1540Play:$Le,headTitlesType1460Play:ALe,headTitlesType1680Play:MLe,headTitlesType1350Play:ILe,positionType1Play:zLe,positionType1400Play:OLe,teamType1Play:RLe,teamType1400Play:LLe,frecuenciaType1Play:DLe,frecuenciaType1540Play:vLe,containerLeftTitlesType1Play:jLe,frecuenciaWrapperType1Play:ULe,frecuenciaWrapperType1680Play:WLe,promedioPartidoType1Play:GLe,promedioEstePartidoType1Play:HLe,promedioEstePartidoType1960Play:qLe,promedioEstePartidoWrapperType1Play:JLe,promedioEstePartidoWrapperType11200Play:YLe,promedioEstePartidoWrapperType11090Play:ZLe,promedioEstePartidoWrapperType11086Play:KLe,promedioPartidosType1Play:XLe,promedioPartidosWrapperType1Play:QLe,promedioPartidosWrapperType1960Play:eDe,promedioPartidosWrapperType11086Play:tDe,partidosJugadosType1Play:aDe,partidosJugadosType1960Play:oDe,partidosJugadosWrapperType1Play:iDe,partidosJugadosWrapperType11200Play:sDe,partidosJugadosWrapperType11180Play:rDe,partidosJugadosWrapperType11170Play:lDe,partidosJugadosWrapperType11140Play:nDe,partidosJugadosWrapperType11086Play:dDe,partidosJugadosWrapperType1960Play:cDe,partidosJugadosWrapperType1880Play:pDe,partidosJugadosWrapperType1860Play:mDe,partidosJugadosWrapperType1830Play:uDe,partidosJugadosWrapperType1790Play:fDe,partidosJugadosWrapperType1930Play:hDe,partidosJugadosWrapperType1770Play:yDe,block01TitlesType1Play:gDe,monType1Play:bDe,monType1960Play:_De,monType1680Play:SDe,videosType1Play:wDe,videosType1680Play:CDe,videosType1600Play:kDe,videosType1540Play:EDe,videosType1420Play:VDe,videosType1400Play:xDe,containesOptionsTitlesType1Play:NDe,containesOptionsTitlesType1768Play:TDe,containesOptionsTitlesType1730Play:BDe,containesOptionsTitlesType1690Play:FDe,icnIconType1Play:PDe,icnIconType1420Play:$De,icnIconType1400Play:ADe,block02TitlesType1Play:MDe,block02TitlesType1680Play:IDe,block02TitlesType1350Play:zDe,containerRightTitlesType1Play:ODe,containerRightTitlesType1420Play:RDe},Z1={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:o}=jt(t);return{myDivRef:t,elementSize:o}},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:{}},a4=()=>{e.useCssVars(t=>({"8d117076":t.background,"39ae673e":t.height,"5bb96572":t.fontSize,"71676add":t.fontColor,"8040e1ac":t.fontFamily,"61b44ebb":t.heightTeam}))},o4=Z1.setup;Z1.setup=o4?(t,o)=>(a4(),o4(t,o)):a4;const DDe={ref:"myDivRef"},vDe=e.createElementVNode("br",null,null,-1),jDe=e.createElementVNode("br",null,null,-1),UDe=e.createElementVNode("br",null,null,-1);function WDe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",DDe,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.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(r.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),i.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),i.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(r.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[i.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 "),vDe,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.mon1ClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.templateTablaProductividadType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.headTitlesType1ClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassTeamPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionType1ClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.teamType1ClassPlay)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.frecuenciaWrapperType1ClassPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.frecuenciaType1ClassPlay)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.promedioEstePartidoWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.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),i.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.promedioPartidosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Promedio partido"),jDe,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),i.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.partidosJugadosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Partidos "),UDe,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containesOptionsTitlesType1ClassPlay)},[i.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.monType1ClassPlay)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.videosType1ClassPlay)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.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(r.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),i.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),i.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),i.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(r.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.mon1ScoutingClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const GDe={$style:LDe},HDe=ot(Z1,[["render",WDe],["__cssModules",GDe]]),qDe="_equipo_1lpaa_38",JDe="_atlasSeleccin_1lpaa_43",YDe="_equipoAtlasSeleccinMexi_1lpaa_47",ZDe="_aos_1lpaa_51",KDe="_span12_1lpaa_55",XDe="_nacionalidadMex_1lpaa_58",QDe="_manchesterUnited_1lpaa_61",eve="_manchesterUnited12_1lpaa_68",tve="_containerInfo_1lpaa_78",ave="_verPerfil12_1lpaa_87",ove="_btnProfile_1lpaa_96",ive="_containerButton_1lpaa_112",sve="_containerButton2_1lpaa_119",rve="_dataContainer_1lpaa_125",lve="_expandedInfoPlayer_1lpaa_135",nve="_containerDataBg_1lpaa_225",dve="_containerDataSm_1lpaa_236",cve="_span_1lpaa_55",pve="_manchesterUnited14_1lpaa_247",mve="_filter_1lpaa_252",uve="_verPerfil_1lpaa_87",fve="_manchesterUnited8_1lpaa_273",hve="_manchesterUnitedParent1_1lpaa_279",yve="_manchesterUnited1_1lpaa_68",gve="_manchesterUnitedParent_1lpaa_279",bve="_frameDiv_1lpaa_301",_ve="_infoExpanded_1lpaa_309",Sve="_countryFlag_1lpaa_462",wve={equipo:qDe,atlasSeleccin:JDe,equipoAtlasSeleccinMexi:YDe,aos:ZDe,span12:KDe,nacionalidadMex:XDe,manchesterUnited:QDe,manchesterUnited12:eve,containerInfo:tve,verPerfil12:ave,btnProfile:ove,containerButton:ive,containerButton2:sve,dataContainer:rve,expandedInfoPlayer:lve,containerDataBg:nve,containerDataSm:dve,span:cve,manchesterUnited14:pve,filter:mve,verPerfil:uve,manchesterUnited8:fve,manchesterUnitedParent1:hve,manchesterUnited1:yve,manchesterUnitedParent:gve,frameDiv:bve,infoExpanded:_ve,countryFlag:Sve},K1={components:{GSCButton:v2},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:o}=jt(t);return{myDivRef:t,elementSize:o}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},i4=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},s4=K1.setup;K1.setup=s4?(t,o)=>(i4(),s4(t,o)):i4;const Lt=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),Cve={ref:"myDivRef"},kve=["src"],Eve=Lt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Vve=Lt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),xve=Lt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Nve=Lt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Tve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Bve=Lt(()=>e.createElementVNode("span",null,"xG: ",-1)),Fve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Pve=Lt(()=>e.createElementVNode("span",null,"xG: ",-1)),$ve=Lt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Ave=Lt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Mve=Lt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Ive=Lt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),zve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Ove=Lt(()=>e.createElementVNode("span",null,"xG: ",-1));function Rve(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Cve,[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,kve)],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(i.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(l,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.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:o[0]||(o[0]=n=>r.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(l,{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!=""&&i.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:o[1]||(o[1]=n=>r.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(l,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.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:o[2]||(o[2]=n=>r.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)},[Eve,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)},[Vve,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)},[xve,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)},[Nve,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)},[Tve,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)},[Bve,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)},[Fve,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)},[Pve,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)},[$ve,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)},[Ave,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)},[Mve,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)},[Ive,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)},[zve,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)},[Ove,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(l,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&i.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:o[3]||(o[3]=n=>r.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const X1={components:{GSCCarousel:q2,GSCLeaders:HIe,GSCRowTable:zRe,GSCTableHeader:HDe,GSCExpandedInfo:ot(K1,[["render",Rve],["__cssModules",{$style:wve}],["__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:o}=jt(t);return{myDivRef:t,elementSize:o}},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,o){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(o)||this.sonConjuntosDistintos(t.setNationalitiesIds,o.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,o){t.length>0&&JSON.stringify(t)!==JSON.stringify(o)&&(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={},o={},a=[],i=[],s=[];return this.formatFilterStats.map(r=>{t[r.team_id]?(t[r.team_id].total+=r.total,t[r.team_id].uniqueGames.has(r.game_id)||t[r.team_id].uniqueGames.add(r.game_id)):this.teamInfo[r.team_id]&&(t[r.team_id]=this.initializeTeamData(r,this.teamInfo[r.team_id])),r.player_id!==0&&r.player_id!==62117&&(o[r.player_id]?(o[r.player_id].total+=r.total,o[r.player_id].uniqueGames.has(r.game_id)||o[r.player_id].uniqueGames.add(r.game_id)):o[r.player_id]=this.initializePlayerData(r,this.playersInfo[r.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,o),a=this.processTeamData(t),i=this.processPlayerData(o),this.filterTeam!==0&&!this.isTeam&&(s=i.filter(r=>r.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:i)}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,o){return t.total>o.total?-1:t.total<o.total?1:t.minutes<o.minutes?-1:t.minutes>o.minutes?1:0},sonConjuntosDistintos(t,o){const a=Array.from(t),i=Array.from(o);if(a.length!==i.length)return!0;for(let s=0;s<a.length;s++)if(!o.has(a[s]))return!0;return!1},getnameshort(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,o){return t.total<o.total?-1:t.total>o.total?1:t.name<o.name?-1:t.name>o.name?1:0},sortAndSlice(t,o){return t.sort((a,i)=>(a.name<i.name?1:-1)&&(a.total<i.total?1:-1)).slice(0,o)},getCategoryName(t){let o="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(o=this.categories[a].name);return o},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,o,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,r=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,r=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const c=1,d=2,m=3,u=this.isTeam?m:d,y=t.player_id;let p=[],h=this.isTeam?t.id:this.filterTeam;y?this.isTeam?h=y:(p=[y],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?h=t.id:(p=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:u,gameIds:null,playerIds:p,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:h||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:r,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",f)},emitEventMediaFullTable(t,o,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,r=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,r=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const c=1,d=2,m=3,u=this.isTeam?m:d;let y=[],p=this.isTeam?t.id:this.filterTeam;this.isTeam?p=t.id:(y=[t.id],n=n.filter(f=>!f.toString().includes("_r")));const h={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:u,gameIds:null,playerIds:y,goalkeeperIds:[],categoryIds:n,teamId:p||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:r,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",h)},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 o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,o){this.$emit("clickprofile",{id:t,teamId:o,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 o=[],a={},i={};this.arePlaysEmpty=!1;const s=await Ge.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){o=s.data.data.map(l=>this.formatStatsData(l)),s.data.teams.forEach(l=>{a[l[0]]={},a[l[0]].id=l[0],a[l[0]].name=l[1],a[l[0]].abrv=l[2],a[l[0]].img=l[3],a[l[0]].effectiveness=l[4],a[l[0]].games_played=l[5],a[l[0]].games_played_lastseason=l[6],a[l[0]].positiontable=l[7],a[l[0]].goals=l[8],a[l[0]].goalsrecived=l[9],a[l[0]].xg=l[10],a[l[0]].frecuency=l[11],a[l[0]].game_avg=l[12],a[l[0]].game_avg_last_season=l[13]});const r=new Set;s.data.players.forEach(l=>{const n=this.getObjectPlayer(l);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,d=n.teamName[0].acronym,m=a[n.teamName[0].team_id].name,u=n.teamName[0].team_id,y=this.positions[n.numberPositionId-1].fullname,p=this.positions[n.numberPositionId-1].name,h=n.countryId[0].nationality_id,f=n.effectiveness,g=n.min,_=n.games,b=n.date;n.arrayNationalities.forEach(T=>{r.add(T.numberId)}),i[l[0]]={id:l[0],name:l[1],img:l[2],age:c,team:d,teamname:m,teamid:u,position:y,positionfull:p,effectiveness:f,country:h,games_played:_,minutes_played:g,nationalityId:g,date:b,nationality:l[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=r,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=i,this.formatStats=o,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(o){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(o)}}},filterRecords(t){if(!this.formatStats.length)return[];const o={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&&!o.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),o.setNationalitiesIds=!0),!Object.values(o).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),i=new Set(t.setPositionsIds),[s,r]=t.arrayAgeRange||[0,100],l=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(!c||o.playingAs&&!t.playingAs.includes(n.playing_as)||o.matchResult&&!t.matchResult.includes(n.match_result)||o.sections&&!t.sections.includes(n.section)||o.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||o.setNationalitiesIds&&!c.arrayNationalitiesIds.some(d=>a.has(d))||o.setPositionsIds&&!i.has(c.numberPositionId))return!1;if(o.arrayAgeRange){const d=c.numberAge;if(d<s||d>r)return!1}return!(o.setYear&&c.date<l||o.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const o={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 o.hasFilters=this.checkActiveFilters(o),Object.freeze(o)},checkActiveFilters(t){const{basic:o,player:a}=t;return o.playingAs.size>0||o.matchResult.size>0||o.sections.size>0||o.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,o){return t.filter(a=>!(!this.passesBasicFilters(a,o.basic)||o.player&&!this.passesPlayerFilters(a,o.player)))},passesBasicFilters(t,o){const{playingAs:a,matchResult:i,sections:s,zone:r,typeZone:l}=o;if(a.size&&!a.has(t.playing_as)||i.size&&!i.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(r.size){const n=l===1?t.origen:t.destino;if(!r.has(n))return!1}return!0},passesPlayerFilters(t,o){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(o.nationalTeams.enabled){if(o.nationalTeams.players.size&&!o.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(r=>o.nationalities.has(r)))return!1;const{ageRange:i,yearLimit:s}=o;if(a.numberAge<i[0]||a.numberAge>i[1]||a.date<s||!o.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const o={};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,i)=>{o[a]=t[i]}),o},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=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:Ra[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(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},formatArrayPaginate(t){const o=Math.ceil(t.length/this.numRows);return Array.from({length:o},(a,i)=>{const s=i*this.numRows,r=s+this.numRows;return t.slice(s,r)})},initializeTeamData(t,o){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:o.id,name:o.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:o.effectiveness,frecuency:o.frecuency,game_avg:o.game_avg,game_avg_last_season:o.game_avg_last_season,games_played:o.games_played,games_played_lastseason:o.games_played_lastseason,positiontable:o.positiontable,goals:o.goals,goalsrecived:o.goalsrecived,xg:o.xg};return this.typeStats==="every90"&&(a.minutes=o.minutes||0),a},initializePlayerData(t,o){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return o?Object.assign(a,{name:o.name,name_short:this.getnameshort(o.name),img:o.img,id:o.id,age:o.age,team:o.team,teamname:o.teamname,teamid:o.teamid,position:o.position,positionId:o.positionId,positionfull:o.positionfull,country:o.country,effectiveness:o.effectiveness,minutes:o.minutes_played,games:o.games_played,date:o.date,nationality:o.nationality,player_country_flag:o.player_country_flag,categoryName:this.categoryName,goals:o.goals||0,goalsrecived:o.goalsrecived||0,xg:o.xg||0,positiontable:o.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,o){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(o).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(o).forEach(a=>{o[a].minutes<90&&delete o[a]})},processTeamData(t){return Object.values(t).sort((o,a)=>a.total-o.total).slice(0,60).map((o,a)=>{const i=a+1;return{...o,top:i<10?`0${i}`:`${i}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((o,a)=>{const i=a+1;return{...o,top:i<10?`0${i}`:`${i}`}})},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)}}},r4=()=>{e.useCssVars(t=>({"14b8a4d8":t.borderRadius,c64876f8:t.borderWidth,c87673be:t.borderColor}))},l4=X1.setup;X1.setup=l4?(t,o)=>(r4(),l4(t,o)):r4;const Bn=t=>(e.pushScopeId("data-v-01e14e57"),t=t(),e.popScopeId(),t),Lve={ref:"myDivRef"},Dve={class:"text"},vve={class:"groupsLeague"},jve={class:"row-table-carrousel"},Uve={key:1,class:"container-no-search-result"},Wve={key:0,class:"overlay-loading-top"},Gve=Bn(()=>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)),Hve=Bn(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),qve=[Gve,Hve],Jve=Bn(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Yve=Bn(()=>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 Zve(t,o,a,i,s,r){const l=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),d=e.resolveComponent("GSCCarousel"),m=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Lve,[r.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:o[0]||(o[0]=u=>r.clickMore(a.category))},[e.createElementVNode("div",Dve,[e.createElementVNode("div",vve,e.toDisplayString(a.categoryName)+"  → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[r.displayData.length>0?(e.openBlock(),e.createBlock(d,{key:0,items:r.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:r.changeCarrousel},{default:e.withCtx(({item:u})=>[e.createElementVNode("div",jve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,(y,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[y.top==="01"?(e.openBlock(),e.createBlock(l,{key:0,onAddPlayer:r.HandlerAddplayer,onMediadata:o[1]||(o[1]=h=>r.emitEventMedia(h,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==y.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:y.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",name:y.name,player_short:y.name_short,player_id:y.id,categoryId:a.category,total:y.total}:{top:"01",logo:y.img,total:y.total,name_team:y.name,player_id:y.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?i.elementSize.width>360?"210px":"130px":i.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:r.clickexpand,onMore:r.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==y.id&&t.expand,onAddPlayer:r.HandlerAddplayer,onMediadata:o[2]||(o[2]=h=>r.emitEventMedia(h,a.category,a.categoryName)),data:a.typeTable==0?{position:y.top,player_name:y.name,player_short:y.name_short,player_photo:y.img,total:y.total,id:y.id,player_age:y.age,team_abrev:y.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",player_position:y.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+y.country+".jpg",player_games:y.minutes,player_min:y.games,league_name:"          Liga MX          "}:{position:y.top,team_logo:y.img,team_abrev:y.name,frequency:y.frecuency,promthistournament:y.game_avg,promlasttournament:y.game_avg_last_season,teams_games:"-",category:a.category,total:y.total,id:y.id},height:"71px",background:p%2===0?a.backgroundEven:a.backgroundOdd,onExpand:r.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==y.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":y.positionId!==1,onAddPlayer:r.HandlerAddplayer,onShowGraph:r.HandlerShowGraph,data:a.typeTable==0?{teams:y.teamname,age:y.age,dataofbirth:y.date,nationality:y.nationality,countryFlag:y.player_country_flag,position:y.position,games:y.games,min:y.minutes,goals:y.originalTotal||y.total,effectiveness:y.effectiveness,category:a.categoryName,id:y.id}:{position:y.position,goals:y.goals,goals_received:y.goalsrecived,games_played:y.games_played,category:a.categoryName,effectiveness:y.effectiveness,xg:y.xg,total:y.originalTotal||y.total,attendance:"-",id:y.id},onViewprofile:h=>r.viewprofile(h,y.teamid),background:p%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",Uve,[t.isloading?(e.openBlock(),e.createElementBlock("div",Wve,qve)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Jve,Yve],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(m,{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(r.displayData,(u,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,(p,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==p.id&&t.expand,onMediadata:o[3]||(o[3]=f=>r.emitEventMediaFullTable(f,a.category,a.categoryName)),onAddPlayer:r.HandlerAddplayer,data:a.typeTable==0?{position:p.top,player_name:p.name,player_short:p.name_short,player_photo:p.img,total:p.total,id:p.id,player_age:p.age,team_abrev:p.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.teamid+".png",player_position:p.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+p.country+".jpg",player_games:p.games,player_min:p.minutes,league_name:"          Liga MX          "}:{position:p.positiontable,team_logo:p.img,team_abrev:p.name,frequency:p.frecuency,promthistournament:p.game_avg,promlasttournament:p.game_avg_last_season,category:a.category,team_games:p.games_played,total:p.total,id:p.id},height:"71px",background:((y+1)*5+h)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==p.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":p.positionId!==1,onAddPlayer:r.HandlerAddplayer,onShowGraph:r.HandlerShowGraph,data:a.typeTable==0?{teams:p.teamname,age:p.age,dataofbirth:p.date,nationality:p.nationality,countryFlag:p.player_country_flag,position:p.position,positionfull:p.positionfull,games:p.games,min:p.minutes,goals:p.originalTotal||p.total,effectiveness:p.effectiveness,category:r.getCategoryName(a.category),id:p.id}:{position:p.positiontable,goals:p.goals,goals_received:p.goalsrecived,games_played:p.games_played,category:a.categoryName,effectiveness:p.effectiveness,xg:p.xg,total:p.originalTotal||p.total,category:r.getCategoryName(a.category),attendance:"-",id:p.id},onViewprofile:f=>r.viewprofile(f,p.teamid),background:h%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 Kve=ot(X1,[["render",Zve],["__scopeId","data-v-01e14e57"]]),Xve="_filtersContainer_b9wc6_1",Qve="_filtersContainer1232_b9wc6_1",eje="_closeFiltersPc_b9wc6_1",tje="_textleyemdmultipleleagues_b9wc6_1",aje="_textleyemdmultipleleagues380_b9wc6_1",oje="_filtersContainer760_b9wc6_1",ije="_filtersContainer460_b9wc6_1",sje="_containerSectionPlay_b9wc6_1",rje="_containerSectionPlay1232_b9wc6_1",lje="_containerSectionPlay960_b9wc6_1",nje="_containerSectionPlay320_b9wc6_1",dje="_containerSectionPlay350_b9wc6_1",cje="_containerSection_b9wc6_1",pje="_containerSection1232_b9wc6_1",mje="_containerSection960_b9wc6_1",uje="_containerSection320_b9wc6_1",fje="_containerSection350_b9wc6_1",hje="_templateLosMejores_b9wc6_1",yje="_templateLosMejores1232_b9wc6_1",gje="_templateLosMejores960_b9wc6_1",bje="_templateLosMejores420_b9wc6_1",_je="_templateLosMejores320_b9wc6_1",Sje="_templateLosMejores540_b9wc6_1",wje="_templateLosMejores350_b9wc6_1",Cje="_topFiltersParent_b9wc6_1",kje="_topFiltersParent1232_b9wc6_1",Eje="_topFiltersParent960_b9wc6_1",Vje="_topFiltersParent460_b9wc6_1",xje="_topFiltersParent420_b9wc6_1",Nje="_containerTheBest_b9wc6_1",Tje="_containerTheBest1232_b9wc6_1",Bje="_containerTheBest960_b9wc6_1",Fje="_containerTheBest320_b9wc6_1",Pje="_titleSection_b9wc6_1",$je="_titleSection540_b9wc6_1",Aje="_containerTables_b9wc6_1",Mje="_containerTables960_b9wc6_1",Ije="_containerTables760_b9wc6_1",zje="_containerTables320_b9wc6_1",Oje="_toniKroosWrapper_b9wc6_1",Rje="_toniKroosWrapper1080_b9wc6_1",Lje="_toniKroosWrapper975_b9wc6_1",Dje="_toniKroosWrapper760_b9wc6_1",vje="_toniKroosWrapper420_b9wc6_1",jje="_toniKroosWrapper320_b9wc6_1",Uje="_frameChild_b9wc6_1",Wje="_filtros_b9wc6_1",Gje="_groupParent_b9wc6_1",Hje="_shapeIcon_b9wc6_1",qje="_btnFilters_b9wc6_1",Jje="_btnFiltersPC_b9wc6_1",Yje="_quitarFiltros_b9wc6_1",Zje="_quitarFiltros730_b9wc6_1",Kje="_quitarFiltros480_b9wc6_1",Xje="_quitarFiltros380_b9wc6_1",Qje="_btnCloseFilters_b9wc6_1",eUe="_mejoresJugadores_b9wc6_1",tUe="_mejoresJugadores730_b9wc6_1",aUe="_mejoresJugadores480_b9wc6_1",oUe="_mejoresJugadoresSM_b9wc6_1",iUe="_toniKroos_b9wc6_1",sUe="_teamBar_b9wc6_1",rUe="_menuSection_b9wc6_1",lUe="_menuSection960_b9wc6_1",nUe="_menuSectionPlay_b9wc6_1",dUe="_menuSectionPlay960_b9wc6_1",cUe="_containerMenu_b9wc6_1",pUe="_containerMenu760_b9wc6_1",mUe="_containerFilters_b9wc6_1",uUe="_teamBarParent_b9wc6_1",fUe="_topFilters_b9wc6_1",hUe="_topFilters1232_b9wc6_1",yUe="_topFilters420_b9wc6_1",gUe="_topFilters460_b9wc6_1",bUe="_losMejores_b9wc6_1",_Ue="_losMejores380_b9wc6_1",SUe="_losMejores530_b9wc6_1",wUe="_losMejores730_b9wc6_1",CUe="_menuSectionHeader_b9wc6_1",kUe="_menuSectionHeader1232_b9wc6_1",EUe="_menuSectionHeader960_b9wc6_1",VUe="_menuSectionHeader730_b9wc6_1",xUe="_dropdown_b9wc6_1",NUe="_dropdown730_b9wc6_1",TUe="_dropdown1_b9wc6_1",BUe="_dropdown1730_b9wc6_1",FUe="_dropdownParent_b9wc6_1",PUe="_dropdownParent730_b9wc6_1",$Ue="_menuSectionParentHeader_b9wc6_1",AUe="_menuSectionParentHeader1232_b9wc6_1",MUe="_menuSectionParentHeader960_b9wc6_1",IUe="_menuSectionParentHeader730_b9wc6_1",zUe="_menuSectionParentHeader430_b9wc6_1",OUe="_descubreVideos_b9wc6_1",RUe="_descubreVideos1232_b9wc6_1",LUe="_descubreVideos960_b9wc6_1",DUe="_allCategories_b9wc6_1",vUe="_containerScountingBtn_b9wc6_3",jUe="_btnDeleteAplica_b9wc6_13",UUe="_SearchBtnBar_b9wc6_33",WUe="_btnLeyendTxt_b9wc6_52",GUe="_BtnSearchScounting_b9wc6_61",HUe="_containerPredefined_b9wc6_85",qUe="_containerPredefinedScounting_b9wc6_92",JUe="_titleContainerPredefined_b9wc6_100",YUe="_subtitleContainerPredefined_b9wc6_111",ZUe={filtersContainer:Xve,filtersContainer1232:Qve,closeFiltersPc:eje,textleyemdmultipleleagues:tje,textleyemdmultipleleagues380:aje,filtersContainer760:oje,filtersContainer460:ije,containerSectionPlay:sje,containerSectionPlay1232:rje,containerSectionPlay960:lje,containerSectionPlay320:nje,containerSectionPlay350:dje,containerSection:cje,containerSection1232:pje,containerSection960:mje,containerSection320:uje,containerSection350:fje,templateLosMejores:hje,templateLosMejores1232:yje,templateLosMejores960:gje,templateLosMejores420:bje,templateLosMejores320:_je,templateLosMejores540:Sje,templateLosMejores350:wje,topFiltersParent:Cje,topFiltersParent1232:kje,topFiltersParent960:Eje,topFiltersParent460:Vje,topFiltersParent420:xje,containerTheBest:Nje,containerTheBest1232:Tje,containerTheBest960:Bje,containerTheBest320:Fje,titleSection:Pje,titleSection540:$je,containerTables:Aje,containerTables960:Mje,containerTables760:Ije,containerTables320:zje,toniKroosWrapper:Oje,toniKroosWrapper1080:Rje,toniKroosWrapper975:Lje,toniKroosWrapper760:Dje,toniKroosWrapper420:vje,toniKroosWrapper320:jje,frameChild:Uje,filtros:Wje,groupParent:Gje,shapeIcon:Hje,btnFilters:qje,btnFiltersPC:Jje,quitarFiltros:Yje,quitarFiltros730:Zje,quitarFiltros480:Kje,quitarFiltros380:Xje,btnCloseFilters:Qje,mejoresJugadores:eUe,mejoresJugadores730:tUe,mejoresJugadores480:aUe,mejoresJugadoresSM:oUe,toniKroos:iUe,teamBar:sUe,menuSection:rUe,menuSection960:lUe,menuSectionPlay:nUe,menuSectionPlay960:dUe,containerMenu:cUe,containerMenu760:pUe,containerFilters:mUe,teamBarParent:uUe,topFilters:fUe,topFilters1232:hUe,topFilters420:yUe,topFilters460:gUe,losMejores:bUe,losMejores380:_Ue,losMejores530:SUe,losMejores730:wUe,menuSectionHeader:CUe,menuSectionHeader1232:kUe,menuSectionHeader960:EUe,menuSectionHeader730:VUe,dropdown:xUe,dropdown730:NUe,dropdown1:TUe,dropdown1730:BUe,dropdownParent:FUe,dropdownParent730:PUe,menuSectionParentHeader:$Ue,menuSectionParentHeader1232:AUe,menuSectionParentHeader960:MUe,menuSectionParentHeader730:IUe,menuSectionParentHeader430:zUe,descubreVideos:OUe,descubreVideos1232:RUe,descubreVideos960:LUe,allCategories:DUe,containerScountingBtn:vUe,btnDeleteAplica:jUe,SearchBtnBar:UUe,btnLeyendTxt:WUe,BtnSearchScounting:GUe,containerPredefined:HUe,containerPredefinedScounting:qUe,titleContainerPredefined:JUe,subtitleContainerPredefined:YUe},KUe=e.ref(_b()),XUe=e.ref(OEe()),QUe=e.ref(Sb()),eWe={components:{GSCTableHeader:Vp,GscSwitchComponent:Dp,GSCFilterperteam:z2,DropdownYears:bb,GSCFilters:h1,DropdownPositions:yb,GSCExpandedInfo:Mp,GSCLabel:Z2,GSCSeasonSelect:C2,GSCTopCategory:Kve,GSCTournamentSelect:V2,GSCRowTable:Tp},computed:{...$Me.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},o=JSON.stringify(t);if(JSON.stringify(this.filters)!=o)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...KUe.value}},filterButtonPropsAux(){return{...XUe.value}},filterButtonPropsTournaments(){return{...QUe.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 o=0;o<t.teams.length;o++)this.teams.push({id:t.teams[o].team_id,team:t.teams[o].colloquial_name,logo:t.teams[o].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:o}=jt(t);return{myDivRefTopsFull:t,elementSize:o}},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,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+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:D,personalDataFilters:yi,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 q_e(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 o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const o=t.id===this.selectedTournament.id;t.isSelected=o,t.isDefaultTournament=o})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let i=0;i<this.detaildProductivityCategories.offensive.categories.length;i++)this.detaildProductivityCategories.offensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.defensive.categories.length;i++)this.detaildProductivityCategories.defensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.possession.categories.length;i++)this.detaildProductivityCategories.possession.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.offensesConditions.length;i++)this.detaildProductivityCategories.offensesConditions[i]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters(Fe.All),o.clearFilters(Fe.AGE_RANGE),o.clearFilters(Fe.YEAR),o.clearFilters(Fe.NATIONALITY),o.clearFilters(Fe.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(i,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let i=0;i<a.teams.length;i++)this.teamsscouting.push({id:a.teams[i].team_id,team:a.teams[i].colloquial_name,logo:a.teams[i].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 o,a;const i=(o=this.cachedPlayersMap)==null?void 0:o.get(t.id);if(i){const s={id:t.id,player_name:i.stringFullName,position:t.position,is_female:(i==null?void 0:i.is_female)||0,team_id:(a=i==null?void 0:i.teamName[0])==null?void 0:a.team_id,nationality:i.stringNationalityName,photo:i.stringImageUrl,countryFlag:i.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var o,a;const i=(o=this.cachedPlayersMap)==null?void 0:o.get(t.id||t.player_id);if(i){const s={player_id:i.numberId,name:i.stringFullName,position:i.numberPositionId,is_female:(i==null?void 0:i.is_female)||0,dob:"",team_id:(a=i==null?void 0:i.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:i.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let o=[t.id],a=t.team_id;const i={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o,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",i)},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,o,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:o||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=Ge.create({headers:{Authorization:`${this.token}`}}),{data:o}=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<o.length;s++){o[s];let r=o[s].dob.split("T")[0].split("-");var i={position:s+1,player_name:this.abrevName(o[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[s].player_id+".png",total:o[s].total.toFixed(0),id:o[s].player_id,player_age:this.calcularEdad(o[s].dob),team_abrev:o[s].teams[0].acronym,team_name:o[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o[s].teams[0].team_id+".png",player_position:o[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[s].nationality_id+".jpg",date:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:o[s].team_id,nationality_name:Ra[o[s].nationality_id],player_games:o[s].games_played,player_min:o[s].minutes_played,league_name:o[s].tournament_name,seasons:o[s].seasons,season_id:o[s].seasons[0]};this.rowScoutingData.push(i)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let r=0;r<s.teams.length;r++)this.teamsscouting.push({id:s.teams[r].team_id,team:s.teams[r].colloquial_name,logo:s.teams[r].logo})}this.loadingActive=!1},abrevName(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},calcularEdad(t){var o=new Date(t),a=new Date,i=a-o,s=Math.floor(i/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var o;const a=t.find(n=>n.isSelected),i=a?a.id:null,s=a?a.name:null,r=((o=a==null?void 0:a.seasons[0])==null?void 0:o.id)||null;var l=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");l!==-1?this.arrayFiltersPlays[l].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),i!==null&&r!==null&&(this.seasonActive=r,this.selectedTournament=i,this.tournamentSelectedObj={propName:"id",value:i,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",r),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.length;a++)t[a].isSelected&&o.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),o.length==0&&(o=[1]),o.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,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[i,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 o=[];if(t.hasOwnProperty("nationalities")){for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=o},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 o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filterScounting.categories=o,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 o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(i=>i.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 o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(a!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].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 o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,o){return Math.floor(Math.random()*(o-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 o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(t){var o=this.arrayFiltersPlays.findIndex(i=>i.type===t);if(o!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,r)=>r+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<i.teams.length;s++)this.teamsscouting.push({id:i.teams[s].team_id,team:i.teams[s].colloquial_name,logo:i.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.categoriesPlaysTypes.offensive.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.categoriesPlaysTypes.defensive.categories[i].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.categoriesPlaysTypes.possession.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.categoriesPlaysTypes.offenses.categories[i].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 i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].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(i=>i.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].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(Fe.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(Fe.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(Fe.AGE_RANGE)):t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Fe.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(Fe.ELIGIBILITY)}this.arrayFiltersPlays.splice(o,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 o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(o=>o.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 o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let l=0;l<t.playingAs.length;l++)if(t.playingAs[l].isSelected){const n=t.playingAs[l].name=="Local"?1:2;o.push(n)}for(let l=0;l<t.gameSections.length;l++)t.gameSections[l].isSelected&&a.push(t.gameSections[l].value);this.fVsections=a,this.fVplayingAs=o,this.fvTypeStats=t.statisticType;var i=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?i!=-1&&this.arrayFiltersPlays.splice(i,1):i!=-1?this.arrayFiltersPlays[i].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTime"),r="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(r+=", 0-15"),this.fVsections.includes(2)&&(r+=", 15-30"),this.fVsections.includes(3)&&(r+=", 30-45"),this.fVsections.includes(4)&&(r+=", 45-60"),this.fVsections.includes(5)&&(r+=", 60-75"),this.fVsections.includes(6)&&(r+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=r:this.arrayFiltersPlays.push({name:r,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,i)=>i+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(Fe.All),a.clearFilters(Fe.AGE_RANGE),a.clearFilters(Fe.YEAR),a.clearFilters(Fe.NATIONALITY),a.clearFilters(Fe.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 o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo})},onFiltersData(t){var o=0,a=0;t.ageByRange?(t.ageByRange.min==0?o=1:o=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[o,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let i="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let y=0;y<t.nationalities.length;y++)t.nationalities[y].isSelected&&this.fVnationalities.add(t.nationalities[y].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y])}else this.FVeligible=!1;for(let y=0;y<t.positions.length;y++)t.positions[y].isSelected&&this.fVsetPositionsIds.push(t.positions[y].id);if(t.hasOwnProperty("nationalities"))var r=t.nationalities.filter(y=>y.isSelected===!0);var l=t.positions.filter(y=>y.isSelected===!0);if(l.length==1&&(i=l[0].name),t.hasOwnProperty("nationalities")&&r.length==1&&(s=r[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var c=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersPosition");c!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[c].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i:this.arrayFiltersPlays.splice(c,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i,type:"onFiltersPosition"})}if(t.hasOwnProperty("ageLimits")){if(this.arrayFiltersPlays=this.arrayFiltersPlays.filter(y=>y.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 d=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");d!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[d].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(d,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 d=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersAge");d!=-1&&this.arrayFiltersPlays.splice(d,1)}}else if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var m=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");m!=-1?this.arrayFiltersPlays[m].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 u=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");u!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[u].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(u,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(Fe.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 o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(o){console.error("Error changing tabs:",o),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 o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(o!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,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=Ge.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.get(this.tournamentsUrl);return o},async fetchTeams(){const t=Ge.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(t){const o=Ge.create({headers:{Authorization:`${this.token}`}}),{data:a}=await o.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";t.id==1?o=this.urlFilter:o=this.urlFilter;const a=Ge.create({headers:{Authorization:`${this.token}`}}),{data:i}=await a.get(o+t.id);if(Object.keys(i[0].match_lapse_combinations).forEach(u=>{this.predefinedFiltersMatchLapse[u.toString()]=i[0].match_lapse_combinations[u]}),Object.keys(i[0].playing_as_combinations).forEach(u=>{this.predefinedFiltersPlayingAs[u.toString()]=i[0].playing_as_combinations[u]}),Object.keys(i[0].field_sections_combinations).forEach(u=>{this.predefinedFiltersSections[u.toString()]=i[0].field_sections_combinations[u]}),i[0]){for(let u=0;u<i[0].filter_records.length;u++){var s=i[0].description;if(i[0].filter_records[u].field_sections!==void 0){const p=i[0].filter_records[u].field_sections.toString();(this.predefinedFiltersSections[p]||this.predefinedFiltersSections[p]=="")&&(this.predefinedFiltersSections[p]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[p]):s=s.replace("{field_sections}",this.predefinedFiltersSections[p]))}if(i[0].filter_records[u].match_lapse!==void 0){const p=i[0].filter_records[u].match_lapse.toString();(this.predefinedFiltersMatchLapse[p]||this.predefinedFiltersMatchLapse[p]=="")&&(this.predefinedFiltersMatchLapse[p]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[p]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[p]))}if(i[0].filter_records[u].playing_as!==void 0){const p=i[0].filter_records[u].playing_as.toString();(this.predefinedFiltersPlayingAs[p]||this.predefinedFiltersPlayingAs[p]=="")&&(this.predefinedFiltersPlayingAs[p]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[p]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[p]))}i[0].filter_records[u].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}",i[0].category_name);const y=s.split(": ");var r=y[1];r.length>129&&this.windowWidth>1358&&(r=r.substring(0,129),r=r+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||i[0].filter_records[u].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:u,category_name:t.name,id_category:i[0].id,title:y[0]+":",text:y[1],textOrigin:i[0].description,titledots:r,filtersPredefined:{matchResult:i[0].filter_records[u].match_result,playingAs:i[0].filter_records[u].playing_as,sections:i[0].filter_records[u].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[u].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let u=0;u<this.arrayPredefinedFilters.length;u++){var n=0,c=new Set,d={},m=this.arrayPredefinedFilters[u].text.replace(/\*.*?\*/,"");if(m=m.replace(/\*/g,""),m=m.replace(/ +/g," "),this.arrayPredefinedFilters[u].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[u].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[u].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[u].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[u].filtersPredefined.start_age,this.arrayPredefinedFilters[u].filtersPredefined.end_age]:this.arrayPredefinedFilters[u].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[u].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[u].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[u].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[u].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[u].filtersPredefined.end_age],this.arrayPredefinedFilters[u].filtersPredefined.matchResult.length!=3&&(n+=1),d.matchResult=this.arrayPredefinedFilters[u].filtersPredefined.matchResult,this.arrayPredefinedFilters[u].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[u].filtersPredefined.nationalities.length;y++)c.add(this.arrayPredefinedFilters[u].filtersPredefined.nationalities[y]);d.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),d.setNationalitiesIds=c;this.arrayPredefinedFilters[u].filtersPredefined.playingAs.length!=2&&(n+=1),d.playingAs=this.arrayPredefinedFilters[u].filtersPredefined.playingAs,this.arrayPredefinedFilters[u].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[u].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[u].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[u].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[u].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[u].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[u].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[u].filtersPredefined.typeZone,l.push({id:u+1,name:m,isSelected:!1,value:n,filters:d})}this.FVfilterGolstats=l,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((m,u)=>m-u).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections[o]):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 i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[i]||this.predefinedFiltersMatchLapse[i]=="")this.predefinedFiltersMatchLapse[i]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";i.includes(1)&&(s=s+"0-15, "),i.includes(2)&&(s=s+"16-30, "),i.includes(3)&&(s=s+"31-45, "),i.includes(4)&&(s=s+"46-60, "),i.includes(5)&&(s=s+"61-75, "),i.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[r]||this.predefinedFiltersPlayingAs[r]=="")&&(this.predefinedFiltersPlayingAs[r]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[r]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[r])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const l=t.split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),c=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const d=c.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let m=1;m<=d.length;m++)m%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=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:Ra[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(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},processPreloadedTops(t){const o={},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`}])),i=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=i,t.tops.forEach(s=>{const r=s.category;o[r]||(o[r]={teams:[],players:[]}),s.teams&&(o[r].teams=s.teams.map((l,n)=>{const c=a.get(l[0])||{};return{id:c.id,name:c.name,img:c.logo,total:l[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(o[r].players=s.players.map((l,n)=>{var c,d,m,u,y,p,h,f,g,_;const b=i.get(l[0])||{};return{age:b.numberAge,categoryName:s.name,country:(d=(c=b.countryId)==null?void 0:c[0])==null?void 0:d.nationality_id,date:b.date,effectiveness:b.effectiveness||0,games:b.games,id:l[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${l[0]}.png`,minutes:b.min,name:b.stringFullName,name_short:b.stringFullName,nationality:b.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(u=(m=b.countryId)==null?void 0:m[0])==null?void 0:u.nationality_id}.jpg`,position:b.position_short,positionId:b.numberPositionId,positionfull:this.positions[b.numberPositionId-1],team:((p=(y=b.teamName)==null?void 0:y[0])==null?void 0:p.acronym)||"",teamid:((f=(h=b.teamName)==null?void 0:h[0])==null?void 0:f.team_id)||"",teamname:((_=(g=b.teamName)==null?void 0:g[0])==null?void 0:_.acronym)||"",top:String(n+1).padStart(2,"0"),total:l[1]}}))}),o},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=Ge.create({headers:{Authorization:`${this.token}`}}),o=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(o);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,o){return`${t}-${o}`},async getTopData(t,o){const a=this.getCacheKey(t,o);if(this.topsCache.has(a))return this.topsCache.get(a);const i=Ge.create({headers:{Authorization:`${this.token}`}}),{data:s}=await i.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${o}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),o=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(o.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 Ge.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)}}},tWe={ref:"myDivRefTopsFull",class:"play-tops"},aWe={key:0,class:"overlay-loading"},oWe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),iWe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),sWe=[oWe,iWe],rWe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),lWe=[rWe],nWe={style:{display:"contents"}},dWe={style:{display:"contents"}},cWe={key:0,class:"cont-leyemd-multipleleagues"},pWe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),mWe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},uWe={key:0,style:{"margin-left":"10px"}},fWe=e.createElementVNode("span",null,"Todas las categorías",-1),hWe=[fWe],yWe=e.createElementVNode("span",null,"Tipo de Jugada",-1),gWe=e.createElementVNode("span",null,"Filtro GolStats",-1),bWe={key:3,style:{width:"100%",height:"295px"}};function _We(t,o,a,i,s,r){var l,n,c;const d=e.resolveComponent("GSCTournamentSelect"),m=e.resolveComponent("GSCSeasonSelect"),u=e.resolveComponent("GscSwitchComponent"),y=e.resolveComponent("GSCFilterperteam"),p=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),f=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),_=e.resolveComponent("GSCTopCategory"),b=e.resolveComponent("GSCTableHeader"),T=e.resolveComponent("GSCRowTable"),R=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",tWe,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",aWe,sWe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[i.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[i.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(d,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:r.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(m,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[i.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(u,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[i.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(d,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:r.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(m,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(y,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),i.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:o[0]||(o[0]=(...P)=>r.clickOpenFilters&&r.clickOpenFilters(...P))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:on},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?"":i.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...P)=>r.clickCloseFilters&&r.clickCloseFilters(...P))},lWe,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:o[2]||(o[2]=(...P)=>r.openMenuFilters&&r.openMenuFilters(...P))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:on},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:wb},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:o[3]||(o[3]=(...P)=>r.openMenuFilters&&r.openMenuFilters(...P))},null,6),[[e.vShow,i.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},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(i.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:o[4]||(o[4]=(...P)=>r.toggleAdvancedView&&r.toggleAdvancedView(...P))},[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;":i.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(p,e.mergeProps({key:0,"button-filter-props":s.isAvanced?r.filterButtonPropsTournaments:r.filterButtonProps,width:"100%"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.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":r.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",nWe,[e.createElementVNode("div",{style:e.normalizeStyle((i.elementSize.width>=768,"width: 61px;"))},"Posición:",4),e.createElementVNode("div",{style:e.normalizeStyle(i.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(h,{"dropdown-props":s.dropdownProps,positions:(l=s.personalDataFilters)==null?void 0:l.positions,onChangePositions:r.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((i.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(i.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(f,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(c=s.personalDataFilters)==null?void 0:c.selectedYear,onChangeYear:r.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",dWe,[e.withDirectives(e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:r.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(p,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":r.filterButtonPropsTournaments,filters:s.personalDataFilters},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.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":r.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},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.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":r.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":r.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:o[5]||(o[5]=(...P)=>r.getScoutingData&&r.getScoutingData(...P))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":r.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(p,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":r.onFiltersGolStats,filters:r.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,i.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",cWe,[pWe,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(y,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:r.clickTeamScouting,onClickAll:r.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",mWe," 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",uWe,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(P,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":P.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteLabelFilter,id:P.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:i.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(P=>P.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:o[6]||(o[6]=(...P)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...P))}," 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)},hWe,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,(P,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(P.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:r.onShowFullTable,"border-width":0,preload:s.preloadedTops[P.id],"border-radius":"12px","filters-prop":r.filterChange,category:P.id,"type-table":s.typeTable,categoryName:P.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.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(P.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":r.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.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":r.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.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},[yWe,e.createTextVNode(" y un "),gWe,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(b,{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,(P,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:A},[s.teamselectrec==0||s.teamselectrec==P.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{type:2,"is-expanded":s.playerexpand==P.id&&s.expand,onMediadata:r.setMediaData,data:{position:P.position,player_name:P.player_name,player_photo:P.player_photo,total:P.total,id:P.id,player_age:P.player_age,team_abrev:P.team_abrev,team_logo:P.team_logo,player_position:s.positions[P.player_position-1].fullname,player_country_flag:P.player_country_flag,player_games:P.player_games,player_min:P.player_min,league_name:P.league_name,seasons:P.seasons,season_id:P.season_id},height:"71px",background:A%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==P.id?(e.openBlock(),e.createBlock(R,{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:P.team_name,age:P.player_age,dataofbirth:P.date,nationality:P.nationality_name,countryFlag:P.player_country_flag,position:s.positions[P.player_position-1].name,games:P.player_games,min:P.player_min,goals:P.total,effectiveness:"-",category:"total",id:P.id},onViewprofile:G=>r.viewprofile(G,P.season_id,P.team_id),background:A%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:o[7]||(o[7]=(...P)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...P))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:o[8]||(o[8]=(...P)=>r.getScoutingData&&r.getScoutingData(...P))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",bWe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const SWe={$style:ZUe},wWe=ot(eWe,[["render",_We],["__cssModules",SWe]]),CWe=e.ref(_b()),kWe=e.ref(Sb()),EWe={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0},templates:{type:Array,default:()=>[]},hidePersonalizableVariables:{type:Boolean,default:!1}},components:{GscSwitchComponent:Dp,GSCRadioToggle:nNe,ModalAddPlayList:vNe,DropdownTemplates:IEe,GSCTableScrollable:WAe,GSCFilters:h1,ModalAddLista:eTe,DropdownYears:bb,DropdownPositions:yb,PlayTops:wWe,ModalViewVarGolstats:PMe},computed:{filterButtonProps(){return{...CWe.value}},filterButtonPropsTournamentsAdvanced(){return{...kWe.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:6,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:6,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:D,personalDataFilters:yi,personalDataSubFiltersTypes:Fe,tournamentsToFilter:tTe,tournamentsToFilterVariables:aTe,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,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"),o=e.ref(null),a=e.ref(null),{elementSize:i}=jt(t),{elementSize:s}=jt(o),{elementSize:r}=jt(a);return{myDivRefTopsBestPlay:t,midLayoutRef:o,filterBoxRef:a,elementSize:i,midLayoutSize:s,filterBoxSize:r}},created(){},async mounted(){try{await this.fillPersonalDataFilters(),this.isSearchActive=!0,!this.hasTemplates||this.hidePersonalizableVariables?(this.selectedRadioOption="Info general",delete this.filtersObject.template_id,this.showVariables=!1,this.checkSearchButton()):await new Promise(t=>{const o=()=>{this.filtersObject.template_id?t(!0):setTimeout(o,100)};o()}),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,nationality_id:t.objeto_player.nationality_id},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",{data:t,templateId:this.selectedRadioOption==="Info general"||this.optionSelected==="Por jugada"?null:this.currentTemplateId})},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),o=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==o},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(o=>o.isSelected).map(o=>o.id),this.seasonsArray=t.filter(o=>o.isSelected).map(o=>({id:o.seasons[0].id,tournamentId:o.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[i,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 o=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=o,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 o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filtersObject.categories=o,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(o=>o.isSelected&&o.id!==0).map(o=>o.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(o=>({objeto_player:o,player_photo:o.photo,player_name:o.acronym,player_age:this.calculateAge(o.dob),team_abrev:o.teams[0].acronym,jersey:o.jersey||"",nationality:o.nationality,team_name:o.team_name,is_female:o.is_female||0,parameters:o.internal_parameters,position_name:this.positions[o.position_id-1].fullname,player_position:this.positions[o.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${o.nationality_id}.jpg`,player_games:o.games_played,player_min:o.minutes_played,nationality_name:Ra[o.nationality_id],league_name:o.tournament_name,seasons:o.seasons,season_id:o.seasons[0],stats:o.stats?o.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 o=new Date(t),a=new Date;let i=a.getFullYear()-o.getFullYear();const s=a.getMonth()-o.getMonth();return(s<0||s===0&&a.getDate()<o.getDate())&&i--,i},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(),this.toggleSearch())):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t?(this.currentTemplateId=t.id,this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton(),this.toggleSearch()):this.currentTemplateId=null},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 o=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));o&&t.push(o.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 o=this.filtersObject.nationalities.length;o===1?t.push("Nacionalidad "+Ra[this.filtersObject.nationalities[0]]):t.push(`${o} 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 o=this.positions.find(a=>a.id===this.filtersObject.positions[0]);o&&t.push(o.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!==6&&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 o=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(o)}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",{data:this.formattedPlayers,templateId:this.selectedRadioOption==="Info general"||this.optionSelected==="Por jugada"?null:this.currentTemplateId})}}},Ta=t=>(e.pushScopeId("data-v-127a192e"),t=t(),e.popScopeId(),t),VWe={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},xWe={class:"overlay-loading"},NWe=Ta(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),TWe=Ta(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),BWe=[NWe,TWe],FWe={class:"strip-menu"},PWe={class:"strip-options-vars"},$We={key:0,class:"desktop-layout"},AWe={class:"left-containers"},MWe={class:"filter-container filter-container-variables container-372"},IWe={key:0,class:"filter-container filter-container-variables container-291"},zWe=Ta(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),OWe={class:"variables-indicator"},RWe=Ta(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),LWe={class:"filter-container-box"},DWe=Ta(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),vWe={class:"filter-container-box-2"},jWe=Ta(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),UWe={class:"filter-container-box-3"},WWe={class:"advanced-row-top"},GWe=Ta(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),HWe={class:"stats-section"},qWe={class:"filters-applied"},JWe=Ta(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),YWe={class:"filters-tags-wrapper"},ZWe={class:"filters-tags"},KWe=Ta(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),XWe={key:0,class:"no-results"},QWe={key:1,class:"content-container"};function eGe(t,o,a,i,s,r){const l=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("ModalAddPlayList"),c=e.resolveComponent("ModalAddLista"),d=e.resolveComponent("GscSwitchComponent"),m=e.resolveComponent("GSCRadioToggle"),u=e.resolveComponent("DropdownTemplates"),y=e.resolveComponent("GSCFilters"),p=e.resolveComponent("DropdownPositions"),h=e.resolveComponent("DropdownYears"),f=e.resolveComponent("GSCTableScrollable"),g=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{isVisible:s.showModal,"onUpdate:isVisible":o[0]||(o[0]=_=>s.showModal=_),onClose:r.closeModal,parameters:s.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",VWe,[e.createVNode(n,{isVisible:s.visibleModalAddPlaylist,onClose:r.closeModalAddPlaylist,"user-id":a.userId,onCreateList:r.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(c,{isVisible:s.showCreatePlaylistModal,onClose:r.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",xWe,BWe,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",FWe,[e.createVNode(d,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":r.sizeTabsFontMP,width:r.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",PWe,[i.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",$We,[e.createElementVNode("div",AWe,[e.createElementVNode("div",MWe,[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(m,{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:r.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",IWe,[zWe,e.createElementVNode("div",OWe,[e.createVNode(u,{"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:r.onChangeTemplate},null,8,["dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:o[1]||(o[1]=(..._)=>r.toggleAdvanced&&r.toggleAdvanced(..._))},e.toDisplayString(r.advancedText),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":i.elementSize.width<=480,"mid-layout":i.elementSize.width<=780&&i.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":i.elementSize.width<=780&&i.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":i.elementSize.width<=480}])},[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(m,{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:r.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),i.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":i.elementSize.width<=480}]),onClick:o[2]||(o[2]=(..._)=>r.toggleAdvanced&&r.toggleAdvanced(..._))},e.toDisplayString(r.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":i.elementSize.width<=480,"mid-container":i.elementSize.width<=780&&i.elementSize.width>480,"container-292":i.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":i.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":i.elementSize.width<=480}])},[e.createVNode(u,{"team-id":a.teamId,onChangeTemplate:r.onChangeTemplate},null,8,["team-id","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),i.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":i.elementSize.width<=480}]),onClick:o[3]||(o[3]=(..._)=>r.toggleAdvanced&&r.toggleAdvanced(..._))},e.toDisplayString(r.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var _,b;return[s.showAdvanced?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":i.elementSize.width<=890,"layout-480":i.elementSize.width<=480}])},[e.createElementVNode("div",WWe,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({width:"99.7%","button-filter-props":r.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":r.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":""},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":r.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":r.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":i.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:o[5]||(o[5]=(...T)=>r.toggleSearch&&r.toggleSearch(...T))},"Buscar",2)],2)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":i.elementSize.width<=780,"gap-reduced-850":i.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":i.elementSize.width<=780,"stack-vertical":i.elementSize.width<=480,"gap-reduced-850":i.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced-tournament":i.elementSize.width<=1e3}])},[RWe,e.createElementVNode("div",LWe,[e.createVNode(y,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":r.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.tournamentsToFilter,"onUpdate:filters":r.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":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced-position":i.elementSize.width<=1e3}])},[DWe,e.createElementVNode("div",vWe,[e.createVNode(p,{"dropdown-props":s.dropdownProps,positions:(_=s.personalDataFilters)==null?void 0:_.positions,onChangePositions:r.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":i.elementSize.width<=780,"stack-vertical":i.elementSize.width<=480,"gap-reduced-850":i.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced":i.elementSize.width<=1e3}])},[jWe,e.createElementVNode("div",UWe,[e.createVNode(h,{"dropdown-props":s.dropdownProps,years:(b=s.personalDataFilters)==null?void 0:b.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:r.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:o[4]||(o[4]=(...T)=>r.toggleSearch&&r.toggleSearch(...T))},"Buscar",2)],2)],2)],2))]}),_:1}),GWe,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":i.elementSize.width<=780}])},[e.createElementVNode("div",HWe,[e.createElementVNode("div",qWe,[JWe,e.createElementVNode("div",YWe,[e.createElementVNode("div",ZWe,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(_,b)=>(e.openBlock(),e.createElementBlock("span",{key:b,class:"filter-tag"},e.toDisplayString(_),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":i.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:o[6]||(o[6]=(..._)=>r.handleCompareClick&&r.handleCompareClick(..._))},[e.createTextVNode(" Comparar jugadores "),KWe])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",XWe," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",QWe,[e.createVNode(f,{players:s.formattedPlayers,"is-general":s.showtableType,onViewProfile:r.onViewProfile,onAddToList:r.onAddToList,onShowGraph:r.onShowGraph,onOpenMedia:r.onOpenMedia,onClickParameters:r.onClickParameters},null,8,["players","is-general","onViewProfile","onAddToList","onShowGraph","onOpenMedia","onClickParameters"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(g,{key:1,onChangeSeasonId:r.changeSeasonId,onOpenmedia:r.onOpenMedia,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded,onShowGraph:r.onShowGraph,onAddPlayer:r.onAddPlayer},null,8,["onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)],64)}const tGe=ot(EWe,[["render",eGe],["__scopeId","data-v-127a192e"]]),aGe={name:"SwitchTopsType",components:{TopsFull:oNe,TopsBestAndPlay:tGe},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},hidePersonalizableVariables:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzQwNDcsIm5hbWUiOiJHb2xTdGF0cyBTYW50b3MiLCJ1c2VybmFtZSI6Imdzc2FudG9zIiwiZW1haWwiOiIiLCJwcm92aWRlcl9pZCI6MSwibG9naW5fZ29sc3RhdHMiOjEsImlhdCI6MTc0NjIyMjQ3NCwiZXhwIjoxNzc3NzU4NDc0fQ.fga__q8pm-HbeHeNPWOqz32n8xkE_zcVPiPu8NTAiOM"}},methods:{async fetchTemplates(){var t;try{const o=await Ge.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/teams/${this.teamId}/templates?general=1&onlyPublic=1`+(this.hidePersonalizableVariables?"&onlyGeneral=1":""));(t=o.data)!=null&&t.data&&Array.isArray(o.data.data)&&o.data.data.length>0?(this.templates=o.data,this.hasTemplates=!0):(this.templates=[],this.hasTemplates=!1)}catch(o){console.error("Error al obtener templates:",o),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 oGe(t,o,a,i,s,r){const l=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(l,{key:0,onChangeSeasonId:r.changeSeasonId,onOpenMedia:r.onOpenMedia,onOpenmedia:r.onOpenMedia,"team-id":a.teamId,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded},null,8,["onChangeSeasonId","onOpenMedia","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:r.onOpenMedia,onShowGraph:r.onShowGraph,onComparePlayers:r.comparePlayers,onOpenProfilePlayer:r.onOpenProfilePlayer,onAddToList:r.onAddToList,onChangeSeasonId:r.changeSeasonId,onOpenProfileTeam:r.openProfileTeam,onTopsLoaded:r.topsLoaded,"user-id":a.userId,"hide-personalizable-variables":a.hidePersonalizableVariables},null,8,["team-id","has-templates","templates","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id","hide-personalizable-variables"])):e.createCommentVNode("",!0)])}const iGe=ot(aGe,[["render",oGe]]),sGe={class:"elegibles"},n4=Ei(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1},hidePersonalizableVariables:{type:Boolean,default:!1}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:o}){const a=t,i=m=>{o("openmedia",m)},s=m=>{o("open-profile-team",m)},r=m=>{o("open-profile-player",m)};function l(m){o("showGraph",m)}function n(m){o("change-season-id",m)}function c(m){o("tops-loaded",m)}function d(m){o("comparePlayers",m)}return(m,u)=>(e.openBlock(),e.createElementBlock("div",sGe,[e.createVNode(e.unref(iGe),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores","hide-personalizable-variables":t.hidePersonalizableVariables,onOpenmedia:i,onComparePlayers:d,onOpenMedia:i,onOpenProfileTeam:s,onOpenProfilePlayer:r,onShowGraph:l,onChangeSeasonId:n,onTopsLoaded:c},null,8,["user-id","team-id","hide-personalizable-variables"])]))}}),[["__scopeId","data-v-fc818971"]]),rGe=(t=>(e.pushScopeId("data-v-5ab76500"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),lGe={class:""},nGe={class:""},dGe={class:"tabs"},cGe=Ei({__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},areFemaleTeamsExcluded:{type:Boolean,default:!1},hidePersonalizableVariables:{type:Boolean,default:!1}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:o}){const a=t,i={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","Listas de seguimiento","Última convocatoria"]:["Detección de jugadores","Listas de seguimiento"],r=e.ref("Detección de jugadores"),l=e.ref({width:0}),n=e.ref(null),c=e.ref(0),d=e.ref(0),m=e.ref([]),u=e.ref([]),y=e.ref(!1),p=e.ref(!1),h=e.ref({}),f=e.ref([]),g=e.ref({}),_=e.ref({});e.watch(()=>a.tournamentId,w=>{w&&R()},{immediate:!0}),e.watch(()=>a.teamId,async w=>{w&&(await T(),await R())},{immediate:!0});const b=w=>{r.value=w};async function T(){try{const w=[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}})],[H,S]=await Promise.all(w);let E=await H.json();const re=await S.json();a.areFemaleTeamsExcluded&&(E=E.filter(pe=>!pe.team_name.toLowerCase().includes("femenil"))),E.forEach(pe=>{pe.seasonsIds=new Set(pe.seasons.map(ye=>ye.id)),pe.availableTournaments=pe.seasonsIds?re.reduce((ye,fe)=>{if(fe.seasons.some(B=>pe.seasonsIds.has(B.id))){const B=fe.seasons.filter(z=>pe.seasonsIds.has(z.id));ye.push({...fe.tournament,seasons:pe.seasons.reduce((z,M)=>(B.forEach(ce=>{ce.id===M.id&&z.push(M)}),z),[]),seasonsIds:pe.seasonsIds,teamId:pe.team_id})}return ye},[]):[]}),f.value=E.filter(pe=>pe.availableTournaments.length>0),g.value=f.value[0]}catch(w){console.error(w)}}async function R(){try{if(c.value!==a.tournamentId||d.value!==a.teamId){const w=[A()];c.value=a.tournamentId,d.value=a.teamId;const[H]=await Promise.all(w);u.value=H}}catch(w){console.error("Error filling data",w)}}function P(){G().then(w=>{m.value=w})}async function A(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/in-followed/teams/${a.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(w){console.error("Error fetching in followed",w)}}async function G(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${h.value.id}/teams/${h.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(w){console.error("Error fetching last called",w)}}const N=()=>{n.value&&(l.value.width=n.value.offsetWidth,y.value=l.value.width<700,p.value=l.value.width<420)};e.onMounted(()=>{N();const w=new ResizeObserver(N);n.value&&w.observe(n.value)});const q=e.computed(()=>{const w=l.value.width;return w<=560?"170px":(w<=650||w<=768,"225px")}),F=e.computed(()=>{const w=l.value.width;return w<=460?"12px":w<=650?"13px":w<=768?"14px":"16px"});e.computed(()=>l.value.width<=380?"18px":"22px");const C=e.computed(()=>{switch(r.value){case"Detección de jugadores":return n4;case"Listas de seguimiento":return dde;case"Última convocatoria":return Y6;default:return n4}}),V=e.computed(()=>p.value||y.value?"100%":"179px"),x=w=>{o("openmedia",w)},O=w=>{o("showGraph",w)},se=w=>{o("open-profile-team",w)},me=w=>{o("open-profile-player",w)},he=w=>{o("open-profile-player",w)},k=w=>{o("comparePlayers",w)};function $(w){o("change-season-id",w)}function W(w){o("tops-loaded",w)}async function I(){if(h.value.friendlyGames&&h.value.friendlyGames.length>0)try{const H=await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/games/${_.value.game_id}/teams/${g.value.team_id}`,{method:"GET",headers:{Authorization:a.token}})).json();m.value=H.players||[]}catch(w){console.error("Error fetching last called players by game",w)}}function L(w){_.value=w,I()}async function ne(w){const H=w.name.toLowerCase();w.isFriendly=H.includes("friend"),w.isFriendly&&!w.friendlyGames&&(w.friendlyGames=w.seasons.reduce((S,E)=>(E.games&&(S=[...S,...E.games]),S),[])),h.value=w,h.value.friendlyGames?(_.value=h.value.friendlyGames[0],await I()):P()}function le(w){g.value=w}function U(w){g.value=w}return(w,H)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":y.value}])},[rGe,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":y.value}])},[t.isSeleccionUser&&r.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[e.createVNode(e.unref(am),e.mergeProps(i,{"model-value":g.value,items:f.value,onInput:le,"onUpdate:modelValue":U}),{default:e.withCtx(({selectedItem:S})=>[e.createElementVNode("div",lGe,e.toDisplayString(S.team_name),1)]),availableItem:e.withCtx(({item:S})=>[e.createElementVNode("div",null,e.toDisplayString(S.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(p6),{key:0,items:g.value.availableTournaments,width:V.value,onInput:ne},null,8,["items","width"])):e.createCommentVNode("",!0)],2),h.value.friendlyGames?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[e.createVNode(e.unref(am),e.mergeProps(i,{width:"250px","model-value":_.value,items:h.value.friendlyGames,onInput:L}),{default:e.withCtx(({selectedItem:S})=>[e.createElementVNode("div",nGe,e.toDisplayString(S.game),1)]),availableItem:e.withCtx(({item:S})=>[e.createElementVNode("div",null,e.toDisplayString(S.game),1)]),_:1},16,["model-value","items"])],2)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",dGe,[e.createVNode(e.unref(A6),{type:2,buttons:e.unref(s),"font-family":"Poppins-Medium","selected-option":r.value,"font-size":F.value,width:q.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:b},null,8,["buttons","selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":r.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value),{"parent-width":l.value.width,"user-id":a.userId,"team-id":a.teamId,"user-team-id":a.userTeamId,"last-called-players":m.value,"in-followed-players":u.value,"hide-personalizable-variables":t.hidePersonalizableVariables,onShowGraph:O,onShowProfile:he,onOpenmedia:x,onOpenMedia:x,onOpenProfileTeam:se,onOpenProfilePlayer:me,onChangeSeasonId:$,onTopsLoaded:W,onComparePlayers:k},null,40,["parent-width","user-id","team-id","user-team-id","last-called-players","in-followed-players","hide-personalizable-variables"]))],2)],512))}},[["__scopeId","data-v-5ab76500"]]),pGe={class:"subcategory-group"},mGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",pGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref($e),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},uGe=ze(mGe,[["__scopeId","data-v-ae6f3d72"]]),fGe={class:"filter-subcategories"},hGe=Object.freeze(Object.defineProperty({__proto__:null,default:ze({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",fGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(uGe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Fn=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),yGe={class:"details__header"},gGe=Fn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),bGe={class:"details__header__checkbox"},_Ge={class:"details__body"},SGe={class:"details__body__playing-as"},wGe=["onClick"],CGe={class:"details__header"},kGe=Fn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),EGe={class:"details__header__checkbox"},VGe={class:"details__body"},xGe=Fn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),NGe={class:"details__body__game-section"},TGe=["onClick"],BGe={class:"details__body"},FGe=Fn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),PGe={class:"details__body__game-section"},$Ge=["onClick"],AGe=Object.freeze(Object.defineProperty({__proto__:null,default:ze({__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 o=t;e.useCssVars(m=>({"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(()=>o.playingAs.every(m=>m.isSelected)),i=e.computed(()=>o.gameSections.every(m=>m.isSelected)),s=e.computed(()=>o.gameSections.reduce((m,u)=>(u.value<=3?m.firstHalf.push(u):m.secondHalf.push(u),m),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(m){m?o.playingAs.forEach(u=>{u.isSelected=!0}):o.playingAs.forEach((u,y)=>{u.isSelected=y===0})}function n(m){o.playingAs.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function c(m){o.gameSections.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function d(m){m?o.gameSections.forEach(u=>{u.isSelected=!0}):o.gameSections.forEach((u,y)=>{u.isSelected=y===0})}return(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",yGe,[gGe,e.createElementVNode("div",bGe,[e.createVNode(e.unref($e),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",_Ge,[e.createElementVNode("div",SGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,wGe))),128))])]),e.createElementVNode("div",CGe,[kGe,e.createElementVNode("div",EGe,[e.createVNode(e.unref($e),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",VGe,[xGe,e.createElementVNode("div",NGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,TGe))),128))])]),e.createElementVNode("div",BGe,[FGe,e.createElementVNode("div",PGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,$Ge))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),MGe={class:"filter-field"},IGe=Object.freeze(Object.defineProperty({__proto__:null,default:ze({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",MGe,[e.createVNode(e.unref(Th),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),zGe={class:"subcategory-group"},OGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",zGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(Be),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},RGe=Ae(OGe,[["__scopeId","data-v-ae6f3d72"]]),LGe={class:"filter-subcategories"},DGe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",LGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(RGe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Pn=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),vGe={class:"details__header"},jGe=Pn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),UGe={class:"details__header__checkbox"},WGe={class:"details__body"},GGe={class:"details__body__playing-as"},HGe=["onClick"],qGe={class:"details__header"},JGe=Pn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),YGe={class:"details__header__checkbox"},ZGe={class:"details__body"},KGe=Pn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),XGe={class:"details__body__game-section"},QGe=["onClick"],eHe={class:"details__body"},tHe=Pn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),aHe={class:"details__body__game-section"},oHe=["onClick"],iHe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__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 o=t;e.useCssVars(m=>({"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(()=>o.playingAs.every(m=>m.isSelected)),i=e.computed(()=>o.gameSections.every(m=>m.isSelected)),s=e.computed(()=>o.gameSections.reduce((m,u)=>(u.value<=3?m.firstHalf.push(u):m.secondHalf.push(u),m),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(m){m?o.playingAs.forEach(u=>{u.isSelected=!0}):o.playingAs.forEach((u,y)=>{u.isSelected=y===0})}function n(m){o.playingAs.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function c(m){o.gameSections.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function d(m){m?o.gameSections.forEach(u=>{u.isSelected=!0}):o.gameSections.forEach((u,y)=>{u.isSelected=y===0})}return(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",vGe,[jGe,e.createElementVNode("div",UGe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",WGe,[e.createElementVNode("div",GGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,HGe))),128))])]),e.createElementVNode("div",qGe,[JGe,e.createElementVNode("div",YGe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",ZGe,[KGe,e.createElementVNode("div",XGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,QGe))),128))])]),e.createElementVNode("div",eHe,[tHe,e.createElementVNode("div",aHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,oHe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),sHe={class:"filter-field"},rHe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",sHe,[e.createVNode(e.unref(M0),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),lHe={class:"subcategory-group"},nHe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",lHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(Pe),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},dHe=Me(nHe,[["__scopeId","data-v-ae6f3d72"]]),cHe={class:"filter-subcategories"},pHe=Object.freeze(Object.defineProperty({__proto__:null,default:Me({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",cHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(dHe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),$n=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),mHe={class:"details__header"},uHe=$n(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),fHe={class:"details__header__checkbox"},hHe={class:"details__body"},yHe={class:"details__body__playing-as"},gHe=["onClick"],bHe={class:"details__header"},_He=$n(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),SHe={class:"details__header__checkbox"},wHe={class:"details__body"},CHe=$n(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),kHe={class:"details__body__game-section"},EHe=["onClick"],VHe={class:"details__body"},xHe=$n(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),NHe={class:"details__body__game-section"},THe=["onClick"],BHe=Object.freeze(Object.defineProperty({__proto__:null,default:Me({__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 o=t;e.useCssVars(m=>({"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(()=>o.playingAs.every(m=>m.isSelected)),i=e.computed(()=>o.gameSections.every(m=>m.isSelected)),s=e.computed(()=>o.gameSections.reduce((m,u)=>(u.value<=3?m.firstHalf.push(u):m.secondHalf.push(u),m),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(m){m?o.playingAs.forEach(u=>{u.isSelected=!0}):o.playingAs.forEach((u,y)=>{u.isSelected=y===0})}function n(m){o.playingAs.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function c(m){o.gameSections.filter(u=>u.isSelected).length===1&&m.isSelected||(m.isSelected=!m.isSelected)}function d(m){m?o.gameSections.forEach(u=>{u.isSelected=!0}):o.gameSections.forEach((u,y)=>{u.isSelected=y===0})}return(m,u)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",mHe,[uHe,e.createElementVNode("div",fHe,[e.createVNode(e.unref(Pe),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",hHe,[e.createElementVNode("div",yHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,gHe))),128))])]),e.createElementVNode("div",bHe,[_He,e.createElementVNode("div",SHe,[e.createVNode(e.unref(Pe),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",wHe,[CHe,e.createElementVNode("div",kHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,EHe))),128))])]),e.createElementVNode("div",VHe,[xHe,e.createElementVNode("div",NHe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${p}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,THe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),FHe={class:"filter-field"},PHe=Object.freeze(Object.defineProperty({__proto__:null,default:Me({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",FHe,[e.createVNode(e.unref(b3),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Ga.GSCPlayersTracking=cGe,Object.defineProperty(Ga,Symbol.toStringTag,{value:"Module"})});