@golstats/gsc-players-tracking 1.0.60 → 1.0.61

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[F5]=this[F5]={accessors:{}}).accessors,a=this.prototype;function i(s){const r=Fs(s);o[r]||(RPe(a,s),o[r]=!0)}return ie.isArray(t)?t.forEach(i):i(t),this}};Ot.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ie.reduceDescriptors(Ot.prototype,({value:t},o)=>{let a=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(i){this[a]=i}}}),ie.freezeMethods(Ot);function v1(t,o){const a=this||Bs,i=o||a,s=Ot.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 P5(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 $5(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 OPe(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function LPe(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 u=r,f=0;for(;u!==s;)f+=a[u++],u=u%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(f*1e3/y):void 0}}function DPe(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 Vn=(t,o,a=3)=>{let i=0;const s=LPe(50,250);return DPe(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,c=l-i,d=s(c),u=l<=n;i=l;const f={loaded:l,total:n,progress:n?l/n:void 0,bytes:c,rate:d||void 0,estimated:d&&n&&u?(n-l)/d:void 0,event:r,lengthComputable:n!=null,[o?"download":"upload"]:!0};t(f)},a)},A5=(t,o)=>{const a=t!=null;return[i=>o[0]({lengthComputable:a,total:t,loaded:i}),o[1]]},M5=t=>(...o)=>ie.asap(()=>t(...o)),vPe=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,jPe=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 UPe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function WPe(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function I5(t,o,a){let i=!UPe(o);return t&&(i||a==!1)?WPe(t,o):o}const z5=t=>t instanceof Ot?{...t}:t;function Ro(t,o){o=o||{};const a={};function i(d,u,f,y){return ie.isPlainObject(d)&&ie.isPlainObject(u)?ie.merge.call({caseless:y},d,u):ie.isPlainObject(u)?ie.merge({},u):ie.isArray(u)?u.slice():u}function s(d,u,f,y){if(ie.isUndefined(u)){if(!ie.isUndefined(d))return i(void 0,d,f,y)}else return i(d,u,f,y)}function r(d,u){if(!ie.isUndefined(u))return i(void 0,u)}function l(d,u){if(ie.isUndefined(u)){if(!ie.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function n(d,u,f){if(f in o)return i(d,u);if(f 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,u,f)=>s(z5(d),z5(u),f,!0)};return ie.forEach(Object.keys(Object.assign({},t,o)),function(d){const u=c[d]||s,f=u(t[d],o[d],d);ie.isUndefined(f)&&u!==n||(a[d]=f)}),a}const R5=t=>{const o=Ro({},t);let{data:a,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=o;o.headers=l=Ot.from(l),o.url=x5(I5(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,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...u].join("; "))}}if(yt.hasStandardBrowserEnv&&(i&&ie.isFunction(i)&&(i=i(o)),i||i!==!1&&vPe(o.url))){const d=s&&r&&jPe.read(r);d&&l.set(s,d)}return o},GPe=typeof XMLHttpRequest<"u",HPe=GPe&&function(t){return new Promise(function(o,a){const i=R5(t);let s=i.data;const r=Ot.from(i.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:c}=i,d,u,f,y,p;function h(){y&&y(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function g(){if(!m)return;const b=Ot.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),T={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:t,request:m};$5(function(O){o(O),h()},function(O){a(O),h()},T),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(a(new Ne("Request aborted",Ne.ECONNABORTED,t,m)),m=null)},m.onerror=function(){a(new Ne("Network Error",Ne.ERR_NETWORK,t,m)),m=null},m.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||T5;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),a(new Ne(b,T.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,t,m)),m=null},s===void 0&&r.setContentType(null),"setRequestHeader"in m&&ie.forEach(r.toJSON(),function(b,T){m.setRequestHeader(T,b)}),ie.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&l!=="json"&&(m.responseType=i.responseType),c&&([f,p]=Vn(c,!0),m.addEventListener("progress",f)),n&&m.upload&&([u,y]=Vn(n),m.upload.addEventListener("progress",u),m.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=b=>{m&&(a(!b||b.type?new ki(null,t,m):b),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const _=OPe(i.url);if(_&&yt.protocols.indexOf(_)===-1){a(new Ne("Unsupported protocol "+_+":",Ne.ERR_BAD_REQUEST,t));return}m.send(s||null)})},qPe=(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 u=d instanceof Error?d:this.reason;i.abort(u instanceof Ne?u:new ki(u instanceof Error?u.message:u))}};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}},JPe=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},YPe=async function*(t,o){for await(const a of ZPe(t))yield*JPe(a,o)},ZPe=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=YPe(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:u}=await s.next();if(d){n(),c.close();return}let f=u.byteLength;if(a){let y=r+=f;a(y)}c.enqueue(new Uint8Array(u))}catch(d){throw n(d),d}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},xn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",L5=xn&&typeof ReadableStream=="function",KPe=xn&&(typeof TextEncoder=="function"?(t=>o=>t.encode(o))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),D5=(t,...o)=>{try{return!!t(...o)}catch{return!1}},XPe=L5&&D5(()=>{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}),v5=64*1024,j1=L5&&D5(()=>ie.isReadableStream(new Response("").body)),Nn={stream:j1&&(t=>t.body)};xn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!Nn[o]&&(Nn[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 QPe=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 KPe(t)).byteLength},e$e=async(t,o)=>ie.toFiniteNumber(t.getContentLength())??QPe(o),t$e=xn&&(async t=>{let{url:o,method:a,data:i,signal:s,cancelToken:r,timeout:l,onDownloadProgress:n,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:y}=R5(t);d=d?(d+"").toLowerCase():"text";let p=qPe([s,r&&r.toAbortSignal()],l),h;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let g;try{if(c&&XPe&&a!=="get"&&a!=="head"&&(g=await e$e(u,i))!==0){let F=new Request(o,{method:"POST",body:i,duplex:"half"}),A;if(ie.isFormData(i)&&(A=F.headers.get("content-type"))&&u.setContentType(A),F.body){const[G,N]=A5(g,Vn(M5(c)));i=O5(F.body,v5,G,N)}}ie.isString(f)||(f=f?"include":"omit");const _="credentials"in Request.prototype;h=new Request(o,{...y,signal:p,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:_?f:void 0});let b=await fetch(h);const T=j1&&(d==="stream"||d==="response");if(j1&&(n||T&&m)){const F={};["status","statusText","headers"].forEach(q=>{F[q]=b[q]});const A=ie.toFiniteNumber(b.headers.get("content-length")),[G,N]=n&&A5(A,Vn(M5(n),!0))||[];b=new Response(O5(b.body,v5,G,()=>{N&&N(),m&&m()}),F)}d=d||"text";let O=await Nn[ie.findKey(Nn,d)||"text"](b,t);return!T&&m&&m(),await new Promise((F,A)=>{$5(F,A,{data:O,headers:Ot.from(b.headers),status:b.status,statusText:b.statusText,config:t,request:h})})}catch(_){throw m&&m(),_&&_.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)}}),U1={http:yPe,xhr:HPe,fetch:t$e};ie.forEach(U1,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const j5=t=>`- ${t}`,a$e=t=>ie.isFunction(t)||t===null||t===!1,U5={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,!a$e(a)&&(i=U1[(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(j5).join(`
63
63
  `):" "+j5(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:U1};function W1(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ki(null,t)}function W5(t){return W1(t),t.headers=Ot.from(t.headers),t.data=v1.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),U5.getAdapter(t.adapter||Bs.adapter)(t).then(function(o){return W1(t),o.data=v1.call(t,t.transformResponse,o),o.headers=Ot.from(o.headers),o},function(o){return P5(o)||(W1(t),o&&o.response&&(o.response.data=v1.call(t,t.transformResponse,o.response),o.response.headers=Ot.from(o.response.headers))),Promise.reject(o)})}const G5="1.9.0",Tn={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{Tn[t]=function(a){return typeof a===t||"a"+(o<1?"n ":" ")+t}});const H5={};Tn.transitional=function(t,o,a){function i(s,r){return"[Axios v"+G5+"] 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&&!H5[r]&&(H5[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}},Tn.spelling=function(t){return(o,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function o$e(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 Bn={assertOptions:o$e,validators:Tn},ka=Bn.validators;let Oo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new N5,response:new N5}}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=Ro(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:s}=o;a!==void 0&&Bn.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}:Bn.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),Bn.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=Ot.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,u=0,f;if(!n){const p=[W5.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,d=Promise.resolve(o);u<f;)d=d.then(p[u++],p[u++]);return d}f=l.length;let y=o;for(u=0;u<f;){const p=l[u++],h=l[u++];try{y=p(y)}catch(m){h.call(this,m);break}}try{d=W5.call(this,y)}catch(p){return Promise.reject(p)}for(u=0,f=c.length;u<f;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=Ro(this.defaults,t);const o=I5(t.baseURL,t.url,t.allowAbsoluteUrls);return x5(o,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){Oo.prototype[t]=function(o,a){return this.request(Ro(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(Ro(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 i$e=class _4{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 _4(function(a){o=a}),cancel:o}}};function s$e(t){return function(o){return t.apply(null,o)}}function r$e(t){return ie.isObject(t)&&t.isAxiosError===!0}const G1={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(G1).forEach(([t,o])=>{G1[o]=t});function q5(t){const o=new Oo(t),a=p5(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 q5(Ro(t,i))},a}const Ke=q5(Bs);Ke.Axios=Oo,Ke.CanceledError=ki,Ke.CancelToken=i$e,Ke.isCancel=P5,Ke.VERSION=G5,Ke.toFormData=kn,Ke.AxiosError=Ne,Ke.Cancel=Ke.CanceledError,Ke.all=function(t){return Promise.all(t)},Ke.spread=s$e,Ke.isAxiosError=r$e,Ke.mergeConfig=Ro,Ke.AxiosHeaders=Ot,Ke.formToJSON=t=>B5(ie.isHTMLForm(t)?new FormData(t):t),Ke.getAdapter=U5.getAdapter,Ke.HttpStatusCode=G1,Ke.default=Ke;const l$e=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},n$e={class:"modal-overlay"},d$e={key:0,class:"modal-content"},c$e={class:"modal-select-container"},p$e={class:"modal-input-wrapper"},m$e=["disabled"],u$e={key:0,class:"modal-input-loading"},f$e={key:0,class:"modal-dropdown-empty"},h$e={key:1,class:"modal-dropdown-scroll"},y$e={class:"variable-selection"},g$e=["value","onClick","disabled"],b$e={class:"variable-text"},_$e={class:"modal-dropdown-actions"},S$e={key:1,class:"modal-error"},w$e={key:0,class:"modal-name-error"},C$e={class:"modal-actions"},k$e=["disabled"],J5=3,E$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([]),u=e.ref(!1),f=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 m(){n.value=!n.value}async function g(){var C,V;try{u.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(R=>R.checked)}catch(x){f.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{u.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 O(){setTimeout(()=>{y.value||(n.value=!1,r.value="")},200)}function F(){r.value="",n.value=!1,y.value=!1}function A(C){if(l.value.includes(C)){if(l.value.length<=J5)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}`}}),R={user_id:parseInt(i.userId),name:s.value,variables:l.value};console.log("Lo que se guarda es:");const le=await x.post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,R);le.data&&(a("createList",{nombre:s.value,variables:l.value,id:le.data.data.id}),a("listCreated"),s.value="",l.value=[],r.value="",n.value=!1,a("close"))}}catch(x){console.error("Error creating list:",x),f.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 P(){document.body.style.overflow=""}return e.onMounted(async()=>{c.value=!0,n.value=!1,q(),await g()}),e.onUnmounted(()=>{P()}),(C,V)=>(e.openBlock(),e.createElementBlock("div",n$e,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",d$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",c$e,[e.createElementVNode("div",p$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:O,onInput:T,disabled:u.value},null,40,m$e),[[e.vModelText,r.value]]),u.value?(e.openBlock(),e.createElementBlock("div",u$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(m,["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&&!u.value&&!f.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",f$e," No se encontraron variables ")):(e.openBlock(),e.createElementBlock("div",h$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",y$e,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:x,"onUpdate:modelValue":V[2]||(V[2]=R=>l.value=R),onClick:e.withModifiers(R=>A(x),["stop"]),disabled:l.value.length<=J5&&l.value.includes(x)},null,8,g$e),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",b$e,e.toDisplayString(x.name),1)])]))),128))])),e.createElementVNode("div",_$e,[e.createElementVNode("button",{class:"modal-listo-btn",onMousedown:e.withModifiers(F,["prevent"])},"Listo",32)])],32)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("div",S$e,[V[6]||(V[6]=e.createElementVNode("span",{class:"error-icon"},"!",-1)),e.createTextVNode(" "+e.toDisplayString(f.value),1)])):e.createCommentVNode("",!0)]),p.value?(e.openBlock(),e.createElementBlock("div",w$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",C$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,k$e)])])):e.createCommentVNode("",!0)]),_:1})]))}},V$e=l$e(E$e,[["__scopeId","data-v-71419cea"]]),Oe=t=>(e.pushScopeId("data-v-7c36553e"),t=t(),e.popScopeId(),t),x$e=Oe(()=>e.createElementVNode("div",{class:"top-scroll-spacer"},null,-1)),N$e={class:"table__static-column"},T$e={class:"static-title column-title restore"},B$e={class:"titles-left"},F$e=Oe(()=>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)),P$e=["id"],$$e={class:"container"},A$e={class:"details-row__info"},M$e={class:"details-row__info__personal"},I$e={class:"bold"},z$e={class:"bold"},R$e={class:"bold"},O$e={class:"bold"},L$e={class:"details-row__info__games"},D$e={class:"bold"},v$e={class:"bold"},j$e=["onClick"],U$e=Oe(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),W$e=Oe(()=>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)),G$e=[U$e,W$e],H$e=["onClick"],q$e=Oe(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),J$e=Oe(()=>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)),Y$e=[q$e,J$e],Z$e=["onClick"],K$e=Oe(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),X$e=Oe(()=>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)),Q$e=[K$e,X$e],eAe=["onClick"],tAe=Oe(()=>e.createElementVNode("div",null,"Ver perfil",-1)),aAe=[tAe],oAe={class:"static-row__info-player"},iAe=["onClick"],sAe=Oe(()=>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)),rAe=Oe(()=>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)),lAe=Oe(()=>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)),nAe=[sAe,rAe,lAe],dAe=["onClick"],cAe=Oe(()=>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)),pAe=Oe(()=>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)),mAe=Oe(()=>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)),uAe=[cAe,pAe,mAe],fAe={class:"player-photo"},hAe=["src"],yAe={class:"player-name"},gAe={class:"arrow"},bAe=["onClick"],_Ae=Oe(()=>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)),SAe=[_Ae],wAe={class:"titles scrollable-row"},CAe={class:"column-title"},kAe=Oe(()=>e.createElementVNode("div",null," Equipo ",-1)),EAe=Oe(()=>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)),VAe=[EAe],xAe={class:"column-title"},NAe=Oe(()=>e.createElementVNode("div",null," Posición ",-1)),TAe=Oe(()=>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=Oe(()=>e.createElementVNode("div",null," Edad ",-1)),$Ae=Oe(()=>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=Oe(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),IAe={class:"column-title"},zAe=Oe(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),RAe=Oe(()=>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=[RAe],LAe={class:"column-title"},DAe=Oe(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),vAe=Oe(()=>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)),jAe=[vAe],UAe={class:"column-title"},WAe=Oe(()=>e.createElementVNode("div",null," Liga ",-1)),GAe=Oe(()=>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)),HAe=[GAe],qAe=Oe(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),JAe={class:"team-logo"},YAe=["src"],ZAe={class:"team-name data-info"},KAe=["src"],XAe={__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),u=e.ref(0),f=e.ref(-1),y=e.ref(!1),p=e.ref(null),h=e.ref(null),m=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"),O=e.ref(!1),F=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 pe=M+1,Te={...z,position:pe<10?`0${pe}`:`${pe}`,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(em=>em.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(()=>m.value,B=>{if(B){let z=[...g.value];B.isRoot?z.sort((M,pe)=>typeof M[B.name]=="string"?B.isDesc?M[B.name].localeCompare(pe[B.name]):M[B.name].localeCompare(pe[B.name])*-1:B.isDesc?pe[B.name]-M[B.name]:M[B.name]-pe[B.name]):z.sort((M,pe)=>{const Te=M.stats.find(Le=>Le.name===B.name),ue=pe.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,pe)=>{M.isOdd=pe%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(u,B=>{const z=document.querySelectorAll(".static-row")[f.value+1];z&&(z.style.marginTop=`${B}px`),a.isGeneral?q(f.value,B):n.value&&n.value.setMarginTopDetails(f.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 P(B){o("click-parameters",B)}function C(B){B&&(B.isDesc=!B.isDesc),m.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,pe={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&&(pe.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),pe.seasonId=Te.shift(),pe.seasonsIds=Te}else(B.season_id||B.seasonId)&&(pe.seasonId=B.season_id||B.seasonId);B.stat?B.stat.category_id&&B.stat.category_id.length?pe.categoryIds=B.stat.category_id:B.stat.custom_category_id&&(pe.customCategoryIds=[B.stat.custom_category_id]):pe.categoryIds=le(B.player_position),o("open-media",pe)}function x(){i=new ResizeObserver(B=>{for(const z of B)d.value=z.contentRect.width}),i.observe(l.value)}function R(B){s=new ResizeObserver(z=>{for(const M of z)u.value=M.contentRect.height}),s.observe(B)}function le(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 ce(B,z){z.isSelected=B;const M=r.value.filter(pe=>pe.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 U(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 pe=-1;M.forEach((ue,Le)=>{ue.id===`dr-${B.id}`&&(pe=Le)});const Te=M[pe];f.value=pe,R(Te),B.isExpanded=!0,r.value.forEach(ue=>{ue.isExpanded=!1}),setTimeout(()=>{if(!y.value){const ue=document.querySelectorAll(".details-row")[B.index];f.value=B.index,R(ue)}B.isExpanded=!y.value},1)}let L=!1,ne,re,W=function(B){L=!0,ne=B.pageX-h.value.offsetLeft,re=h.value.scrollLeft},w=function(B){L=!0,ne=B.pageX-c.value.offsetLeft,re=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 se(){h.value&&(h.value.addEventListener("mousemove",B=>{if(!L)return;const z=B.pageX-h.value.offsetLeft-ne,M=re-z;h.value.scrollLeft=M,c.value&&(c.value.scrollLeft=M)}),h.value.addEventListener("mousedown",W,!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=re-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 me(){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],()=>{me()},{immediate:!0});function ye(){O.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(),se()}),e.onBeforeUnmount(()=>{i&&i.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",W,!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,[O.value?(e.openBlock(),e.createBlock(e.unref(V$e),{key:0,token:t.token,"user-id":t.userId,onClose:z[0]||(z[0]=M=>O.value=!1),onCreateList:fe},null,8,["token","user-id"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"top-scroll-container",style:e.normalizeStyle(G.value)},[x$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",N$e,[e.createElementVNode("div",T$e,[e.createElementVNode("div",B$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))},[F$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",$$e,[e.createElementVNode("div",A$e,[e.createElementVNode("div",M$e,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",I$e,e.toDisplayString(M.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",z$e,e.toDisplayString(M.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",R$e,e.toDisplayString(M.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",O$e,e.toDisplayString(M.position_name),1)])]),e.createElementVNode("div",L$e,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",D$e,e.toDisplayString(M.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",v$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:pe=>U(M)},G$e,8,j$e)):e.createCommentVNode("",!0),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:pe=>k(M)},Y$e,8,H$e)):t.isAddToListButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:2,role:"button",class:"button",onClick:pe=>$(M)},Q$e,8,Z$e)):e.createCommentVNode("",!0),e.createElementVNode("div",{role:"button",class:"button green",onClick:pe=>he(M)},aAe,8,eAe)],4)])],10,P$e),[[e.vShow,M.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(CTe),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":M.isSelected,"onUpdate:modelValue":pe=>ce(pe,M)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",oAe,[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:pe=>k(M)},nAe,8,iAe))],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(FFe),{key:0,token:t.token,"user-id":t.userId,lists:t.lists,isModalOpen:F.value,"selected-player":M.objeto_player,onClose:pe=>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:pe=>$(M)},uAe,8,dAe))],4)):e.createCommentVNode("",!0),e.createElementVNode("div",fAe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:M.player_photo,alt:"player photo"},null,8,hAe)])]),e.createElementVNode("div",yAe,e.toDisplayString(M.player_name),1)]),e.createElementVNode("div",gAe,[(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:pe=>I(M)},SAe,10,bAe))])],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",wAe,[e.createElementVNode("div",CAe,[kAe,(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]))},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[3]||(z[3]=M=>C(_.value[1]))},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[4]||(z[4]=M=>C(_.value[2]))},AAe))]),MAe,e.createElementVNode("div",IAe,[zAe,(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]))},OAe))]),e.createElementVNode("div",LAe,[DAe,(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]))},jAe))]),e.createElementVNode("div",UAe,[WAe,(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]))},HAe))]),qAe]),(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",JAe,[e.createElementVNode("img",{src:M.team_logo,alt:"team logo"},null,8,YAe)]),e.createElementVNode("div",ZAe,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,KAe)],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(ATe),{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:pe=>V(M)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(WTe,{key:1,ref_key:"scrollColumns",ref:n,"available-players":g.value,"is-edit-mode":t.isEditMode,"is-mobile":N.value,onOpenMedia:V,onClickParameters:P,onSort:C},null,8,["available-players","is-edit-mode","is-mobile"]))],512)],4))],64))}},QAe=Nb(XAe,[["__scopeId","data-v-7c36553e"]]),H1=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},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},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)}}},Y5=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Z5=q1.setup;q1.setup=Z5?(t,o)=>(Y5(),Z5(t,o)):Y5;const eMe={class:"field-template-element"},tMe={class:"field-container"},aMe=["onMouseenter","onMousedown"],oMe={class:"column-buttons"},iMe=["onClick","disabled"];function sMe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",eMe,[e.createElementVNode("div",tMe,[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,aMe)),64))])),64))],32),e.createElementVNode("div",oMe,[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,iMe)),64))])])])}const rMe=H1(q1,[["render",sMe],["__scopeId","data-v-1f6351a4"]]),J1={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 u=d===s?i:1,f=d===l?r:17;for(let y=Math.min(u,f);y<=Math.max(u,f);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}}},K5=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},X5=J1.setup;J1.setup=X5?(t,o)=>(K5(),X5(t,o)):K5;const lMe={class:"field-template-element"},nMe={class:"field-container"},dMe={key:0,class:"select-all-container"},cMe={class:"select-all-label"},pMe=["onMouseenter","onMousedown"];function mMe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",lMe,[e.createElementVNode("div",nMe,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",dMe,[e.createElementVNode("label",cMe,[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,pMe)),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 uMe=H1(J1,[["render",mMe],["__scopeId","data-v-389c50fa"]]),fMe={components:{FieldGolStatsTemplates:rMe,FieldTemplatesElement:uMe},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)}}},hMe={key:0,class:"modal-wrapper"},yMe={class:"modal-overlay"},gMe={class:"modal-container"},bMe={class:"modal-content"},_Me={class:"modal-header"},SMe={class:"fields-container"},wMe={class:"field-section"},CMe={class:"field-section"},kMe={class:"distance-section"},EMe={class:"distance-info"},VMe={class:"info-row"},xMe={class:"info-value"},NMe={class:"info-row"},TMe={class:"info-value"},BMe={class:"info-row"},FMe={class:"info-value"},PMe={class:"distance-section"},$Me={class:"distance-info"},AMe={class:"info-row"},MMe={class:"info-value"},IMe={class:"info-row"},zMe={class:"info-value"},RMe={class:"info-row"},OMe={class:"info-value"};function LMe(t,o,a,i,s,r){var l,n,c,d,u,f,y,p,h,m,g,_;const b=e.resolveComponent("FieldGolStatsTemplates"),T=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",hMe,[e.createElementVNode("div",yMe,[e.createElementVNode("div",gMe,[e.createElementVNode("div",bMe,[e.createElementVNode("div",_Me,[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]=O=>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",SMe,[e.createElementVNode("div",wMe,[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",CMe,[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":(f=a.parameters)==null?void 0:f.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(b,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(u=a.parameters)==null?void 0:u.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",kMe,[o[6]||(o[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",EMe,[e.createElementVNode("div",VMe,[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",xMe,e.toDisplayString((y=a.parameters)==null?void 0:y.minimum_distance_x)+" m",1)]),e.createElementVNode("div",NMe,[o[4]||(o[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",TMe,e.toDisplayString((p=a.parameters)==null?void 0:p.minimum_distance_y)+" m",1)]),e.createElementVNode("div",BMe,[o[5]||(o[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",FMe,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",PMe,[o[10]||(o[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",$Me,[e.createElementVNode("div",AMe,[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",MMe,e.toDisplayString((m=a.parameters)==null?void 0:m.maximum_distance_x)+" m",1)]),e.createElementVNode("div",IMe,[o[8]||(o[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",zMe,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",RMe,[o[9]||(o[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",OMe,e.toDisplayString((_=a.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const DMe=H1(fMe,[["render",LMe],["__scopeId","data-v-834c0128"]]),vMe={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}}},jMe="_tablePosition_s65tc_46",UMe="_tablePositionWrapper_s65tc_62",WMe="_imgHenrryIcon_s65tc_71",GMe="_americaIcon_s65tc_79",HMe="_playerPhoto_s65tc_91",qMe="_toniKroos_s65tc_100",JMe="_shapeIcon_s65tc_111",YMe="_menuiconsTeams_s65tc_117",ZMe="_component31_s65tc_126",KMe="_playerName_s65tc_137",XMe="_icnPlayIcon_s65tc_145",QMe="_goles_s65tc_153",eIe="_americaIcon1_s65tc_160",tIe="_teamsAmerica_s65tc_174",aIe="_topAddPlayer_s65tc_181",oIe="_containerData_s65tc_185",iIe="_shapeIcon1_s65tc_193",sIe="_icnExpand1_s65tc_199",rIe="_icnExpand_s65tc_199",lIe="_playerData_s65tc_219",nIe="_playerInfo_s65tc_230",dIe="_headerTop_s65tc_245",cIe="_playerRow_s65tc_259",pIe="_groupsLeague_s65tc_270",mIe="_text_s65tc_279",uIe="_btnViewFullList_s65tc_287",fIe="_headerTops_s65tc_304",hIe="_btnVideosOptions_s65tc_376",yIe="_position_s65tc_553",gIe="_positionWrapper_s65tc_565",bIe="_imgNecaxaIcon_s65tc_573",_Ie="_teamLogo_s65tc_579",SIe="_teamPhoto_s65tc_587",wIe="_name_s65tc_595",CIe="_icnPlayIconType1_s65tc_603",kIe="_verVideosType1_s65tc_610",EIe="_btnVideosOptionsType1_s65tc_616",VIe="_btnVideosOptions1_s65tc_628",xIe="_leftContainer_s65tc_640",NIe="_shapeIconType1_s65tc_649",TIe="_icnExpandType1_s65tc_654",BIe="_arrowExpand_s65tc_664",FIe="_containerInfo_s65tc_672",PIe="_headerTopTeam_s65tc_684",$Ie="_containerHeader_s65tc_698",AIe="_goles1_s65tc_707",MIe="_golesType1_s65tc_710",IIe="_golesWrapper_s65tc_715",zIe="_btnViewAll_s65tc_724",RIe="_headerTopsTeams_s65tc_741",OIe="_arrowExpandIcon_s65tc_858",LIe="_rotate_s65tc_863",DIe={tablePosition:jMe,tablePositionWrapper:UMe,imgHenrryIcon:WMe,americaIcon:GMe,playerPhoto:HMe,toniKroos:qMe,shapeIcon:JMe,menuiconsTeams:YMe,component31:ZMe,playerName:KMe,icnPlayIcon:XMe,goles:QMe,americaIcon1:eIe,teamsAmerica:tIe,topAddPlayer:aIe,containerData:oIe,shapeIcon1:iIe,icnExpand1:sIe,icnExpand:rIe,playerData:lIe,playerInfo:nIe,headerTop:dIe,playerRow:cIe,groupsLeague:pIe,text:mIe,btnViewFullList:uIe,headerTops:fIe,btnVideosOptions:hIe,position:yIe,positionWrapper:gIe,imgNecaxaIcon:bIe,teamLogo:_Ie,teamPhoto:SIe,name:wIe,icnPlayIconType1:CIe,verVideosType1:kIe,btnVideosOptionsType1:EIe,btnVideosOptions1:VIe,leftContainer:xIe,shapeIconType1:NIe,icnExpandType1:TIe,arrowExpand:BIe,containerInfo:FIe,headerTopTeam:PIe,containerHeader:$Ie,goles1:AIe,golesType1:MIe,golesWrapper:IIe,btnViewAll:zIe,headerTopsTeams:RIe,arrowExpandIcon:OIe,rotate:LIe},Y1={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)}}},Q5=()=>{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}))},e4=Y1.setup;Y1.setup=e4?(t,o)=>(Q5(),e4(t,o)):Q5;const vIe=["src"],jIe=["src"],UIe=["src"],WIe=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),GIe=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),HIe=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),qIe=[WIe,GIe,HIe],JIe=["fill"],YIe=["fill"],ZIe=["src"],KIe=["fill"],XIe=["fill"];function QIe(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,vIe),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,jIe)],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,UIe)],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"}},qIe))],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,YIe)],10,JIe))],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,ZIe)],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,XIe)],10,KIe))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const eze={$style:DIe},tze=ot(Y1,[["render",QIe],["__cssModules",eze]]),aze="_rotate_1tou5_3",oze="_positionContainer_1tou5_50",ize="_positionContainer620_1tou5_57",sze="_rowwPlayer_1tou5_64",rze="_rowwPlayer960_1tou5_80",lze="_rowwPlayer420_1tou5_95",nze="_rowwPlayer460_1tou5_111",dze="_containerLeft_1tou5_128",cze="_containerLeft420_1tou5_136",pze="_containerLeft620_1tou5_144",mze="_iconFavoritesType1_1tou5_151",uze="_iconFavoritesType1320_1tou5_159",fze="_iconFavorites_1tou5_151",hze="_iconFavorites420_1tou5_175",yze="_playerContainer_1tou5_183",gze="_playerContainer420_1tou5_195",bze="_playerContainer460_1tou5_207",_ze="_playerContainerType1_1tou5_219",Sze="_playerContainerType1320_1tou5_229",wze="_playerContainerType1460_1tou5_239",Cze="_imgPlayerIcon_1tou5_249",kze="_imgPlayerIcon460_1tou5_259",Eze="_imgPlayerIcon420_1tou5_269",Vze="_manchesterUnited_1tou5_279",xze="_manchesterUnited360_1tou5_290",Nze="_manchesterUnited420_1tou5_301",Tze="_manchesterUnited460_1tou5_312",Bze="_containerRight_1tou5_323",Fze="_containerRight960_1tou5_332",Pze="_containerRight420_1tou5_342",$ze="_numberOfVideos_1tou5_353",Aze="_numberOfVideos620_1tou5_359",Mze="_block02_1tou5_365",Ize="_block02960_1tou5_375",zze="_block02620_1tou5_384",Rze="_block02420_1tou5_391",Oze="_verVideos_1tou5_399",Lze="_verVideos620_1tou5_405",Dze="_numberPosition_1tou5_408",vze="_shapeIcon_1tou5_414",jze="_chivasIcon_1tou5_419",Uze="_imgTeamIcon_1tou5_430",Wze="_teamName_1tou5_435",Gze="_nameTeam_1tou5_441",Hze="_dfC_1tou5_450",qze="_position_1tou5_50",Jze="_age_1tou5_460",Yze="_manchesterUnitedIcon_1tou5_468",Zze="_country_1tou5_475",Kze="_playedGames_1tou5_482",Xze="_playedMinutes_1tou5_489",Qze="_block01_1tou5_496",eRe="_leagueName_1tou5_503",tRe="_roleCharacterIcon_1tou5_509",aRe="_btnVideos_1tou5_517",oRe="_containerBtnVideos_1tou5_532",iRe="_containerBtnVideos620_1tou5_542",sRe="_containesOptions_1tou5_551",rRe="_arrowExpandIcon_1tou5_558",lRe="_rowTeam_1tou5_567",nRe="_rowTeam420_1tou5_585",dRe="_rowTeam320_1tou5_603",cRe="_rowTeam460_1tou5_622",pRe="_rowTeam350_1tou5_641",mRe="_containerLeftType1_1tou5_659",uRe="_containerLeftType1680_1tou5_665",fRe="_containerLeftType1320_1tou5_672",hRe="_containerLeftType1350_1tou5_680",yRe="_positionContainertype1_1tou5_687",gRe="_positionContainertype1380_1tou5_695",bRe="_positionContainertype1680_1tou5_703",_Re="_positionContainertype1420_1tou5_711",SRe="_manchesterUnitedType1_1tou5_719",wRe="_manchesterUnitedType1460_1tou5_725",CRe="_manchesterUnitedType1320_1tou5_732",kRe="_containerRightType1_1tou5_739",ERe="_containerRightType1420_1tou5_750",VRe="_containerRightType1320_1tou5_761",xRe="_teamNameWrapperType1_1tou5_772",NRe="_teamNameWrapperType1960_1tou5_779",TRe="_teamNameWrapperType11086_1tou5_786",BRe="_ageWrapperType1_1tou5_793",FRe="_ageWrapperType1680_1tou5_800",PRe="_ageWrapperType11086_1tou5_808",$Re="_ageType1_1tou5_816",ARe="_ageType1960_1tou5_824",MRe="_playedGamesWrapperType1_1tou5_827",IRe="_playedGamesWrapperType1680_1tou5_834",zRe="_playedGamesWrapperType1960_1tou5_837",RRe="_playedGamesType1_1tou5_840",ORe="_playedGamesType1540_1tou5_847",LRe="_playedGamesType1960_1tou5_851",DRe="_playedGamesType11086_1tou5_854",vRe="_playedMinutesWrapperType1_1tou5_857",jRe="_playedMinutesWrapperType11086_1tou5_864",URe="_playedMinutesType1_1tou5_871",WRe="_playedMinutesType1680_1tou5_878",GRe="_block02Type1_1tou5_881",HRe="_block02Type1680_1tou5_889",qRe="_block02Type1320_1tou5_897",JRe="_block02Type1350_1tou5_906",YRe="_leagueNameWrapperType1_1tou5_914",ZRe="_leagueNameWrapperType1680_1tou5_922",KRe="_leagueNameWrapperType1960_1tou5_925",XRe="_leagueNameType1_1tou5_933",QRe="_leagueNameType1960_1tou5_943",eOe="_numberOfVideosType1_1tou5_953",tOe="_numberOfVideosType1680_1tou5_960",aOe="_numberOfVideosType11232_1tou5_967",oOe="_vectorIconType1_1tou5_974",iOe="_block01TitlesType1_1tou5_991",sOe="_numberPositionType1_1tou5_998",rOe="_shapeIconType1_1tou5_1004",lOe="_tijuanaIconType1_1tou5_1010",nOe="_tijuanaWrapperType1_1tou5_1016",dOe="_tijuanaWrapperType1NoBg_1tou5_1027",cOe="_teamNameType1_1tou5_1035",pOe="_roleCharacterIconType1_1tou5_1042",mOe="_verVideosType1_1tou5_1049",uOe="_btnVideosType1_1tou5_1055",fOe="_containerBtnVideosType1_1tou5_1070",hOe="_containesOptionsType1_1tou5_1081",yOe="_arrowExpandIconType1_1tou5_1089",gOe="_templateTablaProductividadType1_1tou5_1095",bOe="_verVideosType11232_1tou5_1107",_Oe="_templateTablaProductividadType1320_1tou5_1111",SOe="_verVideosType1680_1tou5_1115",wOe={rotate:aze,positionContainer:oze,positionContainer620:ize,rowwPlayer:sze,rowwPlayer960:rze,rowwPlayer420:lze,rowwPlayer460:nze,containerLeft:dze,containerLeft420:cze,containerLeft620:pze,iconFavoritesType1:mze,iconFavoritesType1320:uze,iconFavorites:fze,iconFavorites420:hze,playerContainer:yze,playerContainer420:gze,playerContainer460:bze,playerContainerType1:_ze,playerContainerType1320:Sze,playerContainerType1460:wze,imgPlayerIcon:Cze,imgPlayerIcon460:kze,imgPlayerIcon420:Eze,manchesterUnited:Vze,manchesterUnited360:xze,manchesterUnited420:Nze,manchesterUnited460:Tze,containerRight:Bze,containerRight960:Fze,containerRight420:Pze,numberOfVideos:$ze,numberOfVideos620:Aze,block02:Mze,block02960:Ize,block02620:zze,block02420:Rze,verVideos:Oze,verVideos620:Lze,numberPosition:Dze,shapeIcon:vze,chivasIcon:jze,imgTeamIcon:Uze,teamName:Wze,nameTeam:Gze,dfC:Hze,position:qze,age:Jze,manchesterUnitedIcon:Yze,country:Zze,playedGames:Kze,playedMinutes:Xze,block01:Qze,leagueName:eRe,roleCharacterIcon:tRe,btnVideos:aRe,containerBtnVideos:oRe,containerBtnVideos620:iRe,containesOptions:sRe,arrowExpandIcon:rRe,rowTeam:lRe,rowTeam420:nRe,rowTeam320:dRe,rowTeam460:cRe,rowTeam350:pRe,containerLeftType1:mRe,containerLeftType1680:uRe,containerLeftType1320:fRe,containerLeftType1350:hRe,positionContainertype1:yRe,positionContainertype1380:gRe,positionContainertype1680:bRe,positionContainertype1420:_Re,manchesterUnitedType1:SRe,manchesterUnitedType1460:wRe,manchesterUnitedType1320:CRe,containerRightType1:kRe,containerRightType1420:ERe,containerRightType1320:VRe,teamNameWrapperType1:xRe,teamNameWrapperType1960:NRe,teamNameWrapperType11086:TRe,ageWrapperType1:BRe,ageWrapperType1680:FRe,ageWrapperType11086:PRe,ageType1:$Re,ageType1960:ARe,playedGamesWrapperType1:MRe,playedGamesWrapperType1680:IRe,playedGamesWrapperType1960:zRe,playedGamesType1:RRe,playedGamesType1540:ORe,playedGamesType1960:LRe,playedGamesType11086:DRe,playedMinutesWrapperType1:vRe,playedMinutesWrapperType11086:jRe,playedMinutesType1:URe,playedMinutesType1680:WRe,block02Type1:GRe,block02Type1680:HRe,block02Type1320:qRe,block02Type1350:JRe,leagueNameWrapperType1:YRe,leagueNameWrapperType1680:ZRe,leagueNameWrapperType1960:KRe,leagueNameType1:XRe,leagueNameType1960:QRe,numberOfVideosType1:eOe,numberOfVideosType1680:tOe,numberOfVideosType11232:aOe,vectorIconType1:oOe,block01TitlesType1:iOe,numberPositionType1:sOe,shapeIconType1:rOe,tijuanaIconType1:lOe,tijuanaWrapperType1:nOe,tijuanaWrapperType1NoBg:dOe,teamNameType1:cOe,roleCharacterIconType1:pOe,verVideosType1:mOe,btnVideosType1:uOe,containerBtnVideosType1:fOe,containesOptionsType1:hOe,arrowExpandIconType1:yOe,templateTablaProductividadType1:gOe,verVideosType11232:bOe,templateTablaProductividadType1320:_Oe,verVideosType1680:SOe},Z1={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)}}},t4=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},a4=Z1.setup;Z1.setup=a4?(t,o)=>(t4(),a4(t,o)):t4;const COe={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},kOe=["src"],EOe=["src"],VOe=["src"],xOe=["src"],NOe=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),TOe=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),BOe=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),FOe=[NOe,TOe,BOe],POe=["fill"],$Oe=["fill"],AOe=["src"],MOe=["src"],IOe=["fill"],zOe=["fill"],ROe=["src"],OOe=["src"],LOe=["src"],DOe=["src"],vOe=["fill"],jOe=["fill"];function UOe(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",COe,[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,kOe),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,EOe)):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,VOe),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,xOe)],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"}},FOe))],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,$Oe)],10,POe))],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,AOe)],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,MOe)],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,zOe)],10,IOe))],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,ROe),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,OOe)):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,LOe),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,DOe)],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,jOe)],10,vOe))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const WOe={$style:wOe},GOe=ot(Z1,[["render",UOe],["__cssModules",WOe]]),HOe="_containerLeftTitlesPlay_mmyc1_61",qOe="_containerLeftTitles420Play_mmyc1_69",JOe="_containerLeftTitles620Play_mmyc1_77",YOe="_containerLeftTitlesTeamPlay_mmyc1_85",ZOe="_containerLeftTitlesTeam1180Play_mmyc1_93",KOe="_containerLeftTitlesTeam1090Play_mmyc1_101",XOe="_containerLeftTitlesTeam960Play_mmyc1_109",QOe="_containerLeftTitlesTeam860Play_mmyc1_117",eLe="_containerLeftTitlesTeam768Play_mmyc1_125",tLe="_containerLeftTitlesTeam680Play_mmyc1_133",aLe="_containerLeftTitlesTeam620Play_mmyc1_141",oLe="_containerLeftTitlesTeam420Play_mmyc1_149",iLe="_headTitlesPlay_mmyc1_158",sLe="_headTitles960Play_mmyc1_173",rLe="_headTitles420Play_mmyc1_188",lLe="_headTitles540Play_mmyc1_208",nLe="_headTitles460Play_mmyc1_223",dLe="_headTitles620Play_mmyc1_238",cLe="_positionPlay_mmyc1_253",pLe="_position420Play_mmyc1_262",mLe="_playerPlay_mmyc1_265",uLe="_player420Play_mmyc1_276",fLe="_containerRightType1Play_mmyc1_280",hLe="_containerRightTitlesPlay_mmyc1_287",yLe="_containerRightTitles960Play_mmyc1_296",gLe="_block02TitlesPlay_mmyc1_305",bLe="_block02Titles620Play_mmyc1_313",_Le="_mon1ScoutingPlay_mmyc1_317",SLe="_mon1Scouting960Play_mmyc1_327",wLe="_mon1Play_mmyc1_336",CLe="_mon1420Play_mmyc1_345",kLe="_mon1620Play_mmyc1_355",ELe="_icnIconPlay_mmyc1_365",VLe="_icnIcon960Play_mmyc1_370",xLe="_icnIcon420Play_mmyc1_376",NLe="_teamTitlePlay_mmyc1_380",TLe="_positionTitlePlay_mmyc1_390",BLe="_ageTitlePlay_mmyc1_398",FLe="_partidosPlay_mmyc1_406",PLe="_playedGamesTitlePlay_mmyc1_410",$Le="_playedMinutesTitlePlay_mmyc1_420",ALe="_block01TitlesPlay_mmyc1_429",MLe="_monPlay_mmyc1_436",ILe="_containesOptionsTitlesPlay_mmyc1_445",zLe="_templateTablaProductividadType1Play_mmyc1_451",RLe="_templateTablaProductividadType1400Play_mmyc1_463",OLe="_headTitlesType1Play_mmyc1_477",LLe="_headTitlesType1420Play_mmyc1_490",DLe="_headTitlesType1400Play_mmyc1_506",vLe="_headTitlesType1540Play_mmyc1_522",jLe="_headTitlesType1460Play_mmyc1_536",ULe="_headTitlesType1680Play_mmyc1_550",WLe="_headTitlesType1350Play_mmyc1_563",GLe="_positionType1Play_mmyc1_578",HLe="_positionType1400Play_mmyc1_587",qLe="_teamType1Play_mmyc1_597",JLe="_teamType1400Play_mmyc1_606",YLe="_frecuenciaType1Play_mmyc1_616",ZLe="_frecuenciaType1540Play_mmyc1_624",KLe="_containerLeftTitlesType1Play_mmyc1_633",XLe="_frecuenciaWrapperType1Play_mmyc1_641",QLe="_frecuenciaWrapperType1680Play_mmyc1_650",eDe="_promedioPartidoType1Play_mmyc1_658",tDe="_promedioEstePartidoType1Play_mmyc1_662",aDe="_promedioEstePartidoType1960Play_mmyc1_670",oDe="_promedioEstePartidoWrapperType1Play_mmyc1_674",iDe="_promedioEstePartidoWrapperType11200Play_mmyc1_682",sDe="_promedioEstePartidoWrapperType11090Play_mmyc1_691",rDe="_promedioEstePartidoWrapperType11086Play_mmyc1_701",lDe="_promedioPartidosType1Play_mmyc1_710",nDe="_promedioPartidosWrapperType1Play_mmyc1_717",dDe="_promedioPartidosWrapperType1960Play_mmyc1_725",cDe="_promedioPartidosWrapperType11086Play_mmyc1_728",pDe="_partidosJugadosType1Play_mmyc1_731",mDe="_partidosJugadosType1960Play_mmyc1_737",uDe="_partidosJugadosWrapperType1Play_mmyc1_744",fDe="_partidosJugadosWrapperType11200Play_mmyc1_752",hDe="_partidosJugadosWrapperType11180Play_mmyc1_760",yDe="_partidosJugadosWrapperType11170Play_mmyc1_768",gDe="_partidosJugadosWrapperType11140Play_mmyc1_776",bDe="_partidosJugadosWrapperType11086Play_mmyc1_784",_De="_partidosJugadosWrapperType1960Play_mmyc1_792",SDe="_partidosJugadosWrapperType1880Play_mmyc1_800",wDe="_partidosJugadosWrapperType1860Play_mmyc1_808",CDe="_partidosJugadosWrapperType1830Play_mmyc1_816",kDe="_partidosJugadosWrapperType1790Play_mmyc1_824",EDe="_partidosJugadosWrapperType1930Play_mmyc1_832",VDe="_partidosJugadosWrapperType1770Play_mmyc1_840",xDe="_block01TitlesType1Play_mmyc1_843",NDe="_monType1Play_mmyc1_851",TDe="_monType1960Play_mmyc1_860",BDe="_monType1680Play_mmyc1_870",FDe="_videosType1Play_mmyc1_873",PDe="_videosType1680Play_mmyc1_883",$De="_videosType1600Play_mmyc1_892",ADe="_videosType1540Play_mmyc1_901",MDe="_videosType1420Play_mmyc1_910",IDe="_videosType1400Play_mmyc1_919",zDe="_containesOptionsTitlesType1Play_mmyc1_931",RDe="_containesOptionsTitlesType1768Play_mmyc1_939",ODe="_containesOptionsTitlesType1730Play_mmyc1_946",LDe="_containesOptionsTitlesType1690Play_mmyc1_953",DDe="_icnIconType1Play_mmyc1_960",vDe="_icnIconType1420Play_mmyc1_966",jDe="_icnIconType1400Play_mmyc1_973",UDe="_block02TitlesType1Play_mmyc1_977",WDe="_block02TitlesType1680Play_mmyc1_984",GDe="_block02TitlesType1350Play_mmyc1_991",HDe="_containerRightTitlesType1Play_mmyc1_998",qDe="_containerRightTitlesType1420Play_mmyc1_1007",JDe={containerLeftTitlesPlay:HOe,containerLeftTitles420Play:qOe,containerLeftTitles620Play:JOe,containerLeftTitlesTeamPlay:YOe,containerLeftTitlesTeam1180Play:ZOe,containerLeftTitlesTeam1090Play:KOe,containerLeftTitlesTeam960Play:XOe,containerLeftTitlesTeam860Play:QOe,containerLeftTitlesTeam768Play:eLe,containerLeftTitlesTeam680Play:tLe,containerLeftTitlesTeam620Play:aLe,containerLeftTitlesTeam420Play:oLe,headTitlesPlay:iLe,headTitles960Play:sLe,headTitles420Play:rLe,headTitles540Play:lLe,headTitles460Play:nLe,headTitles620Play:dLe,positionPlay:cLe,position420Play:pLe,playerPlay:mLe,player420Play:uLe,containerRightType1Play:fLe,containerRightTitlesPlay:hLe,containerRightTitles960Play:yLe,block02TitlesPlay:gLe,block02Titles620Play:bLe,mon1ScoutingPlay:_Le,mon1Scouting960Play:SLe,mon1Play:wLe,mon1420Play:CLe,mon1620Play:kLe,icnIconPlay:ELe,icnIcon960Play:VLe,icnIcon420Play:xLe,teamTitlePlay:NLe,positionTitlePlay:TLe,ageTitlePlay:BLe,partidosPlay:FLe,playedGamesTitlePlay:PLe,playedMinutesTitlePlay:$Le,block01TitlesPlay:ALe,monPlay:MLe,containesOptionsTitlesPlay:ILe,templateTablaProductividadType1Play:zLe,templateTablaProductividadType1400Play:RLe,headTitlesType1Play:OLe,headTitlesType1420Play:LLe,headTitlesType1400Play:DLe,headTitlesType1540Play:vLe,headTitlesType1460Play:jLe,headTitlesType1680Play:ULe,headTitlesType1350Play:WLe,positionType1Play:GLe,positionType1400Play:HLe,teamType1Play:qLe,teamType1400Play:JLe,frecuenciaType1Play:YLe,frecuenciaType1540Play:ZLe,containerLeftTitlesType1Play:KLe,frecuenciaWrapperType1Play:XLe,frecuenciaWrapperType1680Play:QLe,promedioPartidoType1Play:eDe,promedioEstePartidoType1Play:tDe,promedioEstePartidoType1960Play:aDe,promedioEstePartidoWrapperType1Play:oDe,promedioEstePartidoWrapperType11200Play:iDe,promedioEstePartidoWrapperType11090Play:sDe,promedioEstePartidoWrapperType11086Play:rDe,promedioPartidosType1Play:lDe,promedioPartidosWrapperType1Play:nDe,promedioPartidosWrapperType1960Play:dDe,promedioPartidosWrapperType11086Play:cDe,partidosJugadosType1Play:pDe,partidosJugadosType1960Play:mDe,partidosJugadosWrapperType1Play:uDe,partidosJugadosWrapperType11200Play:fDe,partidosJugadosWrapperType11180Play:hDe,partidosJugadosWrapperType11170Play:yDe,partidosJugadosWrapperType11140Play:gDe,partidosJugadosWrapperType11086Play:bDe,partidosJugadosWrapperType1960Play:_De,partidosJugadosWrapperType1880Play:SDe,partidosJugadosWrapperType1860Play:wDe,partidosJugadosWrapperType1830Play:CDe,partidosJugadosWrapperType1790Play:kDe,partidosJugadosWrapperType1930Play:EDe,partidosJugadosWrapperType1770Play:VDe,block01TitlesType1Play:xDe,monType1Play:NDe,monType1960Play:TDe,monType1680Play:BDe,videosType1Play:FDe,videosType1680Play:PDe,videosType1600Play:$De,videosType1540Play:ADe,videosType1420Play:MDe,videosType1400Play:IDe,containesOptionsTitlesType1Play:zDe,containesOptionsTitlesType1768Play:RDe,containesOptionsTitlesType1730Play:ODe,containesOptionsTitlesType1690Play:LDe,icnIconType1Play:DDe,icnIconType1420Play:vDe,icnIconType1400Play:jDe,block02TitlesType1Play:UDe,block02TitlesType1680Play:WDe,block02TitlesType1350Play:GDe,containerRightTitlesType1Play:HDe,containerRightTitlesType1420Play:qDe},K1={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:{}},o4=()=>{e.useCssVars(t=>({"8d117076":t.background,"39ae673e":t.height,"5bb96572":t.fontSize,"71676add":t.fontColor,"8040e1ac":t.fontFamily,"61b44ebb":t.heightTeam}))},i4=K1.setup;K1.setup=i4?(t,o)=>(o4(),i4(t,o)):o4;const YDe={ref:"myDivRef"},ZDe=e.createElementVNode("br",null,null,-1),KDe=e.createElementVNode("br",null,null,-1),XDe=e.createElementVNode("br",null,null,-1);function QDe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",YDe,[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 "),ZDe,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"),KDe,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 "),XDe,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 eve={$style:JDe},tve=ot(K1,[["render",QDe],["__cssModules",eve]]),ave="_equipo_1lpaa_38",ove="_atlasSeleccin_1lpaa_43",ive="_equipoAtlasSeleccinMexi_1lpaa_47",sve="_aos_1lpaa_51",rve="_span12_1lpaa_55",lve="_nacionalidadMex_1lpaa_58",nve="_manchesterUnited_1lpaa_61",dve="_manchesterUnited12_1lpaa_68",cve="_containerInfo_1lpaa_78",pve="_verPerfil12_1lpaa_87",mve="_btnProfile_1lpaa_96",uve="_containerButton_1lpaa_112",fve="_containerButton2_1lpaa_119",hve="_dataContainer_1lpaa_125",yve="_expandedInfoPlayer_1lpaa_135",gve="_containerDataBg_1lpaa_225",bve="_containerDataSm_1lpaa_236",_ve="_span_1lpaa_55",Sve="_manchesterUnited14_1lpaa_247",wve="_filter_1lpaa_252",Cve="_verPerfil_1lpaa_87",kve="_manchesterUnited8_1lpaa_273",Eve="_manchesterUnitedParent1_1lpaa_279",Vve="_manchesterUnited1_1lpaa_68",xve="_manchesterUnitedParent_1lpaa_279",Nve="_frameDiv_1lpaa_301",Tve="_infoExpanded_1lpaa_309",Bve="_countryFlag_1lpaa_462",Fve={equipo:ave,atlasSeleccin:ove,equipoAtlasSeleccinMexi:ive,aos:sve,span12:rve,nacionalidadMex:lve,manchesterUnited:nve,manchesterUnited12:dve,containerInfo:cve,verPerfil12:pve,btnProfile:mve,containerButton:uve,containerButton2:fve,dataContainer:hve,expandedInfoPlayer:yve,containerDataBg:gve,containerDataSm:bve,span:_ve,manchesterUnited14:Sve,filter:wve,verPerfil:Cve,manchesterUnited8:kve,manchesterUnitedParent1:Eve,manchesterUnited1:Vve,manchesterUnitedParent:xve,frameDiv:Nve,infoExpanded:Tve,countryFlag:Bve},X1={components:{GSCButton:j2},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)}}},s4=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},r4=X1.setup;X1.setup=r4?(t,o)=>(s4(),r4(t,o)):s4;const Lt=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),Pve={ref:"myDivRef"},$ve=["src"],Ave=Lt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Mve=Lt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Ive=Lt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),zve=Lt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Rve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Ove=Lt(()=>e.createElementVNode("span",null,"xG: ",-1)),Lve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Dve=Lt(()=>e.createElementVNode("span",null,"xG: ",-1)),vve=Lt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),jve=Lt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Uve=Lt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Wve=Lt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Gve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Hve=Lt(()=>e.createElementVNode("span",null,"xG: ",-1));function qve(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Pve,[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,$ve)],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)},[Ave,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)},[Mve,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)},[Ive,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)},[zve,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)},[Rve,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)],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)},[Lve,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)},[Dve,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)},[vve,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)},[jve,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)},[Uve,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)},[Wve,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)},[Gve,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)},[Hve,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 Q1={components:{GSCCarousel:J2,GSCLeaders:tze,GSCRowTable:GOe,GSCTableHeader:tve,GSCExpandedInfo:ot(X1,[["render",qve],["__cssModules",{$style:Fve}],["__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,u=3,f=this.isTeam?u: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 m={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:f,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",m)},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,u=3,f=this.isTeam?u:d;let y=[],p=this.isTeam?t.id:this.filterTeam;this.isTeam?p=t.id:(y=[t.id],n=n.filter(m=>!m.toString().includes("_r")));const h={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:f,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,u=a[n.teamName[0].team_id].name,f=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,m=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:u,teamid:f,position:y,positionfull:p,effectiveness:m,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(this.typeTable!=1&&!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)))return!1;if(this.typeTable!=1){if(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}if(o.setYear&&c.date<l||o.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))return!1}return!0})},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:La[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)}}},l4=()=>{e.useCssVars(t=>({"075c6ad7":t.borderRadius,"0f765a3e":t.borderWidth,"11a45704":t.borderColor}))},n4=Q1.setup;Q1.setup=n4?(t,o)=>(l4(),n4(t,o)):l4;const Fn=t=>(e.pushScopeId("data-v-c8b0ccee"),t=t(),e.popScopeId(),t),Jve={ref:"myDivRef"},Yve={class:"text"},Zve={class:"groupsLeague"},Kve={class:"row-table-carrousel"},Xve={key:1,class:"container-no-search-result"},Qve={key:0,class:"overlay-loading-top"},eje=Fn(()=>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)),tje=Fn(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),aje=[eje,tje],oje=Fn(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),ije=Fn(()=>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 sje(t,o,a,i,s,r){const l=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),d=e.resolveComponent("GSCCarousel"),u=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Jve,[r.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:o[0]||(o[0]=f=>r.clickMore(a.category))},[e.createElementVNode("div",Yve,[e.createElementVNode("div",Zve,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:f})=>[e.createElementVNode("div",Kve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,(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",Xve,[t.isloading?(e.openBlock(),e.createElementBlock("div",Qve,aje)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[oje,ije],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(u,{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,(f,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,(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]=m=>r.emitEventMediaFullTable(m,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:m=>r.viewprofile(m,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 rje=ot(Q1,[["render",sje],["__scopeId","data-v-c8b0ccee"]]),lje="_filtersContainer_b9wc6_1",nje="_filtersContainer1232_b9wc6_1",dje="_closeFiltersPc_b9wc6_1",cje="_textleyemdmultipleleagues_b9wc6_1",pje="_textleyemdmultipleleagues380_b9wc6_1",mje="_filtersContainer760_b9wc6_1",uje="_filtersContainer460_b9wc6_1",fje="_containerSectionPlay_b9wc6_1",hje="_containerSectionPlay1232_b9wc6_1",yje="_containerSectionPlay960_b9wc6_1",gje="_containerSectionPlay320_b9wc6_1",bje="_containerSectionPlay350_b9wc6_1",_je="_containerSection_b9wc6_1",Sje="_containerSection1232_b9wc6_1",wje="_containerSection960_b9wc6_1",Cje="_containerSection320_b9wc6_1",kje="_containerSection350_b9wc6_1",Eje="_templateLosMejores_b9wc6_1",Vje="_templateLosMejores1232_b9wc6_1",xje="_templateLosMejores960_b9wc6_1",Nje="_templateLosMejores420_b9wc6_1",Tje="_templateLosMejores320_b9wc6_1",Bje="_templateLosMejores540_b9wc6_1",Fje="_templateLosMejores350_b9wc6_1",Pje="_topFiltersParent_b9wc6_1",$je="_topFiltersParent1232_b9wc6_1",Aje="_topFiltersParent960_b9wc6_1",Mje="_topFiltersParent460_b9wc6_1",Ije="_topFiltersParent420_b9wc6_1",zje="_containerTheBest_b9wc6_1",Rje="_containerTheBest1232_b9wc6_1",Oje="_containerTheBest960_b9wc6_1",Lje="_containerTheBest320_b9wc6_1",Dje="_titleSection_b9wc6_1",vje="_titleSection540_b9wc6_1",jje="_containerTables_b9wc6_1",Uje="_containerTables960_b9wc6_1",Wje="_containerTables760_b9wc6_1",Gje="_containerTables320_b9wc6_1",Hje="_toniKroosWrapper_b9wc6_1",qje="_toniKroosWrapper1080_b9wc6_1",Jje="_toniKroosWrapper975_b9wc6_1",Yje="_toniKroosWrapper760_b9wc6_1",Zje="_toniKroosWrapper420_b9wc6_1",Kje="_toniKroosWrapper320_b9wc6_1",Xje="_frameChild_b9wc6_1",Qje="_filtros_b9wc6_1",eUe="_groupParent_b9wc6_1",tUe="_shapeIcon_b9wc6_1",aUe="_btnFilters_b9wc6_1",oUe="_btnFiltersPC_b9wc6_1",iUe="_quitarFiltros_b9wc6_1",sUe="_quitarFiltros730_b9wc6_1",rUe="_quitarFiltros480_b9wc6_1",lUe="_quitarFiltros380_b9wc6_1",nUe="_btnCloseFilters_b9wc6_1",dUe="_mejoresJugadores_b9wc6_1",cUe="_mejoresJugadores730_b9wc6_1",pUe="_mejoresJugadores480_b9wc6_1",mUe="_mejoresJugadoresSM_b9wc6_1",uUe="_toniKroos_b9wc6_1",fUe="_teamBar_b9wc6_1",hUe="_menuSection_b9wc6_1",yUe="_menuSection960_b9wc6_1",gUe="_menuSectionPlay_b9wc6_1",bUe="_menuSectionPlay960_b9wc6_1",_Ue="_containerMenu_b9wc6_1",SUe="_containerMenu760_b9wc6_1",wUe="_containerFilters_b9wc6_1",CUe="_teamBarParent_b9wc6_1",kUe="_topFilters_b9wc6_1",EUe="_topFilters1232_b9wc6_1",VUe="_topFilters420_b9wc6_1",xUe="_topFilters460_b9wc6_1",NUe="_losMejores_b9wc6_1",TUe="_losMejores380_b9wc6_1",BUe="_losMejores530_b9wc6_1",FUe="_losMejores730_b9wc6_1",PUe="_menuSectionHeader_b9wc6_1",$Ue="_menuSectionHeader1232_b9wc6_1",AUe="_menuSectionHeader960_b9wc6_1",MUe="_menuSectionHeader730_b9wc6_1",IUe="_dropdown_b9wc6_1",zUe="_dropdown730_b9wc6_1",RUe="_dropdown1_b9wc6_1",OUe="_dropdown1730_b9wc6_1",LUe="_dropdownParent_b9wc6_1",DUe="_dropdownParent730_b9wc6_1",vUe="_menuSectionParentHeader_b9wc6_1",jUe="_menuSectionParentHeader1232_b9wc6_1",UUe="_menuSectionParentHeader960_b9wc6_1",WUe="_menuSectionParentHeader730_b9wc6_1",GUe="_menuSectionParentHeader430_b9wc6_1",HUe="_descubreVideos_b9wc6_1",qUe="_descubreVideos1232_b9wc6_1",JUe="_descubreVideos960_b9wc6_1",YUe="_allCategories_b9wc6_1",ZUe="_containerScountingBtn_b9wc6_3",KUe="_btnDeleteAplica_b9wc6_13",XUe="_SearchBtnBar_b9wc6_33",QUe="_btnLeyendTxt_b9wc6_52",eWe="_BtnSearchScounting_b9wc6_61",tWe="_containerPredefined_b9wc6_85",aWe="_containerPredefinedScounting_b9wc6_92",oWe="_titleContainerPredefined_b9wc6_100",iWe="_subtitleContainerPredefined_b9wc6_111",sWe={filtersContainer:lje,filtersContainer1232:nje,closeFiltersPc:dje,textleyemdmultipleleagues:cje,textleyemdmultipleleagues380:pje,filtersContainer760:mje,filtersContainer460:uje,containerSectionPlay:fje,containerSectionPlay1232:hje,containerSectionPlay960:yje,containerSectionPlay320:gje,containerSectionPlay350:bje,containerSection:_je,containerSection1232:Sje,containerSection960:wje,containerSection320:Cje,containerSection350:kje,templateLosMejores:Eje,templateLosMejores1232:Vje,templateLosMejores960:xje,templateLosMejores420:Nje,templateLosMejores320:Tje,templateLosMejores540:Bje,templateLosMejores350:Fje,topFiltersParent:Pje,topFiltersParent1232:$je,topFiltersParent960:Aje,topFiltersParent460:Mje,topFiltersParent420:Ije,containerTheBest:zje,containerTheBest1232:Rje,containerTheBest960:Oje,containerTheBest320:Lje,titleSection:Dje,titleSection540:vje,containerTables:jje,containerTables960:Uje,containerTables760:Wje,containerTables320:Gje,toniKroosWrapper:Hje,toniKroosWrapper1080:qje,toniKroosWrapper975:Jje,toniKroosWrapper760:Yje,toniKroosWrapper420:Zje,toniKroosWrapper320:Kje,frameChild:Xje,filtros:Qje,groupParent:eUe,shapeIcon:tUe,btnFilters:aUe,btnFiltersPC:oUe,quitarFiltros:iUe,quitarFiltros730:sUe,quitarFiltros480:rUe,quitarFiltros380:lUe,btnCloseFilters:nUe,mejoresJugadores:dUe,mejoresJugadores730:cUe,mejoresJugadores480:pUe,mejoresJugadoresSM:mUe,toniKroos:uUe,teamBar:fUe,menuSection:hUe,menuSection960:yUe,menuSectionPlay:gUe,menuSectionPlay960:bUe,containerMenu:_Ue,containerMenu760:SUe,containerFilters:wUe,teamBarParent:CUe,topFilters:kUe,topFilters1232:EUe,topFilters420:VUe,topFilters460:xUe,losMejores:NUe,losMejores380:TUe,losMejores530:BUe,losMejores730:FUe,menuSectionHeader:PUe,menuSectionHeader1232:$Ue,menuSectionHeader960:AUe,menuSectionHeader730:MUe,dropdown:IUe,dropdown730:zUe,dropdown1:RUe,dropdown1730:OUe,dropdownParent:LUe,dropdownParent730:DUe,menuSectionParentHeader:vUe,menuSectionParentHeader1232:jUe,menuSectionParentHeader960:UUe,menuSectionParentHeader730:WUe,menuSectionParentHeader430:GUe,descubreVideos:HUe,descubreVideos1232:qUe,descubreVideos960:JUe,allCategories:YUe,containerScountingBtn:ZUe,btnDeleteAplica:KUe,SearchBtnBar:XUe,btnLeyendTxt:QUe,BtnSearchScounting:eWe,containerPredefined:tWe,containerPredefinedScounting:aWe,titleContainerPredefined:oWe,subtitleContainerPredefined:iWe},rWe=e.ref(Sb()),lWe=e.ref(HEe()),nWe=e.ref(wb()),dWe={components:{GSCTableHeader:xp,GscSwitchComponent:vp,GSCFilterperteam:R2,DropdownYears:_b,GSCFilters:y1,DropdownPositions:gb,GSCExpandedInfo:Ip,GSCLabel:K2,GSCSeasonSelect:k2,GSCTopCategory:rje,GSCTournamentSelect:x2,GSCRowTable:Bp},computed:{...vMe.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{...rWe.value}},filterButtonPropsAux(){return{...lWe.value}},filterButtonPropsTournaments(){return{...nWe.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 aSe(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:La[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 u=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");u!=-1?this.arrayFiltersPlays[u].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 f=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");f!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[f].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(f,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(f=>{this.predefinedFiltersMatchLapse[f.toString()]=i[0].match_lapse_combinations[f]}),Object.keys(i[0].playing_as_combinations).forEach(f=>{this.predefinedFiltersPlayingAs[f.toString()]=i[0].playing_as_combinations[f]}),Object.keys(i[0].field_sections_combinations).forEach(f=>{this.predefinedFiltersSections[f.toString()]=i[0].field_sections_combinations[f]}),i[0]){for(let f=0;f<i[0].filter_records.length;f++){var s=i[0].description;if(i[0].filter_records[f].field_sections!==void 0){const p=i[0].filter_records[f].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[f].match_lapse!==void 0){const p=i[0].filter_records[f].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[f].playing_as!==void 0){const p=i[0].filter_records[f].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[f].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[f].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:f,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[f].match_result,playingAs:i[0].filter_records[f].playing_as,sections:i[0].filter_records[f].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[f].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let f=0;f<this.arrayPredefinedFilters.length;f++){var n=0,c=new Set,d={},u=this.arrayPredefinedFilters[f].text.replace(/\*.*?\*/,"");if(u=u.replace(/\*/g,""),u=u.replace(/ +/g," "),this.arrayPredefinedFilters[f].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[f].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[f].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[f].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[f].filtersPredefined.start_age,this.arrayPredefinedFilters[f].filtersPredefined.end_age]:this.arrayPredefinedFilters[f].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[f].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[f].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[f].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[f].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[f].filtersPredefined.end_age],this.arrayPredefinedFilters[f].filtersPredefined.matchResult.length!=3&&(n+=1),d.matchResult=this.arrayPredefinedFilters[f].filtersPredefined.matchResult,this.arrayPredefinedFilters[f].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[f].filtersPredefined.nationalities.length;y++)c.add(this.arrayPredefinedFilters[f].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[f].filtersPredefined.playingAs.length!=2&&(n+=1),d.playingAs=this.arrayPredefinedFilters[f].filtersPredefined.playingAs,this.arrayPredefinedFilters[f].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[f].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[f].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[f].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[f].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[f].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[f].filtersPredefined.typeZone,l.push({id:f+1,name:u,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((u,f)=>u-f).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 u=1;u<=d.length;u++)u%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:La[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,u,f,y,p,h,m,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/${(f=(u=b.countryId)==null?void 0:u[0])==null?void 0:f.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:((m=(h=b.teamName)==null?void 0:h[0])==null?void 0:m.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)}}},cWe={ref:"myDivRefTopsFull",class:"play-tops"},pWe={key:0,class:"overlay-loading"},mWe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),uWe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),fWe=[mWe,uWe],hWe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),yWe=[hWe],gWe={style:{display:"contents"}},bWe={style:{display:"contents"}},_We={key:0,class:"cont-leyemd-multipleleagues"},SWe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),wWe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},CWe={key:0,style:{"margin-left":"10px"}},kWe=e.createElementVNode("span",null,"Todas las categorías",-1),EWe=[kWe],VWe=e.createElementVNode("span",null,"Tipo de Jugada",-1),xWe=e.createElementVNode("span",null,"Filtro GolStats",-1),NWe={key:3,style:{width:"100%",height:"295px"}};function TWe(t,o,a,i,s,r){var l,n,c;const d=e.resolveComponent("GSCTournamentSelect"),u=e.resolveComponent("GSCSeasonSelect"),f=e.resolveComponent("GscSwitchComponent"),y=e.resolveComponent("GSCFilterperteam"),p=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),m=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),_=e.resolveComponent("GSCTopCategory"),b=e.resolveComponent("GSCTableHeader"),T=e.resolveComponent("GSCRowTable"),O=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",cWe,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",pWe,fWe)):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(u,{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(f,{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(u,{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]=(...F)=>r.clickOpenFilters&&r.clickOpenFilters(...F))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:sn},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]=(...F)=>r.clickCloseFilters&&r.clickCloseFilters(...F))},yWe,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]=(...F)=>r.openMenuFilters&&r.openMenuFilters(...F))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:sn},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:Cb},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]=(...F)=>r.openMenuFilters&&r.openMenuFilters(...F))},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]=(...F)=>r.toggleAdvancedView&&r.toggleAdvancedView(...F))},[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",gWe,[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(m,{"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",bWe,[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]=(...F)=>r.getScoutingData&&r.getScoutingData(...F))},"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",_We,[SWe,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",wWe," 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",CWe,[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,(F,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":F.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteLabelFilter,id:F.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(F=>F.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:o[6]||(o[6]=(...F)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...F))}," 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)},EWe,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,(F,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(F.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[F.id],"border-radius":"12px","filters-prop":r.filterChange,category:F.id,"type-table":s.typeTable,categoryName:F.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(F.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},[VWe,e.createTextVNode(" y un "),xWe,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,(F,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:A},[s.teamselectrec==0||s.teamselectrec==F.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{type:2,"is-expanded":s.playerexpand==F.id&&s.expand,onMediadata:r.setMediaData,data:{position:F.position,player_name:F.player_name,player_photo:F.player_photo,total:F.total,id:F.id,player_age:F.player_age,team_abrev:F.team_abrev,team_logo:F.team_logo,player_position:s.positions[F.player_position-1].fullname,player_country_flag:F.player_country_flag,player_games:F.player_games,player_min:F.player_min,league_name:F.league_name,seasons:F.seasons,season_id:F.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==F.id?(e.openBlock(),e.createBlock(O,{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:F.team_name,age:F.player_age,dataofbirth:F.date,nationality:F.nationality_name,countryFlag:F.player_country_flag,position:s.positions[F.player_position-1].name,games:F.player_games,min:F.player_min,goals:F.total,effectiveness:"-",category:"total",id:F.id},onViewprofile:G=>r.viewprofile(G,F.season_id,F.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]=(...F)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...F))}," 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]=(...F)=>r.getScoutingData&&r.getScoutingData(...F))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",NWe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const BWe={$style:sWe},FWe=ot(dWe,[["render",TWe],["__cssModules",BWe]]),PWe=e.ref(Sb()),$We=e.ref(wb()),AWe={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:vp,GSCRadioToggle:gNe,ModalAddPlayList:ZNe,DropdownTemplates:WEe,GSCTableScrollable:QAe,GSCFilters:y1,ModalAddLista:dTe,DropdownYears:_b,DropdownPositions:gb,PlayTops:FWe,ModalViewVarGolstats:DMe},computed:{filterButtonProps(){return{...PWe.value}},filterButtonPropsTournamentsAdvanced(){return{...$We.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:cTe,tournamentsToFilterVariables:pTe,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadio:"total"},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,t.statisticsRadio&&t.statisticsRadio==="every90"?(this.filtersObject.is_ppp=!0,this.filtersObject.ppp_default_minutes=90):this.filtersObject.is_ppp=!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(){const t="https://1km387uzk3.execute-api.us-east-2.amazonaws.com/qa/players/productivity";if(this.isSearchActive)try{this.isLoading=!0;const o=await(await fetch(t,{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=o.map(a=>({objeto_player:a,player_photo:a.photo,player_name:a.acronym,player_age:this.calculateAge(a.dob),team_abrev:a.teams[0].acronym,jersey:a.jersey||"",nationality:a.nationality,team_name:a.team_name,is_female:a.is_female||0,parameters:a.internal_parameters,position_name:this.positions[a.position_id-1].fullname,player_position:this.positions[a.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+a.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${a.nationality_id}.jpg`,player_games:a.games_played,player_min:a.minutes_played,nationality_name:La[a.nationality_id],league_name:a.tournament_name,seasons:a.seasons,season_id:a.seasons[0],stats:a.stats?a.stats.map(i=>({category_id:i[4]||null,custom_category_id:i[0]||null,name:i[1]||"",total:i[2]||0,seasons:i[3]||null})):[]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(o){console.error("Error al realizar la búsqueda:",o)}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 "+La[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})}}},Ba=t=>(e.pushScopeId("data-v-f24b209b"),t=t(),e.popScopeId(),t),MWe={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},IWe={class:"overlay-loading"},zWe=Ba(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),RWe=Ba(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),OWe=[zWe,RWe],LWe={class:"strip-menu"},DWe={class:"strip-options-vars"},vWe={key:0,class:"desktop-layout"},jWe={class:"left-containers"},UWe={class:"filter-container filter-container-variables container-372"},WWe={key:0,class:"filter-container filter-container-variables container-291"},GWe=Ba(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),HWe={class:"variables-indicator"},qWe=Ba(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),JWe={class:"filter-container-box"},YWe=Ba(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),ZWe={class:"filter-container-box-2"},KWe=Ba(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),XWe={class:"filter-container-box-3"},QWe={class:"advanced-row-top"},eGe=Ba(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),tGe={class:"stats-section"},aGe={class:"filters-applied"},oGe=Ba(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),iGe={class:"filters-tags-wrapper"},sGe={class:"filters-tags"},rGe=Ba(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),lGe={key:0,class:"no-results"},nGe={key:1,class:"content-container"};function dGe(t,o,a,i,s,r){const l=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("ModalAddPlayList"),c=e.resolveComponent("ModalAddLista"),d=e.resolveComponent("GscSwitchComponent"),u=e.resolveComponent("GSCRadioToggle"),f=e.resolveComponent("DropdownTemplates"),y=e.resolveComponent("GSCFilters"),p=e.resolveComponent("DropdownPositions"),h=e.resolveComponent("DropdownYears"),m=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",MWe,[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",IWe,OWe,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",LWe,[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",DWe,[i.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",vWe,[e.createElementVNode("div",jWe,[e.createElementVNode("div",UWe,[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(u,{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",WWe,[GWe,e.createElementVNode("div",HWe,[e.createVNode(f,{"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(u,{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(f,{"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",QWe,[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}])},[qWe,e.createElementVNode("div",JWe,[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}])},[YWe,e.createElementVNode("div",ZWe,[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}])},[KWe,e.createElementVNode("div",XWe,[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}),eGe,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":i.elementSize.width<=780}])},[e.createElementVNode("div",tGe,[e.createElementVNode("div",aGe,[oGe,e.createElementVNode("div",iGe,[e.createElementVNode("div",sGe,[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 "),rGe])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",lGe," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",nGe,[e.createVNode(m,{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 cGe=ot(AWe,[["render",dGe],["__scopeId","data-v-f24b209b"]]),pGe={name:"SwitchTopsType",components:{TopsFull:mNe,TopsBestAndPlay:cGe},data(){return{templates:[],hasTemplates:!1,isTemplatesLoaded:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},created(){this.fetchTemplates()},props:{type:{type:Number,default:1},userType:{type:String,required:!0},userId:{type:String,required:!0},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0},isSelection:{type:Boolean,default:!1},hidePersonalizableVariables:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzQwNDcsIm5hbWUiOiJHb2xTdGF0cyBTYW50b3MiLCJ1c2VybmFtZSI6Imdzc2FudG9zIiwiZW1haWwiOiIiLCJwcm92aWRlcl9pZCI6MSwibG9naW5fZ29sc3RhdHMiOjEsImlhdCI6MTc0NjIyMjQ3NCwiZXhwIjoxNzc3NzU4NDc0fQ.fga__q8pm-HbeHeNPWOqz32n8xkE_zcVPiPu8NTAiOM"},tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0}},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 mGe(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,"user-type":a.userType,"is-clubes":a.isClubes,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,"tournaments-api-url":a.tournamentsApiUrl,"are-female-tournaments-visible":a.areFemaleTournamentsVisible,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded},null,8,["onChangeSeasonId","onOpenMedia","onOpenmedia","team-id","user-type","is-clubes","current-season-id","is-selection","tournaments-api-url","are-female-tournaments-visible","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,"user-type":a.userType,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","user-type","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id","hide-personalizable-variables"])):e.createCommentVNode("",!0)])}const uGe=ot(pGe,[["render",mGe]]),fGe={class:"elegibles"},d4=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=u=>{o("openmedia",u)},s=u=>{o("open-profile-team",u)},r=u=>{o("open-profile-player",u)};function l(u){o("showGraph",u)}function n(u){o("change-season-id",u)}function c(u){o("tops-loaded",u)}function d(u){o("comparePlayers",u)}return(u,f)=>(e.openBlock(),e.createElementBlock("div",fGe,[e.createVNode(e.unref(uGe),{"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"]]),hGe=(t=>(e.pushScopeId("data-v-5ab76500"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),yGe={class:""},gGe={class:""},bGe={class:"tabs"},_Ge=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),u=e.ref([]),f=e.ref([]),y=e.ref(!1),p=e.ref(!1),h=e.ref({}),m=e.ref([]),g=e.ref({}),_=e.ref({});e.watch(()=>a.tournamentId,w=>{w&&O()},{immediate:!0}),e.watch(()=>a.teamId,async w=>{w&&(await T(),await O())},{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 se=await S.json();a.areFemaleTeamsExcluded&&(E=E.filter(me=>!me.team_name.toLowerCase().includes("femenil"))),E.forEach(me=>{me.seasonsIds=new Set(me.seasons.map(ye=>ye.id)),me.availableTournaments=me.seasonsIds?se.reduce((ye,fe)=>{if(fe.seasons.some(B=>me.seasonsIds.has(B.id))){const B=fe.seasons.filter(z=>me.seasonsIds.has(z.id));ye.push({...fe.tournament,seasons:me.seasons.reduce((z,M)=>(B.forEach(pe=>{pe.id===M.id&&z.push(M)}),z),[]),seasonsIds:me.seasonsIds,teamId:me.team_id})}return ye},[]):[]}),m.value=E.filter(me=>me.availableTournaments.length>0),g.value=m.value[0]}catch(w){console.error(w)}}async function O(){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);f.value=H}}catch(w){console.error("Error filling data",w)}}function F(){G().then(w=>{u.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")}),P=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 d4;case"Listas de seguimiento":return cde;case"Última convocatoria":return Z6;default:return d4}}),V=e.computed(()=>p.value||y.value?"100%":"179px"),x=w=>{o("openmedia",w)},R=w=>{o("showGraph",w)},le=w=>{o("open-profile-team",w)},ce=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 U(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();u.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()):F()}function re(w){g.value=w}function W(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}])},[hGe,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(om),e.mergeProps(i,{"model-value":g.value,items:m.value,onInput:re,"onUpdate:modelValue":W}),{default:e.withCtx(({selectedItem:S})=>[e.createElementVNode("div",yGe,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(m6),{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(om),e.mergeProps(i,{width:"250px","model-value":_.value,items:h.value.friendlyGames,onInput:L}),{default:e.withCtx(({selectedItem:S})=>[e.createElementVNode("div",gGe,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",bGe,[e.createVNode(e.unref(M6),{type:2,buttons:e.unref(s),"font-family":"Poppins-Medium","selected-option":r.value,"font-size":P.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":u.value,"in-followed-players":f.value,"hide-personalizable-variables":t.hidePersonalizableVariables,onShowGraph:R,onShowProfile:he,onOpenmedia:x,onOpenMedia:x,onOpenProfileTeam:le,onOpenProfilePlayer:ce,onChangeSeasonId:$,onTopsLoaded:U,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"]]),SGe={class:"subcategory-group"},wGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",SGe,[(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))]))}},CGe=ze(wGe,[["__scopeId","data-v-ae6f3d72"]]),kGe={class:"filter-subcategories"},EGe=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",kGe,[(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(CGe,{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"},xGe=Pn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),NGe={class:"details__header__checkbox"},TGe={class:"details__body"},BGe={class:"details__body__playing-as"},FGe=["onClick"],PGe={class:"details__header"},$Ge=Pn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),AGe={class:"details__header__checkbox"},MGe={class:"details__body"},IGe=Pn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),zGe={class:"details__body__game-section"},RGe=["onClick"],OGe={class:"details__body"},LGe=Pn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),DGe={class:"details__body__game-section"},vGe=["onClick"],jGe=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(u=>({"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(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,f)=>(f.value<=3?u.firstHalf.push(f):u.secondHalf.push(f),u),{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(u){u?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,y)=>{f.isSelected=y===0})}function n(u){o.playingAs.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,y)=>{f.isSelected=y===0})}return(u,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",VGe,[xGe,e.createElementVNode("div",NGe,[e.createVNode(e.unref($e),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",TGe,[e.createElementVNode("div",BGe,[(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,FGe))),128))])]),e.createElementVNode("div",PGe,[$Ge,e.createElementVNode("div",AGe,[e.createVNode(e.unref($e),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",MGe,[IGe,e.createElementVNode("div",zGe,[(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,RGe))),128))])]),e.createElementVNode("div",OGe,[LGe,e.createElementVNode("div",DGe,[(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,vGe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),UGe={class:"filter-field"},WGe=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",UGe,[e.createVNode(e.unref(Bh),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),GGe={class:"subcategory-group"},HGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",GGe,[(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))]))}},qGe=Ae(HGe,[["__scopeId","data-v-ae6f3d72"]]),JGe={class:"filter-subcategories"},YGe=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",JGe,[(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(qGe,{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),ZGe={class:"details__header"},KGe=$n(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),XGe={class:"details__header__checkbox"},QGe={class:"details__body"},eHe={class:"details__body__playing-as"},tHe=["onClick"],aHe={class:"details__header"},oHe=$n(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),iHe={class:"details__header__checkbox"},sHe={class:"details__body"},rHe=$n(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),lHe={class:"details__body__game-section"},nHe=["onClick"],dHe={class:"details__body"},cHe=$n(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),pHe={class:"details__body__game-section"},mHe=["onClick"],uHe=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(u=>({"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(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,f)=>(f.value<=3?u.firstHalf.push(f):u.secondHalf.push(f),u),{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(u){u?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,y)=>{f.isSelected=y===0})}function n(u){o.playingAs.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,y)=>{f.isSelected=y===0})}return(u,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",ZGe,[KGe,e.createElementVNode("div",XGe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",QGe,[e.createElementVNode("div",eHe,[(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,tHe))),128))])]),e.createElementVNode("div",aHe,[oHe,e.createElementVNode("div",iHe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",sHe,[rHe,e.createElementVNode("div",lHe,[(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,nHe))),128))])]),e.createElementVNode("div",dHe,[cHe,e.createElementVNode("div",pHe,[(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,mHe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),fHe={class:"filter-field"},hHe=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",fHe,[e.createVNode(e.unref(I0),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),yHe={class:"subcategory-group"},gHe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",yHe,[(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))]))}},bHe=Me(gHe,[["__scopeId","data-v-ae6f3d72"]]),_He={class:"filter-subcategories"},SHe=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",_He,[(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(bHe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),An=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),wHe={class:"details__header"},CHe=An(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),kHe={class:"details__header__checkbox"},EHe={class:"details__body"},VHe={class:"details__body__playing-as"},xHe=["onClick"],NHe={class:"details__header"},THe=An(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),BHe={class:"details__header__checkbox"},FHe={class:"details__body"},PHe=An(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),$He={class:"details__body__game-section"},AHe=["onClick"],MHe={class:"details__body"},IHe=An(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),zHe={class:"details__body__game-section"},RHe=["onClick"],OHe=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(u=>({"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(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,f)=>(f.value<=3?u.firstHalf.push(f):u.secondHalf.push(f),u),{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(u){u?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,y)=>{f.isSelected=y===0})}function n(u){o.playingAs.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,y)=>{f.isSelected=y===0})}return(u,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",wHe,[CHe,e.createElementVNode("div",kHe,[e.createVNode(e.unref(Pe),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",EHe,[e.createElementVNode("div",VHe,[(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,xHe))),128))])]),e.createElementVNode("div",NHe,[THe,e.createElementVNode("div",BHe,[e.createVNode(e.unref(Pe),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",FHe,[PHe,e.createElementVNode("div",$He,[(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,AHe))),128))])]),e.createElementVNode("div",MHe,[IHe,e.createElementVNode("div",zHe,[(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,RHe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),LHe={class:"filter-field"},DHe=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",LHe,[e.createVNode(e.unref(_3),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Ha.GSCPlayersTracking=_Ge,Object.defineProperty(Ha,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=Ro(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:s}=o;a!==void 0&&Bn.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}:Bn.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),Bn.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=Ot.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,u=0,f;if(!n){const p=[W5.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,c),f=p.length,d=Promise.resolve(o);u<f;)d=d.then(p[u++],p[u++]);return d}f=l.length;let y=o;for(u=0;u<f;){const p=l[u++],h=l[u++];try{y=p(y)}catch(m){h.call(this,m);break}}try{d=W5.call(this,y)}catch(p){return Promise.reject(p)}for(u=0,f=c.length;u<f;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=Ro(this.defaults,t);const o=I5(t.baseURL,t.url,t.allowAbsoluteUrls);return x5(o,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){Oo.prototype[t]=function(o,a){return this.request(Ro(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(Ro(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 i$e=class _4{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 _4(function(a){o=a}),cancel:o}}};function s$e(t){return function(o){return t.apply(null,o)}}function r$e(t){return ie.isObject(t)&&t.isAxiosError===!0}const G1={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(G1).forEach(([t,o])=>{G1[o]=t});function q5(t){const o=new Oo(t),a=p5(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 q5(Ro(t,i))},a}const Ke=q5(Bs);Ke.Axios=Oo,Ke.CanceledError=ki,Ke.CancelToken=i$e,Ke.isCancel=P5,Ke.VERSION=G5,Ke.toFormData=kn,Ke.AxiosError=Ne,Ke.Cancel=Ke.CanceledError,Ke.all=function(t){return Promise.all(t)},Ke.spread=s$e,Ke.isAxiosError=r$e,Ke.mergeConfig=Ro,Ke.AxiosHeaders=Ot,Ke.formToJSON=t=>B5(ie.isHTMLForm(t)?new FormData(t):t),Ke.getAdapter=U5.getAdapter,Ke.HttpStatusCode=G1,Ke.default=Ke;const l$e=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},n$e={class:"modal-overlay"},d$e={key:0,class:"modal-content"},c$e={class:"modal-select-container"},p$e={class:"modal-input-wrapper"},m$e=["disabled"],u$e={key:0,class:"modal-input-loading"},f$e={key:0,class:"modal-dropdown-empty"},h$e={key:1,class:"modal-dropdown-scroll"},y$e={class:"variable-selection"},g$e=["value","onClick","disabled"],b$e={class:"variable-text"},_$e={class:"modal-dropdown-actions"},S$e={key:1,class:"modal-error"},w$e={key:0,class:"modal-name-error"},C$e={class:"modal-actions"},k$e=["disabled"],J5=3,E$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([]),u=e.ref(!1),f=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 m(){n.value=!n.value}async function g(){var C,V;try{u.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(R=>R.checked)}catch(x){f.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{u.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 O(){setTimeout(()=>{y.value||(n.value=!1,r.value="")},200)}function F(){r.value="",n.value=!1,y.value=!1}function A(C){if(l.value.includes(C)){if(l.value.length<=J5)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}`}}),R={user_id:parseInt(i.userId),name:s.value,variables:l.value};console.log("Lo que se guarda es:");const le=await x.post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,R);le.data&&(a("createList",{nombre:s.value,variables:l.value,id:le.data.data.id}),a("listCreated"),s.value="",l.value=[],r.value="",n.value=!1,a("close"))}}catch(x){console.error("Error creating list:",x),f.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 P(){document.body.style.overflow=""}return e.onMounted(async()=>{c.value=!0,n.value=!1,q(),await g()}),e.onUnmounted(()=>{P()}),(C,V)=>(e.openBlock(),e.createElementBlock("div",n$e,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",d$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",c$e,[e.createElementVNode("div",p$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:O,onInput:T,disabled:u.value},null,40,m$e),[[e.vModelText,r.value]]),u.value?(e.openBlock(),e.createElementBlock("div",u$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(m,["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&&!u.value&&!f.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",f$e," No se encontraron variables ")):(e.openBlock(),e.createElementBlock("div",h$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",y$e,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:x,"onUpdate:modelValue":V[2]||(V[2]=R=>l.value=R),onClick:e.withModifiers(R=>A(x),["stop"]),disabled:l.value.length<=J5&&l.value.includes(x)},null,8,g$e),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",b$e,e.toDisplayString(x.name),1)])]))),128))])),e.createElementVNode("div",_$e,[e.createElementVNode("button",{class:"modal-listo-btn",onMousedown:e.withModifiers(F,["prevent"])},"Listo",32)])],32)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("div",S$e,[V[6]||(V[6]=e.createElementVNode("span",{class:"error-icon"},"!",-1)),e.createTextVNode(" "+e.toDisplayString(f.value),1)])):e.createCommentVNode("",!0)]),p.value?(e.openBlock(),e.createElementBlock("div",w$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",C$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,k$e)])])):e.createCommentVNode("",!0)]),_:1})]))}},V$e=l$e(E$e,[["__scopeId","data-v-71419cea"]]),Oe=t=>(e.pushScopeId("data-v-7c36553e"),t=t(),e.popScopeId(),t),x$e=Oe(()=>e.createElementVNode("div",{class:"top-scroll-spacer"},null,-1)),N$e={class:"table__static-column"},T$e={class:"static-title column-title restore"},B$e={class:"titles-left"},F$e=Oe(()=>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)),P$e=["id"],$$e={class:"container"},A$e={class:"details-row__info"},M$e={class:"details-row__info__personal"},I$e={class:"bold"},z$e={class:"bold"},R$e={class:"bold"},O$e={class:"bold"},L$e={class:"details-row__info__games"},D$e={class:"bold"},v$e={class:"bold"},j$e=["onClick"],U$e=Oe(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),W$e=Oe(()=>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)),G$e=[U$e,W$e],H$e=["onClick"],q$e=Oe(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),J$e=Oe(()=>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)),Y$e=[q$e,J$e],Z$e=["onClick"],K$e=Oe(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),X$e=Oe(()=>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)),Q$e=[K$e,X$e],eAe=["onClick"],tAe=Oe(()=>e.createElementVNode("div",null,"Ver perfil",-1)),aAe=[tAe],oAe={class:"static-row__info-player"},iAe=["onClick"],sAe=Oe(()=>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)),rAe=Oe(()=>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)),lAe=Oe(()=>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)),nAe=[sAe,rAe,lAe],dAe=["onClick"],cAe=Oe(()=>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)),pAe=Oe(()=>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)),mAe=Oe(()=>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)),uAe=[cAe,pAe,mAe],fAe={class:"player-photo"},hAe=["src"],yAe={class:"player-name"},gAe={class:"arrow"},bAe=["onClick"],_Ae=Oe(()=>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)),SAe=[_Ae],wAe={class:"titles scrollable-row"},CAe={class:"column-title"},kAe=Oe(()=>e.createElementVNode("div",null," Equipo ",-1)),EAe=Oe(()=>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)),VAe=[EAe],xAe={class:"column-title"},NAe=Oe(()=>e.createElementVNode("div",null," Posición ",-1)),TAe=Oe(()=>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=Oe(()=>e.createElementVNode("div",null," Edad ",-1)),$Ae=Oe(()=>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=Oe(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),IAe={class:"column-title"},zAe=Oe(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),RAe=Oe(()=>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=[RAe],LAe={class:"column-title"},DAe=Oe(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),vAe=Oe(()=>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)),jAe=[vAe],UAe={class:"column-title"},WAe=Oe(()=>e.createElementVNode("div",null," Liga ",-1)),GAe=Oe(()=>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)),HAe=[GAe],qAe=Oe(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),JAe={class:"team-logo"},YAe=["src"],ZAe={class:"team-name data-info"},KAe=["src"],XAe={__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),u=e.ref(0),f=e.ref(-1),y=e.ref(!1),p=e.ref(null),h=e.ref(null),m=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"),O=e.ref(!1),F=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 pe=M+1,Te={...z,position:pe<10?`0${pe}`:`${pe}`,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(em=>em.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(()=>m.value,B=>{if(B){let z=[...g.value];B.isRoot?z.sort((M,pe)=>typeof M[B.name]=="string"?B.isDesc?M[B.name].localeCompare(pe[B.name]):M[B.name].localeCompare(pe[B.name])*-1:B.isDesc?pe[B.name]-M[B.name]:M[B.name]-pe[B.name]):z.sort((M,pe)=>{const Te=M.stats.find(Le=>Le.name===B.name),ue=pe.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,pe)=>{M.isOdd=pe%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(u,B=>{const z=document.querySelectorAll(".static-row")[f.value+1];z&&(z.style.marginTop=`${B}px`),a.isGeneral?q(f.value,B):n.value&&n.value.setMarginTopDetails(f.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 P(B){o("click-parameters",B)}function C(B){B&&(B.isDesc=!B.isDesc),m.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,pe={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&&(pe.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),pe.seasonId=Te.shift(),pe.seasonsIds=Te}else(B.season_id||B.seasonId)&&(pe.seasonId=B.season_id||B.seasonId);B.stat?B.stat.category_id&&B.stat.category_id.length?pe.categoryIds=B.stat.category_id:B.stat.custom_category_id&&(pe.customCategoryIds=[B.stat.custom_category_id]):pe.categoryIds=le(B.player_position),o("open-media",pe)}function x(){i=new ResizeObserver(B=>{for(const z of B)d.value=z.contentRect.width}),i.observe(l.value)}function R(B){s=new ResizeObserver(z=>{for(const M of z)u.value=M.contentRect.height}),s.observe(B)}function le(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 ce(B,z){z.isSelected=B;const M=r.value.filter(pe=>pe.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 U(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 pe=-1;M.forEach((ue,Le)=>{ue.id===`dr-${B.id}`&&(pe=Le)});const Te=M[pe];f.value=pe,R(Te),B.isExpanded=!0,r.value.forEach(ue=>{ue.isExpanded=!1}),setTimeout(()=>{if(!y.value){const ue=document.querySelectorAll(".details-row")[B.index];f.value=B.index,R(ue)}B.isExpanded=!y.value},1)}let L=!1,ne,re,W=function(B){L=!0,ne=B.pageX-h.value.offsetLeft,re=h.value.scrollLeft},w=function(B){L=!0,ne=B.pageX-c.value.offsetLeft,re=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 se(){h.value&&(h.value.addEventListener("mousemove",B=>{if(!L)return;const z=B.pageX-h.value.offsetLeft-ne,M=re-z;h.value.scrollLeft=M,c.value&&(c.value.scrollLeft=M)}),h.value.addEventListener("mousedown",W,!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=re-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 me(){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],()=>{me()},{immediate:!0});function ye(){O.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(),se()}),e.onBeforeUnmount(()=>{i&&i.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",W,!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,[O.value?(e.openBlock(),e.createBlock(e.unref(V$e),{key:0,token:t.token,"user-id":t.userId,onClose:z[0]||(z[0]=M=>O.value=!1),onCreateList:fe},null,8,["token","user-id"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"top-scroll-container",style:e.normalizeStyle(G.value)},[x$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",N$e,[e.createElementVNode("div",T$e,[e.createElementVNode("div",B$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))},[F$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",$$e,[e.createElementVNode("div",A$e,[e.createElementVNode("div",M$e,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",I$e,e.toDisplayString(M.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",z$e,e.toDisplayString(M.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",R$e,e.toDisplayString(M.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",O$e,e.toDisplayString(M.position_name),1)])]),e.createElementVNode("div",L$e,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",D$e,e.toDisplayString(M.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",v$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:pe=>U(M)},G$e,8,j$e)):e.createCommentVNode("",!0),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:pe=>k(M)},Y$e,8,H$e)):t.isAddToListButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:2,role:"button",class:"button",onClick:pe=>$(M)},Q$e,8,Z$e)):e.createCommentVNode("",!0),e.createElementVNode("div",{role:"button",class:"button green",onClick:pe=>he(M)},aAe,8,eAe)],4)])],10,P$e),[[e.vShow,M.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(CTe),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":M.isSelected,"onUpdate:modelValue":pe=>ce(pe,M)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",oAe,[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:pe=>k(M)},nAe,8,iAe))],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(FFe),{key:0,token:t.token,"user-id":t.userId,lists:t.lists,isModalOpen:F.value,"selected-player":M.objeto_player,onClose:pe=>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:pe=>$(M)},uAe,8,dAe))],4)):e.createCommentVNode("",!0),e.createElementVNode("div",fAe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:M.player_photo,alt:"player photo"},null,8,hAe)])]),e.createElementVNode("div",yAe,e.toDisplayString(M.player_name),1)]),e.createElementVNode("div",gAe,[(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:pe=>I(M)},SAe,10,bAe))])],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",wAe,[e.createElementVNode("div",CAe,[kAe,(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]))},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[3]||(z[3]=M=>C(_.value[1]))},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[4]||(z[4]=M=>C(_.value[2]))},AAe))]),MAe,e.createElementVNode("div",IAe,[zAe,(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]))},OAe))]),e.createElementVNode("div",LAe,[DAe,(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]))},jAe))]),e.createElementVNode("div",UAe,[WAe,(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]))},HAe))]),qAe]),(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",JAe,[e.createElementVNode("img",{src:M.team_logo,alt:"team logo"},null,8,YAe)]),e.createElementVNode("div",ZAe,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,KAe)],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(ATe),{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:pe=>V(M)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(WTe,{key:1,ref_key:"scrollColumns",ref:n,"available-players":g.value,"is-edit-mode":t.isEditMode,"is-mobile":N.value,onOpenMedia:V,onClickParameters:P,onSort:C},null,8,["available-players","is-edit-mode","is-mobile"]))],512)],4))],64))}},QAe=Nb(XAe,[["__scopeId","data-v-7c36553e"]]),H1=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},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},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)}}},Y5=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Z5=q1.setup;q1.setup=Z5?(t,o)=>(Y5(),Z5(t,o)):Y5;const eMe={class:"field-template-element"},tMe={class:"field-container"},aMe=["onMouseenter","onMousedown"],oMe={class:"column-buttons"},iMe=["onClick","disabled"];function sMe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",eMe,[e.createElementVNode("div",tMe,[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,aMe)),64))])),64))],32),e.createElementVNode("div",oMe,[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,iMe)),64))])])])}const rMe=H1(q1,[["render",sMe],["__scopeId","data-v-1f6351a4"]]),J1={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 u=d===s?i:1,f=d===l?r:17;for(let y=Math.min(u,f);y<=Math.max(u,f);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}}},K5=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},X5=J1.setup;J1.setup=X5?(t,o)=>(K5(),X5(t,o)):K5;const lMe={class:"field-template-element"},nMe={class:"field-container"},dMe={key:0,class:"select-all-container"},cMe={class:"select-all-label"},pMe=["onMouseenter","onMousedown"];function mMe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",lMe,[e.createElementVNode("div",nMe,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",dMe,[e.createElementVNode("label",cMe,[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,pMe)),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 uMe=H1(J1,[["render",mMe],["__scopeId","data-v-389c50fa"]]),fMe={components:{FieldGolStatsTemplates:rMe,FieldTemplatesElement:uMe},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)}}},hMe={key:0,class:"modal-wrapper"},yMe={class:"modal-overlay"},gMe={class:"modal-container"},bMe={class:"modal-content"},_Me={class:"modal-header"},SMe={class:"fields-container"},wMe={class:"field-section"},CMe={class:"field-section"},kMe={class:"distance-section"},EMe={class:"distance-info"},VMe={class:"info-row"},xMe={class:"info-value"},NMe={class:"info-row"},TMe={class:"info-value"},BMe={class:"info-row"},FMe={class:"info-value"},PMe={class:"distance-section"},$Me={class:"distance-info"},AMe={class:"info-row"},MMe={class:"info-value"},IMe={class:"info-row"},zMe={class:"info-value"},RMe={class:"info-row"},OMe={class:"info-value"};function LMe(t,o,a,i,s,r){var l,n,c,d,u,f,y,p,h,m,g,_;const b=e.resolveComponent("FieldGolStatsTemplates"),T=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",hMe,[e.createElementVNode("div",yMe,[e.createElementVNode("div",gMe,[e.createElementVNode("div",bMe,[e.createElementVNode("div",_Me,[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]=O=>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",SMe,[e.createElementVNode("div",wMe,[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",CMe,[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":(f=a.parameters)==null?void 0:f.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(b,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(u=a.parameters)==null?void 0:u.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",kMe,[o[6]||(o[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",EMe,[e.createElementVNode("div",VMe,[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",xMe,e.toDisplayString((y=a.parameters)==null?void 0:y.minimum_distance_x)+" m",1)]),e.createElementVNode("div",NMe,[o[4]||(o[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",TMe,e.toDisplayString((p=a.parameters)==null?void 0:p.minimum_distance_y)+" m",1)]),e.createElementVNode("div",BMe,[o[5]||(o[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",FMe,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",PMe,[o[10]||(o[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",$Me,[e.createElementVNode("div",AMe,[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",MMe,e.toDisplayString((m=a.parameters)==null?void 0:m.maximum_distance_x)+" m",1)]),e.createElementVNode("div",IMe,[o[8]||(o[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",zMe,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",RMe,[o[9]||(o[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",OMe,e.toDisplayString((_=a.parameters)==null?void 0:_.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const DMe=H1(fMe,[["render",LMe],["__scopeId","data-v-834c0128"]]),vMe={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}}},jMe="_tablePosition_s65tc_46",UMe="_tablePositionWrapper_s65tc_62",WMe="_imgHenrryIcon_s65tc_71",GMe="_americaIcon_s65tc_79",HMe="_playerPhoto_s65tc_91",qMe="_toniKroos_s65tc_100",JMe="_shapeIcon_s65tc_111",YMe="_menuiconsTeams_s65tc_117",ZMe="_component31_s65tc_126",KMe="_playerName_s65tc_137",XMe="_icnPlayIcon_s65tc_145",QMe="_goles_s65tc_153",eIe="_americaIcon1_s65tc_160",tIe="_teamsAmerica_s65tc_174",aIe="_topAddPlayer_s65tc_181",oIe="_containerData_s65tc_185",iIe="_shapeIcon1_s65tc_193",sIe="_icnExpand1_s65tc_199",rIe="_icnExpand_s65tc_199",lIe="_playerData_s65tc_219",nIe="_playerInfo_s65tc_230",dIe="_headerTop_s65tc_245",cIe="_playerRow_s65tc_259",pIe="_groupsLeague_s65tc_270",mIe="_text_s65tc_279",uIe="_btnViewFullList_s65tc_287",fIe="_headerTops_s65tc_304",hIe="_btnVideosOptions_s65tc_376",yIe="_position_s65tc_553",gIe="_positionWrapper_s65tc_565",bIe="_imgNecaxaIcon_s65tc_573",_Ie="_teamLogo_s65tc_579",SIe="_teamPhoto_s65tc_587",wIe="_name_s65tc_595",CIe="_icnPlayIconType1_s65tc_603",kIe="_verVideosType1_s65tc_610",EIe="_btnVideosOptionsType1_s65tc_616",VIe="_btnVideosOptions1_s65tc_628",xIe="_leftContainer_s65tc_640",NIe="_shapeIconType1_s65tc_649",TIe="_icnExpandType1_s65tc_654",BIe="_arrowExpand_s65tc_664",FIe="_containerInfo_s65tc_672",PIe="_headerTopTeam_s65tc_684",$Ie="_containerHeader_s65tc_698",AIe="_goles1_s65tc_707",MIe="_golesType1_s65tc_710",IIe="_golesWrapper_s65tc_715",zIe="_btnViewAll_s65tc_724",RIe="_headerTopsTeams_s65tc_741",OIe="_arrowExpandIcon_s65tc_858",LIe="_rotate_s65tc_863",DIe={tablePosition:jMe,tablePositionWrapper:UMe,imgHenrryIcon:WMe,americaIcon:GMe,playerPhoto:HMe,toniKroos:qMe,shapeIcon:JMe,menuiconsTeams:YMe,component31:ZMe,playerName:KMe,icnPlayIcon:XMe,goles:QMe,americaIcon1:eIe,teamsAmerica:tIe,topAddPlayer:aIe,containerData:oIe,shapeIcon1:iIe,icnExpand1:sIe,icnExpand:rIe,playerData:lIe,playerInfo:nIe,headerTop:dIe,playerRow:cIe,groupsLeague:pIe,text:mIe,btnViewFullList:uIe,headerTops:fIe,btnVideosOptions:hIe,position:yIe,positionWrapper:gIe,imgNecaxaIcon:bIe,teamLogo:_Ie,teamPhoto:SIe,name:wIe,icnPlayIconType1:CIe,verVideosType1:kIe,btnVideosOptionsType1:EIe,btnVideosOptions1:VIe,leftContainer:xIe,shapeIconType1:NIe,icnExpandType1:TIe,arrowExpand:BIe,containerInfo:FIe,headerTopTeam:PIe,containerHeader:$Ie,goles1:AIe,golesType1:MIe,golesWrapper:IIe,btnViewAll:zIe,headerTopsTeams:RIe,arrowExpandIcon:OIe,rotate:LIe},Y1={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)}}},Q5=()=>{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}))},e4=Y1.setup;Y1.setup=e4?(t,o)=>(Q5(),e4(t,o)):Q5;const vIe=["src"],jIe=["src"],UIe=["src"],WIe=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),GIe=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),HIe=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),qIe=[WIe,GIe,HIe],JIe=["fill"],YIe=["fill"],ZIe=["src"],KIe=["fill"],XIe=["fill"];function QIe(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,vIe),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,jIe)],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,UIe)],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"}},qIe))],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,YIe)],10,JIe))],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,ZIe)],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,XIe)],10,KIe))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const eze={$style:DIe},tze=ot(Y1,[["render",QIe],["__cssModules",eze]]),aze="_rotate_1tou5_3",oze="_positionContainer_1tou5_50",ize="_positionContainer620_1tou5_57",sze="_rowwPlayer_1tou5_64",rze="_rowwPlayer960_1tou5_80",lze="_rowwPlayer420_1tou5_95",nze="_rowwPlayer460_1tou5_111",dze="_containerLeft_1tou5_128",cze="_containerLeft420_1tou5_136",pze="_containerLeft620_1tou5_144",mze="_iconFavoritesType1_1tou5_151",uze="_iconFavoritesType1320_1tou5_159",fze="_iconFavorites_1tou5_151",hze="_iconFavorites420_1tou5_175",yze="_playerContainer_1tou5_183",gze="_playerContainer420_1tou5_195",bze="_playerContainer460_1tou5_207",_ze="_playerContainerType1_1tou5_219",Sze="_playerContainerType1320_1tou5_229",wze="_playerContainerType1460_1tou5_239",Cze="_imgPlayerIcon_1tou5_249",kze="_imgPlayerIcon460_1tou5_259",Eze="_imgPlayerIcon420_1tou5_269",Vze="_manchesterUnited_1tou5_279",xze="_manchesterUnited360_1tou5_290",Nze="_manchesterUnited420_1tou5_301",Tze="_manchesterUnited460_1tou5_312",Bze="_containerRight_1tou5_323",Fze="_containerRight960_1tou5_332",Pze="_containerRight420_1tou5_342",$ze="_numberOfVideos_1tou5_353",Aze="_numberOfVideos620_1tou5_359",Mze="_block02_1tou5_365",Ize="_block02960_1tou5_375",zze="_block02620_1tou5_384",Rze="_block02420_1tou5_391",Oze="_verVideos_1tou5_399",Lze="_verVideos620_1tou5_405",Dze="_numberPosition_1tou5_408",vze="_shapeIcon_1tou5_414",jze="_chivasIcon_1tou5_419",Uze="_imgTeamIcon_1tou5_430",Wze="_teamName_1tou5_435",Gze="_nameTeam_1tou5_441",Hze="_dfC_1tou5_450",qze="_position_1tou5_50",Jze="_age_1tou5_460",Yze="_manchesterUnitedIcon_1tou5_468",Zze="_country_1tou5_475",Kze="_playedGames_1tou5_482",Xze="_playedMinutes_1tou5_489",Qze="_block01_1tou5_496",eRe="_leagueName_1tou5_503",tRe="_roleCharacterIcon_1tou5_509",aRe="_btnVideos_1tou5_517",oRe="_containerBtnVideos_1tou5_532",iRe="_containerBtnVideos620_1tou5_542",sRe="_containesOptions_1tou5_551",rRe="_arrowExpandIcon_1tou5_558",lRe="_rowTeam_1tou5_567",nRe="_rowTeam420_1tou5_585",dRe="_rowTeam320_1tou5_603",cRe="_rowTeam460_1tou5_622",pRe="_rowTeam350_1tou5_641",mRe="_containerLeftType1_1tou5_659",uRe="_containerLeftType1680_1tou5_665",fRe="_containerLeftType1320_1tou5_672",hRe="_containerLeftType1350_1tou5_680",yRe="_positionContainertype1_1tou5_687",gRe="_positionContainertype1380_1tou5_695",bRe="_positionContainertype1680_1tou5_703",_Re="_positionContainertype1420_1tou5_711",SRe="_manchesterUnitedType1_1tou5_719",wRe="_manchesterUnitedType1460_1tou5_725",CRe="_manchesterUnitedType1320_1tou5_732",kRe="_containerRightType1_1tou5_739",ERe="_containerRightType1420_1tou5_750",VRe="_containerRightType1320_1tou5_761",xRe="_teamNameWrapperType1_1tou5_772",NRe="_teamNameWrapperType1960_1tou5_779",TRe="_teamNameWrapperType11086_1tou5_786",BRe="_ageWrapperType1_1tou5_793",FRe="_ageWrapperType1680_1tou5_800",PRe="_ageWrapperType11086_1tou5_808",$Re="_ageType1_1tou5_816",ARe="_ageType1960_1tou5_824",MRe="_playedGamesWrapperType1_1tou5_827",IRe="_playedGamesWrapperType1680_1tou5_834",zRe="_playedGamesWrapperType1960_1tou5_837",RRe="_playedGamesType1_1tou5_840",ORe="_playedGamesType1540_1tou5_847",LRe="_playedGamesType1960_1tou5_851",DRe="_playedGamesType11086_1tou5_854",vRe="_playedMinutesWrapperType1_1tou5_857",jRe="_playedMinutesWrapperType11086_1tou5_864",URe="_playedMinutesType1_1tou5_871",WRe="_playedMinutesType1680_1tou5_878",GRe="_block02Type1_1tou5_881",HRe="_block02Type1680_1tou5_889",qRe="_block02Type1320_1tou5_897",JRe="_block02Type1350_1tou5_906",YRe="_leagueNameWrapperType1_1tou5_914",ZRe="_leagueNameWrapperType1680_1tou5_922",KRe="_leagueNameWrapperType1960_1tou5_925",XRe="_leagueNameType1_1tou5_933",QRe="_leagueNameType1960_1tou5_943",eOe="_numberOfVideosType1_1tou5_953",tOe="_numberOfVideosType1680_1tou5_960",aOe="_numberOfVideosType11232_1tou5_967",oOe="_vectorIconType1_1tou5_974",iOe="_block01TitlesType1_1tou5_991",sOe="_numberPositionType1_1tou5_998",rOe="_shapeIconType1_1tou5_1004",lOe="_tijuanaIconType1_1tou5_1010",nOe="_tijuanaWrapperType1_1tou5_1016",dOe="_tijuanaWrapperType1NoBg_1tou5_1027",cOe="_teamNameType1_1tou5_1035",pOe="_roleCharacterIconType1_1tou5_1042",mOe="_verVideosType1_1tou5_1049",uOe="_btnVideosType1_1tou5_1055",fOe="_containerBtnVideosType1_1tou5_1070",hOe="_containesOptionsType1_1tou5_1081",yOe="_arrowExpandIconType1_1tou5_1089",gOe="_templateTablaProductividadType1_1tou5_1095",bOe="_verVideosType11232_1tou5_1107",_Oe="_templateTablaProductividadType1320_1tou5_1111",SOe="_verVideosType1680_1tou5_1115",wOe={rotate:aze,positionContainer:oze,positionContainer620:ize,rowwPlayer:sze,rowwPlayer960:rze,rowwPlayer420:lze,rowwPlayer460:nze,containerLeft:dze,containerLeft420:cze,containerLeft620:pze,iconFavoritesType1:mze,iconFavoritesType1320:uze,iconFavorites:fze,iconFavorites420:hze,playerContainer:yze,playerContainer420:gze,playerContainer460:bze,playerContainerType1:_ze,playerContainerType1320:Sze,playerContainerType1460:wze,imgPlayerIcon:Cze,imgPlayerIcon460:kze,imgPlayerIcon420:Eze,manchesterUnited:Vze,manchesterUnited360:xze,manchesterUnited420:Nze,manchesterUnited460:Tze,containerRight:Bze,containerRight960:Fze,containerRight420:Pze,numberOfVideos:$ze,numberOfVideos620:Aze,block02:Mze,block02960:Ize,block02620:zze,block02420:Rze,verVideos:Oze,verVideos620:Lze,numberPosition:Dze,shapeIcon:vze,chivasIcon:jze,imgTeamIcon:Uze,teamName:Wze,nameTeam:Gze,dfC:Hze,position:qze,age:Jze,manchesterUnitedIcon:Yze,country:Zze,playedGames:Kze,playedMinutes:Xze,block01:Qze,leagueName:eRe,roleCharacterIcon:tRe,btnVideos:aRe,containerBtnVideos:oRe,containerBtnVideos620:iRe,containesOptions:sRe,arrowExpandIcon:rRe,rowTeam:lRe,rowTeam420:nRe,rowTeam320:dRe,rowTeam460:cRe,rowTeam350:pRe,containerLeftType1:mRe,containerLeftType1680:uRe,containerLeftType1320:fRe,containerLeftType1350:hRe,positionContainertype1:yRe,positionContainertype1380:gRe,positionContainertype1680:bRe,positionContainertype1420:_Re,manchesterUnitedType1:SRe,manchesterUnitedType1460:wRe,manchesterUnitedType1320:CRe,containerRightType1:kRe,containerRightType1420:ERe,containerRightType1320:VRe,teamNameWrapperType1:xRe,teamNameWrapperType1960:NRe,teamNameWrapperType11086:TRe,ageWrapperType1:BRe,ageWrapperType1680:FRe,ageWrapperType11086:PRe,ageType1:$Re,ageType1960:ARe,playedGamesWrapperType1:MRe,playedGamesWrapperType1680:IRe,playedGamesWrapperType1960:zRe,playedGamesType1:RRe,playedGamesType1540:ORe,playedGamesType1960:LRe,playedGamesType11086:DRe,playedMinutesWrapperType1:vRe,playedMinutesWrapperType11086:jRe,playedMinutesType1:URe,playedMinutesType1680:WRe,block02Type1:GRe,block02Type1680:HRe,block02Type1320:qRe,block02Type1350:JRe,leagueNameWrapperType1:YRe,leagueNameWrapperType1680:ZRe,leagueNameWrapperType1960:KRe,leagueNameType1:XRe,leagueNameType1960:QRe,numberOfVideosType1:eOe,numberOfVideosType1680:tOe,numberOfVideosType11232:aOe,vectorIconType1:oOe,block01TitlesType1:iOe,numberPositionType1:sOe,shapeIconType1:rOe,tijuanaIconType1:lOe,tijuanaWrapperType1:nOe,tijuanaWrapperType1NoBg:dOe,teamNameType1:cOe,roleCharacterIconType1:pOe,verVideosType1:mOe,btnVideosType1:uOe,containerBtnVideosType1:fOe,containesOptionsType1:hOe,arrowExpandIconType1:yOe,templateTablaProductividadType1:gOe,verVideosType11232:bOe,templateTablaProductividadType1320:_Oe,verVideosType1680:SOe},Z1={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)}}},t4=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},a4=Z1.setup;Z1.setup=a4?(t,o)=>(t4(),a4(t,o)):t4;const COe={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},kOe=["src"],EOe=["src"],VOe=["src"],xOe=["src"],NOe=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),TOe=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),BOe=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),FOe=[NOe,TOe,BOe],POe=["fill"],$Oe=["fill"],AOe=["src"],MOe=["src"],IOe=["fill"],zOe=["fill"],ROe=["src"],OOe=["src"],LOe=["src"],DOe=["src"],vOe=["fill"],jOe=["fill"];function UOe(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",COe,[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,kOe),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,EOe)):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,VOe),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,xOe)],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"}},FOe))],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,$Oe)],10,POe))],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,AOe)],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,MOe)],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,zOe)],10,IOe))],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,ROe),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,OOe)):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,LOe),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,DOe)],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,jOe)],10,vOe))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const WOe={$style:wOe},GOe=ot(Z1,[["render",UOe],["__cssModules",WOe]]),HOe="_containerLeftTitlesPlay_mmyc1_61",qOe="_containerLeftTitles420Play_mmyc1_69",JOe="_containerLeftTitles620Play_mmyc1_77",YOe="_containerLeftTitlesTeamPlay_mmyc1_85",ZOe="_containerLeftTitlesTeam1180Play_mmyc1_93",KOe="_containerLeftTitlesTeam1090Play_mmyc1_101",XOe="_containerLeftTitlesTeam960Play_mmyc1_109",QOe="_containerLeftTitlesTeam860Play_mmyc1_117",eLe="_containerLeftTitlesTeam768Play_mmyc1_125",tLe="_containerLeftTitlesTeam680Play_mmyc1_133",aLe="_containerLeftTitlesTeam620Play_mmyc1_141",oLe="_containerLeftTitlesTeam420Play_mmyc1_149",iLe="_headTitlesPlay_mmyc1_158",sLe="_headTitles960Play_mmyc1_173",rLe="_headTitles420Play_mmyc1_188",lLe="_headTitles540Play_mmyc1_208",nLe="_headTitles460Play_mmyc1_223",dLe="_headTitles620Play_mmyc1_238",cLe="_positionPlay_mmyc1_253",pLe="_position420Play_mmyc1_262",mLe="_playerPlay_mmyc1_265",uLe="_player420Play_mmyc1_276",fLe="_containerRightType1Play_mmyc1_280",hLe="_containerRightTitlesPlay_mmyc1_287",yLe="_containerRightTitles960Play_mmyc1_296",gLe="_block02TitlesPlay_mmyc1_305",bLe="_block02Titles620Play_mmyc1_313",_Le="_mon1ScoutingPlay_mmyc1_317",SLe="_mon1Scouting960Play_mmyc1_327",wLe="_mon1Play_mmyc1_336",CLe="_mon1420Play_mmyc1_345",kLe="_mon1620Play_mmyc1_355",ELe="_icnIconPlay_mmyc1_365",VLe="_icnIcon960Play_mmyc1_370",xLe="_icnIcon420Play_mmyc1_376",NLe="_teamTitlePlay_mmyc1_380",TLe="_positionTitlePlay_mmyc1_390",BLe="_ageTitlePlay_mmyc1_398",FLe="_partidosPlay_mmyc1_406",PLe="_playedGamesTitlePlay_mmyc1_410",$Le="_playedMinutesTitlePlay_mmyc1_420",ALe="_block01TitlesPlay_mmyc1_429",MLe="_monPlay_mmyc1_436",ILe="_containesOptionsTitlesPlay_mmyc1_445",zLe="_templateTablaProductividadType1Play_mmyc1_451",RLe="_templateTablaProductividadType1400Play_mmyc1_463",OLe="_headTitlesType1Play_mmyc1_477",LLe="_headTitlesType1420Play_mmyc1_490",DLe="_headTitlesType1400Play_mmyc1_506",vLe="_headTitlesType1540Play_mmyc1_522",jLe="_headTitlesType1460Play_mmyc1_536",ULe="_headTitlesType1680Play_mmyc1_550",WLe="_headTitlesType1350Play_mmyc1_563",GLe="_positionType1Play_mmyc1_578",HLe="_positionType1400Play_mmyc1_587",qLe="_teamType1Play_mmyc1_597",JLe="_teamType1400Play_mmyc1_606",YLe="_frecuenciaType1Play_mmyc1_616",ZLe="_frecuenciaType1540Play_mmyc1_624",KLe="_containerLeftTitlesType1Play_mmyc1_633",XLe="_frecuenciaWrapperType1Play_mmyc1_641",QLe="_frecuenciaWrapperType1680Play_mmyc1_650",eDe="_promedioPartidoType1Play_mmyc1_658",tDe="_promedioEstePartidoType1Play_mmyc1_662",aDe="_promedioEstePartidoType1960Play_mmyc1_670",oDe="_promedioEstePartidoWrapperType1Play_mmyc1_674",iDe="_promedioEstePartidoWrapperType11200Play_mmyc1_682",sDe="_promedioEstePartidoWrapperType11090Play_mmyc1_691",rDe="_promedioEstePartidoWrapperType11086Play_mmyc1_701",lDe="_promedioPartidosType1Play_mmyc1_710",nDe="_promedioPartidosWrapperType1Play_mmyc1_717",dDe="_promedioPartidosWrapperType1960Play_mmyc1_725",cDe="_promedioPartidosWrapperType11086Play_mmyc1_728",pDe="_partidosJugadosType1Play_mmyc1_731",mDe="_partidosJugadosType1960Play_mmyc1_737",uDe="_partidosJugadosWrapperType1Play_mmyc1_744",fDe="_partidosJugadosWrapperType11200Play_mmyc1_752",hDe="_partidosJugadosWrapperType11180Play_mmyc1_760",yDe="_partidosJugadosWrapperType11170Play_mmyc1_768",gDe="_partidosJugadosWrapperType11140Play_mmyc1_776",bDe="_partidosJugadosWrapperType11086Play_mmyc1_784",_De="_partidosJugadosWrapperType1960Play_mmyc1_792",SDe="_partidosJugadosWrapperType1880Play_mmyc1_800",wDe="_partidosJugadosWrapperType1860Play_mmyc1_808",CDe="_partidosJugadosWrapperType1830Play_mmyc1_816",kDe="_partidosJugadosWrapperType1790Play_mmyc1_824",EDe="_partidosJugadosWrapperType1930Play_mmyc1_832",VDe="_partidosJugadosWrapperType1770Play_mmyc1_840",xDe="_block01TitlesType1Play_mmyc1_843",NDe="_monType1Play_mmyc1_851",TDe="_monType1960Play_mmyc1_860",BDe="_monType1680Play_mmyc1_870",FDe="_videosType1Play_mmyc1_873",PDe="_videosType1680Play_mmyc1_883",$De="_videosType1600Play_mmyc1_892",ADe="_videosType1540Play_mmyc1_901",MDe="_videosType1420Play_mmyc1_910",IDe="_videosType1400Play_mmyc1_919",zDe="_containesOptionsTitlesType1Play_mmyc1_931",RDe="_containesOptionsTitlesType1768Play_mmyc1_939",ODe="_containesOptionsTitlesType1730Play_mmyc1_946",LDe="_containesOptionsTitlesType1690Play_mmyc1_953",DDe="_icnIconType1Play_mmyc1_960",vDe="_icnIconType1420Play_mmyc1_966",jDe="_icnIconType1400Play_mmyc1_973",UDe="_block02TitlesType1Play_mmyc1_977",WDe="_block02TitlesType1680Play_mmyc1_984",GDe="_block02TitlesType1350Play_mmyc1_991",HDe="_containerRightTitlesType1Play_mmyc1_998",qDe="_containerRightTitlesType1420Play_mmyc1_1007",JDe={containerLeftTitlesPlay:HOe,containerLeftTitles420Play:qOe,containerLeftTitles620Play:JOe,containerLeftTitlesTeamPlay:YOe,containerLeftTitlesTeam1180Play:ZOe,containerLeftTitlesTeam1090Play:KOe,containerLeftTitlesTeam960Play:XOe,containerLeftTitlesTeam860Play:QOe,containerLeftTitlesTeam768Play:eLe,containerLeftTitlesTeam680Play:tLe,containerLeftTitlesTeam620Play:aLe,containerLeftTitlesTeam420Play:oLe,headTitlesPlay:iLe,headTitles960Play:sLe,headTitles420Play:rLe,headTitles540Play:lLe,headTitles460Play:nLe,headTitles620Play:dLe,positionPlay:cLe,position420Play:pLe,playerPlay:mLe,player420Play:uLe,containerRightType1Play:fLe,containerRightTitlesPlay:hLe,containerRightTitles960Play:yLe,block02TitlesPlay:gLe,block02Titles620Play:bLe,mon1ScoutingPlay:_Le,mon1Scouting960Play:SLe,mon1Play:wLe,mon1420Play:CLe,mon1620Play:kLe,icnIconPlay:ELe,icnIcon960Play:VLe,icnIcon420Play:xLe,teamTitlePlay:NLe,positionTitlePlay:TLe,ageTitlePlay:BLe,partidosPlay:FLe,playedGamesTitlePlay:PLe,playedMinutesTitlePlay:$Le,block01TitlesPlay:ALe,monPlay:MLe,containesOptionsTitlesPlay:ILe,templateTablaProductividadType1Play:zLe,templateTablaProductividadType1400Play:RLe,headTitlesType1Play:OLe,headTitlesType1420Play:LLe,headTitlesType1400Play:DLe,headTitlesType1540Play:vLe,headTitlesType1460Play:jLe,headTitlesType1680Play:ULe,headTitlesType1350Play:WLe,positionType1Play:GLe,positionType1400Play:HLe,teamType1Play:qLe,teamType1400Play:JLe,frecuenciaType1Play:YLe,frecuenciaType1540Play:ZLe,containerLeftTitlesType1Play:KLe,frecuenciaWrapperType1Play:XLe,frecuenciaWrapperType1680Play:QLe,promedioPartidoType1Play:eDe,promedioEstePartidoType1Play:tDe,promedioEstePartidoType1960Play:aDe,promedioEstePartidoWrapperType1Play:oDe,promedioEstePartidoWrapperType11200Play:iDe,promedioEstePartidoWrapperType11090Play:sDe,promedioEstePartidoWrapperType11086Play:rDe,promedioPartidosType1Play:lDe,promedioPartidosWrapperType1Play:nDe,promedioPartidosWrapperType1960Play:dDe,promedioPartidosWrapperType11086Play:cDe,partidosJugadosType1Play:pDe,partidosJugadosType1960Play:mDe,partidosJugadosWrapperType1Play:uDe,partidosJugadosWrapperType11200Play:fDe,partidosJugadosWrapperType11180Play:hDe,partidosJugadosWrapperType11170Play:yDe,partidosJugadosWrapperType11140Play:gDe,partidosJugadosWrapperType11086Play:bDe,partidosJugadosWrapperType1960Play:_De,partidosJugadosWrapperType1880Play:SDe,partidosJugadosWrapperType1860Play:wDe,partidosJugadosWrapperType1830Play:CDe,partidosJugadosWrapperType1790Play:kDe,partidosJugadosWrapperType1930Play:EDe,partidosJugadosWrapperType1770Play:VDe,block01TitlesType1Play:xDe,monType1Play:NDe,monType1960Play:TDe,monType1680Play:BDe,videosType1Play:FDe,videosType1680Play:PDe,videosType1600Play:$De,videosType1540Play:ADe,videosType1420Play:MDe,videosType1400Play:IDe,containesOptionsTitlesType1Play:zDe,containesOptionsTitlesType1768Play:RDe,containesOptionsTitlesType1730Play:ODe,containesOptionsTitlesType1690Play:LDe,icnIconType1Play:DDe,icnIconType1420Play:vDe,icnIconType1400Play:jDe,block02TitlesType1Play:UDe,block02TitlesType1680Play:WDe,block02TitlesType1350Play:GDe,containerRightTitlesType1Play:HDe,containerRightTitlesType1420Play:qDe},K1={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:{}},o4=()=>{e.useCssVars(t=>({"8d117076":t.background,"39ae673e":t.height,"5bb96572":t.fontSize,"71676add":t.fontColor,"8040e1ac":t.fontFamily,"61b44ebb":t.heightTeam}))},i4=K1.setup;K1.setup=i4?(t,o)=>(o4(),i4(t,o)):o4;const YDe={ref:"myDivRef"},ZDe=e.createElementVNode("br",null,null,-1),KDe=e.createElementVNode("br",null,null,-1),XDe=e.createElementVNode("br",null,null,-1);function QDe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",YDe,[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 "),ZDe,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"),KDe,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 "),XDe,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 eve={$style:JDe},tve=ot(K1,[["render",QDe],["__cssModules",eve]]),ave="_equipo_1lpaa_38",ove="_atlasSeleccin_1lpaa_43",ive="_equipoAtlasSeleccinMexi_1lpaa_47",sve="_aos_1lpaa_51",rve="_span12_1lpaa_55",lve="_nacionalidadMex_1lpaa_58",nve="_manchesterUnited_1lpaa_61",dve="_manchesterUnited12_1lpaa_68",cve="_containerInfo_1lpaa_78",pve="_verPerfil12_1lpaa_87",mve="_btnProfile_1lpaa_96",uve="_containerButton_1lpaa_112",fve="_containerButton2_1lpaa_119",hve="_dataContainer_1lpaa_125",yve="_expandedInfoPlayer_1lpaa_135",gve="_containerDataBg_1lpaa_225",bve="_containerDataSm_1lpaa_236",_ve="_span_1lpaa_55",Sve="_manchesterUnited14_1lpaa_247",wve="_filter_1lpaa_252",Cve="_verPerfil_1lpaa_87",kve="_manchesterUnited8_1lpaa_273",Eve="_manchesterUnitedParent1_1lpaa_279",Vve="_manchesterUnited1_1lpaa_68",xve="_manchesterUnitedParent_1lpaa_279",Nve="_frameDiv_1lpaa_301",Tve="_infoExpanded_1lpaa_309",Bve="_countryFlag_1lpaa_462",Fve={equipo:ave,atlasSeleccin:ove,equipoAtlasSeleccinMexi:ive,aos:sve,span12:rve,nacionalidadMex:lve,manchesterUnited:nve,manchesterUnited12:dve,containerInfo:cve,verPerfil12:pve,btnProfile:mve,containerButton:uve,containerButton2:fve,dataContainer:hve,expandedInfoPlayer:yve,containerDataBg:gve,containerDataSm:bve,span:_ve,manchesterUnited14:Sve,filter:wve,verPerfil:Cve,manchesterUnited8:kve,manchesterUnitedParent1:Eve,manchesterUnited1:Vve,manchesterUnitedParent:xve,frameDiv:Nve,infoExpanded:Tve,countryFlag:Bve},X1={components:{GSCButton:j2},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)}}},s4=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},r4=X1.setup;X1.setup=r4?(t,o)=>(s4(),r4(t,o)):s4;const Lt=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),Pve={ref:"myDivRef"},$ve=["src"],Ave=Lt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Mve=Lt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Ive=Lt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),zve=Lt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Rve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Ove=Lt(()=>e.createElementVNode("span",null,"xG: ",-1)),Lve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Dve=Lt(()=>e.createElementVNode("span",null,"xG: ",-1)),vve=Lt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),jve=Lt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Uve=Lt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Wve=Lt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Gve=Lt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Hve=Lt(()=>e.createElementVNode("span",null,"xG: ",-1));function qve(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Pve,[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,$ve)],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)},[Ave,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)},[Mve,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)},[Ive,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)},[zve,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)},[Rve,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)],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)},[Lve,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)},[Dve,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)},[vve,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)},[jve,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)},[Uve,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)},[Wve,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)},[Gve,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)},[Hve,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 Q1={components:{GSCCarousel:J2,GSCLeaders:tze,GSCRowTable:GOe,GSCTableHeader:tve,GSCExpandedInfo:ot(X1,[["render",qve],["__cssModules",{$style:Fve}],["__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,u=3,f=this.isTeam?u: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 m={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:f,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",m)},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,u=3,f=this.isTeam?u:d;let y=[],p=this.isTeam?t.id:this.filterTeam;this.isTeam?p=t.id:(y=[t.id],n=n.filter(m=>!m.toString().includes("_r")));const h={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:f,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,u=a[n.teamName[0].team_id].name,f=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,m=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:u,teamid:f,position:y,positionfull:p,effectiveness:m,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(this.typeTable!=1&&!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)))return!1;if(this.typeTable!=1){if(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}if(o.setYear&&c.date<l||o.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))return!1}return!0})},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:La[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)}}},l4=()=>{e.useCssVars(t=>({"075c6ad7":t.borderRadius,"0f765a3e":t.borderWidth,"11a45704":t.borderColor}))},n4=Q1.setup;Q1.setup=n4?(t,o)=>(l4(),n4(t,o)):l4;const Fn=t=>(e.pushScopeId("data-v-c8b0ccee"),t=t(),e.popScopeId(),t),Jve={ref:"myDivRef"},Yve={class:"text"},Zve={class:"groupsLeague"},Kve={class:"row-table-carrousel"},Xve={key:1,class:"container-no-search-result"},Qve={key:0,class:"overlay-loading-top"},eje=Fn(()=>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)),tje=Fn(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),aje=[eje,tje],oje=Fn(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),ije=Fn(()=>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 sje(t,o,a,i,s,r){const l=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),d=e.resolveComponent("GSCCarousel"),u=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Jve,[r.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:o[0]||(o[0]=f=>r.clickMore(a.category))},[e.createElementVNode("div",Yve,[e.createElementVNode("div",Zve,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:f})=>[e.createElementVNode("div",Kve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,(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",Xve,[t.isloading?(e.openBlock(),e.createElementBlock("div",Qve,aje)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[oje,ije],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(u,{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,(f,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f,(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]=m=>r.emitEventMediaFullTable(m,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:m=>r.viewprofile(m,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 rje=ot(Q1,[["render",sje],["__scopeId","data-v-c8b0ccee"]]),lje="_filtersContainer_b9wc6_1",nje="_filtersContainer1232_b9wc6_1",dje="_closeFiltersPc_b9wc6_1",cje="_textleyemdmultipleleagues_b9wc6_1",pje="_textleyemdmultipleleagues380_b9wc6_1",mje="_filtersContainer760_b9wc6_1",uje="_filtersContainer460_b9wc6_1",fje="_containerSectionPlay_b9wc6_1",hje="_containerSectionPlay1232_b9wc6_1",yje="_containerSectionPlay960_b9wc6_1",gje="_containerSectionPlay320_b9wc6_1",bje="_containerSectionPlay350_b9wc6_1",_je="_containerSection_b9wc6_1",Sje="_containerSection1232_b9wc6_1",wje="_containerSection960_b9wc6_1",Cje="_containerSection320_b9wc6_1",kje="_containerSection350_b9wc6_1",Eje="_templateLosMejores_b9wc6_1",Vje="_templateLosMejores1232_b9wc6_1",xje="_templateLosMejores960_b9wc6_1",Nje="_templateLosMejores420_b9wc6_1",Tje="_templateLosMejores320_b9wc6_1",Bje="_templateLosMejores540_b9wc6_1",Fje="_templateLosMejores350_b9wc6_1",Pje="_topFiltersParent_b9wc6_1",$je="_topFiltersParent1232_b9wc6_1",Aje="_topFiltersParent960_b9wc6_1",Mje="_topFiltersParent460_b9wc6_1",Ije="_topFiltersParent420_b9wc6_1",zje="_containerTheBest_b9wc6_1",Rje="_containerTheBest1232_b9wc6_1",Oje="_containerTheBest960_b9wc6_1",Lje="_containerTheBest320_b9wc6_1",Dje="_titleSection_b9wc6_1",vje="_titleSection540_b9wc6_1",jje="_containerTables_b9wc6_1",Uje="_containerTables960_b9wc6_1",Wje="_containerTables760_b9wc6_1",Gje="_containerTables320_b9wc6_1",Hje="_toniKroosWrapper_b9wc6_1",qje="_toniKroosWrapper1080_b9wc6_1",Jje="_toniKroosWrapper975_b9wc6_1",Yje="_toniKroosWrapper760_b9wc6_1",Zje="_toniKroosWrapper420_b9wc6_1",Kje="_toniKroosWrapper320_b9wc6_1",Xje="_frameChild_b9wc6_1",Qje="_filtros_b9wc6_1",eUe="_groupParent_b9wc6_1",tUe="_shapeIcon_b9wc6_1",aUe="_btnFilters_b9wc6_1",oUe="_btnFiltersPC_b9wc6_1",iUe="_quitarFiltros_b9wc6_1",sUe="_quitarFiltros730_b9wc6_1",rUe="_quitarFiltros480_b9wc6_1",lUe="_quitarFiltros380_b9wc6_1",nUe="_btnCloseFilters_b9wc6_1",dUe="_mejoresJugadores_b9wc6_1",cUe="_mejoresJugadores730_b9wc6_1",pUe="_mejoresJugadores480_b9wc6_1",mUe="_mejoresJugadoresSM_b9wc6_1",uUe="_toniKroos_b9wc6_1",fUe="_teamBar_b9wc6_1",hUe="_menuSection_b9wc6_1",yUe="_menuSection960_b9wc6_1",gUe="_menuSectionPlay_b9wc6_1",bUe="_menuSectionPlay960_b9wc6_1",_Ue="_containerMenu_b9wc6_1",SUe="_containerMenu760_b9wc6_1",wUe="_containerFilters_b9wc6_1",CUe="_teamBarParent_b9wc6_1",kUe="_topFilters_b9wc6_1",EUe="_topFilters1232_b9wc6_1",VUe="_topFilters420_b9wc6_1",xUe="_topFilters460_b9wc6_1",NUe="_losMejores_b9wc6_1",TUe="_losMejores380_b9wc6_1",BUe="_losMejores530_b9wc6_1",FUe="_losMejores730_b9wc6_1",PUe="_menuSectionHeader_b9wc6_1",$Ue="_menuSectionHeader1232_b9wc6_1",AUe="_menuSectionHeader960_b9wc6_1",MUe="_menuSectionHeader730_b9wc6_1",IUe="_dropdown_b9wc6_1",zUe="_dropdown730_b9wc6_1",RUe="_dropdown1_b9wc6_1",OUe="_dropdown1730_b9wc6_1",LUe="_dropdownParent_b9wc6_1",DUe="_dropdownParent730_b9wc6_1",vUe="_menuSectionParentHeader_b9wc6_1",jUe="_menuSectionParentHeader1232_b9wc6_1",UUe="_menuSectionParentHeader960_b9wc6_1",WUe="_menuSectionParentHeader730_b9wc6_1",GUe="_menuSectionParentHeader430_b9wc6_1",HUe="_descubreVideos_b9wc6_1",qUe="_descubreVideos1232_b9wc6_1",JUe="_descubreVideos960_b9wc6_1",YUe="_allCategories_b9wc6_1",ZUe="_containerScountingBtn_b9wc6_3",KUe="_btnDeleteAplica_b9wc6_13",XUe="_SearchBtnBar_b9wc6_33",QUe="_btnLeyendTxt_b9wc6_52",eWe="_BtnSearchScounting_b9wc6_61",tWe="_containerPredefined_b9wc6_85",aWe="_containerPredefinedScounting_b9wc6_92",oWe="_titleContainerPredefined_b9wc6_100",iWe="_subtitleContainerPredefined_b9wc6_111",sWe={filtersContainer:lje,filtersContainer1232:nje,closeFiltersPc:dje,textleyemdmultipleleagues:cje,textleyemdmultipleleagues380:pje,filtersContainer760:mje,filtersContainer460:uje,containerSectionPlay:fje,containerSectionPlay1232:hje,containerSectionPlay960:yje,containerSectionPlay320:gje,containerSectionPlay350:bje,containerSection:_je,containerSection1232:Sje,containerSection960:wje,containerSection320:Cje,containerSection350:kje,templateLosMejores:Eje,templateLosMejores1232:Vje,templateLosMejores960:xje,templateLosMejores420:Nje,templateLosMejores320:Tje,templateLosMejores540:Bje,templateLosMejores350:Fje,topFiltersParent:Pje,topFiltersParent1232:$je,topFiltersParent960:Aje,topFiltersParent460:Mje,topFiltersParent420:Ije,containerTheBest:zje,containerTheBest1232:Rje,containerTheBest960:Oje,containerTheBest320:Lje,titleSection:Dje,titleSection540:vje,containerTables:jje,containerTables960:Uje,containerTables760:Wje,containerTables320:Gje,toniKroosWrapper:Hje,toniKroosWrapper1080:qje,toniKroosWrapper975:Jje,toniKroosWrapper760:Yje,toniKroosWrapper420:Zje,toniKroosWrapper320:Kje,frameChild:Xje,filtros:Qje,groupParent:eUe,shapeIcon:tUe,btnFilters:aUe,btnFiltersPC:oUe,quitarFiltros:iUe,quitarFiltros730:sUe,quitarFiltros480:rUe,quitarFiltros380:lUe,btnCloseFilters:nUe,mejoresJugadores:dUe,mejoresJugadores730:cUe,mejoresJugadores480:pUe,mejoresJugadoresSM:mUe,toniKroos:uUe,teamBar:fUe,menuSection:hUe,menuSection960:yUe,menuSectionPlay:gUe,menuSectionPlay960:bUe,containerMenu:_Ue,containerMenu760:SUe,containerFilters:wUe,teamBarParent:CUe,topFilters:kUe,topFilters1232:EUe,topFilters420:VUe,topFilters460:xUe,losMejores:NUe,losMejores380:TUe,losMejores530:BUe,losMejores730:FUe,menuSectionHeader:PUe,menuSectionHeader1232:$Ue,menuSectionHeader960:AUe,menuSectionHeader730:MUe,dropdown:IUe,dropdown730:zUe,dropdown1:RUe,dropdown1730:OUe,dropdownParent:LUe,dropdownParent730:DUe,menuSectionParentHeader:vUe,menuSectionParentHeader1232:jUe,menuSectionParentHeader960:UUe,menuSectionParentHeader730:WUe,menuSectionParentHeader430:GUe,descubreVideos:HUe,descubreVideos1232:qUe,descubreVideos960:JUe,allCategories:YUe,containerScountingBtn:ZUe,btnDeleteAplica:KUe,SearchBtnBar:XUe,btnLeyendTxt:QUe,BtnSearchScounting:eWe,containerPredefined:tWe,containerPredefinedScounting:aWe,titleContainerPredefined:oWe,subtitleContainerPredefined:iWe},rWe=e.ref(Sb()),lWe=e.ref(HEe()),nWe=e.ref(wb()),dWe={components:{GSCTableHeader:xp,GscSwitchComponent:vp,GSCFilterperteam:R2,DropdownYears:_b,GSCFilters:y1,DropdownPositions:gb,GSCExpandedInfo:Ip,GSCLabel:K2,GSCSeasonSelect:k2,GSCTopCategory:rje,GSCTournamentSelect:x2,GSCRowTable:Bp},computed:{...vMe.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{...rWe.value}},filterButtonPropsAux(){return{...lWe.value}},filterButtonPropsTournaments(){return{...nWe.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 aSe(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:La[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 u=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");u!=-1?this.arrayFiltersPlays[u].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 f=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");f!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[f].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(f,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(f=>{this.predefinedFiltersMatchLapse[f.toString()]=i[0].match_lapse_combinations[f]}),Object.keys(i[0].playing_as_combinations).forEach(f=>{this.predefinedFiltersPlayingAs[f.toString()]=i[0].playing_as_combinations[f]}),Object.keys(i[0].field_sections_combinations).forEach(f=>{this.predefinedFiltersSections[f.toString()]=i[0].field_sections_combinations[f]}),i[0]){for(let f=0;f<i[0].filter_records.length;f++){var s=i[0].description;if(i[0].filter_records[f].field_sections!==void 0){const p=i[0].filter_records[f].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[f].match_lapse!==void 0){const p=i[0].filter_records[f].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[f].playing_as!==void 0){const p=i[0].filter_records[f].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[f].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[f].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:f,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[f].match_result,playingAs:i[0].filter_records[f].playing_as,sections:i[0].filter_records[f].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[f].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let f=0;f<this.arrayPredefinedFilters.length;f++){var n=0,c=new Set,d={},u=this.arrayPredefinedFilters[f].text.replace(/\*.*?\*/,"");if(u=u.replace(/\*/g,""),u=u.replace(/ +/g," "),this.arrayPredefinedFilters[f].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[f].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[f].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[f].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[f].filtersPredefined.start_age,this.arrayPredefinedFilters[f].filtersPredefined.end_age]:this.arrayPredefinedFilters[f].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[f].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[f].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[f].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[f].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[f].filtersPredefined.end_age],this.arrayPredefinedFilters[f].filtersPredefined.matchResult.length!=3&&(n+=1),d.matchResult=this.arrayPredefinedFilters[f].filtersPredefined.matchResult,this.arrayPredefinedFilters[f].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[f].filtersPredefined.nationalities.length;y++)c.add(this.arrayPredefinedFilters[f].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[f].filtersPredefined.playingAs.length!=2&&(n+=1),d.playingAs=this.arrayPredefinedFilters[f].filtersPredefined.playingAs,this.arrayPredefinedFilters[f].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[f].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[f].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[f].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[f].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[f].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[f].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[f].filtersPredefined.typeZone,l.push({id:f+1,name:u,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((u,f)=>u-f).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 u=1;u<=d.length;u++)u%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:La[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,u,f,y,p,h,m,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/${(f=(u=b.countryId)==null?void 0:u[0])==null?void 0:f.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:((m=(h=b.teamName)==null?void 0:h[0])==null?void 0:m.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)}}},cWe={ref:"myDivRefTopsFull",class:"play-tops"},pWe={key:0,class:"overlay-loading"},mWe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),uWe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),fWe=[mWe,uWe],hWe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),yWe=[hWe],gWe={style:{display:"contents"}},bWe={style:{display:"contents"}},_We={key:0,class:"cont-leyemd-multipleleagues"},SWe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),wWe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},CWe={key:0,style:{"margin-left":"10px"}},kWe=e.createElementVNode("span",null,"Todas las categorías",-1),EWe=[kWe],VWe=e.createElementVNode("span",null,"Tipo de Jugada",-1),xWe=e.createElementVNode("span",null,"Filtro GolStats",-1),NWe={key:3,style:{width:"100%",height:"295px"}};function TWe(t,o,a,i,s,r){var l,n,c;const d=e.resolveComponent("GSCTournamentSelect"),u=e.resolveComponent("GSCSeasonSelect"),f=e.resolveComponent("GscSwitchComponent"),y=e.resolveComponent("GSCFilterperteam"),p=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),m=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),_=e.resolveComponent("GSCTopCategory"),b=e.resolveComponent("GSCTableHeader"),T=e.resolveComponent("GSCRowTable"),O=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",cWe,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",pWe,fWe)):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(u,{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(f,{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(u,{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]=(...F)=>r.clickOpenFilters&&r.clickOpenFilters(...F))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:sn},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]=(...F)=>r.clickCloseFilters&&r.clickCloseFilters(...F))},yWe,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]=(...F)=>r.openMenuFilters&&r.openMenuFilters(...F))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:sn},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:Cb},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]=(...F)=>r.openMenuFilters&&r.openMenuFilters(...F))},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]=(...F)=>r.toggleAdvancedView&&r.toggleAdvancedView(...F))},[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",gWe,[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(m,{"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",bWe,[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]=(...F)=>r.getScoutingData&&r.getScoutingData(...F))},"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",_We,[SWe,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",wWe," 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",CWe,[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,(F,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":F.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteLabelFilter,id:F.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(F=>F.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:o[6]||(o[6]=(...F)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...F))}," 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)},EWe,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,(F,A)=>(e.openBlock(),e.createElementBlock("div",{key:A,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(F.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[F.id],"border-radius":"12px","filters-prop":r.filterChange,category:F.id,"type-table":s.typeTable,categoryName:F.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(F.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},[VWe,e.createTextVNode(" y un "),xWe,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,(F,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:A},[s.teamselectrec==0||s.teamselectrec==F.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{type:2,"is-expanded":s.playerexpand==F.id&&s.expand,onMediadata:r.setMediaData,data:{position:F.position,player_name:F.player_name,player_photo:F.player_photo,total:F.total,id:F.id,player_age:F.player_age,team_abrev:F.team_abrev,team_logo:F.team_logo,player_position:s.positions[F.player_position-1].fullname,player_country_flag:F.player_country_flag,player_games:F.player_games,player_min:F.player_min,league_name:F.league_name,seasons:F.seasons,season_id:F.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==F.id?(e.openBlock(),e.createBlock(O,{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:F.team_name,age:F.player_age,dataofbirth:F.date,nationality:F.nationality_name,countryFlag:F.player_country_flag,position:s.positions[F.player_position-1].name,games:F.player_games,min:F.player_min,goals:F.total,effectiveness:"-",category:"total",id:F.id},onViewprofile:G=>r.viewprofile(G,F.season_id,F.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]=(...F)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...F))}," 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]=(...F)=>r.getScoutingData&&r.getScoutingData(...F))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",NWe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const BWe={$style:sWe},FWe=ot(dWe,[["render",TWe],["__cssModules",BWe]]),PWe=e.ref(Sb()),$We=e.ref(wb()),AWe={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:vp,GSCRadioToggle:gNe,ModalAddPlayList:ZNe,DropdownTemplates:WEe,GSCTableScrollable:QAe,GSCFilters:y1,ModalAddLista:dTe,DropdownYears:_b,DropdownPositions:gb,PlayTops:FWe,ModalViewVarGolstats:DMe},computed:{filterButtonProps(){return{...PWe.value}},filterButtonPropsTournamentsAdvanced(){return{...$We.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:cTe,tournamentsToFilterVariables:pTe,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"},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,t.statisticsRadios&&t.statisticsRadios==="every90"?(this.filtersObject.is_ppp=!0,this.filtersObject.ppp_default_minutes=90):this.filtersObject.is_ppp=!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(){const t="https://1km387uzk3.execute-api.us-east-2.amazonaws.com/qa/players/productivity";if(this.isSearchActive)try{this.isLoading=!0;const o=await(await fetch(t,{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=o.map(a=>({objeto_player:a,player_photo:a.photo,player_name:a.acronym,player_age:this.calculateAge(a.dob),team_abrev:a.teams[0].acronym,jersey:a.jersey||"",nationality:a.nationality,team_name:a.team_name,is_female:a.is_female||0,parameters:a.internal_parameters,position_name:this.positions[a.position_id-1].fullname,player_position:this.positions[a.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+a.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${a.nationality_id}.jpg`,player_games:a.games_played,player_min:a.minutes_played,nationality_name:La[a.nationality_id],league_name:a.tournament_name,seasons:a.seasons,season_id:a.seasons[0],stats:a.stats?a.stats.map(i=>({category_id:i[4]||null,custom_category_id:i[0]||null,name:i[1]||"",total:i[2]||0,seasons:i[3]||null})):[]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(o){console.error("Error al realizar la búsqueda:",o)}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 "+La[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})}}},Ba=t=>(e.pushScopeId("data-v-6c9f8445"),t=t(),e.popScopeId(),t),MWe={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},IWe={class:"overlay-loading"},zWe=Ba(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),RWe=Ba(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),OWe=[zWe,RWe],LWe={class:"strip-menu"},DWe={class:"strip-options-vars"},vWe={key:0,class:"desktop-layout"},jWe={class:"left-containers"},UWe={class:"filter-container filter-container-variables container-372"},WWe={key:0,class:"filter-container filter-container-variables container-291"},GWe=Ba(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),HWe={class:"variables-indicator"},qWe=Ba(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),JWe={class:"filter-container-box"},YWe=Ba(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),ZWe={class:"filter-container-box-2"},KWe=Ba(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),XWe={class:"filter-container-box-3"},QWe={class:"advanced-row-top"},eGe=Ba(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),tGe={class:"stats-section"},aGe={class:"filters-applied"},oGe=Ba(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),iGe={class:"filters-tags-wrapper"},sGe={class:"filters-tags"},rGe=Ba(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),lGe={key:0,class:"no-results"},nGe={key:1,class:"content-container"};function dGe(t,o,a,i,s,r){const l=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("ModalAddPlayList"),c=e.resolveComponent("ModalAddLista"),d=e.resolveComponent("GscSwitchComponent"),u=e.resolveComponent("GSCRadioToggle"),f=e.resolveComponent("DropdownTemplates"),y=e.resolveComponent("GSCFilters"),p=e.resolveComponent("DropdownPositions"),h=e.resolveComponent("DropdownYears"),m=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",MWe,[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",IWe,OWe,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",LWe,[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",DWe,[i.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",vWe,[e.createElementVNode("div",jWe,[e.createElementVNode("div",UWe,[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(u,{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",WWe,[GWe,e.createElementVNode("div",HWe,[e.createVNode(f,{"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(u,{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(f,{"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",QWe,[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}])},[qWe,e.createElementVNode("div",JWe,[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}])},[YWe,e.createElementVNode("div",ZWe,[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}])},[KWe,e.createElementVNode("div",XWe,[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}),eGe,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":i.elementSize.width<=780}])},[e.createElementVNode("div",tGe,[e.createElementVNode("div",aGe,[oGe,e.createElementVNode("div",iGe,[e.createElementVNode("div",sGe,[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 "),rGe])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",lGe," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",nGe,[e.createVNode(m,{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 cGe=ot(AWe,[["render",dGe],["__scopeId","data-v-6c9f8445"]]),pGe={name:"SwitchTopsType",components:{TopsFull:mNe,TopsBestAndPlay:cGe},data(){return{templates:[],hasTemplates:!1,isTemplatesLoaded:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},created(){this.fetchTemplates()},props:{type:{type:Number,default:1},userType:{type:String,required:!0},userId:{type:String,required:!0},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0},isSelection:{type:Boolean,default:!1},hidePersonalizableVariables:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzQwNDcsIm5hbWUiOiJHb2xTdGF0cyBTYW50b3MiLCJ1c2VybmFtZSI6Imdzc2FudG9zIiwiZW1haWwiOiIiLCJwcm92aWRlcl9pZCI6MSwibG9naW5fZ29sc3RhdHMiOjEsImlhdCI6MTc0NjIyMjQ3NCwiZXhwIjoxNzc3NzU4NDc0fQ.fga__q8pm-HbeHeNPWOqz32n8xkE_zcVPiPu8NTAiOM"},tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0}},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 mGe(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,"user-type":a.userType,"is-clubes":a.isClubes,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,"tournaments-api-url":a.tournamentsApiUrl,"are-female-tournaments-visible":a.areFemaleTournamentsVisible,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded},null,8,["onChangeSeasonId","onOpenMedia","onOpenmedia","team-id","user-type","is-clubes","current-season-id","is-selection","tournaments-api-url","are-female-tournaments-visible","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,"user-type":a.userType,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","user-type","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id","hide-personalizable-variables"])):e.createCommentVNode("",!0)])}const uGe=ot(pGe,[["render",mGe]]),fGe={class:"elegibles"},d4=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=u=>{o("openmedia",u)},s=u=>{o("open-profile-team",u)},r=u=>{o("open-profile-player",u)};function l(u){o("showGraph",u)}function n(u){o("change-season-id",u)}function c(u){o("tops-loaded",u)}function d(u){o("comparePlayers",u)}return(u,f)=>(e.openBlock(),e.createElementBlock("div",fGe,[e.createVNode(e.unref(uGe),{"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"]]),hGe=(t=>(e.pushScopeId("data-v-5ab76500"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),yGe={class:""},gGe={class:""},bGe={class:"tabs"},_Ge=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),u=e.ref([]),f=e.ref([]),y=e.ref(!1),p=e.ref(!1),h=e.ref({}),m=e.ref([]),g=e.ref({}),_=e.ref({});e.watch(()=>a.tournamentId,w=>{w&&O()},{immediate:!0}),e.watch(()=>a.teamId,async w=>{w&&(await T(),await O())},{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 se=await S.json();a.areFemaleTeamsExcluded&&(E=E.filter(me=>!me.team_name.toLowerCase().includes("femenil"))),E.forEach(me=>{me.seasonsIds=new Set(me.seasons.map(ye=>ye.id)),me.availableTournaments=me.seasonsIds?se.reduce((ye,fe)=>{if(fe.seasons.some(B=>me.seasonsIds.has(B.id))){const B=fe.seasons.filter(z=>me.seasonsIds.has(z.id));ye.push({...fe.tournament,seasons:me.seasons.reduce((z,M)=>(B.forEach(pe=>{pe.id===M.id&&z.push(M)}),z),[]),seasonsIds:me.seasonsIds,teamId:me.team_id})}return ye},[]):[]}),m.value=E.filter(me=>me.availableTournaments.length>0),g.value=m.value[0]}catch(w){console.error(w)}}async function O(){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);f.value=H}}catch(w){console.error("Error filling data",w)}}function F(){G().then(w=>{u.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")}),P=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 d4;case"Listas de seguimiento":return cde;case"Última convocatoria":return Z6;default:return d4}}),V=e.computed(()=>p.value||y.value?"100%":"179px"),x=w=>{o("openmedia",w)},R=w=>{o("showGraph",w)},le=w=>{o("open-profile-team",w)},ce=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 U(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();u.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()):F()}function re(w){g.value=w}function W(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}])},[hGe,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(om),e.mergeProps(i,{"model-value":g.value,items:m.value,onInput:re,"onUpdate:modelValue":W}),{default:e.withCtx(({selectedItem:S})=>[e.createElementVNode("div",yGe,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(m6),{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(om),e.mergeProps(i,{width:"250px","model-value":_.value,items:h.value.friendlyGames,onInput:L}),{default:e.withCtx(({selectedItem:S})=>[e.createElementVNode("div",gGe,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",bGe,[e.createVNode(e.unref(M6),{type:2,buttons:e.unref(s),"font-family":"Poppins-Medium","selected-option":r.value,"font-size":P.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":u.value,"in-followed-players":f.value,"hide-personalizable-variables":t.hidePersonalizableVariables,onShowGraph:R,onShowProfile:he,onOpenmedia:x,onOpenMedia:x,onOpenProfileTeam:le,onOpenProfilePlayer:ce,onChangeSeasonId:$,onTopsLoaded:U,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"]]),SGe={class:"subcategory-group"},wGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",SGe,[(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))]))}},CGe=ze(wGe,[["__scopeId","data-v-ae6f3d72"]]),kGe={class:"filter-subcategories"},EGe=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",kGe,[(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(CGe,{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"},xGe=Pn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),NGe={class:"details__header__checkbox"},TGe={class:"details__body"},BGe={class:"details__body__playing-as"},FGe=["onClick"],PGe={class:"details__header"},$Ge=Pn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),AGe={class:"details__header__checkbox"},MGe={class:"details__body"},IGe=Pn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),zGe={class:"details__body__game-section"},RGe=["onClick"],OGe={class:"details__body"},LGe=Pn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),DGe={class:"details__body__game-section"},vGe=["onClick"],jGe=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(u=>({"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(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,f)=>(f.value<=3?u.firstHalf.push(f):u.secondHalf.push(f),u),{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(u){u?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,y)=>{f.isSelected=y===0})}function n(u){o.playingAs.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,y)=>{f.isSelected=y===0})}return(u,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",VGe,[xGe,e.createElementVNode("div",NGe,[e.createVNode(e.unref($e),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",TGe,[e.createElementVNode("div",BGe,[(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,FGe))),128))])]),e.createElementVNode("div",PGe,[$Ge,e.createElementVNode("div",AGe,[e.createVNode(e.unref($e),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",MGe,[IGe,e.createElementVNode("div",zGe,[(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,RGe))),128))])]),e.createElementVNode("div",OGe,[LGe,e.createElementVNode("div",DGe,[(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,vGe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),UGe={class:"filter-field"},WGe=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",UGe,[e.createVNode(e.unref(Bh),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),GGe={class:"subcategory-group"},HGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",GGe,[(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))]))}},qGe=Ae(HGe,[["__scopeId","data-v-ae6f3d72"]]),JGe={class:"filter-subcategories"},YGe=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",JGe,[(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(qGe,{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),ZGe={class:"details__header"},KGe=$n(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),XGe={class:"details__header__checkbox"},QGe={class:"details__body"},eHe={class:"details__body__playing-as"},tHe=["onClick"],aHe={class:"details__header"},oHe=$n(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),iHe={class:"details__header__checkbox"},sHe={class:"details__body"},rHe=$n(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),lHe={class:"details__body__game-section"},nHe=["onClick"],dHe={class:"details__body"},cHe=$n(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),pHe={class:"details__body__game-section"},mHe=["onClick"],uHe=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(u=>({"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(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,f)=>(f.value<=3?u.firstHalf.push(f):u.secondHalf.push(f),u),{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(u){u?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,y)=>{f.isSelected=y===0})}function n(u){o.playingAs.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,y)=>{f.isSelected=y===0})}return(u,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",ZGe,[KGe,e.createElementVNode("div",XGe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",QGe,[e.createElementVNode("div",eHe,[(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,tHe))),128))])]),e.createElementVNode("div",aHe,[oHe,e.createElementVNode("div",iHe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",sHe,[rHe,e.createElementVNode("div",lHe,[(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,nHe))),128))])]),e.createElementVNode("div",dHe,[cHe,e.createElementVNode("div",pHe,[(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,mHe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),fHe={class:"filter-field"},hHe=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",fHe,[e.createVNode(e.unref(I0),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),yHe={class:"subcategory-group"},gHe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",yHe,[(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))]))}},bHe=Me(gHe,[["__scopeId","data-v-ae6f3d72"]]),_He={class:"filter-subcategories"},SHe=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",_He,[(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(bHe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),An=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),wHe={class:"details__header"},CHe=An(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),kHe={class:"details__header__checkbox"},EHe={class:"details__body"},VHe={class:"details__body__playing-as"},xHe=["onClick"],NHe={class:"details__header"},THe=An(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),BHe={class:"details__header__checkbox"},FHe={class:"details__body"},PHe=An(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),$He={class:"details__body__game-section"},AHe=["onClick"],MHe={class:"details__body"},IHe=An(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),zHe={class:"details__body__game-section"},RHe=["onClick"],OHe=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(u=>({"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(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,f)=>(f.value<=3?u.firstHalf.push(f):u.secondHalf.push(f),u),{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(u){u?o.playingAs.forEach(f=>{f.isSelected=!0}):o.playingAs.forEach((f,y)=>{f.isSelected=y===0})}function n(u){o.playingAs.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(f=>f.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(f=>{f.isSelected=!0}):o.gameSections.forEach((f,y)=>{f.isSelected=y===0})}return(u,f)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",wHe,[CHe,e.createElementVNode("div",kHe,[e.createVNode(e.unref(Pe),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",EHe,[e.createElementVNode("div",VHe,[(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,xHe))),128))])]),e.createElementVNode("div",NHe,[THe,e.createElementVNode("div",BHe,[e.createVNode(e.unref(Pe),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",FHe,[PHe,e.createElementVNode("div",$He,[(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,AHe))),128))])]),e.createElementVNode("div",MHe,[IHe,e.createElementVNode("div",zHe,[(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,RHe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),LHe={class:"filter-field"},DHe=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",LHe,[e.createVNode(e.unref(_3),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Ha.GSCPlayersTracking=_Ge,Object.defineProperty(Ha,Symbol.toStringTag,{value:"Module"})});