@golstats/gsc-players-tracking 1.0.24 → 1.0.25

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.
@@ -22,4 +22,4 @@
22
22
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const a=new this(t);return i.forEach(o=>a.set(o)),a}static accessor(t){const i=(this[yc]=this[yc]={accessors:{}}).accessors,a=this.prototype;function o(s){const l=Sa(s);i[l]||(GO(a,s),i[l]=!0)}return R.isArray(t)?t.forEach(o):o(t),this}};Ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),R.reduceDescriptors(Ei.prototype,({value:t},i)=>{let a=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(o){this[a]=o}}}),R.freezeMethods(Ei);const Ye=Ei;function Fs(t,i){const a=this||xs,o=i||a,s=Ye.from(o.headers);let l=o.data;return R.forEach(t,function(r){l=r.call(a,l,s.normalize(),i?i.status:void 0)}),s.normalize(),l}function gc(t){return!!(t&&t.__CANCEL__)}function qt(t,i,a){ie.call(this,t??"canceled",ie.ERR_CANCELED,i,a),this.name="CanceledError"}R.inherits(qt,ie,{__CANCEL__:!0});function _c(t,i,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):i(new ie("Request failed with status code "+a.status,[ie.ERR_BAD_REQUEST,ie.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function HO(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function JO(t,i){t=t||10;const a=new Array(t),o=new Array(t);let s=0,l=0,r;return i=i!==void 0?i:1e3,function(n){const c=Date.now(),p=o[l];r||(r=c),a[s]=n,o[s]=c;let y=l,m=0;for(;y!==s;)m+=a[y++],y=y%t;if(s=(s+1)%t,s===l&&(l=(l+1)%t),c-r<i)return;const h=p&&c-p;return h?Math.round(m*1e3/h):void 0}}function qO(t,i){let a=0,o=1e3/i,s,l;const r=(n,c=Date.now())=>{a=c,s=null,l&&(clearTimeout(l),l=null),t.apply(null,n)};return[(...n)=>{const c=Date.now(),p=c-a;p>=o?r(n,c):(s=n,l||(l=setTimeout(()=>{l=null,r(s)},o-p)))},()=>s&&r(s)]}const Vi=(t,i,a=3)=>{let o=0;const s=JO(50,250);return qO(l=>{const r=l.loaded,n=l.lengthComputable?l.total:void 0,c=r-o,p=s(c),y=r<=n;o=r;const m={loaded:r,total:n,progress:n?r/n:void 0,bytes:c,rate:p||void 0,estimated:p&&n&&y?(n-r)/p:void 0,event:l,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(m)},a)},bc=(t,i)=>{const a=t!=null;return[o=>i[0]({lengthComputable:a,total:t,loaded:o}),i[1]]},Sc=t=>(...i)=>R.asap(()=>t(...i)),YO=xe.hasStandardBrowserEnv?((t,i)=>a=>(a=new URL(a,xe.origin),t.protocol===a.protocol&&t.host===a.host&&(i||t.port===a.port)))(new URL(xe.origin),xe.navigator&&/(msie|trident)/i.test(xe.navigator.userAgent)):()=>!0,ZO=xe.hasStandardBrowserEnv?{write(t,i,a,o,s,l){const r=[t+"="+encodeURIComponent(i)];R.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),R.isString(o)&&r.push("path="+o),R.isString(s)&&r.push("domain="+s),l===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function KO(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function XO(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function Cc(t,i,a){let o=!KO(i);return t&&(o||a==!1)?XO(t,i):i}const wc=t=>t instanceof Ye?{...t}:t;function Ft(t,i){i=i||{};const a={};function o(p,y,m,h){return R.isPlainObject(p)&&R.isPlainObject(y)?R.merge.call({caseless:h},p,y):R.isPlainObject(y)?R.merge({},y):R.isArray(y)?y.slice():y}function s(p,y,m,h){if(R.isUndefined(y)){if(!R.isUndefined(p))return o(void 0,p,m,h)}else return o(p,y,m,h)}function l(p,y){if(!R.isUndefined(y))return o(void 0,y)}function r(p,y){if(R.isUndefined(y)){if(!R.isUndefined(p))return o(void 0,p)}else return o(void 0,y)}function n(p,y,m){if(m in i)return o(p,y);if(m in t)return o(void 0,p)}const c={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:n,headers:(p,y,m)=>s(wc(p),wc(y),m,!0)};return R.forEach(Object.keys(Object.assign({},t,i)),function(p){const y=c[p]||s,m=y(t[p],i[p],p);R.isUndefined(m)&&y!==n||(a[p]=m)}),a}const kc=t=>{const i=Ft({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:l,headers:r,auth:n}=i;i.headers=r=Ye.from(r),i.url=mc(Cc(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&r.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let c;if(R.isFormData(a)){if(xe.hasStandardBrowserEnv||xe.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((c=r.getContentType())!==!1){const[p,...y]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];r.setContentType([p||"multipart/form-data",...y].join("; "))}}if(xe.hasStandardBrowserEnv&&(o&&R.isFunction(o)&&(o=o(i)),o||o!==!1&&YO(i.url))){const p=s&&l&&ZO.read(l);p&&r.set(s,p)}return i},QO=typeof XMLHttpRequest<"u",eD=QO&&function(t){return new Promise(function(i,a){const o=kc(t);let s=o.data;const l=Ye.from(o.headers).normalize();let{responseType:r,onUploadProgress:n,onDownloadProgress:c}=o,p,y,m,h,d;function f(){h&&h(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function g(){if(!u)return;const w=Ye.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:w,config:t,request:u};_c(function(q){i(q),f()},function(q){a(q),f()},v),u=null}"onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(a(new ie("Request aborted",ie.ECONNABORTED,t,u)),u=null)},u.onerror=function(){a(new ie("Network Error",ie.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||uc;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),a(new ie(w,v.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,t,u)),u=null},s===void 0&&l.setContentType(null),"setRequestHeader"in u&&R.forEach(l.toJSON(),function(w,v){u.setRequestHeader(v,w)}),R.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),r&&r!=="json"&&(u.responseType=o.responseType),c&&([m,d]=Vi(c,!0),u.addEventListener("progress",m)),n&&u.upload&&([y,h]=Vi(n),u.upload.addEventListener("progress",y),u.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(p=w=>{u&&(a(!w||w.type?new qt(null,t,u):w),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const C=HO(o.url);if(C&&xe.protocols.indexOf(C)===-1){a(new ie("Unsupported protocol "+C+":",ie.ERR_BAD_REQUEST,t));return}u.send(s||null)})},tD=(t,i)=>{const{length:a}=t=t?t.filter(Boolean):[];if(i||a){let o=new AbortController,s;const l=function(p){if(!s){s=!0,n();const y=p instanceof Error?p:this.reason;o.abort(y instanceof ie?y:new qt(y instanceof Error?y.message:y))}};let r=i&&setTimeout(()=>{r=null,l(new ie(`timeout ${i} of ms exceeded`,ie.ETIMEDOUT))},i);const n=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(l):p.removeEventListener("abort",l)}),t=null)};t.forEach(p=>p.addEventListener("abort",l));const{signal:c}=o;return c.unsubscribe=()=>R.asap(n),c}},aD=tD,iD=function*(t,i){let a=t.byteLength;if(a<i){yield t;return}let o=0,s;for(;o<a;)s=o+i,yield t.slice(o,s),o=s},oD=async function*(t,i){for await(const a of sD(t))yield*iD(a,i)},sD=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:a,value:o}=await i.read();if(a)break;yield o}}finally{await i.cancel()}},Ec=(t,i,a,o)=>{const s=oD(t,i);let l=0,r,n=c=>{r||(r=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:p,value:y}=await s.next();if(p){n(),c.close();return}let m=y.byteLength;if(a){let h=l+=m;a(h)}c.enqueue(new Uint8Array(y))}catch(p){throw n(p),p}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},Ti=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vc=Ti&&typeof ReadableStream=="function",lD=Ti&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Tc=(t,...i)=>{try{return!!t(...i)}catch{return!1}},rD=Vc&&Tc(()=>{let t=!1;const i=new Request(xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),Nc=64*1024,Ps=Vc&&Tc(()=>R.isReadableStream(new Response("").body)),Ni={stream:Ps&&(t=>t.body)};Ti&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Ni[i]&&(Ni[i]=R.isFunction(t[i])?a=>a[i]():(a,o)=>{throw new ie(`Response type '${i}' is not supported`,ie.ERR_NOT_SUPPORT,o)})})})(new Response);const nD=async t=>{if(t==null)return 0;if(R.isBlob(t))return t.size;if(R.isSpecCompliantForm(t))return(await new Request(xe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(R.isArrayBufferView(t)||R.isArrayBuffer(t))return t.byteLength;if(R.isURLSearchParams(t)&&(t=t+""),R.isString(t))return(await lD(t)).byteLength},dD=async(t,i)=>R.toFiniteNumber(t.getContentLength())??nD(i),cD=Ti&&(async t=>{let{url:i,method:a,data:o,signal:s,cancelToken:l,timeout:r,onDownloadProgress:n,onUploadProgress:c,responseType:p,headers:y,withCredentials:m="same-origin",fetchOptions:h}=kc(t);p=p?(p+"").toLowerCase():"text";let d=aD([s,l&&l.toAbortSignal()],r),f;const u=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let g;try{if(c&&rD&&a!=="get"&&a!=="head"&&(g=await dD(y,o))!==0){let A=new Request(i,{method:"POST",body:o,duplex:"half"}),G;if(R.isFormData(o)&&(G=A.headers.get("content-type"))&&y.setContentType(G),A.body){const[Y,J]=bc(g,Vi(Sc(c)));o=Ec(A.body,Nc,Y,J)}}R.isString(m)||(m=m?"include":"omit");const C="credentials"in Request.prototype;f=new Request(i,{...h,signal:d,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:o,duplex:"half",credentials:C?m:void 0});let w=await fetch(f);const v=Ps&&(p==="stream"||p==="response");if(Ps&&(n||v&&u)){const A={};["status","statusText","headers"].forEach(V=>{A[V]=w[V]});const G=R.toFiniteNumber(w.headers.get("content-length")),[Y,J]=n&&bc(G,Vi(Sc(n),!0))||[];w=new Response(Ec(w.body,Nc,Y,()=>{J&&J(),u&&u()}),A)}p=p||"text";let q=await Ni[R.findKey(Ni,p)||"text"](w,t);return!v&&u&&u(),await new Promise((A,G)=>{_c(A,G,{data:q,headers:Ye.from(w.headers),status:w.status,statusText:w.statusText,config:t,request:f})})}catch(C){throw u&&u(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,t,f),{cause:C.cause||C}):ie.from(C,C&&C.code,t,f)}}),zs={http:kO,xhr:eD,fetch:cD};R.forEach(zs,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const xc=t=>`- ${t}`,pD=t=>R.isFunction(t)||t===null||t===!1,Bc={getAdapter:t=>{t=R.isArray(t)?t:[t];const{length:i}=t;let a,o;const s={};for(let l=0;l<i;l++){a=t[l];let r;if(o=a,!pD(a)&&(o=zs[(r=String(a)).toLowerCase()],o===void 0))throw new ie(`Unknown adapter '${r}'`);if(o)break;s[r||"#"+l]=o}if(!o){const l=Object.entries(s).map(([n,c])=>`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let r=i?l.length>1?`since :
23
23
  `+l.map(xc).join(`
24
24
  `):" "+xc(l[0]):"as no adapter specified";throw new ie("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o},adapters:zs};function $s(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new qt(null,t)}function Fc(t){return $s(t),t.headers=Ye.from(t.headers),t.data=Fs.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Bc.getAdapter(t.adapter||xs.adapter)(t).then(function(i){return $s(t),i.data=Fs.call(t,t.transformResponse,i),i.headers=Ye.from(i.headers),i},function(i){return gc(i)||($s(t),i&&i.response&&(i.response.data=Fs.call(t,t.transformResponse,i.response),i.response.headers=Ye.from(i.response.headers))),Promise.reject(i)})}const Pc="1.8.4",xi={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{xi[t]=function(a){return typeof a===t||"a"+(i<1?"n ":" ")+t}});const zc={};xi.transitional=function(t,i,a){function o(s,l){return"[Axios v"+Pc+"] Transitional option '"+s+"'"+l+(a?". "+a:"")}return(s,l,r)=>{if(t===!1)throw new ie(o(l," has been removed"+(i?" in "+i:"")),ie.ERR_DEPRECATED);return i&&!zc[l]&&(zc[l]=!0,console.warn(o(l," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,l,r):!0}},xi.spelling=function(t){return(i,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function mD(t,i,a){if(typeof t!="object")throw new ie("options must be an object",ie.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let s=o.length;for(;s-- >0;){const l=o[s],r=i[l];if(r){const n=t[l],c=n===void 0||r(n,l,t);if(c!==!0)throw new ie("option "+l+" must be "+c,ie.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new ie("Unknown option "+l,ie.ERR_BAD_OPTION)}}const Bi={assertOptions:mD,validators:xi},tt=Bi.validators;let Fi=class{constructor(t){this.defaults=t,this.interceptors={request:new hc,response:new hc}}async request(t,i){try{return await this._request(t,i)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
25
- `+s):a.stack=s}catch{}}throw a}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ft(this.defaults,i);const{transitional:a,paramsSerializer:o,headers:s}=i;a!==void 0&&Bi.assertOptions(a,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),o!=null&&(R.isFunction(o)?i.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:tt.function,serialize:tt.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Bi.assertOptions(i,{baseUrl:tt.spelling("baseURL"),withXsrfToken:tt.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=s&&R.merge(s.common,s[i.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),i.headers=Ye.concat(l,s);const r=[];let n=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(i)===!1||(n=n&&d.synchronous,r.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let p,y=0,m;if(!n){const d=[Fc.bind(this),void 0];for(d.unshift.apply(d,r),d.push.apply(d,c),m=d.length,p=Promise.resolve(i);y<m;)p=p.then(d[y++],d[y++]);return p}m=r.length;let h=i;for(y=0;y<m;){const d=r[y++],f=r[y++];try{h=d(h)}catch(u){f.call(this,u);break}}try{p=Fc.call(this,h)}catch(d){return Promise.reject(d)}for(y=0,m=c.length;y<m;)p=p.then(c[y++],c[y++]);return p}getUri(t){t=Ft(this.defaults,t);const i=Cc(t.baseURL,t.url,t.allowAbsoluteUrls);return mc(i,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){Fi.prototype[t]=function(i,a){return this.request(Ft(a||{},{method:t,url:i,data:(a||{}).data}))}}),R.forEach(["post","put","patch"],function(t){function i(a){return function(o,s,l){return this.request(Ft(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Fi.prototype[t]=i(),Fi.prototype[t+"Form"]=i(!0)});const Pi=Fi;class As{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](s);o._listeners=null}),this.promise.then=s=>{let l;const r=new Promise(n=>{o.subscribe(n),l=n}).then(s);return r.cancel=function(){o.unsubscribe(l)},r},i(function(s,l,r){o.reason||(o.reason=new qt(s,l,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const i=new AbortController,a=o=>{i.abort(o)};return this.subscribe(a),i.signal.unsubscribe=()=>this.unsubscribe(a),i.signal}static source(){let i;return{token:new As(function(a){i=a}),cancel:i}}}const hD=As;function uD(t){return function(i){return t.apply(null,i)}}function fD(t){return R.isObject(t)&&t.isAxiosError===!0}const Is={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Is).forEach(([t,i])=>{Is[i]=t});const yD=Is;function $c(t){const i=new Pi(t),a=Xd(Pi.prototype.request,i);return R.extend(a,Pi.prototype,i,{allOwnKeys:!0}),R.extend(a,i,null,{allOwnKeys:!0}),a.create=function(o){return $c(Ft(t,o))},a}const be=$c(xs);be.Axios=Pi,be.CanceledError=qt,be.CancelToken=hD,be.isCancel=gc,be.VERSION=Pc,be.toFormData=wi,be.AxiosError=ie,be.Cancel=be.CanceledError,be.all=function(t){return Promise.all(t)},be.spread=uD,be.isAxiosError=fD,be.mergeConfig=Ft,be.AxiosHeaders=Ye,be.formToJSON=t=>fc(R.isHTMLForm(t)?new FormData(t):t),be.getAdapter=Bc.getAdapter,be.HttpStatusCode=yD,be.default=be;const Pt=be,Yt={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,i)=>1981+i).sort((t,i)=>i-t),nationalTeams:[{booleanIsSelected:!1,stringName:"Selección mexicana",setAvailablePlayersIds:{},numberId:392}],isEligibilitySelected:!1,eligibility:[{isSelected:!0,id:138,name:"Mexicana"}],nationalities:[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}],positions:[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},Ac={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},Ic={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function zi(t){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},zi(t)}function ot(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function ye(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function he(t){ye(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||zi(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function gD(t,i){ye(2,arguments);var a=he(t),o=ot(i);return isNaN(o)?new Date(NaN):(o&&a.setDate(a.getDate()+o),a)}function _D(t,i){ye(2,arguments);var a=he(t),o=ot(i);if(isNaN(o))return new Date(NaN);if(!o)return a;var s=a.getDate(),l=new Date(a.getTime());l.setMonth(a.getMonth()+o+1,0);var r=l.getDate();return s>=r?l:(a.setFullYear(l.getFullYear(),l.getMonth(),s),a)}function Ca(t,i){if(ye(2,arguments),!i||zi(i)!=="object")return new Date(NaN);var a=i.years?ot(i.years):0,o=i.months?ot(i.months):0,s=i.weeks?ot(i.weeks):0,l=i.days?ot(i.days):0,r=i.hours?ot(i.hours):0,n=i.minutes?ot(i.minutes):0,c=i.seconds?ot(i.seconds):0,p=he(t),y=o||a?_D(p,o+a*12):p,m=l||s?gD(y,l+s*7):y,h=n+r*60,d=c+h*60,f=d*1e3,u=new Date(m.getTime()+f);return u}function Mc(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function Lc(t){ye(1,arguments);var i=he(t);return i.setHours(0,0,0,0),i}var bD=864e5;function SD(t,i){ye(2,arguments);var a=Lc(t),o=Lc(i),s=a.getTime()-Mc(a),l=o.getTime()-Mc(o);return Math.round((s-l)/bD)}function Zt(t,i){ye(2,arguments);var a=he(t),o=he(i),s=a.getTime()-o.getTime();return s<0?-1:s>0?1:s}var CD=6e4,wD=36e5;function kD(t,i){ye(2,arguments);var a=he(t),o=he(i),s=a.getFullYear()-o.getFullYear(),l=a.getMonth()-o.getMonth();return s*12+l}function ED(t,i){ye(2,arguments);var a=he(t),o=he(i);return a.getFullYear()-o.getFullYear()}function Rc(t,i){var a=t.getFullYear()-i.getFullYear()||t.getMonth()-i.getMonth()||t.getDate()-i.getDate()||t.getHours()-i.getHours()||t.getMinutes()-i.getMinutes()||t.getSeconds()-i.getSeconds()||t.getMilliseconds()-i.getMilliseconds();return a<0?-1:a>0?1:a}function VD(t,i){ye(2,arguments);var a=he(t),o=he(i),s=Rc(a,o),l=Math.abs(SD(a,o));a.setDate(a.getDate()-s*l);var r=+(Rc(a,o)===-s),n=s*(l-r);return n===0?0:n}function Ms(t,i){return ye(2,arguments),he(t).getTime()-he(i).getTime()}var TD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},ND="trunc";function Ls(t){return TD[ND]}function xD(t,i,a){ye(2,arguments);var o=Ms(t,i)/wD;return Ls()(o)}function BD(t,i,a){ye(2,arguments);var o=Ms(t,i)/CD;return Ls()(o)}function FD(t){ye(1,arguments);var i=he(t);return i.setHours(23,59,59,999),i}function PD(t){ye(1,arguments);var i=he(t),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function zD(t){ye(1,arguments);var i=he(t);return FD(i).getTime()===PD(i).getTime()}function $D(t,i){ye(2,arguments);var a=he(t),o=he(i),s=Zt(a,o),l=Math.abs(kD(a,o)),r;if(l<1)r=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*l);var n=Zt(a,o)===-s;zD(he(t))&&l===1&&Zt(t,o)===1&&(n=!1),r=s*(l-Number(n))}return r===0?0:r}function AD(t,i,a){ye(2,arguments);var o=Ms(t,i)/1e3;return Ls()(o)}function ID(t,i){ye(2,arguments);var a=he(t),o=he(i),s=Zt(a,o),l=Math.abs(ED(a,o));a.setFullYear(1584),o.setFullYear(1584);var r=Zt(a,o)===-s,n=s*(l-Number(r));return n===0?0:n}function Oc(t){return ye(1,arguments),he(t).getFullYear()}function Dc(t){ye(1,arguments);var i=he(t.start),a=he(t.end);if(isNaN(i.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var o={};o.years=Math.abs(ID(a,i));var s=Zt(a,i),l=Ca(i,{years:s*o.years});o.months=Math.abs($D(a,l));var r=Ca(l,{months:s*o.months});o.days=Math.abs(VD(a,r));var n=Ca(r,{days:s*o.days});o.hours=Math.abs(xD(a,n));var c=Ca(n,{hours:s*o.hours});o.minutes=Math.abs(BD(a,c));var p=Ca(c,{minutes:s*o.minutes});return o.seconds=Math.abs(AD(a,p)),o}const MD="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",LD="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",zt={...Yt},jc=new Set([1]);async function RD(t,i=""){try{const a={Authorization:i||MD},o={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:LD,s=await Pt.get(o+t.id,{headers:a});return s.data?s.data.players:[]}catch(a){return Promise.reject(a)}}async function OD(t=[],i=""){try{const a=t.map(o=>RD(o,i));if(a.length){const o=new Set,s=new Date,l=[],r=new Map,n=new Map,c=await Promise.all(a);for(const p of c)for(const y of p){const m=new Date(y.dob),h=Oc(m),d=Dc({start:m,end:s});r.has(y.nationality_id)||r.set(y.nationality_id,{id:y.nationality_id,isSelected:!0,name:Ac[`${y.nationality_id}`]}),n.has(y.position_id)||n.set(y.position_id,{id:y.position_id,isSelected:!0,name:Ic[`${y.position_id}`]}),o.add(h),l.push(d.years)}return zt.minAge=Math.min(...l),zt.maxAge=Math.max(...l),zt.availableYears=[...o].sort((p,y)=>y-p),zt.nationalities=[...r.values()],zt.positions=[...n.values()],zt.isEligibilitySwitchVisible=t.some(p=>jc.has(p.tournamentId)),zt}else return null}catch(a){return Promise.reject(a)}}const DD={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){o.value&&(o.value.checked=a.modelValue)}function l(r){i("update:modelValue",r.target.checked)}return e.onMounted(()=>{s()}),(r,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:o,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:l},null,544))}},wa=re(DD,[["__scopeId","data-v-e3a6ae4e"]]),$t=t=>(e.pushScopeId("data-v-8c3ead4b"),t=t(),e.popScopeId(),t),jD={class:"personal-data"},WD={class:"personal-data__age"},vD={class:"personal-data__age__toggle"},UD={class:"personal-data__age__range"},GD={class:"personal-data__age__dropdown"},HD=$t(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),JD={class:"selected-item"},qD=$t(()=>e.createElementVNode("div",{class:"separator"},null,-1)),YD={class:"personal-data__nationality-position"},ZD={key:0,class:"personal-data__nationality-position__switch"},KD=$t(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),XD=$t(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),QD={class:"personal-data__nationality-position__nationality"},ej=$t(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),tj={class:"selected-item"},aj=$t(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),ij={class:"selected-item"},oj={class:"personal-data__nationality-position__position"},sj=$t(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),lj={class:"selected-item"},rj="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",nj={__name:"TemplatePersonalData",props:{filters:{type:Object,default:()=>null},isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"},awaitForFilters:{type:Boolean,default:!1}},emits:["update:filters"],setup(t,{expose:i,emit:a}){const o=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},l={id:0,name:"Todas las posiciones",isSelected:!1},r=e.ref({...Yt}),n=e.ref(["Por edad","Por año"]),c=e.ref(0),p=e.ref({min:Yt.minAge,max:Yt.maxAge}),y=e.ref(ht),m=e.ref(""),h=e.ref(""),d=e.ref(r.value.availableYears[r.value.availableYears.length-1]),f=e.ref(0),u=e.computed(()=>{const S=r.value.nationalities?[...r.value.nationalities]:[];o.isSeleccion&&S.forEach(z=>{z.isSelected=z.id===138});const P=S[0];return(!P||P.id!==0)&&S.unshift(s),S}),g=e.computed(()=>{let S=(o.filter&&o.filter.positions?o.filter.positions:r.value.positions)?[...r.value.positions]:[];const P=S[0];return(!P||P.id!==0)&&S.unshift(l),S.sort((z,H)=>z.id-H.id),S}),C=e.computed(()=>o.season&&o.season.tournamentId&&jc.has(o.season.tournamentId)||o.filters&&o.filters.isEligibilitySwitchVisible);e.watch(u,S=>{const P=S.reduce((z,H,Z)=>(Z!==0&&H.isSelected&&z++,z),0);P===u.value.length-1&&(S[0].isSelected=!0),S[0]&&S[0].isSelected?m.value="Todas las nacionalidades":m.value=`${P} seleccionadas`,J()},{immediate:!0,deep:!0}),e.watch(g,S=>{const P=S.reduce((z,H,Z)=>(Z!==0&&H.isSelected&&z++,z),0);P===g.value.length-1&&(S[0].isSelected=!0),S[0]&&S[0].isSelected?h.value="Todas las posiciones":h.value=`${P} seleccionadas`,J()},{immediate:!0,deep:!0}),e.watch(()=>o.filters,S=>{if(S&&S.availableYears){const P=!Number.isNaN(Number(S.selectedYear));r.value=S,c.value=r.value.selectedYear&&P?1:0,d.value=P?r.value.selectedYear:r.value.availableYears[0],p.value.min=r.value.minAge,p.value.max=r.value.maxAge,l.isSelected=S.positions.every(z=>z.isSelected),J()}},{immediate:!0,deep:!0}),e.watch(()=>r.value.isEligibilitySelected,()=>{J()}),e.watch(()=>o.season,S=>{S&&S.id!==f.value&&!o.awaitForFilters&&(f.value=S.id,w(S))},{immediate:!0,deep:!1});async function w(S){try{if(S&&S.id){const P=new Set,z=await q(S.id),H=new Date,Z=[],ce=new Map,Q=new Map;z.forEach(E=>{const T=new Date(E.dob),O=Oc(T),N=Dc({start:T,end:H});ce.has(E.nationality_id)||ce.set(E.nationality_id,{id:E.nationality_id,isSelected:!0,name:Ac[`${E.nationality_id}`]}),Q.has(E.position_id)||Q.set(E.position_id,{id:E.position_id,isSelected:!0,name:Ic[`${E.position_id}`]}),P.add(O),Z.push(N.years)}),r.value.minAge=Math.min(...Z),r.value.maxAge=Math.max(...Z),r.value.availableYears=[...P].sort((E,T)=>T-E),d.value=r.value.availableYears[0],r.value.nationalities=[...ce.values()],r.value.positions=[...Q.values()],p.value.min=r.value.minAge,p.value.max=r.value.maxAge}}catch(P){throw new Error(P)}}function v(S=null){const P=!S||S===oe.All;(P||S===oe.NATIONALITY)&&u.value.forEach(z=>{z.isSelected=!0}),(P||S===oe.ELIGIBILITY)&&(r.value.isEligibilitySelected=!1),(P||S===oe.POSITION)&&g.value.forEach(z=>{z.isSelected=!0}),(P||S===oe.AGE_RANGE)&&(p.value.min=r.value.minAge,p.value.max=r.value.maxAge,c.value=0),(P||S===oe.YEAR)&&(d.value=o.isScouting?r.value.availableYears[r.value.availableYears.length-1]:r.value.availableYears[0],c.value=0),J()}async function q(S){try{const P={Authorization:localStorage.getItem("user_token")||o.token},z={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:rj,H=await Pt.get(z+S,{headers:P});return H.data?H.data.players:[]}catch(P){return Promise.reject(P)}}function A(S){c.value=S.index,o.filters&&o.filters.availableYears&&S.index===0?o.filters.selectedYear="Sin límite":o.filters&&o.filters.availableYears&&S.index===1&&(o.filters.selectedYear=o.filters.availableYears[0])}function G(S){p.value.min=S.minValue,p.value.max=S.maxValue,J()}function Y(S,P){P.id===0?u.value.forEach(z=>{z.isSelected=S}):(P.isSelected=S,u.value[0].isSelected=u.value.every((z,H)=>H===0?!0:z.isSelected))}function J(){const S=c.value===0,P={};S?(P.ageByRange=p.value,P.ageLimits={min:r.value.minAge,max:r.value.maxAge}):P.year=d.value,r.value.isEligibilitySelected?P.eligibility=[...r.value.eligibility]:P.nationalities=u.value.reduce((z,H,Z)=>(Z!==0&&z.push({...H}),z),[]),P.positions=g.value.reduce((z,H,Z)=>(Z!==0&&z.push({...H}),z),[]),a("update:filters",P)}function V(S,P){P.id===0?g.value.forEach(z=>{z.isSelected=S}):(P.isSelected=S,g.value[0].isSelected=g.value.every((z,H)=>H===0?!0:z.isSelected))}function x(S){d.value=S,o.filters&&(o.filters.selectedYear=S),J()}return i({onClearFilters:v}),(S,P)=>(e.openBlock(),e.createElementBlock("div",jD,[e.createElementVNode("div",WD,[e.createElementVNode("div",vD,[e.createVNode(RR,{"selected-button-index":c.value,buttons:n.value,width:"220px",onChange:A},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",UD,[e.createVNode(e.unref(Ud),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":r.value.minAge,"max-limit":r.value.maxAge,"min-value":p.value.min,"max-value":p.value.max,onInput:G},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",GD,[HD,e.createVNode(e.unref(Je),e.mergeProps({"model-value":d.value},y.value,{items:r.value.availableYears,onInput:x}),{default:e.withCtx(({selectedItem:z})=>[e.createElementVNode("div",JD,e.toDisplayString(z),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,e.toDisplayString(z),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),qD,e.createElementVNode("div",YD,[C.value?(e.openBlock(),e.createElementBlock("div",ZD,[KD,e.createVNode(wa,{modelValue:r.value.isEligibilitySelected,"onUpdate:modelValue":P[0]||(P[0]=z=>r.value.isEligibilitySelected=z)},null,8,["modelValue"]),XD])):e.createCommentVNode("",!0),e.createElementVNode("div",QD,[r.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[aj,e.createVNode(e.unref(Je),e.mergeProps(y.value,{"is-multiple-option":"",items:r.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:z})=>[e.createElementVNode("div",ij,e.toDisplayString(z.name),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":z.isSelected,label:z.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ej,e.createVNode(e.unref(Je),e.mergeProps(y.value,{"is-multiple-option":"",items:u.value}),{default:e.withCtx(()=>[e.createElementVNode("div",tj,e.toDisplayString(m.value),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":z.isSelected,label:z.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Y(H,z)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",oj,[sj,e.createVNode(e.unref(Je),e.mergeProps(y.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",lj,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h.value),1)],64))])]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":z.isSelected,label:t.isFemale?z.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):z.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>V(H,z)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},dj=re(nj,[["__scopeId","data-v-8c3ead4b"]]),cj={class:"plays"},pj={class:"plays__body__offensive"},mj={class:"plays__body__title"},hj={class:"number-of-categories"},uj={class:"plays__body__categories"},fj={class:"plays__body__defensive-possession-offenses"},yj={class:"plays__body__title"},gj={class:"number-of-categories"},_j={class:"plays__body__categories"},bj={class:"plays__body__title"},Sj={class:"number-of-categories"},Cj={class:"plays__body__categories"},wj={class:"plays__body__title"},kj={class:"number-of-categories"},Ej={class:"plays__body__categories"},Vj={__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(t){const i=t,a=e.ref(!1),o=e.ref(!1),s=e.ref(!1),l=e.ref(!1),r=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>i.playsCategories.offensive.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),c=e.computed(()=>i.playsCategories.defensive.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),p=e.computed(()=>i.playsCategories.possession.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),y=e.computed(()=>i.playsCategories.offenses.categories.reduce((d,f)=>(f.isSelected&&d++,d),0));function m(d,f){f.isSelected=d}function h(d){d==="offensive"?a.value=!a.value:d==="defensive"?o.value=!o.value:d==="possession"?s.value=!s.value:d==="offenses"&&(l.value=!l.value)}return(d,f)=>(e.openBlock(),e.createElementBlock("div",cj,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",pj,[e.createElementVNode("div",mj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[0]||(f[0]=u=>h("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",hj,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[1]||(f[1]=u=>h("offensive"))},[e.withDirectives(e.createVNode(xt,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",uj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",fj,[e.createElementVNode("div",yj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[2]||(f[2]=u=>h("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",gj,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[3]||(f[3]=u=>h("defensive"))},[e.withDirectives(e.createVNode(xt,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",_j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]]),e.createElementVNode("div",bj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[4]||(f[4]=u=>h("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",Sj,"("+e.toDisplayString(p.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[5]||(f[5]=u=>h("possession"))},[e.withDirectives(e.createVNode(xt,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Cj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",wj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[6]||(f[6]=u=>h("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",kj,"("+e.toDisplayString(y.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[7]||(f[7]=u=>h("offenses"))},[e.withDirectives(e.createVNode(xt,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Ej,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])])],4)]))}},Tj=re(Vj,[["__scopeId","data-v-364e6cae"]]),Nj={class:"template-results"},xj={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:i}){const a=t,o=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{i("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,l)=>(e.openBlock(),e.createElementBlock("div",Nj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:r.isSelected,"onUpdate:modelValue":c=>r.isSelected=c,label:r.name,"avoid-interaction":o.value===1&&r.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},Bj=re(xj,[["__scopeId","data-v-453e89c2"]]),Fj={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:i}){const a=t,o=e.computed(()=>({"--height":a.height,"--width":a.width,"--padding":a.padding,"--border-radius":a.borderRadius,"--border":`solid ${a.borderWidth} ${a.borderColor}`,"--background-color":a.backgroundColor,"--font-color":a.fontColor,"--font-size":a.fontSize,"--font-family":a.fontFamily,"--active-background-color":a.activeBackgroundColor||a.backgroundColor,"--active-border-color":a.activeBorderColor||a.borderColor,"--active-font-color":a.activeFontColor||a.fontColor}));function s(){i("click")}return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(o.value),onClick:s},e.toDisplayString(t.text),7))}},ka=re(Fj,[["__scopeId","data-v-9688933e"]]),Pj={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Wc={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},zj={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},$j={4:"OF",5:"Cf",6:"S",7:"F"};function Rs(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const Aj={class:"dropdown"},Ij={class:"selected-item"},Mj={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Aj,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(ht),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",Ij,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),_:1},16,["is-list-same-width","items"])]))}},Ae=re(Mj,[["__scopeId","data-v-064d5f86"]]),Lj={class:"dropdown"},Rj={class:"game-item"},Oj={key:0,class:"item-game"},Dj={class:"match-day"},jj={class:"team-logo"},Wj=["src"],vj={class:"text"},Uj={class:"text score"},Gj={class:"text"},Hj={class:"team-logo"},Jj=["src"],qj={class:"item-game"},Yj={class:"team-logo"},Zj=["src"],Kj={class:"text"},Xj={class:"text score"},Qj={class:"text"},eW={class:"team-logo"},tW=["src"],aW={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Lj,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(ht),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",Rj,[l.homeTeam?(e.openBlock(),e.createElementBlock("div",Oj,[e.createElementVNode("div",Dj,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",jj,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,Wj)]),e.createElementVNode("div",vj,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",Uj,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",Gj,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",Hj,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,Jj)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",qj,[e.createElementVNode("div",null,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",Yj,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,Zj)]),e.createElementVNode("div",Kj,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",Xj,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",Qj,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",eW,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,tW)])])]),_:1},16,["items"])]))}},$i=re(aW,[["__scopeId","data-v-7883a91e"]]),Ai=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),iW={class:"container"},oW={class:"container__row"},sW={class:"container__row__wrapper"},lW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),rW={class:"container__row__wrapper__input"},nW={class:"container__row two-items"},dW={class:"container__row__wrapper"},cW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),pW={key:0,class:"container__row__wrapper__input"},mW={class:"container__row__wrapper"},hW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),uW={key:0,class:"container__row__wrapper__input"},fW={class:"container__row"},yW={class:"container__row__wrapper"},gW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),_W={key:0,class:"container__row__wrapper__input"},bW={class:"container__action"},SW={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null);function n(m){o.value=m,i("update:tournament",m)}function c(m){s.value=m,i("update:season",m)}function p(m){l.value=m}function y(m){r.value=m}return(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",iW,[e.createElementVNode("div",oW,[e.createElementVNode("div",sW,[lW,e.createElementVNode("div",rW,[e.createVNode(Ae,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",nW,[e.createElementVNode("div",dW,[cW,o.value&&o.value.seasons?(e.openBlock(),e.createElementBlock("div",pW,[e.createVNode(Ae,{items:o.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",mW,[hW,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",uW,[e.createVNode(Ae,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",fW,[e.createElementVNode("div",yW,[gW,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",_W,[e.createVNode($i,{items:l.value.arrayGames,onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",bW,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},CW=re(SW,[["__scopeId","data-v-b63e9c84"]]),wW={class:"dropdown"},kW={class:"item-team"},EW={class:"team-logo"},VW=["src"],TW={class:"team-acronym"},NW={class:"item-team"},xW={class:"team-logo"},BW=["src"],FW={class:"team-acronym"},PW={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",wW,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(ht),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",kW,[e.createElementVNode("div",EW,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,VW)]),e.createElementVNode("div",TW,e.toDisplayString(l.acronym),1)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",NW,[e.createElementVNode("div",xW,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,BW)]),e.createElementVNode("div",FW,e.toDisplayString(l.acronym),1)])]),_:1},16,["items"])]))}},vc=re(PW,[["__scopeId","data-v-afd2bee8"]]),zW={class:"advanced-filters"},$W={class:"advanced-filters__buttons"},AW=["onClick"],IW={class:"advanced-filters__filters"},MW={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Nce)),o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Gce)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Jce)),l=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:o}],r=e.ref(l[0]),n=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function c(p){r.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock("div",zW,[e.createElementVNode("div",$W,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,m=>e.createElementVNode("div",{key:m.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:r.value.name===m.name}]),onClick:h=>c(m)},e.toDisplayString(m.name),11,AW)),64))]),e.createElementVNode("div",IW,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},Os=re(MW,[["__scopeId","data-v-c62c5b9c"]]),At=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),LW={class:"container"},RW={class:"container__row"},OW={class:"container__row__wrapper"},DW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),jW={class:"container__row__wrapper__input"},WW={class:"container__row two-items"},vW={class:"container__row__wrapper"},UW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),GW={key:0,class:"container__row__wrapper__input"},HW={class:"container__row__wrapper"},JW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),qW={key:0,class:"container__row__wrapper__input"},YW={class:"container__row"},ZW={class:"container__row__wrapper"},KW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),XW={key:0,class:"container__row__wrapper__input"},QW={class:"container__row"},ev={class:"container__row__wrapper"},tv=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),av={key:0,class:"container__row__wrapper__input"},iv={class:"container__row type-and-advanced"},ov={class:"container__row__wrapper"},sv=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),lv={class:"container__row__wrapper__input"},rv={class:"container__row__wrapper center"},nv=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),dv={class:"container__row__wrapper__input"},cv={class:"container__row"},pv={class:"container__action"},mv={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(null),y=e.ref(!0),m=e.computed(()=>c.value?c.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function h(w){s.value=w,i("update:tournament",w)}function d(w){l.value=w,i("update:season",w)}function f(w){n.value=w,i("update:team",w)}function u(w){c.value=w}function g(w){r.value=w}function C(w){p.value=w}return(w,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",LW,[e.createElementVNode("div",RW,[e.createElementVNode("div",OW,[DW,e.createElementVNode("div",jW,[e.createVNode(Ae,{items:t.tournaments,itemTextKey:"name",onInput:h},null,8,["items"])])])]),e.createElementVNode("div",WW,[e.createElementVNode("div",vW,[UW,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",GW,[e.createVNode(Ae,{items:s.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",HW,[JW,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",qW,[e.createVNode(vc,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",YW,[e.createElementVNode("div",ZW,[KW,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",XW,[e.createVNode(Ae,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",QW,[e.createElementVNode("div",ev,[tv,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",av,[e.createVNode($i,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",iv,[e.createElementVNode("div",ov,[sv,e.createElementVNode("div",lv,[e.createVNode(Ae,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:C},null,8,["items"])])]),e.createElementVNode("div",rv,[nv,e.createElementVNode("div",dv,[e.createVNode(wa,{modelValue:y.value,"onUpdate:modelValue":v[0]||(v[0]=q=>y.value=q)},null,8,["modelValue"])])])]),e.createElementVNode("div",cv,[e.createVNode(Os,{"selected-category":p.value},null,8,["selected-category"])])]),e.createElementVNode("div",pv,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},hv=re(mv,[["__scopeId","data-v-575b26b5"]]),Kt=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),uv={class:"container"},fv={class:"container__row"},yv={class:"container__row__wrapper"},gv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),_v={class:"container__row__wrapper__input"},bv={class:"container__row two-items"},Sv={class:"container__row__wrapper"},Cv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),wv={key:0,class:"container__row__wrapper__input"},kv={class:"container__row__wrapper"},Ev=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),Vv={key:0,class:"container__row__wrapper__input"},Tv={class:"container__row"},Nv={class:"container__row__wrapper"},xv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Bv={key:0,class:"container__row__wrapper__input"},Fv={class:"container__row type-and-advanced"},Pv={class:"container__row__wrapper"},zv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),$v={class:"container__row__wrapper__input"},Av={class:"container__row__wrapper center"},Iv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),Mv={class:"container__row__wrapper__input"},Lv={class:"container__row"},Rv={class:"container__action"},Ov={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.team);function m(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function d(g){n.value=g,i("update:team",g)}function f(g){r.value=g}function u(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",uv,[e.createElementVNode("div",fv,[e.createElementVNode("div",yv,[gv,e.createElementVNode("div",_v,[e.createVNode(Ae,{items:t.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),e.createElementVNode("div",bv,[e.createElementVNode("div",Sv,[Cv,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",wv,[e.createVNode(Ae,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",kv,[Ev,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",Vv,[e.createVNode(vc,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Tv,[e.createElementVNode("div",Nv,[xv,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",Bv,[e.createVNode($i,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Fv,[e.createElementVNode("div",Pv,[zv,e.createElementVNode("div",$v,[e.createVNode(Ae,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",Av,[Iv,e.createElementVNode("div",Mv,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=w=>p.value=w)},null,8,["modelValue"])])])]),e.createElementVNode("div",Lv,[e.createVNode(Os,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",Rv,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},Dv=re(Ov,[["__scopeId","data-v-6d73d5e6"]]),Xt=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),jv={class:"container"},Wv={class:"container__row"},vv={class:"container__row__wrapper"},Uv=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Gv={class:"container__row__wrapper__input"},Hv={class:"container__row two-items"},Jv={class:"container__row__wrapper"},qv=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Yv={key:0,class:"container__row__wrapper__input"},Zv={class:"container__row__wrapper"},Kv=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),Xv={key:0,class:"container__row__wrapper__input"},Qv={class:"container__row"},eU={class:"container__row__wrapper"},tU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),aU={key:0,class:"container__row__wrapper__input"},iU={class:"container__row type-and-advanced"},oU={class:"container__row__wrapper"},sU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),lU={class:"container__row__wrapper__input"},rU={class:"container__row__wrapper center"},nU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),dU={class:"container__row__wrapper__input",style:{width:"fit-content"}},cU={class:"container__row"},pU={class:"container__action"},mU={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null),r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.games);function m(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function d(g){r.value=g}function f(g){n.value=g}function u(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",jv,[e.createElementVNode("div",Wv,[e.createElementVNode("div",vv,[Uv,e.createElementVNode("div",Gv,[e.createVNode(Ae,{items:t.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),e.createElementVNode("div",Hv,[e.createElementVNode("div",Jv,[qv,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",Yv,[e.createVNode(Ae,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Zv,[Kv,l.value&&l.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",Xv,[e.createVNode(Ae,{items:l.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Qv,[e.createElementVNode("div",eU,[tU,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",aU,[e.createVNode($i,{items:r.value.arrayGames,onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",iU,[e.createElementVNode("div",oU,[sU,e.createElementVNode("div",lU,[e.createVNode(Ae,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",rU,[nU,e.createElementVNode("div",dU,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=w=>p.value=w)},null,8,["modelValue"])])])]),e.createElementVNode("div",cU,[e.createVNode(Os,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",pU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},hU=re(mU,[["__scopeId","data-v-6e904db8"]]),uU={class:"template-videos"},fU={class:"template-videos__header"},yU={class:"template-videos__body"},gU=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:CW,VideosPlayer:hv,VideosTeam:Dv,VideosGame:hU}}),_U=Object.assign(gU,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(t,{emit:i}){const a=t,o={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],l=["g-23","g-24","g-25"],r={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),p=e.ref([]),y=e.ref(c.value[0]),m=e.ref({}),h=e.ref({}),d=e.ref({}),f=e.ref({}),u=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const C=e.ref(null);e.watch(m,E=>{h.value.numberSeasonSelectedIndex=h.value.seasons.findIndex(T=>T.id===E.id),E.arrayMatchDays?(f.value=E.arrayMatchDays[0]||{},d.value=E.arrayTeams[0]||{}):(G(E),Y(E))}),e.watch(d,()=>{setTimeout(()=>{m.value.mapPlayersByTeam&&(!d.value.arrayPlayers||!d.value.arrayPlayers.length)&&(d.value.arrayPlayers=m.value.mapPlayersByTeam.get(d.value.team_id))},700)});async function w(){try{p.value=await v()}catch(E){throw new Error(E)}}async function v(){try{const E={Authorization:Rs()||a.token},T={}.API_TOURNAMENTS||a.tournamentsUrl,O=await Pt.get(T,{headers:E});return O.data?O.data.map(N=>({...N.tournament,seasons:N.seasons})):[]}catch(E){return Promise.reject(E)}}async function q(E,T,O=""){i("loading-data");let N=O;try{N||(N={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,E.forEach((D,_)=>{N+=`${_===0?"":"&"}seasons=${D}`}));const W={Authorization:Rs()||a.token},{data:{data:$,teams:U}}=await Pt.get(N,{headers:W});return{seasonsAndGames:$,seasonsAndTeams:U}}catch(W){if(T>0)return q(E,T-1,N);throw new Error(W)}finally{i("loading-data")}}async function A(E){try{const T={Authorization:Rs()||a.token},O=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${E.seasonId}`,N=await Pt.get(O,{headers:T});return N.data?N.data.players:[]}catch(T){return Promise.reject(T)}}async function G(E){try{const{seasonsAndGames:T,seasonsAndTeams:O}=await q([E.id,...E.related_seasons.map(U=>U.id)],3),N=O.find(U=>U._id===E.id);m.value.arrayTeams=[],m.value.mapTeams=new Map;const W=N.teams.reduce((U,D)=>(m.value.arrayTeams.push(D),m.value.mapTeams.set(D.team_id,{name:D.colloquial_name,acronym:D.acronym,logo:D.logo,id:D.team_id}),U.set(D.team_id,D),U),new Map);d.value=m.value.arrayTeams[0],m.value.mapGames=new Map,m.value.mapGamesByTeam=new Map;const $=Array.from(T.reduce((U,D)=>(D.games.forEach(_=>{if(_.game_status===1&&_.has_video){(!m.value.maxGameId||_.game_id>m.value.maxGameId)&&(m.value.maxGameId=_.game_id);let b=_.matchday_abbreviation.replace("M","J"),k=_.matchday_abbreviation.replace("M","Jornada ");const j=_.matchday_abbreviation.replace("M","");D.season_type===0?h.value.tournament_type===1&&(_.seasonId===881?(b=$j[j]||b,k=zj[j]||k):(b=Wc[_.matchday_abbreviation]?_.matchday_abbreviation:b,k=Wc[_.matchday_abbreviation]||k,b==="FINAL"&&(b="F"))):D.season_type===1?(b=Pj[_.matchday_abbreviation],k=b):(b=_.matchday_abbreviation.replace("PO","R"),k="Repechaje"),_.roundAbbreviation=b,_.roundName=k,m.value.mapGames.set(_.game_id,{id:_.game_id,date:_.date,dateTimeMillis:new Date(_.date_time_utc).valueOf(),homeTeam:m.value.mapTeams.get(_.home_team),awayTeam:m.value.mapTeams.get(_.visiting_team),roundAbbreviation:_.roundAbbreviation,roundName:_.roundName,score:_.score,gameResult:_.score[0]>_.score[1]?1:_.score[0]<_.score[1]?2:3,seasonId:D.season_id});const K=U.get(_.roundAbbreviation);_.numberDateTimeMillis=new Date(_.date_time_utc).getTime(),_.homeTeam=W.get(_.home_team),_.awayTeam=W.get(_.visiting_team);const pe=m.value.mapGamesByTeam.get(_.home_team),je=m.value.mapGamesByTeam.get(_.visiting_team);pe?pe.push(_):m.value.mapGamesByTeam.set(_.home_team,[_]),je?je.push(_):m.value.mapGamesByTeam.set(_.visiting_team,[_]),K?K.arrayGames.push(_):U.set(_.roundAbbreviation,{stringMatchDayAbbreviation:_.roundAbbreviation,stringMatchDayName:_.roundName,arrayGames:[_]})}}),U),new Map).values());$.reverse(),$.forEach(U=>{U.arrayGames.sort((D,_)=>D.numberDateTimeMillis-_.numberDateTimeMillis)}),m.value.arrayMatchDays=$,f.value=$[0]||{}}catch(T){throw new Error(T)}}async function Y(E){try{const T=await P(E.id);m.value.mapPlayers=new Map,m.value.mapPlayersByTeam=T.reduce((O,N)=>{m.value.mapPlayers.set(N.player_id,{id:N.player_id,name:N.player_name,shortName:N.shortName,photo:N.player_photo,teamId:N.team_id,positionId:N.position_id});const W=O.get(N.team_id);return W?W.push(N):O.set(N.team_id,[N]),O},new Map)}catch(T){throw new Error(T)}}async function J(){try{let E=[];u.value.isEmpty?(E=await z(),g.value={...E}):E=g.value;const T=[];if(E&&E.length){u.value=E.reduce((D,_)=>{if(_.group_id!=="g-55"){const b={idAux:_.group_id,ids:[..._.ids?_.ids:[],..._.rival_Ids?_.rival_Ids:[]],type:_.type,name:_.name,coordinatePoint:_.coordinate_point,requiresRivalTransform:l.includes(_.group_id)};b.idsAux=[...b.ids],b.subcategoryGroups=_.group_id==="g-12"?[]:V(_,0,new Map,!1,{},b.idsAux),T.push(b),b.type.includes(n.player)&&D.player.push(b),b.type.includes(n.team)&&(b.idAux!=="g-2"&&D.games.push(b),D.team.push(b)),b.type.includes(n.goalkeeper)&&D.goalkeeper.push(b)}return D},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const O=new Map,N="Resumen",W="Todas sus jugadas",$=u.value.player.reduce((D,_)=>{const b=x(_);return b.forEach(k=>{O.set(k,_.name)}),D.push(...b),D},[]),U=u.value.goalkeeper.reduce((D,_)=>{const b=x(_);return b.forEach(k=>{O.set(k,_.name)}),D.push(...b),D},[]);u.value.games.unshift({name:N,arrayCategoriesIds:r.games,booleanIsBestPlays:!0}),u.value.team.unshift({name:N,arrayCategoriesIds:r.team,booleanIsBestPlays:!0}),u.value.player.unshift({name:N,arrayCategoriesIds:r.player.regular,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:$,booleanIsMinutesPlayed:!0}),u.value.goalkeeper.unshift({name:N,arrayCategoriesIds:r.player.goalkeeper,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:U,booleanIsMinutesPlayed:!0})}}catch(E){throw new Error(E)}}function V(E,T=0,O=new Map,N=!1,W={},$=[]){if(!E.group_id)return;let U=O.get(T);const D=N?`${E.id_category}_r`:E.id_category;E.id_category&&$.push(E.id_category);let _={ids:[D],groupId:E.group_id,level:T,name:E.name,isSelected:!0,fatherCategories:T>0?[W]:[],idsByFatherCategory:{[E.category_father]:[D]}};if(T>0&&T===1&&(_.id=E.id_category),U&&T!==0){const b=E.group_id.charAt(E.group_id.length-1),k=U.find(j=>j.groupId.endsWith(b));k&&!s.includes(_.groupId)?(_=k,k.ids.push(D),k.fatherCategories.push(W),k.fatherCategories.forEach(j=>{j.childCategories?j.childCategories.find(K=>K.groupId===_.groupId)||j.childCategories.push(_):j.childCategories=[_]}),k.idsByFatherCategory[E.category_father]?k.idsByFatherCategory[E.category_father].push(D):k.idsByFatherCategory[E.category_father]=[D]):(_.fatherCategories.forEach(j=>{j.childCategories?j.childCategories.find(K=>K.groupId===_.groupId)||j.childCategories.push(_):j.childCategories=[_]}),U.push(_))}else T!==0&&(W.childCategories?W.childCategories.push(_):W.childCategories=[_],U=[_],O.set(T,U));if(E.categories&&E.categories.length?E.categories.forEach(b=>{V(b,T+1,O,N,_,$)}):E.rival_categories&&E.rival_categories.length&&E.rival_categories.forEach(b=>{V(b,T+1,O,!0,_,$)}),T===0)return Array.from(O.values())}function x(E){const T=E||E;if(T.booleanIsBestPlays)return T.arrayCategoriesIds;const O={total:[],toRemove:[]};if(T.subcategoryGroups&&T.subcategoryGroups.length?T.subcategoryGroups[0].forEach(N=>{S(N,null,O)}):(T.ids&&O.total.push(...T.ids),T.rival_ids&&T.rival_ids.forEach(N=>{O.total.push(`${N}_r`)})),O.total=O.total.reduce((N,W)=>(O.toRemove.includes(W)||N.push(W),N),[]),!E){const N=T.name.toLowerCase().includes("recibid");C.value.isRivalSubject=N,C.value.avoidCategorySingleName=N,C.value.coordinatePoint=T.coordinatePoint,C.value.requiresRivalTransform=T.requiresRivalTransform}return O.total}function S(E,T=[],O={total:[],toRemove:[]}){E.isSelected?E.childCategories?E.childCategories.forEach(N=>{const W=T?Object.entries(E.idsByFatherCategory).reduce(($,[U,D])=>(T.includes(Number(U))&&D.forEach(_=>{typeof _=="string"&&_.endsWith("_r")?$.push(Number(_.split("_")[0])):$.push(_)}),$),[]):[E.id];S(N,W,O)}):T?Object.entries(E.idsByFatherCategory).forEach(([N,W])=>{T.includes(Number(N))&&W.forEach($=>{O.total.push($)})}):E.level===1?Object.entries(E.idsByFatherCategory).forEach(([N,W])=>{W.forEach($=>{O.total.push($)})}):O.total.push(E.id):E.childCategories||E.ids.forEach(N=>{O.toRemove.push(N)})}async function P(E){try{const T=await A({seasonId:E});return T.forEach(O=>{const[N,W]=O.player_name.split(","),$=N.split(" ");let U="";for(const D of $)if(U+=` ${D}`,D.length>3)break;O.shortName=W&&N?`${W.trim().charAt(0)}.${U}`:""}),T}catch(T){return Promise.reject(T)}}async function z(){try{const E={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Pt.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:E})).data||[]}catch(E){return Promise.reject(E)}}function H(E){y.value=E}function Z(E){h.value=E,m.value=E.seasons[0]}function ce(E){m.value=E}function Q(E){d.value=E}return w(),J(),(E,T)=>(e.openBlock(),e.createElementBlock("div",uU,[e.createElementVNode("div",fU,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,O=>(e.openBlock(),e.createBlock(ka,e.mergeProps({key:O.name},o,{text:O.name,"is-active":y.value.componentName===O.componentName,tournaments:p.value,onClick:N=>H(O)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",yU,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value.componentName),{tournaments:p.value,"advanced-filter-categories":u.value,"onUpdate:tournament":Z,"onUpdate:season":ce,"onUpdate:team":Q},null,40,["tournaments","advanced-filter-categories"]))])]))}}),bU=re(_U,[["__scopeId","data-v-d6f7aec8"]]),Uc=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),SU={class:"template-taken-corners"},CU={class:"template-taken-corners__header"},wU={class:"template-taken-corners__header__all"},kU={class:"template-taken-corners__body"},EU={class:"template-taken-corners__body__players"},VU={class:"template-taken-corners__body__players__player__jersey"},TU={class:"template-taken-corners__body__players__player__photo"},NU={class:"template-taken-corners__body__players__player__photo__img"},xU=["src"],BU={class:"template-taken-corners__body__players__player__info"},FU={class:"template-taken-corners__body__players__player__info__name"},PU={class:"template-taken-corners__body__players__player__info__position"},zU={class:"template-taken-corners__body__players__player__info__position__nationality"},$U=["src"],AU={class:"template-taken-corners__body__players__player__info__position__name"},IU={class:"template-taken-corners__body__players__player__checkbox"},MU={__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!1),l=e.ref([]),r=e.computed(()=>o.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>l.value.reduce((u,g)=>g.isSelected?u+1:u,0));e.watch(()=>o.takenCornersFilters,u=>{l.value=u.map(g=>{const C={...g};return(g.isSelected===void 0||g.isSelected===null)&&(C.isSelected=!0),C})},{immediate:!0,deep:!0}),e.watch(n,u=>{s.value=u===l.value.length,a("change-filters-selected",u),a("update:filters",l.value)},{immediate:!0});function c(u){return`https://golstatsimages.blob.core.windows.net/flags/${u}.jpg`}function p(u){return`https://golstatsimages.blob.core.windows.net/players-profile/${u}.png`}function y(u){let g=!1;return u.split(" ").reduce((C,w)=>(g||(w.length>3?(C=w,g=!0):C+=`${w} `),C),"").trim()}function m(u){return`${y(u.last_name)}, ${u.first_name.trim()}`}function h(u){return o.isFemale?Uc.get(u.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):Uc.get(u.positions[0])}function d(u){u?l.value.forEach(g=>{g.isSelected=!0}):l.value.forEach((g,C)=>{g.isSelected=C===0})}function f(){l.value.forEach(u=>{u.isSelected=!0})}return i({clearFilters:f}),(u,g)=>(e.openBlock(),e.createElementBlock("div",SU,[e.createElementVNode("div",CU,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(r.value),5),e.createElementVNode("div",wU,[e.createVNode(e.unref(se),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",kU,[e.createElementVNode("div",EU,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",VU,e.toDisplayString(C.jersey),1),e.createElementVNode("div",TU,[e.createElementVNode("div",NU,[e.createElementVNode("img",{src:p(C.player_id),alt:"player photo",width:"36",height:"36"},null,8,xU)])]),e.createElementVNode("div",BU,[e.createElementVNode("div",FU,e.toDisplayString(m(C)),1),e.createElementVNode("div",PU,[e.createElementVNode("div",zU,[e.createElementVNode("img",{src:c(C.nationality_id),alt:"country flag"},null,8,$U)]),e.createElementVNode("div",AU,e.toDisplayString(h(C)),1)])]),e.createElementVNode("div",IU,[e.createVNode(e.unref(se),{modelValue:C.isSelected,"onUpdate:modelValue":w=>C.isSelected=w,"avoid-interaction":n.value===1&&C.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},LU=re(MU,[["__scopeId","data-v-763fcc54"]]),Ds={cornerType:"left",left:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[120]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[126]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[327]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[133]}],right:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-derecha.png",howMany:0,isSelected:!0,categoriesIds:[134]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-derecha.png",howMany:0,isSelected:!0,categoriesIds:[140]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-derecha.png",howMany:0,isSelected:!0,categoriesIds:[146]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-derecha.png",howMany:0,isSelected:!0,categoriesIds:[147]}]},js=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),RU={class:"template-how-was-corner"},OU={class:"template-how-was-corner__header"},DU=js(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),jU={class:"template-how-was-corner__header__radio-input"},WU={class:"template-how-was-corner__header__radio-input__radio"},vU=js(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),UU={class:"template-how-was-corner__header__radio-input"},GU={class:"template-how-was-corner__header__radio-input__radio"},HU=js(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),JU=["onClick"],qU={class:"template-how-was-corner__content__corner-type__img"},YU=["src","alt"],ZU={class:"template-how-was-corner__content__corner-type__info"},KU={class:"template-how-was-corner__content__corner-type__info__title"},XU={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Ds},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:i}){const a=t,o=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),l=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>o.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{i("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((c,p)=>p.isSelected?c+1:c,0)),o.value=n.cornerType,i("update:filters",n)},{deep:!0,immediate:!0});function r(n){n.isSelected&&l.value===1||(n.isSelected=!n.isSelected)}return(n,c)=>(e.openBlock(),e.createElementBlock("div",RU,[e.createElementVNode("div",OU,[DU,e.createElementVNode("div",jU,[e.createElementVNode("div",WU,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),vU])]),e.createElementVNode("div",UU,[e.createElementVNode("div",GU,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),HU])])]),e.createElementVNode("div",{class:e.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":t.isExpansionMode}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(p,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":p.isSelected}]),onClick:m=>r(p)},[e.createElementVNode("div",qU,[e.createElementVNode("img",{src:p.imgSrc,alt:p.title},null,8,YU)]),e.createElementVNode("div",ZU,[e.createElementVNode("div",KU,e.toDisplayString(p.title),1)])],10,JU))),128))],2)]))}},QU=re(XU,[["__scopeId","data-v-b7e3b8e0"]]),Ea=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],ut=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),eG={class:"template-zone"},tG={class:"controls-zone-container"},aG={class:"controls-zone-container-title-checkcon"},iG={class:"controls-zone-container-title-checkcon-check"},oG={class:"gsc-field-img-container"},sG={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lG=["fill"],rG=["fill"],nG=["fill"],dG=["fill"],cG=["fill"],pG=["fill"],mG=["fill"],hG=["fill"],uG=["fill"],fG=["fill"],yG=["fill"],gG=["fill"],_G=["fill"],bG=["fill"],SG=["fill"],CG=["fill"],wG=["fill"],kG=["fill"],EG=["fill"],VG=["fill"],TG=["fill"],NG=["fill"],xG=["fill"],BG=["fill"],FG=["fill"],PG=["fill"],zG=["fill"],$G=["fill"],AG=["fill"],IG=["fill"],MG=["fill"],LG=["fill"],RG=["fill"],OG=["fill"],DG=["fill"],jG=ut(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),WG=ut(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),vG=["id"],UG=ut(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),GG=[UG],HG=["mask"],JG=ut(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),qG=[JG],YG=ut(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),ZG=ut(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),KG={class:"template-zone__total-corners"},XG=ut(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),QG=ut(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),eH=[XG,QG],tH={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ea]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!0),l=e.ref([]),r=e.computed(()=>new Date().getTime());e.watch(l,y=>{s.value=y.length===35}),e.watch(()=>o.zoneFilters,y=>{l.value=y},{immediate:!0,deep:!0}),e.watch(()=>l.value,y=>{a("update:filters",y),a("change-filters-selected",y.length)},{deep:!0});function n(y){y?(l.value=Ea,s.value=!0):(l.value=[],s.value=!1)}function c(y){l.value.includes(y)?l.value=l.value.filter(m=>m!==y):l.value.push(y),s.value=l.value.length===35}function p(){l.value=[...Ea]}return i({clearFilters:p}),(y,m)=>(e.openBlock(),e.createElementBlock("div",eG,[e.createElementVNode("div",tG,[e.createElementVNode("div",{class:"controls-zone-container-title",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 11px;":"#2e3b46")}," ¿A donde fue el balón?: ",4),e.createElementVNode("div",aG,[e.createElementVNode("div",{class:"controls-zone-container-title-checkcon-label",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 12px;":"#2e3b46")}," Todas las zonas ",4),e.createElementVNode("div",iG,[e.createVNode(e.unref(se),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",oG,[(e.openBlock(),e.createElementBlock("svg",sG,[e.createElementVNode("rect",{onClick:m[0]||(m[0]=h=>c(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,lG),e.createElementVNode("rect",{onClick:m[1]||(m[1]=h=>c(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,rG),e.createElementVNode("rect",{onClick:m[2]||(m[2]=h=>c(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,nG),e.createElementVNode("rect",{onClick:m[3]||(m[3]=h=>c(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,dG),e.createElementVNode("rect",{onClick:m[4]||(m[4]=h=>c(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,cG),e.createElementVNode("rect",{onClick:m[5]||(m[5]=h=>c(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,pG),e.createElementVNode("rect",{onClick:m[6]||(m[6]=h=>c(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,mG),e.createElementVNode("rect",{onClick:m[7]||(m[7]=h=>c(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,hG),e.createElementVNode("rect",{onClick:m[8]||(m[8]=h=>c(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,uG),e.createElementVNode("rect",{onClick:m[9]||(m[9]=h=>c(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,fG),e.createElementVNode("rect",{onClick:m[10]||(m[10]=h=>c(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,yG),e.createElementVNode("rect",{onClick:m[11]||(m[11]=h=>c(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,gG),e.createElementVNode("rect",{onClick:m[12]||(m[12]=h=>c(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,_G),e.createElementVNode("rect",{onClick:m[13]||(m[13]=h=>c(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,bG),e.createElementVNode("rect",{onClick:m[14]||(m[14]=h=>c(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,SG),e.createElementVNode("rect",{onClick:m[15]||(m[15]=h=>c(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,CG),e.createElementVNode("rect",{onClick:m[16]||(m[16]=h=>c(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,wG),e.createElementVNode("rect",{onClick:m[17]||(m[17]=h=>c(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,kG),e.createElementVNode("rect",{onClick:m[18]||(m[18]=h=>c(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,EG),e.createElementVNode("rect",{onClick:m[19]||(m[19]=h=>c(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,VG),e.createElementVNode("rect",{onClick:m[20]||(m[20]=h=>c(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,TG),e.createElementVNode("rect",{onClick:m[21]||(m[21]=h=>c(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,NG),e.createElementVNode("rect",{onClick:m[22]||(m[22]=h=>c(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,xG),e.createElementVNode("rect",{onClick:m[23]||(m[23]=h=>c(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,BG),e.createElementVNode("rect",{onClick:m[24]||(m[24]=h=>c(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,FG),e.createElementVNode("rect",{onClick:m[25]||(m[25]=h=>c(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,PG),e.createElementVNode("rect",{onClick:m[26]||(m[26]=h=>c(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,zG),e.createElementVNode("rect",{onClick:m[27]||(m[27]=h=>c(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,$G),e.createElementVNode("rect",{onClick:m[28]||(m[28]=h=>c(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,AG),e.createElementVNode("rect",{onClick:m[29]||(m[29]=h=>c(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,IG),e.createElementVNode("rect",{onClick:m[30]||(m[30]=h=>c(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,MG),e.createElementVNode("rect",{onClick:m[31]||(m[31]=h=>c(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,LG),e.createElementVNode("rect",{onClick:m[32]||(m[32]=h=>c(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,RG),e.createElementVNode("rect",{onClick:m[33]||(m[33]=h=>c(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,OG),e.createElementVNode("rect",{onClick:m[34]||(m[34]=h=>c(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,DG),jG,WG,e.createElementVNode("mask",{id:r.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},GG,8,vG),e.createElementVNode("g",{mask:`url(#${r.value})`},qG,8,HG),YG,ZG]))]),e.withDirectives(e.createElementVNode("div",KG,eH,512),[[e.vShow,!1]])]))}},aH=re(tH,[["__scopeId","data-v-378bf7e2"]]),Ws=[{text:"Rematado con destino a portería",isSelected:!0,child:[{text:"Fue gol",isSelected:!0,categoryIds:[583,585,587,589]},{text:"No fue gol",isSelected:!0,categoryIds:[584,586,588,590]}]},{text:"Rematado sin destino a portería",isSelected:!0,categoryIds:[122,128,136,142]},{text:"Ganados por portero rival",isSelected:!0,categoryIds:[123,129,137,143]},{text:"Ganados por jugador rival",isSelected:!0,categoryIds:[124,130,138,144]},{text:"Sin destino",isSelected:!0,categoryIds:[125,131,139,145]}],iH={class:"what-happened"},oH={class:"what-happened__all"},sH={class:"what-happened__filters"},lH={key:0,class:"what-happened__filters__filter__composed"},rH={class:"what-happened__filters__filter__composed__main"},nH={key:1,class:"what-happened__filters__filter__single"},dH={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Ws]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.computed(()=>o.whatHappenedFilters.reduce((d,f)=>(f.child?f.child.forEach(u=>{u.isSelected&&d++}):f.isSelected&&d++,d),0)),l=e.computed(()=>o.whatHappenedFilters.reduce((d,f)=>(f.child?d+=f.child.length:d++,d),0)),r=e.computed(()=>s.value===l.value),n=e.computed(()=>s.value===1);e.watch(()=>o.whatHappenedFilters,d=>{a("change-filters-selected",s.value),a("update:filters",d)},{deep:!0,immediate:!0});function c(d){o.whatHappenedFilters.forEach(f=>{d?(f.isSelected=d,f.child&&f.child.forEach(u=>{u.isSelected=d})):f.child?(f.isSelected=!0,f.child.forEach(u=>{u.isSelected=!0})):f.isSelected=!1})}function p(d,f){f.isSelected=d,f.child.forEach(u=>{u.isSelected=d})}function y(d,f,u){u.isSelected=d,f.isSelected=f.child.every(g=>g.isSelected)}function m(d,f){f.isSelected=d}function h(){o.whatHappenedFilters.forEach(d=>{d.child?d.child.forEach(f=>{f.isSelected=!0}):d.isSelected=!0})}return i({onResetFilters:h}),(d,f)=>(e.openBlock(),e.createElementBlock("div",iH,[e.createElementVNode("div",oH,[e.createVNode(e.unref(se),{label:"Todos","model-value":r.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",sH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(u,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[u.child?(e.openBlock(),e.createElementBlock("div",lH,[e.createElementVNode("div",rH,[e.createVNode(e.unref(se),{"model-value":u.isSelected,label:t.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":n.value&&u.isSelected,"onUpdate:modelValue":C=>p(C,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.child,(C,w)=>(e.openBlock(),e.createElementBlock("div",{key:`c${w}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(se),{"model-value":C.isSelected,label:t.isFemale?C.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):C.text,"avoid-interaction":n.value&&C.isSelected,"onUpdate:modelValue":v=>y(v,u,C)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",nH,[e.createVNode(e.unref(se),{"model-value":u.isSelected,label:t.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":n.value&&u.isSelected,"onUpdate:modelValue":C=>m(C,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},cH=re(dH,[["__scopeId","data-v-8f375a1a"]]),vs={isMoment:!1,isMomentOnly:!1,results:{final:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}],moment:[{name:"Iba ganando",value:1,isSelected:!0},{name:"Iba perdiendo",value:2,isSelected:!0},{name:"Iba empatando",value:3,isSelected:!0}]}},Gc=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),pH={class:"template-results"},mH={class:"template-results__type-switch"},hH=Gc(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),uH=Gc(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),fH={class:"template-results__info"},yH={key:0,class:"template-results__group"},gH={key:1,class:"template-results__group"},_H={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...vs})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.computed(()=>{const c=s.value.isMoment?s.value.results.moment.filter(p=>p.isSelected).length:s.value.results.final.filter(p=>p.isSelected).length;return a("change-filters-selected",c),c}),r=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>o.resultsFilters,c=>{s.value===null&&(s.value={...c})},{deep:!0,immediate:!0}),e.watch(s,c=>{a("update:filters",c)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(c=>{c.isSelected=!0}),s.value.results.final.forEach(c=>{c.isSelected=!0})}return i({removeFilters:n}),(c,p)=>(e.openBlock(),e.createElementBlock("div",pH,[e.withDirectives(e.createElementVNode("div",mH,[hH,e.createVNode(wa,{modelValue:s.value.isMoment,"onUpdate:modelValue":p[0]||(p[0]=y=>s.value.isMoment=y)},null,8,["modelValue"]),uH],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",fH,e.toDisplayString(r.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",yH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:y.isSelected,"onUpdate:modelValue":h=>y.isSelected=h,label:y.name,"avoid-interaction":l.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",gH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:y.isSelected,"onUpdate:modelValue":h=>y.isSelected=h,label:y.name,"avoid-interaction":l.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},bH=re(_H,[["__scopeId","data-v-ee3b28d3"]]),SH=t=>(e.pushScopeId("data-v-6f640dee"),t=t(),e.popScopeId(),t),CH={key:0,class:"productivity__header__text"},wH={key:0},kH=SH(()=>e.createElementVNode("span",null,"mínimo 5 categorías y máximo 12",-1)),EH={key:1},VH={key:2},TH={key:1,class:"productivity__header__checkbox"},NH={class:"templates__body"},xH={key:0,class:"templates-plays"},BH={key:1,class:"templates-productivity"},FH={key:2,class:"template-field"},PH={key:3,class:"template-details"},zH={key:4,class:"template-personal-data"},$H={key:5,class:"template-leagues"},AH={key:6,class:"template-plays"},IH={key:7,class:"template-plays"},MH={key:8,class:"template-universe"},LH={key:9,class:"template-distance"},RH={key:10,class:"template-results"},OH={key:11,class:"template-results-by-type"},DH={key:12,class:"template-games"},jH={key:13,class:"template-taken-corners"},WH={key:14,class:"template-videos"},vH={key:15,class:"template-how-was-corner"},UH={key:16,class:"template-zone"},GH={key:17,class:"template-what-happened"},HH={key:1,class:"templates__footer"},JH={class:"templates__footer__button"},qH={class:"templates__footer__button"},YH={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(!1),r=e.ref({playingAs:o.playingAs,gameSections:o.gameSections,statisticType:o.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),c=e.ref(null),p=e.ref(null),y=e.ref(null),m=e.ref(null),h=e.ref(null),d=e.computed(()=>({"--width":o.width,"--max-width":o.maxWidth,"--background-color":o.backgroundColor,"--border-radius":o.borderRadius,"--border-color":o.borderColor,"--border-width":o.borderWidth,"--box-shadow":o.boxShadow,"--padding":o.filterType!==B.VIDEOS?o.isExpansionMode?"10px 0":o.padding:"0","--footer-border-color":o.footerBorderColor,"--footer-border-width":o.footerBorderWidth,"--text-color":o.textColor})),f=e.computed(()=>{const b=[];return o.productivityCategories&&Object.values(o.productivityCategories).forEach(k=>{k.categories&&k.categories.forEach(j=>{b.push(j)})}),b}),u=e.computed(()=>{const b=[];return o.playsCategories&&Object.values(o.playsCategories).forEach(k=>{k.categories&&k.categories.forEach(j=>{b.push(j)})}),b}),g=e.computed(()=>{const b=f.value.filter(k=>k.isSelected);return q(b),o.filterType===B.PRODUCTIVITY&&a("change-categories-selected",b.length),b.length}),C=e.computed(()=>g.value>=o.productivityMaxCategories),w=e.computed(()=>g.value<=o.productivityMinCategories),v=e.computed(()=>o.isPlayingAsHidden?o.gameSections:o.playingAs.concat(o.gameSections));e.watch(r,b=>{o.filterType===B.DETAILS&&a("update:filters",b)},{immediate:!0,deep:!0}),e.watch(()=>v.value,b=>{if(o.filterType===B.DETAILS){const k=b.filter(j=>j.isSelected);a("change-filters-selected",k.length)}},{immediate:!0,deep:!0}),e.watch(()=>o.playsGolstatsCategories,b=>{if(o.filterType===B.PLAYS_TYPES||o.filterType===B.GOLSTATS){const k=b.filter(j=>j.isSelected);a("change-filters-selected",k.length)}},{immediate:!0}),e.watch(()=>o.fieldAreas,b=>{o.filterType===B.FIELD&&a("change-filters-selected",b.length)}),e.watch(u,()=>{o.filterType===B.PLAYS&&z()},{immediate:!0,deep:!0}),e.watch(f,()=>{o.filterType===B.PRODUCTIVITY&&H()},{immediate:!0,deep:!0}),e.watch(()=>o.resultsFilters,b=>{o.filterType===B.RESULTS&&a("change-filters-selected",b.results.filter(k=>k.isSelected).length)},{immediate:!0,deep:!0});function q(b){setTimeout(()=>{b.sort((k,j)=>k.priority-j.priority),b.forEach((k,j)=>{k.priority=j+1})},10)}function A(b=null){G(b)}function G(b=null){o.filterType===B.PRODUCTIVITY?f.value.forEach(k=>{k.isSelected=!1}):o.filterType===B.PLAYS?(u.value.forEach(k=>{k.isSelected=!0}),l.value=!0):o.filterType===B.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):o.filterType===B.DETAILS?(o.playingAs.forEach(k=>{k.isSelected=!0}),o.gameSections.forEach(k=>{k.isSelected=!0})):o.filterType===B.TOURNAMENTS?(o.tournaments.forEach((k,j)=>{o.isOneTournamentOnly?k.isSelected=j===0:k.isSelected=!0}),a("change-filters-selected",0)):o.filterType===B.PLAYS_TYPES?o.playsGolstatsCategories.forEach(k=>{k.isSelected=!0}):o.filterType===B.GOLSTATS?o.playsGolstatsCategories.forEach(k=>{k.isSelected=!1}):o.filterType===B.UNIVERSE?c.value&&c.value.resetFilters():o.filterType===B.PERSONAL_DATA?(s.value&&s.value.onClearFilters(b||oe.All),a("change-personal-data-filters",{})):o.filterType===B.DISTANCE?a("update:filters",{minValue:o.distanceFilters.minLimit,maxValue:o.distanceFilters.maxLimit}):o.filterType===B.RESULTS?a("update:filters",{results:o.resultsFilters.results.map(k=>(k.isSelected=!0,k))}):o.filterType===B.RESULTS_BY_TIME?h.value&&h.value.removeFilters():o.filterType===B.GAMES?o.gamesFilters.forEach(k=>{k.isSelected=!0}):o.filterType===B.TAKEN_CORNERS?p.value.clearFilters():o.filterType===B.HOW_WAS_CORNER?(o.howWasCornerFilters.left.forEach(k=>{k.isSelected=!0}),o.howWasCornerFilters.right.forEach(k=>{k.isSelected=!0})):o.filterType===B.ZONE?y.value&&y.value.clearFilters():o.filterType===B.WHAT_HAPPENED&&m.value&&m.value.onResetFilters()}function Y(b){o.filterType===B.TOURNAMENTS&&a("change-filters-selected",b)}function J(b){o.filterType===B.UNIVERSE&&a("change-universe-filters",b)}function V(b){o.filterType===B.FIELD&&a("change-field-areas",b)}function x(b){o.filterType===B.GOLSTATS&&a("change-filters-selected",b)}function S(b){a("change-filters-selected",b)}function P(b){o.filterType===B.PRODUCTIVITY?f.value.forEach(k=>{k.isSelected=b}):(l.value=b,o.playsCategories.offensive.categories.forEach(k=>{k.isSelected=b}),o.playsCategories.defensive.categories.forEach(k=>{k.isSelected=b}),o.playsCategories.possession.categories.forEach(k=>{k.isSelected=b}),o.playsCategories.offenses.categories.forEach(k=>{k.isSelected=b}))}function z(){let b=0;const k={playsCategories:u.value.filter(j=>j.isSelected)};l.value=k.playsCategories.length===u.value.length,b=k.playsCategories.length,Object.values(n.value).forEach(j=>{j&&b++}),a("change-filters-selected",b),a("update:filters",k)}function H(){let b=0;const k={productivityFilters:f.value.filter(j=>j.isSelected),offensesConditions:n.value};b=k.productivityFilters.length,Object.values(n.value).forEach(j=>{j&&b++}),a("change-filters-selected",b),a("update:filters",k)}function Z(){a("apply")}function ce(){(o.filterType===B.PLAYS_TYPES||o.filterType===B.GOLSTATS)&&o.playsGolstatsCategories&&o.playsGolstatsCategories.forEach(b=>{b.isSelected=!1}),o.filterType===B.PRODUCTIVITY&&f.value.forEach(b=>{b.isSelected=!1}),a("apply")}function Q(b){a("update:filters",b)}function E(b){o.filterType===B.PERSONAL_DATA&&a("update:filters",b)}function T(b){o.filterType===B.TOURNAMENTS&&a("update:filters",b)}function O(b){(o.filterType===B.PLAYS_TYPES||o.filterType===B.GOLSTATS)&&a("update:filters",b)}function N(b){o.filterType===B.PRODUCTIVITY&&(n.value=b,H())}function W(b){o.filterType===B.DISTANCE&&a("update:filters",b)}function $(b){o.filterType===B.RESULTS&&a("update:filters",b)}function U(b){o.filterType===B.GAMES&&(a("update:filters",b),a("change-filters-selected",b.filter(k=>k.isSelected).length))}function D(b){r.value.statisticType=b}const _=e.computed(()=>o.filterType===B.PLAYS?u.value.length:o.filterType===B.PRODUCTIVITY?f.value.length:o.filterType===B.FIELD?16:o.filterType===B.UNIVERSE?6:o.filterType===B.DETAILS?8:o.filterType===B.RESULTS||o.filterType===B.RESULTS_BY_TIME?3:o.filterType===B.GAMES?o.gamesFilters.length:0);return a("total-filters",_),i({clearFilters:A}),(b,k)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(d.value)},[t.filterType===e.unref(B).PRODUCTIVITY||t.filterType===e.unref(B).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(B).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",CH,[t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",wH,[e.createTextVNode(" Elige tipo de jugadas: "),kH])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",EH,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",VH,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(B).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",TH,[e.createVNode(e.unref(se),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":l.value,"label-color":t.textColor,"onUpdate:modelValue":P},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",NH,[t.filterType===e.unref(B).PLAYS?(e.openBlock(),e.createElementBlock("div",xH,[e.createVNode(Tj,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",BH,[e.createVNode(CI,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":C.value,"are-min-categories-reached":w.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"onUpdate:offensesConditions":N},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).FIELD?(e.openBlock(),e.createElementBlock("div",FH,[e.createVNode(e.unref(Kd),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":V}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).DETAILS?(e.openBlock(),e.createElementBlock("div",PH,[e.createVNode(XI,{"is-playing-as-hidden":t.isPlayingAsHidden,"playing-as":t.playingAs,"game-sections":t.gameSections,"font-gamily":t.fontFamily,"is-statistic-type-visible":t.isStatisticTypeVisible,"statistic-type":t.statisticType,onChangeStatisticType:D},null,8,["is-playing-as-hidden","playing-as","game-sections","font-gamily","is-statistic-type-visible","statistic-type"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",zH,[e.createVNode(dj,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":E},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",$H,[e.createVNode(oM,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:Y,"onUpdate:filters":T},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",AH,[e.createVNode(Ad,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":O},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).GOLSTATS?(e.openBlock(),e.createElementBlock("div",IH,[e.createVNode(Ad,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:x,"onUpdate:filters":O},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).UNIVERSE?(e.openBlock(),e.createElementBlock("div",MH,[e.createVNode(QM,{ref_key:"templateUniverse",ref:c,"universe-filters":t.universeFilters,"onUpdate:universeFilters":J},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).DISTANCE?(e.openBlock(),e.createElementBlock("div",LH,[e.createVNode(SL,{distance:t.distanceFilters,"onUpdate:distanceFilters":W},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).RESULTS?(e.openBlock(),e.createElementBlock("div",RH,[e.createVNode(Bj,{ref_key:"templateResults",ref:h,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":$},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",OH,[e.createVNode(bH,{ref_key:"templateResults",ref:h,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).GAMES?(e.openBlock(),e.createElementBlock("div",DH,[e.createVNode(NL,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":U},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",jH,[e.createVNode(LU,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:p,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).VIDEOS?(e.openBlock(),e.createElementBlock("div",WH,[e.createVNode(bU,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",vH,[e.createVNode(QU,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).ZONE?(e.openBlock(),e.createElementBlock("div",UH,[e.createVNode(aH,{ref_key:"templateZone",ref:y,"zone-filters":t.zoneFilters,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",GH,[e.createVNode(cH,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:m,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",HH,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:ce})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",JH,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:ce})):(e.openBlock(),e.createBlock(e.unref(gi),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:G}))]),e.createElementVNode("div",qH,[e.createVNode(e.unref(gi),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:Z})])],64))])):e.createCommentVNode("",!0)],4))}},Hc=re(YH,[["__scopeId","data-v-6f640dee"]]),ZH=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},KH={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(t){return!Number.isNaN(t)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3},leftMenu:{type:String,default:"unset"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(d=>({"398d9242":t.width,f164e302:c.value,"4bb88040":t.menuWidth}));const o=e.ref(null),s=e.ref(!1),l=e.ref(null),r=e.ref({}),n=e.computed(()=>{const d={top:"0px","--left-menu":a.leftMenu};if(o.value){const f=o.value.getBoundingClientRect();d.top=`${f.height+a.menuMarginTop}px`}return d}),c=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,d=>{d!==s.value&&(s.value=d)},{immediate:!0}),e.watch(s,d=>{d||setTimeout(()=>{r.value["--translate-x"]="0px"},500)});function p(d){const f=window.innerWidth,u=d.boundingClientRect.x,g=d.boundingClientRect.x+d.boundingClientRect.width,C=u<=0?Math.abs(u)+4:g>=f?f-(g+10):0;r.value["--translate-x"]=`${C}px`}function y(){new IntersectionObserver(d=>{d[0].intersectionRatio>0&&p(d[0])}).observe(l.value)}function m(){s.value=!s.value,i("update:modelValue",s.value)}function h(){s.value=!1,i("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{y()})}),(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:h})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:o,class:"menu-container__trigger",onClick:m},[e.renderSlot(d.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:l,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(d.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},XH=ZH(KH,[["__scopeId","data-v-18c0df61"]]),It=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),QH={key:0,class:"button__icon"},eJ={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tJ=["stroke"],aJ=["stroke"],iJ=["stroke"],oJ={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sJ=["stroke"],lJ=["stroke"],rJ=["fill"],nJ={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dJ=["fill"],cJ={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pJ=["stroke"],mJ=["stroke"],hJ=["stroke"],uJ=["stroke"],fJ=["stroke"],yJ={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gJ=It(()=>e.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1)),_J=[gJ],bJ={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},SJ=It(()=>e.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1)),CJ=[SJ],wJ={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kJ=It(()=>e.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1)),EJ=[kJ],VJ={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TJ=It(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),NJ=It(()=>e.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),xJ=It(()=>e.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),BJ=It(()=>e.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),FJ=[TJ,NJ,xJ,BJ],PJ={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zJ=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-2504d135><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-2504d135></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-2504d135></path></g><defs data-v-2504d135><clipPath id="gpdeo9cu3a" data-v-2504d135><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-2504d135></path></clipPath></defs>',2),$J=[zJ],AJ={class:"button__text"},IJ={key:0,class:"info-container"},MJ={key:1,style:{width:"20px"}},LJ={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},RJ=["fill"],OJ={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadge:{type:Boolean,default:!0},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"},showIcon:{type:Boolean,default:!0}},setup(t){const i=t,a=e.computed(()=>({"--height":i.height,"--width":i.width,"--text-font-family":i.textFontFamily,"--text-font-size":i.textFontSize,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.isActive?i.borderColorActive:i.borderColor,"--border-width":i.borderWidth,"--padding":i.padding,"--font-color":i.fontColor})),o=e.computed(()=>({"--info-background-color":i.infoValue?i.infoBackgroundColor:"transparent","--info-border-color":i.infoValue?i.infoBorderColor:"transparent","--info-border-radius":i.infoBorderRadius,"--info-font-family":i.infoFontFamily,"--info-font-size":i.infoFontSize,"--info-font-color":i.infoFontColor,"--info-height":i.infoHeight,"--info-width":i.infoWidth})),s=e.computed(()=>[B.PLAYS_TYPES,B.GOLSTATS,B.TOURNAMENTS,B.PLAYS,B.RESULTS,B.RESULTS_BY_TIME].includes(i.iconType)),l=e.computed(()=>[B.FIELD,B.GAMES].includes(i.iconType)),r=e.computed(()=>[B.DETAILS,B.UNIVERSE].includes(i.iconType)),n=e.computed(()=>[B.PERSONAL_DATA].includes(i.iconType)),c=e.computed(()=>[B.PRODUCTIVITY].includes(i.iconType)),p=e.computed(()=>[B.HOW_WAS_CORNER].includes(i.iconType)),y=e.computed(()=>[B.TAKEN_CORNERS].includes(i.iconType)),m=e.computed(()=>[B.ZONE].includes(i.iconType)),h=e.computed(()=>[B.WHAT_HAPPENED].includes(i.iconType));return(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",QH,[n.value?(e.openBlock(),e.createElementBlock("svg",eJ,[e.createElementVNode("path",{d:"M12.6665 16.0001V14.3334C12.6665 13.4494 12.3153 12.6015 11.6902 11.9764C11.0651 11.3513 10.2173 11.0001 9.33323 11.0001H4.33329C3.44925 11.0001 2.60141 11.3513 1.9763 11.9764C1.35119 12.6015 1 13.4494 1 14.3334V16.0001",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,tJ),e.createElementVNode("path",{d:"M6.83329 7.66658C8.67422 7.66658 10.1666 6.17422 10.1666 4.33329C10.1666 2.49237 8.67422 1 6.83329 1C4.99237 1 3.5 2.49237 3.5 4.33329C3.5 6.17422 4.99237 7.66658 6.83329 7.66658Z",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,aJ),e.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,iJ)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",oJ,[e.createElementVNode("path",{d:"M11.3464 15.7091C13.2744 15.7091 14.8373 14.1462 14.8373 12.2182C14.8373 10.2902 13.2744 8.72729 11.3464 8.72729C9.4184 8.72729 7.85547 10.2902 7.85547 12.2182C7.85547 14.1462 9.4184 15.7091 11.3464 15.7091Z",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,sJ),e.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,lJ),e.createElementVNode("path",{d:"M1.74545 14.1136H5.57341C5.80365 14.6432 6.11192 15.1265 6.4797 15.5591H1.74545C0.85957 15.5591 0.15 14.8495 0.15 13.9636V1.74545C0.15 0.85957 0.85957 0.15 1.74545 0.15H13.9636C14.8495 0.15 15.5591 0.85957 15.5591 1.74545V8.27117C15.1619 7.74472 14.6701 7.28299 14.1136 6.90213V1.74545V1.59545H13.9636H1.74545H1.59545V1.74545V13.9636V14.1136H1.74545ZM3.64091 3.64091H12.0682V5.08636H3.64091V3.64091ZM3.64091 7.13182H7.39844C6.87199 7.52898 6.41026 8.02079 6.0294 8.57727H3.64091V7.13182ZM3.64091 10.6227H5.20065C5.12651 11.0081 5.08636 11.3945 5.08636 11.7818V12.0682H3.64091V10.6227Z",fill:t.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,rJ)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",nJ,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 0C13.1944 0 17 3.80558 17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0ZM8.49751 1.54553C4.65662 1.54553 1.54297 4.65919 1.54297 8.50008C1.54297 12.341 4.65662 15.4546 8.49751 15.4546C12.3384 15.4546 15.4521 12.341 15.4521 8.50008C15.4521 4.65919 12.3384 1.54553 8.49751 1.54553ZM8.49929 3.09082C8.92605 3.09082 9.27202 3.43678 9.27202 3.86355V8.12198L12.451 10.5945C12.7878 10.8565 12.8485 11.342 12.5865 11.6789C12.3245 12.0157 11.839 12.0764 11.5022 11.8144L8.02488 9.10986C7.83666 8.96347 7.72656 8.73837 7.72656 8.49991V3.86355C7.72656 3.43678 8.07252 3.09082 8.49929 3.09082Z",fill:t.iconColor},null,8,dJ)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",cJ,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,pJ),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,mJ),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,hJ),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,uJ),e.createElementVNode("path",{d:"M13.5033 9.00032C13.5033 10.5651 12.2348 11.8337 10.67 11.8337C9.1052 11.8337 7.83667 10.5651 7.83667 9.00032C7.83667 7.43552 9.1052 6.16699 10.67 6.16699C12.2348 6.16699 13.5033 7.43552 13.5033 9.00032Z",stroke:t.iconColor},null,8,fJ)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",yJ,_J)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",bJ,CJ)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",wJ,EJ)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",VJ,FJ)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",PJ,$J)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",AJ,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",IJ,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filtersTotal>0&&t.filtersTotal!=parseInt(t.infoValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)):t.filtersTotal>0?(e.openBlock(),e.createElementBlock("div",MJ)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",LJ,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,RJ)]))],2)],4))}},DJ=re(OJ,[["__scopeId","data-v-2504d135"]]),jJ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},WJ=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),vJ={class:"panel__activator__icon"},UJ=["src"],GJ={class:"panel__activator__text"},HJ=["height","width"],JJ=["stroke"],qJ={class:"panel__content"},YJ=WJ(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),ZJ={class:"panel__content__slot"},KJ={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,r=>{o.value=r},{immediate:!0});function l(){o.value=!o.value,i("update:modelValue",o.value)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:l},[e.createElementVNode("div",vJ,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,UJ)):e.createCommentVNode("",!0)]),e.createElementVNode("div",GJ,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":o.value}])},[(e.openBlock(),e.createElementBlock("svg",{height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,JJ)],8,HJ))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",qJ,[YJ,e.createElementVNode("div",ZJ,[e.renderSlot(r.$slots,"content",{},void 0,!0)])],512),[[e.vShow,o.value]])]),_:3})],4))}},XJ=jJ(KJ,[["__scopeId","data-v-0ca35abc"]]),at={isPlayingAsHidden:!1,playingAs:[{name:"Local",isSelected:!0,value:1},{name:"Visitante",isSelected:!0,value:2}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},QJ={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},eq={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:2},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:21},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]}},tq={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},aq=[{name:"Sub-20",logo:null,isSelected:!0,id:44,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]},{name:"Tournoi Maurice Revello",logo:null,isSelected:!0,id:108,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Tournoi Maurice Revello 23",related_seasons:[],id:1770,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"FIFA World Cup",logo:null,isSelected:!0,id:33,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa del Mundo 2022",related_seasons:[],id:1512,type:0},{name:"Copa del Mundo 2018",related_seasons:[],id:881,type:0}]},{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Copa Oro",logo:null,isSelected:!0,id:29,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa Oro 2023",related_seasons:[],id:1741,type:0}]},{name:"Women Revelations Cup",logo:null,isSelected:!0,id:1137,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Women Revelations Cup 2023",related_seasons:[],id:1731,type:0}]},{name:"Leagues Cup",logo:null,isSelected:!0,id:1046,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Leagues Cup 2023",related_seasons:[],id:1784,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]}],iq=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Tiros a gol",isSelected:!1},{id:3,name:"Asistencias",isSelected:!1},{id:4,name:"Centros",isSelected:!1},{id:5,name:"Balones ganados en área propia",isSelected:!1},{id:6,name:"Participaciones en gol",isSelected:!1},{id:7,name:"Cabeceo area rival",isSelected:!1}],oq=[{id:1,name:"Mas goles anotados",isSelected:!1,value:1},{id:2,name:"Mas goles durante los ultimos 15 min de 2do tiempo",isSelected:!1,value:7},{id:3,name:"Con mas goles como visitante",isSelected:!1,value:3},{id:4,name:"Con mas goles como local",isSelected:!1,value:3},{id:5,name:"Mas goles durante el 1er tiempo",isSelected:!1,value:3},{id:6,name:"Mas goles durante el 2do tiempo",isSelected:!1,value:3},{id:7,name:"Mas goles como local durante el 2do tiempo",isSelected:!1,value:7}],sq={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Jc={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},lq={class:"filters"},rq={key:0,class:"filters__expansion"},nq={class:"content"},dq={key:1,class:"filters__menus"},cq={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0}},emits:["update:filters","apply","close"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(_=>({"5e59eb26":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.PRODUCTIVITY,isFooterVisible:!0},l={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.PLAYS,isFooterVisible:!0},r={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.TOURNAMENTS,isFooterVisible:!0},p={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.PERSONAL_DATA,isFooterVisible:!0},y={width:"310px",modalHeight:o.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},m={width:"380px",modalHeight:o.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},h={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.UNIVERSE,isFooterVisible:!0},d={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.DISTANCE,isFooterVisible:!0},f={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.RESULTS,padding:"0",isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.VIDEOS,isFooterVisible:!1},C={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.GAMES,isFooterVisible:!0},w={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.TAKEN_CORNERS,isFooterVisible:!0},v={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.HOW_WAS_CORNER,isFooterVisible:!0},q={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.ZONE,isFooterVisible:!0},A={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.WHAT_HAPPENED,isFooterVisible:!0},G=e.ref(!1),Y=e.ref(!1),J=e.ref(0),V=e.ref(0),x=e.ref({}),S=e.ref(null),P=e.ref(null),z=e.computed(()=>o.isForTemplateForm?"0":"unset"),H=e.computed(()=>o.buttonFilterProps&&o.buttonFilterProps.text?o.buttonFilterProps.text:o.menuButtonText||O()),Z=e.computed(()=>o.isFromTemplates?B.RESULTS:o.filterType),ce=e.computed(()=>o.expansionPanelText||O()),Q=e.ref(null);e.watch(()=>o.filterType,_=>{if(_===B.PRODUCTIVITY)x.value={...s,...o.templateProps,productivityCategories:o.filters||QJ};else if(_===B.PLAYS)x.value={...l,...o.templateProps,fontFamily:o.buttonFilterProps?o.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:o.filters||eq};else if(_===B.FIELD)x.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters||[]};else if(_===B.DETAILS)x.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:at.isPlayingAsHidden,playingAs:o.filters&&o.filters.playingAs||at.playingAs,gameSections:o.filters&&o.filters.gameSections||at.gameSections,statisticType:o.filters?o.filters.statisticType:at.statisticType,isStatisticTypeVisible:o.filters?o.filters.isStatisticTypeVisible:at.isStatisticTypeVisible};else if(_===B.TOURNAMENTS){const b=o.filters||aq;o.isOneTournamentOnly&&b.forEach(k=>{k.isSelected=k.id===o.defaultTournamentId}),x.value={...c,...o.templateProps,tournaments:b}}else _===B.PERSONAL_DATA?x.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:_===B.PLAYS_TYPES?x.value={...y,...o.templateProps,playsGolstatsCategories:o.filters||iq}:_===B.GOLSTATS?x.value={...m,...o.templateProps,playsGolstatsCategories:o.filters||oq}:_===B.UNIVERSE?x.value={...h,...o.templateProps,universeFilters:o.filters||tq}:_===B.DISTANCE?x.value={...d,...o.templateProps,distanceFilters:o.filters||sq}:_===B.RESULTS?x.value={...f,...o.templateProps,resultsFilters:o.filters||Jc}:_===B.RESULTS_BY_TIME?x.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||vs}:_===B.GAMES?x.value={...C,...o.templateProps,gamesFilters:o.filters||[]}:_===B.VIDEOS?x.value={...g,...o.templateProps,token:o.token}:_===B.TAKEN_CORNERS?x.value={...w,...o.templateProps,takenCornersFilters:o.filters||[]}:_===B.HOW_WAS_CORNER?x.value={...v,...o.templateProps,howWasCornerFilters:o.filters||Ds}:_===B.ZONE?x.value={...q,...o.templateProps,zoneFilters:o.filters||[...Ea]}:_===B.WHAT_HAPPENED&&(x.value={...A,...o.templateProps,whatHappenedFilters:o.filters||[...Ws]});x.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(x.value.width="100%",x.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>o.filters,()=>{if(o.filterType===B.PRODUCTIVITY)x.value={...s,...o.templateProps,productivityCategories:o.filters};else if(o.filterType===B.PLAYS)x.value={...l,...o.templateProps,playsCategories:o.filters};else if(o.filterType===B.FIELD)x.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters};else if(o.filterType===B.DETAILS)x.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:at.isPlayingAsHidden,playingAs:o.filters?o.filters.playingAs:at.playingAs,gameSections:o.filters?o.filters.gameSections:at.gameSections,statisticType:o.filters?o.filters.statisticType:at.statisticType,isStatisticVisible:o.filters?o.filters.isStatisticVisible:at.isStatisticVisible};else if(o.filterType===B.TOURNAMENTS){const _=o.filters;o.isOneTournamentOnly&&_.forEach(b=>{b.isSelected=b.id===o.defaultTournamentId}),x.value={...c,...o.templateProps,tournaments:_}}else o.filterType===B.PERSONAL_DATA?x.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:o.filterType===B.PLAYS_TYPES?x.value={...y,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===B.GOLSTATS?x.value={...m,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===B.UNIVERSE?x.value={...h,...o.templateProps,universeFilters:o.filters}:o.filterType===B.DISTANCE?x.value={...d,...o.templateProps,distanceFilters:o.filters}:o.filterType===B.RESULTS?x.value={...f,...o.templateProps,resultsFilters:o.filters||Jc}:o.filterType===B.RESULTS_BY_TIME?x.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||vs}:o.filterType===B.GAMES?x.value={...C,...o.templateProps,gamesFilters:o.filters}:o.filterType===B.VIDEOS?x.value={...g,...o.templateProps,token:o.token}:o.filterType===B.TAKEN_CORNERS?x.value={...w,...o.templateProps,takenCornersFilters:o.filters||[]}:o.filterType===B.HOW_WAS_CORNER?x.value={...v,...o.templateProps,howWasCornerFilters:o.filters||Ds}:o.filterType===B.ZONE?x.value={...q,...o.templateProps,zoneFilters:o.filters||[...Ea]}:o.filterType===B.WHAT_HAPPENED&&(x.value={...A,...o.templateProps,whatHappenedFilters:o.filters||[...Ws]});x.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(x.value.width="100%",x.value.maxWidth="100%")}),e.watch(G,_=>{_||a("close",Q.value)}),e.watch(Y,_=>{_||a("close",Q.value)});function E(_){J.value=_}function T(){o.isExpansionPanel?Y.value=!1:G.value=!1,a("apply",Q.value)}function O(){if(o.filterType===B.PRODUCTIVITY)return o.isFromTemplates?"Tipos de jugadas":"Características de juego";if(o.filterType===B.PLAYS)return"Jugada(s)";if(o.filterType===B.FIELD)return"Zona de cancha";if(o.filterType===B.DETAILS)return"Detalles";if(o.filterType===B.TOURNAMENTS)return"Ligas";if(o.filterType===B.PERSONAL_DATA)return"Datos personales";if(o.filterType===B.PLAYS_TYPES)return"Tipos de jugada";if(o.filterType===B.GOLSTATS)return"Filtros Golstats";if(o.filterType===B.UNIVERSE)return"Universo";if(o.filterType===B.DISTANCE)return"Distancia";if([B.RESULTS,B.RESULTS_BY_TIME].includes(o.filterType))return"Resultados";if(o.filterType===B.GAMES)return"Partidos";if(o.filterType===B.VIDEOS)return"Videos";if(o.filterType===B.TAKEN_CORNERS)return"¿Quién cobró?";if(o.filterType===B.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(o.filterType===B.ZONE)return"Zona";if(o.filterType===B.WHAT_HAPPENED)return"¿Qué sucedió?"}function N(_){x.value.fieldAreas=_,J.value=_.length,$(_)}function W(_){let b=0;_.value&&_.value.statistics&&(_.value.minutesPlayed&&b++,_.value.percentMinutesPlayed&&b++,_.value.lastMonths&&b++,_.value.statistics.totals&&b++,_.value.statistics.averagePerGame&&b++,_.value.statistics.averagePerMinute&&b++),x.value.universe=_.value,J.value=b,$(_.value)}function $(_){Q.value=_,a("update:filters",_)}function U(_){V.value=_}function D(_=null){S.value&&S.value.clearFilters(_),P.value&&P.value.clearFilters(_)}return i({clearFilters:D}),(_,b)=>(e.openBlock(),e.createElementBlock("div",lq,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",rq,[e.createVNode(e.unref(XJ),e.mergeProps(t.expansionPanelProps,{modelValue:Y.value,"onUpdate:modelValue":b[0]||(b[0]=k=>Y.value=k),text:ce.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+o.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",nq,[e.createVNode(Hc,e.mergeProps(x.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateExpansionPanel",ref:P,onChangeFieldAreas:N,onChangeCategoriesSelected:E,onChangeFiltersSelected:E,onChangeUniverseFilters:W,onApply:T,"onUpdate:filters":$,onTotalFilters:U}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",dq,[e.createVNode(e.unref(XH),{modelValue:G.value,"onUpdate:modelValue":b[1]||(b[1]=k=>G.value=k),width:t.width,"left-menu":z.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(DJ,e.mergeProps(t.buttonFilterProps,{text:H.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":J.value,"filters-total":V.value.value,"is-active":G.value,"icon-type":Z.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(Hc,e.mergeProps(x.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateMenu",ref:S,onChangeFieldAreas:N,onChangeCategoriesSelected:E,onChangeFiltersSelected:E,onChangeUniverseFilters:W,"onUpdate:filters":$,onTotalFilters:U,onApply:T}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},Us=re(cq,[["__scopeId","data-v-a8b543ef"]]),pq={class:"dropdown__position"},mq={key:0,class:"label"},hq={class:"selected-item"},qc={__name:"DropdownPositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isLabelVisible:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-positions"],setup(t,{emit:i}){const a=t,o={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),l=e.computed(()=>{const c={...ht};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{c[p]=a.dropdownProps[p]}),c}),r=e.computed(()=>{let c=a.positions&&a.positions.length?[...a.positions]:[];const p=c[0];return(!p||p.id!==0)&&c.unshift(o),c.sort((y,m)=>y.id-m.id),c});e.watch(r,c=>{const p=c.filter(y=>y.isSelected);p.length===r.value.length-1&&(c[0].isSelected=!0),c[0]&&c[0].isSelected?s.value="Todas las posiciones":p.length===1?s.value=p[0].name:s.value=`${p.length} seleccionadas`,i("change-positions",c)},{immediate:!0,deep:!0});function n(c,p){p.id===0?r.value.forEach(y=>{y.isSelected=c}):(p.isSelected=c,r.value[0].isSelected=r.value.every((y,m)=>m===0?!0:y.isSelected))}return(c,p)=>(e.openBlock(),e.createElementBlock("div",pq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",mq,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps(l.value,{"is-multiple-option":"",items:r.value,arrowWidth:"10"}),{default:e.withCtx(()=>[e.createElementVNode("div",hq,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(s.value),1)],64))])]),availableItem:e.withCtx(({item:y})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":y.isSelected,label:t.isFemale?y.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):y.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":m=>n(m,y)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},uq={class:"dropdown-years"},fq={key:0,class:"label"},yq={class:"selected-item"},Yc={__name:"DropdownYears",props:{years:{type:Array,default:()=>[]},selectedYear:{type:[Number,String],default:0},hasNoLimitOption:{type:Boolean,default:!0},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-year"],setup(t,{emit:i}){const a=t,o=e.computed(()=>{const r={...ht};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(n=>{r[n]=a.dropdownProps[n]}),r}),s=e.computed(()=>a.hasNoLimitOption?["Sin límite",...a.years]:a.years);function l(r){i("change-year",r)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",uq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",fq,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps({"model-value":t.selectedYear,arrowWidth:"10"},o.value,{items:s.value,"onUpdate:modelValue":l}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",yq,e.toDisplayString(c),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c),1)]),_:1},16,["model-value","items"])]))}},gq=t=>(e.pushScopeId("data-v-8bd3ce77"),t=t(),e.popScopeId(),t),_q={class:"dropdown-templates"},bq={key:0,class:"label"},Sq={class:"selected-item"},Cq={class:"item"},wq={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kq=gq(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1)),Eq=[kq],Vq={__name:"DropdownTemplates",props:{dropdownProps:{type:Object,default:()=>null},selectedTemplate:{type:Object,default:()=>{}},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},teamId:{type:Number,default:0}},emits:["change-template"],setup(t,{emit:i}){const a=t,o=e.ref([]),s=e.ref(null),l=e.computed(()=>{const c={...ht};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{c[p]=a.dropdownProps[p]}),c});e.watch(()=>a.teamId,c=>{c&&n()},{immediate:!0});function r(c){s.value=c,i("change-template",c)}async function n(){try{const c=await Pt.get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${a.teamId}/templates`,{headers:{Authorization:a.token}});o.value=c.data&&c.data.data?c.data.data:[]}catch(c){console.error("Error filling templates: ",c)}}return n(),(c,p)=>(e.openBlock(),e.createElementBlock("div",_q,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",bq,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps({"model-value":t.selectedTemplate},l.value,{items:o.value,"arrow-width":"10",onInput:r}),{default:e.withCtx(({selectedItem:y})=>[e.createElementVNode("div",Sq,e.toDisplayString(y.name),1)]),availableItem:e.withCtx(({item:y})=>[e.createElementVNode("div",Cq,[e.createElementVNode("div",null,e.toDisplayString(y.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",wq,Eq,512)),[[e.vShow,s.value.name===y.name]])])]),_:1},16,["model-value","items"])]))}},Tq=re(Vq,[["__scopeId","data-v-8bd3ce77"]]);function Gs(){return{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!1}}function Zc(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!0}}function Nq(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 0px",textFontFamily:"'Poppins-Regular'"}}const Ii="/group-427321501.svg",Kc="/shape.svg",xq="_filtersContainer_b9wc6_1",Bq="_filtersContainer1232_b9wc6_1",Fq="_closeFiltersPc_b9wc6_1",Pq="_textleyemdmultipleleagues_b9wc6_1",zq="_textleyemdmultipleleagues380_b9wc6_1",$q="_filtersContainer760_b9wc6_1",Aq="_filtersContainer460_b9wc6_1",Iq="_containerSectionPlay_b9wc6_1",Mq="_containerSectionPlay1232_b9wc6_1",Lq="_containerSectionPlay960_b9wc6_1",Rq="_containerSectionPlay320_b9wc6_1",Oq="_containerSectionPlay350_b9wc6_1",Dq="_containerSection_b9wc6_1",jq="_containerSection1232_b9wc6_1",Wq="_containerSection960_b9wc6_1",vq="_containerSection320_b9wc6_1",Uq="_containerSection350_b9wc6_1",Gq="_templateLosMejores_b9wc6_1",Hq="_templateLosMejores1232_b9wc6_1",Jq="_templateLosMejores960_b9wc6_1",qq="_templateLosMejores420_b9wc6_1",Yq="_templateLosMejores320_b9wc6_1",Zq="_templateLosMejores540_b9wc6_1",Kq="_templateLosMejores350_b9wc6_1",Xq="_topFiltersParent_b9wc6_1",Qq="_topFiltersParent1232_b9wc6_1",eY="_topFiltersParent960_b9wc6_1",tY="_topFiltersParent460_b9wc6_1",aY="_topFiltersParent420_b9wc6_1",iY="_containerTheBest_b9wc6_1",oY="_containerTheBest1232_b9wc6_1",sY="_containerTheBest960_b9wc6_1",lY="_containerTheBest320_b9wc6_1",rY="_titleSection_b9wc6_1",nY="_titleSection540_b9wc6_1",dY="_containerTables_b9wc6_1",cY="_containerTables960_b9wc6_1",pY="_containerTables760_b9wc6_1",mY="_containerTables320_b9wc6_1",hY="_toniKroosWrapper_b9wc6_1",uY="_toniKroosWrapper1080_b9wc6_1",fY="_toniKroosWrapper975_b9wc6_1",yY="_toniKroosWrapper760_b9wc6_1",gY="_toniKroosWrapper420_b9wc6_1",_Y="_toniKroosWrapper320_b9wc6_1",bY="_frameChild_b9wc6_1",SY="_filtros_b9wc6_1",CY="_groupParent_b9wc6_1",wY="_shapeIcon_b9wc6_1",kY="_btnFilters_b9wc6_1",EY="_btnFiltersPC_b9wc6_1",VY="_quitarFiltros_b9wc6_1",TY="_quitarFiltros730_b9wc6_1",NY="_quitarFiltros480_b9wc6_1",xY="_quitarFiltros380_b9wc6_1",BY="_btnCloseFilters_b9wc6_1",FY="_mejoresJugadores_b9wc6_1",PY="_mejoresJugadores730_b9wc6_1",zY="_mejoresJugadores480_b9wc6_1",$Y="_mejoresJugadoresSM_b9wc6_1",AY="_toniKroos_b9wc6_1",IY="_teamBar_b9wc6_1",MY="_menuSection_b9wc6_1",LY="_menuSection960_b9wc6_1",RY="_menuSectionPlay_b9wc6_1",OY="_menuSectionPlay960_b9wc6_1",DY="_containerMenu_b9wc6_1",jY="_containerMenu760_b9wc6_1",WY="_containerFilters_b9wc6_1",vY="_teamBarParent_b9wc6_1",UY="_topFilters_b9wc6_1",GY="_topFilters1232_b9wc6_1",HY="_topFilters420_b9wc6_1",JY="_topFilters460_b9wc6_1",qY="_losMejores_b9wc6_1",YY="_losMejores380_b9wc6_1",ZY="_losMejores530_b9wc6_1",KY="_losMejores730_b9wc6_1",XY="_menuSectionHeader_b9wc6_1",QY="_menuSectionHeader1232_b9wc6_1",eZ="_menuSectionHeader960_b9wc6_1",tZ="_menuSectionHeader730_b9wc6_1",aZ="_dropdown_b9wc6_1",iZ="_dropdown730_b9wc6_1",oZ="_dropdown1_b9wc6_1",sZ="_dropdown1730_b9wc6_1",lZ="_dropdownParent_b9wc6_1",rZ="_dropdownParent730_b9wc6_1",nZ="_menuSectionParentHeader_b9wc6_1",dZ="_menuSectionParentHeader1232_b9wc6_1",cZ="_menuSectionParentHeader960_b9wc6_1",pZ="_menuSectionParentHeader730_b9wc6_1",mZ="_menuSectionParentHeader430_b9wc6_1",hZ="_descubreVideos_b9wc6_1",uZ="_descubreVideos1232_b9wc6_1",fZ="_descubreVideos960_b9wc6_1",yZ="_allCategories_b9wc6_1",gZ="_containerScountingBtn_b9wc6_3",_Z="_btnDeleteAplica_b9wc6_13",bZ="_SearchBtnBar_b9wc6_33",SZ="_btnLeyendTxt_b9wc6_52",CZ="_BtnSearchScounting_b9wc6_61",wZ="_containerPredefined_b9wc6_85",kZ="_containerPredefinedScounting_b9wc6_92",EZ="_titleContainerPredefined_b9wc6_100",VZ="_subtitleContainerPredefined_b9wc6_111",TZ={filtersContainer:xq,filtersContainer1232:Bq,closeFiltersPc:Fq,textleyemdmultipleleagues:Pq,textleyemdmultipleleagues380:zq,filtersContainer760:$q,filtersContainer460:Aq,containerSectionPlay:Iq,containerSectionPlay1232:Mq,containerSectionPlay960:Lq,containerSectionPlay320:Rq,containerSectionPlay350:Oq,containerSection:Dq,containerSection1232:jq,containerSection960:Wq,containerSection320:vq,containerSection350:Uq,templateLosMejores:Gq,templateLosMejores1232:Hq,templateLosMejores960:Jq,templateLosMejores420:qq,templateLosMejores320:Yq,templateLosMejores540:Zq,templateLosMejores350:Kq,topFiltersParent:Xq,topFiltersParent1232:Qq,topFiltersParent960:eY,topFiltersParent460:tY,topFiltersParent420:aY,containerTheBest:iY,containerTheBest1232:oY,containerTheBest960:sY,containerTheBest320:lY,titleSection:rY,titleSection540:nY,containerTables:dY,containerTables960:cY,containerTables760:pY,containerTables320:mY,toniKroosWrapper:hY,toniKroosWrapper1080:uY,toniKroosWrapper975:fY,toniKroosWrapper760:yY,toniKroosWrapper420:gY,toniKroosWrapper320:_Y,frameChild:bY,filtros:SY,groupParent:CY,shapeIcon:wY,btnFilters:kY,btnFiltersPC:EY,quitarFiltros:VY,quitarFiltros730:TY,quitarFiltros480:NY,quitarFiltros380:xY,btnCloseFilters:BY,mejoresJugadores:FY,mejoresJugadores730:PY,mejoresJugadores480:zY,mejoresJugadoresSM:$Y,toniKroos:AY,teamBar:IY,menuSection:MY,menuSection960:LY,menuSectionPlay:RY,menuSectionPlay960:OY,containerMenu:DY,containerMenu760:jY,containerFilters:WY,teamBarParent:vY,topFilters:UY,topFilters1232:GY,topFilters420:HY,topFilters460:JY,losMejores:qY,losMejores380:YY,losMejores530:ZY,losMejores730:KY,menuSectionHeader:XY,menuSectionHeader1232:QY,menuSectionHeader960:eZ,menuSectionHeader730:tZ,dropdown:aZ,dropdown730:iZ,dropdown1:oZ,dropdown1730:sZ,dropdownParent:lZ,dropdownParent730:rZ,menuSectionParentHeader:nZ,menuSectionParentHeader1232:dZ,menuSectionParentHeader960:cZ,menuSectionParentHeader730:pZ,menuSectionParentHeader430:mZ,descubreVideos:hZ,descubreVideos1232:uZ,descubreVideos960:fZ,allCategories:yZ,containerScountingBtn:gZ,btnDeleteAplica:_Z,SearchBtnBar:bZ,btnLeyendTxt:SZ,BtnSearchScounting:CZ,containerPredefined:wZ,containerPredefinedScounting:kZ,titleContainerPredefined:EZ,subtitleContainerPredefined:VZ},NZ=e.ref(Gs()),xZ={components:{GSCTableHeader:Qo,GscSwitchComponent:us,GSCFilterperteam:ud,GSCFilters:Us,GSCExpandedInfo:ns,GSCLabel:xd,GSCSeasonSelect:ed,GSCTopCategory:iA,GSCTournamentSelect:id,GSCRowTable:as},computed:{...Kn.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},i=JSON.stringify(t);if(JSON.stringify(this.filters)!=i)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...NZ.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Oe(t);return{myDivRefTopsFull:t,elementSize:i}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],fvTypeStats:"totals",seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,teamselect:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:B,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilterAux(){this.resetPredefinedTeamAll()},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(oe.All),i.clearFilters(oe.AGE_RANGE),i.clearFilters(oe.YEAR),i.clearFilters(oe.NATIONALITY),i.clearFilters(oe.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,elegible:this.FVeligible,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.isSelection?(this.detailsObjectSelection.gameSections[0].isSelected=!0,this.detailsObjectSelection.gameSections[1].isSelected=!0,this.detailsObjectSelection.gameSections[2].isSelected=!0,this.detailsObjectSelection.gameSections[3].isSelected=!0,this.detailsObjectSelection.gameSections[4].isSelected=!0,this.detailsObjectSelection.gameSections[5].isSelected=!0):(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0),this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.isSelection?(this.detailsObjectSelection.playingAs[0].isSelected=!0,this.detailsObjectSelection.playingAs[1].isSelected=!0):(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0),this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY)),t=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.POSITION)),t=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(oe.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(oe.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(i!=-1?this.arrayFiltersPlays[i].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(oe.All),a.clearFilters(oe.AGE_RANGE),a.clearFilters(oe.YEAR),a.clearFilters(oe.NATIONALITY),a.clearFilters(oe.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange&&(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h]);var l=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}else if(this.FVeligible=!1,t.hasOwnProperty("nationalities")){let h=0;this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let d=0;d<t.nationalities.length;d++)t.nationalities[d].isSelected&&(this.fVnationalities.add(t.nationalities[d].id),h++);if(h===t.nationalities.length){var l=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}}if(t.hasOwnProperty("nationalities")&&!this.FVeligible&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}if(t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;if(t.hasOwnProperty("positions")){let h=0;for(let d=0;d<t.positions.length;d++)t.positions[d].isSelected&&(this.fVsetPositionsIds.push(t.positions[d].id),h++);if(h===t.positions.length){var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPosition");r!==-1&&this.arrayFiltersPlays.splice(r,1)}}if(t.hasOwnProperty("nationalities"))var n=t.nationalities.filter(h=>h.isSelected===!0);var c=t.positions.filter(h=>h.isSelected===!0);if(c.length==1&&(o=c[0].name),t.hasOwnProperty("nationalities")&&n.length==1&&(s=n[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");p!=-1?this.arrayFiltersPlays[p].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var p=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersElegibility");p!=-1&&this.arrayFiltersPlays.splice(p,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPosition");r!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[r].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(r,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");y!=-1?this.arrayFiltersPlays[y].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.ageLimits&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var m=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");m!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[m].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var m=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersAge");m!=-1&&this.arrayFiltersPlays.splice(m,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.categoriesPlaysTypes={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},this.detailsObject={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},this.detailsObjectSelection={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.onClickDeleteFilterAux(),this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){if(this.isSelection){if(this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,t=="Más productivos"){this.optionSelected="Scouting",this.resetFilter(),this.resetLeagues(),this.filterScounting.nationalities=[138],this.filterScounting.last_months=6,this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}else this.optionSelected="Jugadores",this.typeTable=0,this.isTeam=!1,this.resetFilterTeamAndPlayers(),this.resetScouting(),await this.loadPreloadedTops();this.optionSelectedSubmenu=t}else t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=ue.create({headers:{Authorization:`${this.token}`}}),{data:a}=await i.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var i="";t.id==1?i=this.urlFilter:i=this.urlFilter;const a=ue.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=o[0].match_lapse_combinations[m]}),Object.keys(o[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=o[0].playing_as_combinations[m]}),Object.keys(o[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=o[0].field_sections_combinations[m]}),o[0]){for(let m=0;m<o[0].filter_records.length;m++){var s=o[0].description;if(o[0].filter_records[m].field_sections!==void 0){const d=o[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[d]||this.predefinedFiltersSections[d]=="")&&(this.predefinedFiltersSections[d]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[d]):s=s.replace("{field_sections}",this.predefinedFiltersSections[d]))}if(o[0].filter_records[m].match_lapse!==void 0){const d=o[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[d]||this.predefinedFiltersMatchLapse[d]=="")&&(this.predefinedFiltersMatchLapse[d]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[d]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[d]))}if(o[0].filter_records[m].playing_as!==void 0){const d=o[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[d]))}o[0].filter_records[m].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[m].match_result,playingAs:o[0].filter_records[m].playing_as,sections:o[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var n=0,c=new Set,p={},y=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;h++)c.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[h]);p.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),p.setNationalitiesIds=c;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,this.optionSelected=="Equipos"&&(this.tournamentSelectedObj.is_female?y=y.replace(/Jugadoras/g,"Equipos"):y=y.replace(/Jugadores/g,"Equipos")),p.setNationalitiesIds=[],r.push({id:m+1,name:y,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((y,m)=>y-m).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=c.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let y=1;y<=p.length;y++)y%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const c=a.get(r[0])||{};return{id:c.id,name:c.name,img:c.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var c,p,y,m,h,d,f,u,g,C;const w=o.get(r[0])||{};return{age:w.numberAge,categoryName:s.name,country:(p=(c=w.countryId)==null?void 0:c[0])==null?void 0:p.nationality_id,date:w.date,effectiveness:w.effectiveness||0,games:w.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:w.min,name:w.stringFullName,name_short:w.stringFullName,nationality:w.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(m=(y=w.countryId)==null?void 0:y[0])==null?void 0:m.nationality_id}.jpg`,position:w.position_short,positionId:w.numberPositionId,positionfull:this.positions[w.numberPositionId-1],team:((d=(h=w.teamName)==null?void 0:h[0])==null?void 0:d.acronym)||"",teamid:((u=(f=w.teamName)==null?void 0:f[0])==null?void 0:u.team_id)||"",teamname:((C=(g=w.teamName)==null?void 0:g[0])==null?void 0:C.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=ue.create({headers:{Authorization:`${this.token}`}}),i=this.isSelection?`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20&nat=138`:`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=ue.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${i}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),i=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(i.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadPreloadedTops();const t=await ue.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(t){throw new Error(t)}}},BZ={ref:"myDivRefTopsFull"},FZ={key:0,class:"overlay-loading"},PZ=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),zZ=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),$Z=[PZ,zZ],AZ=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),IZ=[AZ],MZ={key:0,class:"cont-leyemd-multipleleagues"},LZ=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),RZ={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},OZ={key:0,style:{"margin-left":"10px"}},DZ=e.createElementVNode("span",null,"Todas las categorías",-1),jZ=[DZ],WZ=e.createElementVNode("span",null,"Tipo de Jugada",-1),vZ=e.createElementVNode("span",null,"Filtro GolStats",-1),UZ={key:3,style:{width:"100%",height:"295px"}};function GZ(t,i,a,o,s,l){const r=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),c=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCFilterperteam"),y=e.resolveComponent("GSCFilters"),m=e.resolveComponent("GSCLabel"),h=e.resolveComponent("GSCTopCategory"),d=e.resolveComponent("GSCTableHeader"),f=e.resolveComponent("GSCRowTable"),u=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",BZ,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",FZ,$Z)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(c,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(p,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...g)=>l.clickOpenFilters&&l.clickOpenFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 15px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...g)=>l.clickCloseFilters&&l.clickCloseFilters(...g))},IZ,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(c,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(c,{key:2,type:2,buttons:["Todas las jugadas","Más productivos"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:Kc},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isSelection?(e.openBlock(),e.createBlock(y,e.mergeProps({key:0,"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:a.isSelection?s.detailsObjectSelection:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"?(e.openBlock(),e.createBlock(y,e.mergeProps({key:1,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","is-seleccion","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[4]||(i[4]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",MZ,[LZ,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(p,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",RZ," 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",OZ,[e.createVNode(m,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(g,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,style:{"margin-left":"10px"}},[e.createVNode(m,{"text-value":g.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:g.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(g=>g.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[5]||(i[5]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},jZ,2))],64)):e.createCommentVNode("",!0)],2),s.seasonActive!=0||a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.containerTablesClass),id:"container-tables",style:e.normalizeStyle(s.showFullTable?"gap: 0px!important;":"")},[s.optionSelected!=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelectedSubmenu=="Todas las jugadas"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.categoriesDefault,(g,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(h,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[g.id],"border-radius":"12px","filters-prop":l.filterChange,category:g.id,"type-table":s.typeTable,categoryName:g.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded},null,8,["is-female","is-team","type-stats","is-selection","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":a.isSelection,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[WZ,e.createTextVNode(" y un "),vZ,e.createTextVNode(" en la")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("que has seleccionado.")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("parte superior.")],64)):e.createCommentVNode("",!0)],2)],2))],64))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefinedScounting),style:e.normalizeStyle(s.rowScoutingData.length>0?"height: auto;":"")},[s.loadingActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.rowScoutingData.length>0?(e.openBlock(),e.createBlock(d,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:C},[s.teamselectrec==0||s.teamselectrec==g.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{type:2,"is-expanded":s.playerexpand==g.id&&s.expand,onMediadata:l.setMediaData,data:{position:g.position,player_name:g.player_name,player_photo:g.player_photo,total:g.total,id:g.id,player_age:g.player_age,team_abrev:g.team_abrev,team_logo:g.team_logo,player_position:s.positions[g.player_position-1].fullname,player_country_flag:g.player_country_flag,player_games:g.player_games,player_min:g.player_min,league_name:g.league_name,seasons:g.seasons,season_id:g.season_id},height:"71px",background:C%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==g.id?(e.openBlock(),e.createBlock(u,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:g.team_name,age:g.player_age,dataofbirth:g.date,nationality:g.nationality_name,countryFlag:g.player_country_flag,position:s.positions[g.player_position-1].name,games:g.player_games,min:g.player_min,goals:g.total,effectiveness:"-",category:"total",id:g.id},onViewprofile:w=>l.viewprofile(w,g.season_id,g.team_id),background:C%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[6]||(i[6]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[7]||(i[7]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",UZ)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const HZ={$style:TZ},JZ=Ce(xZ,[["render",GZ],["__cssModules",HZ]]),Hs={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Xc=()=>{e.useCssVars(t=>({69653168:t.backgroundColor,ca69336e:t.widthCircle,"145c8724":t.heightCircle}))},Qc=Hs.setup;Hs.setup=Qc?(t,i)=>(Xc(),Qc(t,i)):Xc;const qZ=["width","src"],YZ=["checked"],ZZ=["width","src"];function KZ(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(l.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["text-left",{inactive:s.OptionDefault}])},e.toDisplayString(a.textOptionLeft),3)):e.createCommentVNode("",!0),a.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA,class:e.normalizeClass({inactive:s.OptionDefault})},null,10,qZ)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>l.handleSwitchChange&&l.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,YZ),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([l.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB,class:e.normalizeClass({inactive:!s.OptionDefault})},null,10,ZZ)):e.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["text-right",{inactive:!s.OptionDefault}])},e.toDisplayString(a.textOptionRight),3)):e.createCommentVNode("",!0)],4)}const XZ=Ce(Hs,[["render",KZ],["__scopeId","data-v-473fe73b"]]),QZ={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},listId:{type:Number,required:!0},player:{type:Object,required:!0}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref(new Set),s=e.ref(""),l=e.ref([]),r=e.ref(!1),n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=e.ref(null),p=u=>{document.body.style.overflow=u?"hidden":"auto"},y=()=>{o.value.clear(),s.value="",c.value=null,l.value=[]},m=()=>{y(),i("close")},h=()=>{s.value=""},d=async()=>{if(t.userId){r.value=!0;try{const u=await ue.create({headers:{Authorization:`${n}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`);l.value=u.data.data}catch(u){console.error("Error al obtener las listas:",u)}finally{r.value=!1}}};e.watch(()=>t.isVisible,u=>{p(u),u&&t.userId&&d()}),e.watch(()=>t.userId,u=>{u&&t.isVisible&&d()}),e.onMounted(()=>{t.isVisible&&p(!0)}),e.onUnmounted(()=>{p(!1)});const f=e.computed(()=>{if(!s.value)return l.value;const u=s.value.toLowerCase();return l.value.filter(g=>g.name.toLowerCase().includes(u))});return{modalContent:a,selectedPlayers:o,searchQuery:s,closeModal:m,clearSearch:h,playlists:l,isLoading:r,filteredPlaylists:f,selectedPlaylist:c,handlePlaylistSelection:u=>{c.value=u},handleCreatePlaylist:async()=>{if(c.value)try{const u=ue.create({headers:{Authorization:`${n}`}}),g={user_id:t.userId,id:c.value,players:[t.player]};await u.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${c.value}/players`,g),m()}catch(u){console.error("Error al guardar el jugador en la lista:",u)}},handleCreateListClick:()=>{i("create-list"),y()}}}},ft=t=>(e.pushScopeId("data-v-3041d1a9"),t=t(),e.popScopeId(),t),eK={class:"modal-header"},tK=ft(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Agregar a lista")],-1)),aK=ft(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),iK=[aK],oK={class:"modal-body"},sK={class:"search-section"},lK={class:"search-container"},rK={class:"search-input"},nK=ft(()=>e.createElementVNode("svg",{class:"search-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M15.25 15.25L11.8855 11.8795L15.25 15.25ZM13.75 7.375C13.75 9.06576 13.0784 10.6873 11.8828 11.8828C10.6873 13.0784 9.06576 13.75 7.375 13.75C5.68424 13.75 4.06274 13.0784 2.86719 11.8828C1.67165 10.6873 1 9.06576 1 7.375C1 5.68424 1.67165 4.06274 2.86719 2.86719C4.06274 1.67165 5.68424 1 7.375 1C9.06576 1 10.6873 1.67165 11.8828 2.86719C13.0784 4.06274 13.75 5.68424 13.75 7.375V7.375Z",stroke:"white","stroke-opacity":"0.43","stroke-width":"1.5","stroke-linecap":"round"})],-1)),dK=ft(()=>e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)),cK=[dK],pK=ft(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),mK={class:"players-table-container"},hK={class:"players-table"},uK={key:0,class:"loading-message"},fK={key:1,class:"empty-message"},yK={class:"checkbox-container"},gK=["id","checked","onChange"],_K=ft(()=>e.createElementVNode("div",{class:"folder-icon"},[e.createElementVNode("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18 2H10L8 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V4C20 2.9 19.1 2 18 2Z",fill:"#ffffff","fill-opacity":"0.3"})])],-1)),bK={class:"list-content"},SK={class:"title"},CK={class:"subtitle"},wK={class:"modal-footer"},kK={class:"buttons-container buttons-container-step2"},EK=ft(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),VK=ft(()=>e.createElementVNode("span",null,"Crear nueva lista",-1)),TK=[EK,VK],NK={class:"right-buttons"},xK=["disabled"];function BK(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[8]||(i[8]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[7]||(i[7]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",eK,[tK,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},iK)]),e.createElementVNode("div",oK,[e.createElementVNode("div",sK,[e.createElementVNode("div",lK,[e.createElementVNode("div",rK,[nK,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.searchQuery=r),type:"text",placeholder:"Buscar lista..."},null,512),[[e.vModelText,o.searchQuery]]),o.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:i[2]||(i[2]=(...r)=>o.clearSearch&&o.clearSearch(...r))},cK)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"crear-playlist",onClick:i[3]||(i[3]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},[pK,e.createTextVNode(" Crear nueva lista ")])])]),e.createElementVNode("div",mK,[e.createElementVNode("div",hK,[o.isLoading?(e.openBlock(),e.createElementBlock("div",uK," Cargando listas... ")):o.filteredPlaylists.length===0?(e.openBlock(),e.createElementBlock("div",fK," No hay listas disponibles ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(o.filteredPlaylists,r=>{var n;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"list-item"},[e.createElementVNode("div",yK,[e.createElementVNode("input",{type:"checkbox",id:r.id,checked:o.selectedPlaylist===r.id,onChange:c=>o.handlePlaylistSelection(r.id)},null,40,gK)]),_K,e.createElementVNode("div",bK,[e.createElementVNode("div",SK,e.toDisplayString(r==null?void 0:r.name),1),e.createElementVNode("div",CK,e.toDisplayString((n=r==null?void 0:r.template)==null?void 0:n.name),1)])])}),128))])])]),e.createElementVNode("div",wK,[e.createElementVNode("div",kK,[e.createElementVNode("button",{class:"create-list-link",onClick:i[4]||(i[4]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},TK),e.createElementVNode("div",NK,[e.createElementVNode("button",{class:"cancelar",onClick:i[5]||(i[5]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[6]||(i[6]=(...r)=>o.handleCreatePlaylist&&o.handleCreatePlaylist(...r)),disabled:!o.selectedPlaylist}," Guardar ",8,xK)])])])],512)])):e.createCommentVNode("",!0)]),_:1})}const FK=Ce(QZ,[["render",BK],["__scopeId","data-v-3041d1a9"]]),PK={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},player:{type:Object,required:!0},templates:{type:Array,default:()=>[]}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref({title:"",templateId:""}),s=e.ref(0),l=()=>{a.value&&(s.value=a.value.offsetWidth)},r=m=>{document.body.style.overflow=m?"hidden":"auto"},n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=()=>{l(),t.isVisible&&r(!0)},p=()=>{o.value={title:"",templateId:""},i("close")},y=async()=>{if(!(!o.value.title||!o.value.templateId))try{const m=t.templates.find(f=>f.id===o.value.templateId),h={user_id:t.userId,name:o.value.title,template:m,players:[t.player]},d=await ue.create({headers:{Authorization:`${n}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,h);p()}catch(m){console.error("Error al crear la lista:",m)}};return e.onMounted(()=>{window.addEventListener("resize",c)}),e.onUnmounted(()=>{window.removeEventListener("resize",c),r(!1)}),e.watch(()=>t.isVisible,m=>{m?(setTimeout(l,0),r(!0)):r(!1)}),e.watch(()=>t.listData,m=>{m&&(m.name&&(o.value.title=m.name),m.template&&(o.value.templateId=Number(m.template)))},{immediate:!0}),{modalContent:a,playlistData:o,modalWidth:s,closeModal:p,handleNext:y}}},Js=t=>(e.pushScopeId("data-v-180b78dc"),t=t(),e.popScopeId(),t),zK={class:"modal-header"},$K=Js(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Crear lista")],-1)),AK=Js(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),IK=[AK],MK={class:"modal-body"},LK=Js(()=>e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una plantilla",-1)),RK=["value"],OK={class:"modal-footer"},DK={class:"buttons-container buttons-container-step1"},jK=["disabled"];function WK(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[6]||(i[6]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[5]||(i[5]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",zK,[$K,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},IK)]),e.createElementVNode("div",MK,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.playlistData.title=r),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,o.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":i[2]||(i[2]=r=>o.playlistData.templateId=r),class:"select-position"},[LK,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.templates,r=>(e.openBlock(),e.createElementBlock("option",{key:r.id,value:r.id},e.toDisplayString(r.name),9,RK))),128))],512),[[e.vModelSelect,o.playlistData.templateId]])]),e.createElementVNode("div",OK,[e.createElementVNode("div",DK,[e.createElementVNode("button",{class:"cancelar",onClick:i[3]||(i[3]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[4]||(i[4]=(...r)=>o.handleNext&&o.handleNext(...r)),disabled:!o.playlistData.title||!o.playlistData.templateId}," Guardar ",8,jK)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const vK=Ce(PK,[["render",WK],["__scopeId","data-v-180b78dc"]]),UK=[{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}]}],GK=[{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}]}],HK=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},JK={key:1},qK={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},YK=["fill"],ZK={key:0,class:"checkbox__teams"},KK={class:"checkbox__teams__logo"},XK=["src"],QK={class:"checkbox__teams__logo"},eX=["src"],tX={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(t){return["left","right","top","bottom"].includes(t)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function c(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",JK,[(e.openBlock(),e.createElementBlock("svg",qK,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:t.boxValueColor},null,8,YK)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",ZK,[e.createElementVNode("div",KK,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,XK)]),e.createElementVNode("div",QK,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,eX)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},aX=HK(tX,[["__scopeId","data-v-b6f124d8"]]),iX=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},qs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ep=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},tp=qs.setup;qs.setup=tp?(t,i)=>(ep(),tp(t,i)):ep;const oX=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),sX=["src"],lX={key:1,class:"text"},rX=["src"],nX={class:"stats"},dX=oX(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),cX={class:"numstats"},pX={class:"leyend"};function mX(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,sX)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",lX,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,rX)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",nX,[dX,e.createElementVNode("div",cX,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",pX,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const hX=iX(qs,[["render",mX],["__scopeId","data-v-f3ee6b2b"]]),ap=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},uX=t=>(e.pushScopeId("data-v-d03b93c8"),t=t(),e.popScopeId(),t),fX={key:0,class:"overlay"},yX=uX(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),gX=["onClick"],_X={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(null),r=e.ref(0);e.ref(!1);const n=e.computed(()=>{const h=o.availablePlayers[0];return h?h.stats:[]}),c=e.computed(()=>{const h=`repeat(${n.value.length}, max-content) 36px`;let d="";return r.value>0&&document.querySelectorAll(".column-title-2").forEach(f=>{d+=`${f.offsetWidth}px `}),{"--grid-template-columns":h,"--grid-template-columns-totals":d||h}});function p(){s.value=new ResizeObserver(h=>{for(const d of h){const{width:f}=d.contentRect;r.value=f}}),s.value.observe(l.value)}function y(h,d){const f=document.querySelectorAll(".scrollable-row-totals")[h+1];f&&(f.style.marginTop=`${d}px`)}function m({player:h,stat:d}){!d.total||d==="0%"||!d.seasons||!d.seasons.length||a("open-media",{...h,stat:d})}return e.onMounted(()=>{p()}),i({setMarginTopDetails:y}),(h,d)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(c.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",fX)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:l,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,f=>(e.openBlock(),e.createElementBlock("div",{key:`t-${f.category_id}`,class:"column-title-2"},e.toDisplayString(f.name),1))),128)),yX],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${f.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.stats,g=>(e.openBlock(),e.createElementBlock("div",{key:g.category_id,class:e.normalizeClass(["row data-info",{odd:u%2!==0,underline:!!g.total&&g.total!=="0%"&&g.seasons&&g.seasons.length}]),onClick:C=>m({player:f,stat:g})},e.toDisplayString(g.total),11,gX))),128))]))),128))],4))}},bX=ap(_X,[["__scopeId","data-v-d03b93c8"]]),Fe=t=>(e.pushScopeId("data-v-378d650a"),t=t(),e.popScopeId(),t),SX={class:"table__static-column"},CX=Fe(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),wX={class:"container"},kX={class:"details-row__info"},EX={class:"details-row__info__personal"},VX={class:"bold"},TX={class:"bold"},NX={class:"bold"},xX={class:"bold"},BX={class:"details-row__info__games"},FX={class:"bold"},PX={class:"bold"},zX=["onClick"],$X=Fe(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),AX=Fe(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),IX=[$X,AX],MX=["onClick"],LX=Fe(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),RX=Fe(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),OX=[LX,RX],DX=["onClick"],jX=Fe(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),WX=Fe(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),vX=[jX,WX],UX=["onClick"],GX=Fe(()=>e.createElementVNode("div",null,"Ver perfil",-1)),HX=[GX],JX={class:"static-row__info-player"},qX={class:"position"},YX=["onClick"],ZX=Fe(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),KX=Fe(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),XX=Fe(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),QX=[ZX,KX,XX],eQ=["onClick"],tQ=Fe(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),aQ=Fe(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),iQ=Fe(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),oQ=[tQ,aQ,iQ],sQ={class:"player-photo"},lQ=["src"],rQ={class:"player-name"},nQ={class:"arrow"},dQ=["onClick"],cQ=Fe(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),pQ=[cQ],mQ={class:"table__scrollable-columns"},hQ=e.createStaticVNode('<div class="titles scrollable-row" data-v-378d650a><div class="column-title" data-v-378d650a>Equipo</div><div class="column-title" data-v-378d650a>Posición</div><div class="column-title" data-v-378d650a>Edad</div><div class="column-title" data-v-378d650a>País</div><div class="column-title" data-v-378d650a>Partidos Jugados</div><div class="column-title" data-v-378d650a>Minutos Jugados</div><div class="column-title" data-v-378d650a>Liga</div><div class="column-title" data-v-378d650a>Videos</div><div class="column-title" data-v-378d650a></div></div>',1),uQ={class:"team-logo"},fQ=["src"],yQ={class:"team-name data-info"},gQ=["src"],_Q={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media"],setup(t,{emit:i}){const a=t;let o=null,s=null;const l=e.ref([]),r=e.ref(null),n=e.ref(null),c=e.ref(0),p=e.ref(0),y=e.ref(-1);e.ref(!1);const m=e.ref(null),h=e.computed(()=>({"--width-details":`${c.value}px`,"--gap-static-row":`${d.value?"8px":"18px"}`,"--width-static-column":`${d.value?"50%":"256px"}`})),d=e.computed(()=>c.value<600);e.watch(()=>a.players,V=>{V&&V.length&&(l.value=V.map((x,S)=>{const P=S+1;return{...x,position:P<10?`0${P}`:`${P}`,isSelected:!1,isExpanded:!1,isOdd:S%2!==0,index:S}}))},{immediate:!0}),e.watch(()=>a.isEditMode,V=>{V&&l.value.forEach(x=>{x.isSelected=!1})}),e.watch(p,V=>{const x=document.querySelectorAll(".static-row")[y.value+1];x&&(x.style.marginTop=`${V}px`),a.isGeneral?f(y.value,V):n.value&&n.value.setMarginTopDetails(y.value,V),V===0&&m.value&&J(m.value)});function f(V,x){const S=document.querySelectorAll(".scrollable-row")[V+2];S&&(S.style.marginTop=`${x}px`)}function u(V){const x=V.player||V.objeto_player,S=x?x.player_id||x.id||x.playerId:V.id||V.player_id,P=x?x.team_id||x.teamId:V.team_id||V.teamId,z={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:S?[S]:[],goalkeeperIds:[],teamId:P||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(V.stat&&V.stat.seasons&&V.stat.seasons.length||V.seasons&&V.seasons.length){const H=[...V.stat&&V.stat.seasons&&V.stat.seasons.length?V.stat.seasons:V.seasons];H.sort((Z,ce)=>Z-ce),z.seasonId=H.shift(),z.seasonsIds=H}else(V.season_id||V.seasonId)&&(z.seasonId=V.season_id||V.seasonId);V.stat?V.stat.category_id?z.categoryIds=V.stat.category_id:V.stat.custom_category_id&&(z.customCategoryIds=[V.stat.custom_category_id]):z.categoryIds=w(V.player_position),i("open-media",z)}function g(){o=new ResizeObserver(V=>{for(const x of V)c.value=x.contentRect.width}),o.observe(r.value)}function C(V){s=new ResizeObserver(x=>{for(const S of x)p.value=S.contentRect.height}),s.observe(V)}function w(V){return V==="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 v(V,x){x.isSelected=V;const S=l.value.filter(P=>P.isSelected);i("change-selected-players",S)}function q(V){i("view-profile",V)}function A(V){i("delete-from-list",V)}function G(V){i("add-to-list",V)}function Y(V){i("show-graph",V)}function J(V){if(V.isExpanded){V.isExpanded=!1,m.value=null;return}const x=l.value.find(P=>P.isExpanded);if(x&&(x.isExpanded=!1),x){m.value=V;return}const S=document.querySelectorAll(".details-row")[V.index];y.value=V.index,C(S),V.isExpanded=!0}return e.onMounted(()=>{g()}),(V,x)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:r,style:e.normalizeStyle(h.value)},[e.createElementVNode("div",SX,[CX,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`s-${S.id}`,class:e.normalizeClass(["row static-row",{odd:S.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:S.isOdd}])},[e.createElementVNode("div",wX,[e.createElementVNode("div",kX,[e.createElementVNode("div",EX,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",VX,e.toDisplayString(S.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",TX,e.toDisplayString(S.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",NX,e.toDisplayString(S.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",xX,e.toDisplayString(S.position_name),1)])]),e.createElementVNode("div",BX,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",FX,e.toDisplayString(S.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",PX,e.toDisplayString(S.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(d.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:P=>Y(S)},IX,8,zX),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:P=>A(S)},OX,8,MX)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:P=>G(S)},vX,8,DX)),e.createElementVNode("div",{role:"button",class:"button green",onClick:P=>q(S)},HX,8,UX)],4)])],2),[[e.vShow,S.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(aX),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":S.isSelected,"onUpdate:modelValue":P=>v(P,S)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",JX,[e.createElementVNode("div",qX,e.toDisplayString(S.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:P=>A(S)},QX,8,YX)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:P=>G(S)},oQ,8,eQ)),e.createElementVNode("div",sQ,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:S.player_photo,alt:"player photo"},null,8,lQ)])]),e.createElementVNode("div",rQ,e.toDisplayString(S.player_name),1)]),e.createElementVNode("div",nQ,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:S.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:P=>J(S)},pQ,10,dQ))])],2))),128))]),e.createElementVNode("div",mQ,[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[hQ,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`i-${S.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:S.isOdd}])},[e.createElementVNode("div",uQ,[e.createElementVNode("img",{src:S.team_logo,alt:"team logo"},null,8,fQ)]),e.createElementVNode("div",yQ,e.toDisplayString(S.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createElementVNode("img",{src:S.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,gQ)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createVNode(e.unref(hX),{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:P=>u(S)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(bX,{key:1,ref_key:"scrollColumns",ref:n,"available-players":l.value,"is-edit-mode":t.isEditMode,onOpenMedia:u},null,8,["available-players","is-edit-mode"]))])],4))}},bQ=ap(_Q,[["__scopeId","data-v-378d650a"]]),SQ="_tablePosition_1wx0m_91",CQ="_tablePositionWrapper_1wx0m_123",wQ="_imgHenrryIcon_1wx0m_141",kQ="_americaIcon_1wx0m_157",EQ="_playerPhoto_1wx0m_181",VQ="_toniKroos_1wx0m_199",TQ="_shapeIcon_1wx0m_221",NQ="_menuiconsTeams_1wx0m_233",xQ="_component31_1wx0m_251",BQ="_playerName_1wx0m_273",FQ="_icnPlayIcon_1wx0m_289",PQ="_goles_1wx0m_305",zQ="_americaIcon1_1wx0m_319",$Q="_teamsAmerica_1wx0m_347",AQ="_topAddPlayer_1wx0m_361",IQ="_containerData_1wx0m_369",MQ="_shapeIcon1_1wx0m_385",LQ="_icnExpand1_1wx0m_397",RQ="_icnExpand_1wx0m_397",OQ="_playerData_1wx0m_437",DQ="_playerInfo_1wx0m_459",jQ="_headerTop_1wx0m_489",WQ="_playerRow_1wx0m_517",vQ="_groupsLeague_1wx0m_539",UQ="_text_1wx0m_557",GQ="_btnViewFullList_1wx0m_573",HQ="_headerTops_1wx0m_607",JQ="_btnVideosOptions_1wx0m_751",qQ="_position_1wx0m_1105",YQ="_positionWrapper_1wx0m_1129",ZQ="_imgNecaxaIcon_1wx0m_1145",KQ="_teamLogo_1wx0m_1157",XQ="_teamPhoto_1wx0m_1173",QQ="_name_1wx0m_1189",eee="_icnPlayIconType1_1wx0m_1205",tee="_verVideosType1_1wx0m_1219",aee="_btnVideosOptionsType1_1wx0m_1231",iee="_btnVideosOptions1_1wx0m_1255",oee="_leftContainer_1wx0m_1279",see="_shapeIconType1_1wx0m_1297",lee="_icnExpandType1_1wx0m_1307",ree="_arrowExpand_1wx0m_1327",nee="_containerInfo_1wx0m_1343",dee="_headerTopTeam_1wx0m_1367",cee="_containerHeader_1wx0m_1395",pee="_goles1_1wx0m_1413",mee="_golesType1_1wx0m_1419",hee="_golesWrapper_1wx0m_1429",uee="_btnViewAll_1wx0m_1447",fee="_headerTopsTeams_1wx0m_1481",yee="_arrowExpandIcon_1wx0m_1715",gee="_rotate_1wx0m_1725",_ee={tablePosition:SQ,tablePositionWrapper:CQ,imgHenrryIcon:wQ,americaIcon:kQ,playerPhoto:EQ,toniKroos:VQ,shapeIcon:TQ,menuiconsTeams:NQ,component31:xQ,playerName:BQ,icnPlayIcon:FQ,goles:PQ,americaIcon1:zQ,teamsAmerica:$Q,topAddPlayer:AQ,containerData:IQ,shapeIcon1:MQ,icnExpand1:LQ,icnExpand:RQ,playerData:OQ,playerInfo:DQ,headerTop:jQ,playerRow:WQ,groupsLeague:vQ,text:UQ,btnViewFullList:GQ,headerTops:HQ,btnVideosOptions:JQ,position:qQ,positionWrapper:YQ,imgNecaxaIcon:ZQ,teamLogo:KQ,teamPhoto:XQ,name:QQ,icnPlayIconType1:eee,verVideosType1:tee,btnVideosOptionsType1:aee,btnVideosOptions1:iee,leftContainer:oee,shapeIconType1:see,icnExpandType1:lee,arrowExpand:ree,containerInfo:nee,headerTopTeam:dee,containerHeader:cee,goles1:pee,golesType1:mee,golesWrapper:hee,btnViewAll:uee,headerTopsTeams:fee,arrowExpandIcon:yee,rotate:gee},Ys={components:{GSCButton:yi},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(t){this.$emit("play",t)},clickMore(t){this.$emit("more",t)},clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},clickFav(t){this.$emit("fav",t)},clickEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},ip=()=>{e.useCssVars(t=>({"45cfef00":t.fontSizeTopNum,e0453eba:t.fontFamilyTopNum,"50dc0174":t.fontColorTopNum,"6e214ea8":t.opacityColorTopNum,"530f5520":t.fontColorName,"1ae52c86":t.fontFamilyName,"3999eb5a":t.fontSizeName,"5ac504e3":t.backgroundColorHeader,"4b8dc330":t.fontFamilyCategory,"4f162e4d":t.fontSizeCategory,78954513:t.fontColorCategory,"969a2fd4":t.borderColorCategory}))},op=Ys.setup;Ys.setup=op?(t,i)=>(ip(),op(t,i)):ip;const bee=["src"],See=["src"],Cee=["src"],wee=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),kee=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),Eee=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),Vee=[wee,kee,Eee],Tee=["fill"],Nee=["fill"],xee=["src"],Bee=["fill"],Fee=["fill"];function Pee(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.headerTops)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerRow),id:"player-row"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTop)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerPhoto),id:"container-player-photp"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.tablePositionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.tablePosition)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHenrryIcon),alt:"",src:a.data.photo},null,10,bee),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,See)],2),e.createElementVNode("main",{class:e.normalizeClass(t.$style.playerInfo),id:"container-player-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerName)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.toniKroos)},e.toDisplayString(a.data.name),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createVNode(r,{"icon-size":"12px","icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.clickEventMedia(a.data))},null,8,["icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamsAmerica)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon1),alt:"",src:a.data.logo},null,10,Cee)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.topAddPlayer)},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[1]||(i[1]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},Vee))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:i[2]||(i[2]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Nee)],10,Tee))],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,xee)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerInfo)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leftContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(a.data.name_team),3),e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[3]||(i[3]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnVideosOptions1)},[e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.verVideosType1)},e.toDisplayString(a.data.total),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.arrowExpand),onClick:i[5]||(i[5]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Fee)],10,Bee))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const zee={$style:_ee},$ee=Ce(Ys,[["render",Pee],["__cssModules",zee]]),Aee="_rotate_1wjiv_5",Iee="_positionContainer_1wjiv_99",Mee="_positionContainer620_1wjiv_113",Lee="_rowwPlayer_1wjiv_127",Ree="_rowwPlayer960_1wjiv_159",Oee="_rowwPlayer420_1wjiv_189",Dee="_rowwPlayer460_1wjiv_221",jee="_containerLeft_1wjiv_255",Wee="_containerLeft420_1wjiv_271",vee="_containerLeft620_1wjiv_287",Uee="_iconFavoritesType1_1wjiv_301",Gee="_iconFavoritesType1320_1wjiv_317",Hee="_iconFavorites_1wjiv_301",Jee="_iconFavorites420_1wjiv_349",qee="_playerContainer_1wjiv_365",Yee="_playerContainer420_1wjiv_389",Zee="_playerContainer460_1wjiv_413",Kee="_playerContainerType1_1wjiv_437",Xee="_playerContainerType1320_1wjiv_457",Qee="_playerContainerType1460_1wjiv_477",ete="_imgPlayerIcon_1wjiv_497",tte="_imgPlayerIcon460_1wjiv_517",ate="_imgPlayerIcon420_1wjiv_537",ite="_manchesterUnited_1wjiv_557",ote="_manchesterUnited360_1wjiv_579",ste="_manchesterUnited420_1wjiv_601",lte="_manchesterUnited460_1wjiv_623",rte="_containerRight_1wjiv_645",nte="_containerRight960_1wjiv_663",dte="_containerRight420_1wjiv_683",cte="_numberOfVideos_1wjiv_705",pte="_numberOfVideos620_1wjiv_717",mte="_block02_1wjiv_729",hte="_block02960_1wjiv_749",ute="_block02620_1wjiv_767",fte="_block02420_1wjiv_781",yte="_verVideos_1wjiv_797",gte="_verVideos620_1wjiv_809",_te="_numberPosition_1wjiv_815",bte="_shapeIcon_1wjiv_827",Ste="_chivasIcon_1wjiv_837",Cte="_imgTeamIcon_1wjiv_859",wte="_teamName_1wjiv_869",kte="_nameTeam_1wjiv_881",Ete="_dfC_1wjiv_899",Vte="_position_1wjiv_99",Tte="_age_1wjiv_919",Nte="_manchesterUnitedIcon_1wjiv_935",xte="_country_1wjiv_949",Bte="_playedGames_1wjiv_963",Fte="_playedMinutes_1wjiv_977",Pte="_block01_1wjiv_991",zte="_leagueName_1wjiv_1005",$te="_roleCharacterIcon_1wjiv_1017",Ate="_btnVideos_1wjiv_1033",Ite="_containerBtnVideos_1wjiv_1063",Mte="_containerBtnVideos620_1wjiv_1083",Lte="_containesOptions_1wjiv_1101",Rte="_arrowExpandIcon_1wjiv_1115",Ote="_rowTeam_1wjiv_1133",Dte="_rowTeam420_1wjiv_1169",jte="_rowTeam320_1wjiv_1205",Wte="_rowTeam460_1wjiv_1243",vte="_rowTeam350_1wjiv_1281",Ute="_containerLeftType1_1wjiv_1317",Gte="_containerLeftType1680_1wjiv_1329",Hte="_containerLeftType1320_1wjiv_1343",Jte="_containerLeftType1350_1wjiv_1359",qte="_positionContainertype1_1wjiv_1373",Yte="_positionContainertype1380_1wjiv_1389",Zte="_positionContainertype1680_1wjiv_1405",Kte="_positionContainertype1420_1wjiv_1421",Xte="_manchesterUnitedType1_1wjiv_1437",Qte="_manchesterUnitedType1460_1wjiv_1449",eae="_manchesterUnitedType1320_1wjiv_1463",tae="_containerRightType1_1wjiv_1477",aae="_containerRightType1420_1wjiv_1499",iae="_containerRightType1320_1wjiv_1521",oae="_teamNameWrapperType1_1wjiv_1543",sae="_teamNameWrapperType1960_1wjiv_1557",lae="_teamNameWrapperType11086_1wjiv_1571",rae="_ageWrapperType1_1wjiv_1585",nae="_ageWrapperType1680_1wjiv_1599",dae="_ageWrapperType11086_1wjiv_1615",cae="_ageType1_1wjiv_1631",pae="_ageType1960_1wjiv_1647",mae="_playedGamesWrapperType1_1wjiv_1653",hae="_playedGamesWrapperType1680_1wjiv_1667",uae="_playedGamesWrapperType1960_1wjiv_1673",fae="_playedGamesType1_1wjiv_1679",yae="_playedGamesType1540_1wjiv_1693",gae="_playedGamesType1960_1wjiv_1701",_ae="_playedGamesType11086_1wjiv_1707",bae="_playedMinutesWrapperType1_1wjiv_1713",Sae="_playedMinutesWrapperType11086_1wjiv_1727",Cae="_playedMinutesType1_1wjiv_1741",wae="_playedMinutesType1680_1wjiv_1755",kae="_block02Type1_1wjiv_1761",Eae="_block02Type1680_1wjiv_1777",Vae="_block02Type1320_1wjiv_1793",Tae="_block02Type1350_1wjiv_1811",Nae="_leagueNameWrapperType1_1wjiv_1827",xae="_leagueNameWrapperType1680_1wjiv_1843",Bae="_leagueNameWrapperType1960_1wjiv_1849",Fae="_leagueNameType1_1wjiv_1865",Pae="_leagueNameType1960_1wjiv_1885",zae="_numberOfVideosType1_1wjiv_1905",$ae="_numberOfVideosType1680_1wjiv_1919",Aae="_numberOfVideosType11232_1wjiv_1933",Iae="_vectorIconType1_1wjiv_1947",Mae="_block01TitlesType1_1wjiv_1981",Lae="_numberPositionType1_1wjiv_1995",Rae="_shapeIconType1_1wjiv_2007",Oae="_tijuanaIconType1_1wjiv_2019",Dae="_tijuanaWrapperType1_1wjiv_2031",jae="_tijuanaWrapperType1NoBg_1wjiv_2053",Wae="_teamNameType1_1wjiv_2069",vae="_roleCharacterIconType1_1wjiv_2083",Uae="_verVideosType1_1wjiv_2097",Gae="_btnVideosType1_1wjiv_2109",Hae="_containerBtnVideosType1_1wjiv_2139",Jae="_containesOptionsType1_1wjiv_2161",qae="_arrowExpandIconType1_1wjiv_2177",Yae="_templateTablaProductividadType1_1wjiv_2189",Zae="_verVideosType11232_1wjiv_2213",Kae="_templateTablaProductividadType1320_1wjiv_2221",Xae="_verVideosType1680_1wjiv_2229",Qae={rotate:Aee,positionContainer:Iee,positionContainer620:Mee,rowwPlayer:Lee,rowwPlayer960:Ree,rowwPlayer420:Oee,rowwPlayer460:Dee,containerLeft:jee,containerLeft420:Wee,containerLeft620:vee,iconFavoritesType1:Uee,iconFavoritesType1320:Gee,iconFavorites:Hee,iconFavorites420:Jee,playerContainer:qee,playerContainer420:Yee,playerContainer460:Zee,playerContainerType1:Kee,playerContainerType1320:Xee,playerContainerType1460:Qee,imgPlayerIcon:ete,imgPlayerIcon460:tte,imgPlayerIcon420:ate,manchesterUnited:ite,manchesterUnited360:ote,manchesterUnited420:ste,manchesterUnited460:lte,containerRight:rte,containerRight960:nte,containerRight420:dte,numberOfVideos:cte,numberOfVideos620:pte,block02:mte,block02960:hte,block02620:ute,block02420:fte,verVideos:yte,verVideos620:gte,numberPosition:_te,shapeIcon:bte,chivasIcon:Ste,imgTeamIcon:Cte,teamName:wte,nameTeam:kte,dfC:Ete,position:Vte,age:Tte,manchesterUnitedIcon:Nte,country:xte,playedGames:Bte,playedMinutes:Fte,block01:Pte,leagueName:zte,roleCharacterIcon:$te,btnVideos:Ate,containerBtnVideos:Ite,containerBtnVideos620:Mte,containesOptions:Lte,arrowExpandIcon:Rte,rowTeam:Ote,rowTeam420:Dte,rowTeam320:jte,rowTeam460:Wte,rowTeam350:vte,containerLeftType1:Ute,containerLeftType1680:Gte,containerLeftType1320:Hte,containerLeftType1350:Jte,positionContainertype1:qte,positionContainertype1380:Yte,positionContainertype1680:Zte,positionContainertype1420:Kte,manchesterUnitedType1:Xte,manchesterUnitedType1460:Qte,manchesterUnitedType1320:eae,containerRightType1:tae,containerRightType1420:aae,containerRightType1320:iae,teamNameWrapperType1:oae,teamNameWrapperType1960:sae,teamNameWrapperType11086:lae,ageWrapperType1:rae,ageWrapperType1680:nae,ageWrapperType11086:dae,ageType1:cae,ageType1960:pae,playedGamesWrapperType1:mae,playedGamesWrapperType1680:hae,playedGamesWrapperType1960:uae,playedGamesType1:fae,playedGamesType1540:yae,playedGamesType1960:gae,playedGamesType11086:_ae,playedMinutesWrapperType1:bae,playedMinutesWrapperType11086:Sae,playedMinutesType1:Cae,playedMinutesType1680:wae,block02Type1:kae,block02Type1680:Eae,block02Type1320:Vae,block02Type1350:Tae,leagueNameWrapperType1:Nae,leagueNameWrapperType1680:xae,leagueNameWrapperType1960:Bae,leagueNameType1:Fae,leagueNameType1960:Pae,numberOfVideosType1:zae,numberOfVideosType1680:$ae,numberOfVideosType11232:Aae,vectorIconType1:Iae,block01TitlesType1:Mae,numberPositionType1:Lae,shapeIconType1:Rae,tijuanaIconType1:Oae,tijuanaWrapperType1:Dae,tijuanaWrapperType1NoBg:jae,teamNameType1:Wae,roleCharacterIconType1:vae,verVideosType1:Uae,btnVideosType1:Gae,containerBtnVideosType1:Hae,containesOptionsType1:Jae,arrowExpandIconType1:qae,templateTablaProductividadType1:Yae,verVideosType11232:Zae,templateTablaProductividadType1320:Kae,verVideosType1680:Xae},Zs={components:{GSCButton:yi},computed:{manchesterUnitedType1Class(){const t=this.elementSize.width;return t<=320?this.$style.manchesterUnitedType1320:t<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerRightType1320:t<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.teamNameWrapperType1960:t<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.ageWrapperType1680:t<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.playedGamesWrapperType1680:t<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const t=this.elementSize.width;return t<=540?this.$style.playedGamesType1540:t<=960?this.$style.playedGamesType1960:t<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const t=this.elementSize.width;return t<=320?this.$style.block02Type1320:t<=350?this.$style.block02Type1350:t<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.leagueNameWrapperType1680:t<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const t=this.elementSize.width;return t<=680?this.$style.numberOfVideosType1680:t<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerLeftType1320:t<=350?this.$style.containerLeftType1350:t<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const t=this.elementSize.width;return t<=380?this.$style.positionContainertype1380:t<=420?this.$style.positionContainertype1420:t<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const t=this.elementSize.width;return t<=320?this.$style.rowTeam320:t<=350?this.$style.rowTeam350:t<=420?this.$style.rowTeam420:t<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const t=this.elementSize.width;return t<=420?this.$style.block02420:t<=620?this.$style.block02620:t<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const t=this.elementSize.width;return t<=420?this.$style.imgPlayerIcon420:t<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const t=this.elementSize.width;return t<=360?this.$style.manchesterUnited360:t<=420?this.$style.manchesterUnited420:t<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const t=this.elementSize.width;return t<=420?this.$style.containerRight420:t<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const t=this.elementSize.width;return t<=320?this.$style.playerContainerType1320:t<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.playerContainer420:t<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeft420:t<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const t=this.elementSize.width;return t<=420?this.$style.rowwPlayer420:t<=460?this.$style.rowwPlayer460:t<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const t=e.ref("myDivRef2"),{elementSize:i}=Oe(t);return{myDivRef2:t,elementSize:i}},props:{type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},emitEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},sp=()=>{e.useCssVars(t=>({"5c9f1462":t.height,"6c44c2e9":t.background,"08c57d2a":t.fontSize,"772bfb39":t.fontColor,"72ad0a4e":t.fontFamily}))},lp=Zs.setup;Zs.setup=lp?(t,i)=>(sp(),lp(t,i)):sp;const eie={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},tie=["src"],aie=["src"],iie=["src"],oie=["src"],sie=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),lie=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),rie=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),nie=[sie,lie,rie],die=["fill"],cie=["fill"],pie=["src"],mie=["src"],hie=["fill"],uie=["fill"],fie=["src"],yie=["src"],gie=["src"],_ie=["src"],bie=["fill"],Sie=["fill"];function Cie(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",eie,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,tie),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},[o.elementSize.width<=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.data.player_short),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.data.player_name),1)],64))],2),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,aie)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,iie),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,oie)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.leagueName)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[o.elementSize.width>635?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[1]||(i[1]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),o.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.numberOfVideosClass)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[2]||(i[2]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},nie))],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[3]||(i[3]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,cie)],10,die))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.rowTeamClass),style:e.normalizeStyle(o.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(l.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,pie)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(a.typeView==0?t.$style.tijuanaWrapperType1:t.$style.tijuanaWrapperType1NoBg)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.tijuanaIconType1),alt:"",src:a.data.team_logo},null,10,mie)],2),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.teamNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamNameType1)},[e.createTextVNode(" C/"+e.toDisplayString(a.data.frequency)+" ",1),a.data.category!=2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("min")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("segs")],64))],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(l.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[o.elementSize.width>679?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[5]||(i[5]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),e.createElementVNode("div",{class:e.normalizeClass(l.numberOfVideosType1Class)},e.toDisplayString(a.data.total),3)],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[6]||(i[6]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,uie)],10,hie))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,fie),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,yie)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,gie),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,_ie)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.league_name),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[e.createVNode(r,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:o.elementSize.width<=680?"83px":a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[7]||(i[7]=n=>l.emitEventMedia(a.data)),style:e.normalizeStyle(o.elementSize.width<=680?o.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[8]||(i[8]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Sie)],10,bie))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const wie={$style:Qae},kie=Ce(Zs,[["render",Cie],["__cssModules",wie]]),Eie="_containerLeftTitles_zc6z8_119",Vie="_containerLeftTitles420_zc6z8_135",Tie="_containerLeftTitles620_zc6z8_151",Nie="_containerLeftTitlesTeam_zc6z8_169",xie="_containerLeftTitlesTeam1180_zc6z8_185",Bie="_containerLeftTitlesTeam1090_zc6z8_201",Fie="_containerLeftTitlesTeam960_zc6z8_217",Pie="_containerLeftTitlesTeam860_zc6z8_233",zie="_containerLeftTitlesTeam768_zc6z8_249",$ie="_containerLeftTitlesTeam680_zc6z8_265",Aie="_containerLeftTitlesTeam620_zc6z8_281",Iie="_containerLeftTitlesTeam420_zc6z8_297",Mie="_headTitles_zc6z8_315",Lie="_headTitles960_zc6z8_345",Rie="_headTitles420_zc6z8_375",Oie="_headTitles540_zc6z8_415",Die="_headTitles460_zc6z8_445",jie="_headTitles620_zc6z8_475",Wie="_position_zc6z8_505",vie="_position420_zc6z8_523",Uie="_player_zc6z8_529",Gie="_player420_zc6z8_551",Hie="_containerRightType1_zc6z8_559",Jie="_containerRightTitles_zc6z8_573",qie="_containerRightTitles960_zc6z8_591",Yie="_block02Titles_zc6z8_609",Zie="_block02Titles620_zc6z8_625",Kie="_mon1Scouting_zc6z8_633",Xie="_mon1Scouting960_zc6z8_653",Qie="_mon1_zc6z8_633",eoe="_mon1420_zc6z8_689",toe="_mon1620_zc6z8_709",aoe="_icnIcon_zc6z8_729",ioe="_icnIcon960_zc6z8_739",ooe="_icnIcon420_zc6z8_751",soe="_teamTitle_zc6z8_759",loe="_positionTitle_zc6z8_779",roe="_ageTitle_zc6z8_795",noe="_partidos_zc6z8_811",doe="_playedGamesTitle_zc6z8_819",coe="_playedMinutesTitle_zc6z8_839",poe="_block01Titles_zc6z8_857",moe="_mon_zc6z8_633",hoe="_containesOptionsTitles_zc6z8_889",uoe="_templateTablaProductividadType1_zc6z8_903",foe="_templateTablaProductividadType1400_zc6z8_927",yoe="_headTitlesType1_zc6z8_955",goe="_headTitlesType1420_zc6z8_981",_oe="_headTitlesType1400_zc6z8_1013",boe="_headTitlesType1540_zc6z8_1045",Soe="_headTitlesType1460_zc6z8_1073",Coe="_headTitlesType1680_zc6z8_1101",woe="_headTitlesType1350_zc6z8_1127",koe="_positionType1_zc6z8_1157",Eoe="_positionType1400_zc6z8_1175",Voe="_teamType1_zc6z8_1195",Toe="_teamType1400_zc6z8_1213",Noe="_frecuenciaType1_zc6z8_1233",xoe="_frecuenciaType1540_zc6z8_1249",Boe="_containerLeftTitlesType1_zc6z8_1267",Foe="_frecuenciaWrapperType1_zc6z8_1283",Poe="_frecuenciaWrapperType1680_zc6z8_1301",zoe="_promedioPartidoType1_zc6z8_1317",$oe="_promedioEstePartidoType1_zc6z8_1325",Aoe="_promedioEstePartidoType1960_zc6z8_1341",Ioe="_promedioEstePartidoWrapperType1_zc6z8_1349",Moe="_promedioEstePartidoWrapperType11200_zc6z8_1365",Loe="_promedioEstePartidoWrapperType11090_zc6z8_1383",Roe="_promedioEstePartidoWrapperType11086_zc6z8_1403",Ooe="_promedioPartidosType1_zc6z8_1421",Doe="_promedioPartidosWrapperType1_zc6z8_1435",joe="_promedioPartidosWrapperType1960_zc6z8_1451",Woe="_promedioPartidosWrapperType11086_zc6z8_1457",voe="_partidosJugadosType1_zc6z8_1463",Uoe="_partidosJugadosType1960_zc6z8_1475",Goe="_partidosJugadosWrapperType1_zc6z8_1489",Hoe="_partidosJugadosWrapperType11200_zc6z8_1505",Joe="_partidosJugadosWrapperType11180_zc6z8_1521",qoe="_partidosJugadosWrapperType11170_zc6z8_1537",Yoe="_partidosJugadosWrapperType11140_zc6z8_1553",Zoe="_partidosJugadosWrapperType11086_zc6z8_1569",Koe="_partidosJugadosWrapperType1960_zc6z8_1585",Xoe="_partidosJugadosWrapperType1880_zc6z8_1601",Qoe="_partidosJugadosWrapperType1860_zc6z8_1617",ese="_partidosJugadosWrapperType1830_zc6z8_1633",tse="_partidosJugadosWrapperType1790_zc6z8_1649",ase="_partidosJugadosWrapperType1930_zc6z8_1665",ise="_partidosJugadosWrapperType1770_zc6z8_1681",ose="_block01TitlesType1_zc6z8_1687",sse="_monType1_zc6z8_1703",lse="_monType1960_zc6z8_1721",rse="_monType1680_zc6z8_1741",nse="_videosType1_zc6z8_1747",dse="_videosType1680_zc6z8_1767",cse="_videosType1600_zc6z8_1785",pse="_videosType1540_zc6z8_1803",mse="_videosType1420_zc6z8_1821",hse="_videosType1400_zc6z8_1839",use="_containesOptionsTitlesType1_zc6z8_1863",fse="_containesOptionsTitlesType1768_zc6z8_1879",yse="_containesOptionsTitlesType1730_zc6z8_1893",gse="_containesOptionsTitlesType1690_zc6z8_1907",_se="_icnIconType1_zc6z8_1921",bse="_icnIconType1420_zc6z8_1933",Sse="_icnIconType1400_zc6z8_1947",Cse="_block02TitlesType1_zc6z8_1955",wse="_block02TitlesType1680_zc6z8_1969",kse="_block02TitlesType1350_zc6z8_1983",Ese="_containerRightTitlesType1_zc6z8_1997",Vse="_containerRightTitlesType1420_zc6z8_2015",Tse={containerLeftTitles:Eie,containerLeftTitles420:Vie,containerLeftTitles620:Tie,containerLeftTitlesTeam:Nie,containerLeftTitlesTeam1180:xie,containerLeftTitlesTeam1090:Bie,containerLeftTitlesTeam960:Fie,containerLeftTitlesTeam860:Pie,containerLeftTitlesTeam768:zie,containerLeftTitlesTeam680:$ie,containerLeftTitlesTeam620:Aie,containerLeftTitlesTeam420:Iie,headTitles:Mie,headTitles960:Lie,headTitles420:Rie,headTitles540:Oie,headTitles460:Die,headTitles620:jie,position:Wie,position420:vie,player:Uie,player420:Gie,containerRightType1:Hie,containerRightTitles:Jie,containerRightTitles960:qie,block02Titles:Yie,block02Titles620:Zie,mon1Scouting:Kie,mon1Scouting960:Xie,mon1:Qie,mon1420:eoe,mon1620:toe,icnIcon:aoe,icnIcon960:ioe,icnIcon420:ooe,teamTitle:soe,positionTitle:loe,ageTitle:roe,partidos:noe,playedGamesTitle:doe,playedMinutesTitle:coe,block01Titles:poe,mon:moe,containesOptionsTitles:hoe,templateTablaProductividadType1:uoe,templateTablaProductividadType1400:foe,headTitlesType1:yoe,headTitlesType1420:goe,headTitlesType1400:_oe,headTitlesType1540:boe,headTitlesType1460:Soe,headTitlesType1680:Coe,headTitlesType1350:woe,positionType1:koe,positionType1400:Eoe,teamType1:Voe,teamType1400:Toe,frecuenciaType1:Noe,frecuenciaType1540:xoe,containerLeftTitlesType1:Boe,frecuenciaWrapperType1:Foe,frecuenciaWrapperType1680:Poe,promedioPartidoType1:zoe,promedioEstePartidoType1:$oe,promedioEstePartidoType1960:Aoe,promedioEstePartidoWrapperType1:Ioe,promedioEstePartidoWrapperType11200:Moe,promedioEstePartidoWrapperType11090:Loe,promedioEstePartidoWrapperType11086:Roe,promedioPartidosType1:Ooe,promedioPartidosWrapperType1:Doe,promedioPartidosWrapperType1960:joe,promedioPartidosWrapperType11086:Woe,partidosJugadosType1:voe,partidosJugadosType1960:Uoe,partidosJugadosWrapperType1:Goe,partidosJugadosWrapperType11200:Hoe,partidosJugadosWrapperType11180:Joe,partidosJugadosWrapperType11170:qoe,partidosJugadosWrapperType11140:Yoe,partidosJugadosWrapperType11086:Zoe,partidosJugadosWrapperType1960:Koe,partidosJugadosWrapperType1880:Xoe,partidosJugadosWrapperType1860:Qoe,partidosJugadosWrapperType1830:ese,partidosJugadosWrapperType1790:tse,partidosJugadosWrapperType1930:ase,partidosJugadosWrapperType1770:ise,block01TitlesType1:ose,monType1:sse,monType1960:lse,monType1680:rse,videosType1:nse,videosType1680:dse,videosType1600:cse,videosType1540:pse,videosType1420:mse,videosType1400:hse,containesOptionsTitlesType1:use,containesOptionsTitlesType1768:fse,containesOptionsTitlesType1730:yse,containesOptionsTitlesType1690:gse,icnIconType1:_se,icnIconType1420:bse,icnIconType1400:Sse,block02TitlesType1:Cse,block02TitlesType1680:wse,block02TitlesType1350:kse,containerRightTitlesType1:Ese,containerRightTitlesType1420:Vse},Ks={components:{},computed:{icnIconType1Class(){const t=this.elementSize.width;return t<=400?this.$style.icnIconType1400:t<=420?this.$style.icnIconType1420:this.$style.icnIconType1},videosType1Class(){const t=this.elementSize.width;return t<=400?this.$style.videosType1400:t<=420?this.$style.videosType1420:t<=540?this.$style.videosType1540:t<=600?this.$style.videosType1600:t<=680?this.$style.videosType1680:this.$style.videosType1},monType1Class(){const t=this.elementSize.width;return t<=680?this.$style.monType1680:t<=960?this.$style.monType1960:this.$style.monType1},block02TitlesType1Class(){const t=this.elementSize.width;return t<=350?this.$style.block02TitlesType1350:t<=680?this.$style.block02TitlesType1680:this.$style.block02TitlesType1},containesOptionsTitlesType1Class(){const t=this.elementSize.width;return t<=400?this.$style.containesOptionsTitlesType1400:t<=690?this.$style.containesOptionsTitlesType1690:t<=730?this.$style.containesOptionsTitlesType1730:t<=768?this.$style.containesOptionsTitlesType1768:this.$style.containesOptionsTitlesType1},partidosJugadosWrapperType1Class(){const t=this.elementSize.width;return t<=770?this.$style.promedioPartidosWrapperType1770:t<=790?this.$style.partidosJugadosWrapperType1790:t<=830?this.$style.partidosJugadosWrapperType1830:t<=860?this.$style.partidosJugadosWrapperType1860:t<=880?this.$style.partidosJugadosWrapperType1880:t<=930?this.$style.partidosJugadosWrapperType1930:t<=960?this.$style.partidosJugadosWrapperType1960:t<=1086?this.$style.partidosJugadosWrapperType11086:t<=1140?this.$style.partidosJugadosWrapperType11140:t<=1170?this.$style.partidosJugadosWrapperType11170:t<=1180?this.$style.partidosJugadosWrapperType11180:t<=1200?this.$style.partidosJugadosWrapperType11200:this.$style.partidosJugadosWrapperType1},promedioPartidosWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.promedioPartidosWrapperType1960:t<=1086?this.$style.promedioPartidosWrapperType11086:this.$style.promedioPartidosWrapperType1},partidosJugadosType1Class(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960:this.$style.partidosJugadosType1},templateTablaProductividadType1Class(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400:this.$style.templateTablaProductividadType1},promedioEstePartidoType1Class(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960:this.$style.promedioEstePartidoType1},headTitlesType1Class(){const t=this.elementSize.width;return t<=350?this.$style.headTitlesType1350:t<=400?this.$style.headTitlesType1400:t<=420?this.$style.headTitlesType1420:t<=460?this.$style.headTitlesType1460:t<=540?this.$style.headTitlesType1540:t<=680?this.$style.headTitlesType1680:this.$style.headTitlesType1},headTitlesClass(){const t=this.elementSize.width;return t<=420?this.$style.headTitles420:t<=460?this.$style.headTitles460:t<=540?this.$style.headTitles540:t<=620?this.$style.headTitles620:t<=960?this.$style.headTitles960:this.$style.headTitles},containerLeftTitlesClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitles420:t<=620?this.$style.containerLeftTitles620:this.$style.containerLeftTitles},containerLeftTitlesClassTeam(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitlesTeam420:t<=620?this.$style.containerLeftTitlesTeam620:t<=680?this.$style.containerLeftTitlesTeam680:t<=768?this.$style.containerLeftTitlesTeam768:t<=860?this.$style.containerLeftTitlesTeam860:t<=960?this.$style.containerLeftTitlesTeam960:t<=1090?this.$style.containerLeftTitlesTeam1090:t<=1180?this.$style.containerLeftTitlesTeam1180:this.$style.containerLeftTitlesTeam},icnIconClass(){const t=this.elementSize.width;return t<=420?this.$style.icnIcon420:t<=960?this.$style.icnIcon960:this.$style.icnIcon},mon1Class(){const t=this.elementSize.width;return t<=420?this.$style.mon1420:t<=620?this.$style.mon1620:this.$style.mon1},mon1ScoutingClass(){const t=this.elementSize.width;return t<=420?this.$style.mon1420:t<=960?this.$style.mon1Scouting960:this.$style.mon1Scouting},promedioEstePartidoWrapperType1Class(){const t=this.elementSize.width;return t<=1086?this.$style.promedioEstePartidoWrapperType11086:t<=1090?this.$style.promedioEstePartidoWrapperType11090:t<=1200?this.$style.promedioEstePartidoWrapperType11200:this.$style.promedioEstePartidoWrapperType1},frecuenciaWrapperType1Class(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680:this.$style.frecuenciaWrapperType1},frecuenciaType1Class(){return this.elementSize.width<=540?this.$style.frecuenciaType1540:this.$style.frecuenciaType1},positionType1Class(){return this.elementSize.width<=400?this.$style.positionType1400:this.$style.positionType1},containerRightType1Class(){return this.elementSize.width<=420?this.$style.containerRightType1420:this.$style.containerRightType1},containerRightTitlesType1Class(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420:this.$style.containerRightTitlesType1},teamType1Class(){return this.elementSize.width<=400?this.$style.teamType1400:this.$style.teamType1},playerClass(){return this.elementSize.width<=420?this.$style.player420:this.$style.player},positionClass(){return this.elementSize.width<=420?this.$style.position420:this.$style.position},containerRightTitlesClass(){return this.elementSize.width<=960?this.$style.containerRightTitles960:this.$style.containerRightTitles},block02TitlesClass(){return this.elementSize.width<=620?this.$style.block02Titles960:this.$style.block02Titles}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Oe(t);return{myDivRef:t,elementSize:i}},props:{type:{type:Number,default:0},isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"total"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},rp=()=>{e.useCssVars(t=>({c6ba93f8:t.background,f7de6606:t.height,"0d833f46":t.fontSize,bbf48e84:t.fontColor,b9ea052e:t.fontFamily,"44dfbcfa":t.heightTeam}))},np=Ks.setup;Ks.setup=np?(t,i)=>(rp(),np(t,i)):rp;const Nse={ref:"myDivRef"},xse=e.createElementVNode("br",null,null,-1),Bse=e.createElementVNode("br",null,null,-1),Fse=e.createElementVNode("br",null,null,-1);function Pse(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",Nse,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.headTitlesClass),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClass)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClass)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClass),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01Titles)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitle)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitle)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitle)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitle)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitles)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.mon)},[a.typeStats==="total"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Total")],64)):e.createCommentVNode("",!0),a.typeStats==="average"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("PPP")],64)):e.createCommentVNode("",!0),a.typeStats==="every90"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Cada "),xse,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.mon1Class)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.templateTablaProductividadType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.headTitlesType1Class),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassTeam),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionType1Class)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.teamType1Class)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.frecuenciaWrapperType1Class)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.frecuenciaType1Class)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.promedioEstePartidoWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.promedioEstePartidoType1Class)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},"Promedio partido",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},"este Torneo",2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.promedioPartidosWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},[e.createTextVNode("Promedio partido"),Bse,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.partidosJugadosWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},[e.createTextVNode("Partidos "),Fse,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containesOptionsTitlesType1Class)},[o.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.monType1Class)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.videosType1Class)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.headTitlesClass),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClass)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClass)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClass),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01Titles)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitle)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitle)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitle)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitle)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Liga",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitles)},[e.createElementVNode("div",{class:e.normalizeClass(l.mon1ScoutingClass)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const zse={$style:Tse},$se=Ce(Ks,[["render",Pse],["__cssModules",zse]]),Ase="_equipo_p9s6t_75",Ise="_atlasSeleccin_p9s6t_85",Mse="_equipoAtlasSeleccinMexi_p9s6t_93",Lse="_aos_p9s6t_101",Rse="_span12_p9s6t_109",Ose="_nacionalidadMex_p9s6t_115",Dse="_manchesterUnited_p9s6t_121",jse="_manchesterUnited12_p9s6t_135",Wse="_containerInfo_p9s6t_155",vse="_verPerfil12_p9s6t_173",Use="_btnProfile_p9s6t_191",Gse="_containerButton_p9s6t_223",Hse="_containerButton2_p9s6t_237",Jse="_dataContainer_p9s6t_249",qse="_expandedInfoPlayer_p9s6t_269",Yse="_containerDataBg_p9s6t_449",Zse="_containerDataSm_p9s6t_471",Kse="_span_p9s6t_109",Xse="_manchesterUnited14_p9s6t_493",Qse="_filter_p9s6t_503",ele="_verPerfil_p9s6t_173",tle="_manchesterUnited8_p9s6t_545",ale="_manchesterUnitedParent1_p9s6t_557",ile="_manchesterUnited1_p9s6t_135",ole="_manchesterUnitedParent_p9s6t_557",sle="_frameDiv_p9s6t_601",lle="_infoExpanded_p9s6t_617",rle="_countryFlag_p9s6t_923",nle={equipo:Ase,atlasSeleccin:Ise,equipoAtlasSeleccinMexi:Mse,aos:Lse,span12:Rse,nacionalidadMex:Ose,manchesterUnited:Dse,manchesterUnited12:jse,containerInfo:Wse,verPerfil12:vse,btnProfile:Use,containerButton:Gse,containerButton2:Hse,dataContainer:Jse,expandedInfoPlayer:qse,containerDataBg:Yse,containerDataSm:Zse,span:Kse,manchesterUnited14:Xse,filter:Qse,verPerfil:ele,manchesterUnited8:tle,manchesterUnitedParent1:ale,manchesterUnited1:ile,manchesterUnitedParent:ole,frameDiv:sle,infoExpanded:lle,countryFlag:rle},Xs={components:{GSCButton:bd},props:{isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"totals"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Oe(t);return{myDivRef:t,elementSize:i}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},dp=()=>{e.useCssVars(t=>({"4ca071ce":t.fontFamily,"656da3b9":t.fontColor,"5d3a6938":t.fontColorValue,"3b76ee2a":t.fontSize,"46382a69":t.background}))},cp=Xs.setup;Xs.setup=cp?(t,i)=>(dp(),cp(t,i)):dp;const Ie=t=>(e.pushScopeId("data-v-07f6ca5e"),t=t(),e.popScopeId(),t),dle={ref:"myDivRef"},cle=["src"],ple=Ie(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),mle=Ie(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),hle=Ie(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),ule=Ie(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),fle=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),yle=Ie(()=>e.createElementVNode("span",null,"xG: ",-1)),gle=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),_le=Ie(()=>e.createElementVNode("span",null,"xG: ",-1)),ble=Ie(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Sle=Ie(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Cle=Ie(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),wle=Ie(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),kle=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Ele=Ie(()=>e.createElementVNode("span",null,"xG: ",-1));function Vle(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",dle,[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,cle)],2)],2)],2)):e.createCommentVNode("",!0),a.viewPosition?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Posición: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.isFemale?a.data.position.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):a.data.position),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited12)},[a.viewGames?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"partidos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.games),3)],2)):e.createCommentVNode("",!0),a.viewMin?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Minutos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.min),3)],2)):e.createCommentVNode("",!0),a.viewGoals?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},e.toDisplayString(a.data.category)+": ",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.goals),3)],2)):e.createCommentVNode("",!0),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Efectividad de pases: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[0]||(i[0]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:1,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/add-list-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Agregar","font-size":"10px",onClick:i[1]||(i[1]=n=>l.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Ver grafica","font-size":"10px",onClick:i[2]||(i[2]=n=>l.showGraph(a.data))},null,8,["style"])):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.infoExpanded)},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerDataBg,a.additionalClass])},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[ple,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)},[mle,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)},[hle,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)},[ule,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)},[fle,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)},[yle,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)},[gle,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)},[_le,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)},[ble,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)},[Sle,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)},[Cle,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)},[wle,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)},[kle,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)},[Ele,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2)],2)],2),a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[3]||(i[3]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const Qs={components:{GSCCarousel:Vd,GSCLeaders:$ee,GSCRowTable:kie,GSCTableHeader:$se,GSCExpandedInfo:Ce(Xs,[["render",Vle],["__cssModules",{$style:nle}],["__scopeId","data-v-07f6ca5e"]])},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Oe(t);return{myDivRef:t,elementSize:i}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,i){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(i)||this.sonConjuntosDistintos(t.setNationalitiesIds,i.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,i){t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},i={},a=[],o=[],s=[];return this.formatFilterStats.map(l=>{t[l.team_id]?(t[l.team_id].total+=l.total,t[l.team_id].uniqueGames.has(l.game_id)||t[l.team_id].uniqueGames.add(l.game_id)):this.teamInfo[l.team_id]&&(t[l.team_id]=this.initializeTeamData(l,this.teamInfo[l.team_id])),l.player_id!==0&&l.player_id!==62117&&(i[l.player_id]?(i[l.player_id].total+=l.total,i[l.player_id].uniqueGames.has(l.game_id)||i[l.player_id].uniqueGames.add(l.game_id)):i[l.player_id]=this.initializePlayerData(l,this.playersInfo[l.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,i),a=this.processTeamData(t),o=this.processPlayerData(i),this.filterTeam!==0&&!this.isTeam&&(s=o.filter(l=>l.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:o)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,i){return t.total>i.total?-1:t.total<i.total?1:t.minutes<i.minutes?-1:t.minutes>i.minutes?1:0},sonConjuntosDistintos(t,i){const a=Array.from(t),o=Array.from(i);if(a.length!==o.length)return!0;for(let s=0;s<a.length;s++)if(!i.has(a[s]))return!0;return!1},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,i){return t.total<i.total?-1:t.total>i.total?1:t.name<i.name?-1:t.name>i.name?1:0},sortAndSlice(t,i){return t.sort((a,o)=>(a.name<o.name?1:-1)&&(a.total<o.total?1:-1)).slice(0,i)},getCategoryName(t){let i="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(i=this.categories[a].name);return i},translateTopCategories(t){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[t]||[]},getCoordinatePointPerCategory(t){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[t]||0},emitEventMedia(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p,h=t.player_id;let d=[],f=this.isTeam?t.id:this.filterTeam;h?this.isTeam?f=h:(d=[h],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?f=t.id:(d=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:d,goalkeeperIds:[],categoryIds:this.translateTopCategories(i),teamId:f||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",u)},emitEventMediaFullTable(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p;let h=[],d=this.isTeam?t.id:this.filterTeam;this.isTeam?d=t.id:(h=[t.id],n=n.filter(u=>!u.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:h,goalkeeperIds:[],categoryIds:n,teamId:d||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",f)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,i){this.$emit("clickprofile",{id:t,teamId:i,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let i=[],a={},o={};this.arePlaysEmpty=!1;const s=await ue.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){i=s.data.data.map(r=>this.formatStatsData(r)),s.data.teams.forEach(r=>{a[r[0]]={},a[r[0]].id=r[0],a[r[0]].name=r[1],a[r[0]].abrv=r[2],a[r[0]].img=r[3],a[r[0]].effectiveness=r[4],a[r[0]].games_played=r[5],a[r[0]].games_played_lastseason=r[6],a[r[0]].positiontable=r[7],a[r[0]].goals=r[8],a[r[0]].goalsrecived=r[9],a[r[0]].xg=r[10],a[r[0]].frecuency=r[11],a[r[0]].game_avg=r[12],a[r[0]].game_avg_last_season=r[13]});const l=new Set;s.data.players.forEach(r=>{const n=this.getObjectPlayer(r);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,p=n.teamName[0].acronym,y=a[n.teamName[0].team_id].name,m=n.teamName[0].team_id,h=this.positions[n.numberPositionId-1].fullname,d=this.positions[n.numberPositionId-1].name,f=n.countryId[0].nationality_id,u=n.effectiveness,g=n.min,C=n.games,w=n.date;n.arrayNationalities.forEach(v=>{l.add(v.numberId)}),o[r[0]]={id:r[0],name:r[1],img:r[2],age:c,team:p,teamname:y,teamid:m,position:h,positionfull:d,effectiveness:u,country:f,games_played:C,minutes_played:g,nationalityId:g,date:w,nationality:r[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=l,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(i){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(i)}}},filterRecords(t){if(!this.formatStats.length)return[];const i={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!i.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),i.setNationalitiesIds=!0),!Object.values(i).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),o=new Set(t.setPositionsIds),[s,l]=t.arrayAgeRange||[0,100],r=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(!c||i.playingAs&&!t.playingAs.includes(n.playing_as)||i.matchResult&&!t.matchResult.includes(n.match_result)||i.sections&&!t.sections.includes(n.section)||i.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||i.setNationalitiesIds&&!c.arrayNationalitiesIds.some(p=>a.has(p))||i.setPositionsIds&&!o.has(c.numberPositionId))return!1;if(i.arrayAgeRange){const p=c.numberAge;if(p<s||p>l)return!1}return!(i.setYear&&c.date<r||i.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const i={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return i.hasFilters=this.checkActiveFilters(i),Object.freeze(i)},checkActiveFilters(t){const{basic:i,player:a}=t;return i.playingAs.size>0||i.matchResult.size>0||i.sections.size>0||i.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,i){return t.filter(a=>!(!this.passesBasicFilters(a,i.basic)||i.player&&!this.passesPlayerFilters(a,i.player)))},passesBasicFilters(t,i){const{playingAs:a,matchResult:o,sections:s,zone:l,typeZone:r}=i;if(a.size&&!a.has(t.playing_as)||o.size&&!o.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(l.size){const n=r===1?t.origen:t.destino;if(!l.has(n))return!1}return!0},passesPlayerFilters(t,i){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(i.nationalTeams.enabled){if(i.nationalTeams.players.size&&!i.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(l=>i.nationalities.has(l)))return!1;const{ageRange:o,yearLimit:s}=i;if(a.numberAge<o[0]||a.numberAge>o[1]||a.date<s||!i.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const i={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,o)=>{i[a]=t[o]}),i},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},formatArrayPaginate(t){const i=Math.ceil(t.length/this.numRows);return Array.from({length:i},(a,o)=>{const s=o*this.numRows,l=s+this.numRows;return t.slice(s,l)})},initializeTeamData(t,i){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:i.id,name:i.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:i.effectiveness,frecuency:i.frecuency,game_avg:i.game_avg,game_avg_last_season:i.game_avg_last_season,games_played:i.games_played,games_played_lastseason:i.games_played_lastseason,positiontable:i.positiontable,goals:i.goals,goalsrecived:i.goalsrecived,xg:i.xg};return this.typeStats==="every90"&&(a.minutes=i.minutes||0),a},initializePlayerData(t,i){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return i?Object.assign(a,{name:i.name,name_short:this.getnameshort(i.name),img:i.img,id:i.id,age:i.age,team:i.team,teamname:i.teamname,teamid:i.teamid,position:i.position,positionId:i.positionId,positionfull:i.positionfull,country:i.country,effectiveness:i.effectiveness,minutes:i.minutes_played,games:i.games_played,date:i.date,nationality:i.nationality,player_country_flag:i.player_country_flag,categoryName:this.categoryName,goals:i.goals||0,goalsrecived:i.goalsrecived||0,xg:i.xg||0,positiontable:i.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,i){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(i).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(i).forEach(a=>{i[a].minutes<90&&delete i[a]})},processTeamData(t){return Object.values(t).sort((i,a)=>a.total-i.total).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},HandlerAddplayer(t){this.$emit("add-player",t)},HandlerShowGraph(t){this.$emit("show-graph",t)}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},pp=()=>{e.useCssVars(t=>({"62195a99":t.borderRadius,"4bac3a42":t.borderWidth,"4dda3708":t.borderColor}))},mp=Qs.setup;Qs.setup=mp?(t,i)=>(pp(),mp(t,i)):pp;const Mi=t=>(e.pushScopeId("data-v-a6a3a58b"),t=t(),e.popScopeId(),t),Tle={ref:"myDivRef"},Nle={class:"text"},xle={class:"groupsLeague"},Ble={class:"row-table-carrousel"},Fle={key:1,class:"container-no-search-result"},Ple={key:0,class:"overlay-loading-top"},zle=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),$le=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),Ale=[zle,$le],Ile=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Mle=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1));function Lle(t,i,a,o,s,l){const r=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Tle,[l.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:i[0]||(i[0]=m=>l.clickMore(a.category))},[e.createElementVNode("div",Nle,[e.createElementVNode("div",xle,e.toDisplayString(a.categoryName)+"  → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.displayData.length>0?(e.openBlock(),e.createBlock(p,{key:0,items:l.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:e.withCtx(({item:m})=>[e.createElementVNode("div",Ble,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(h,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[h.top==="01"?(e.openBlock(),e.createBlock(r,{key:0,onAddPlayer:l.HandlerAddplayer,onMediadata:i[1]||(i[1]=f=>l.emitEventMedia(f,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==h.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:h.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",name:h.name,player_short:h.name_short,player_id:h.id,categoryId:a.category,total:h.total}:{top:"01",logo:h.img,total:h.total,name_team:h.name,player_id:h.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?o.elementSize.width>360?"210px":"130px":o.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["onAddPlayer","type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==h.id&&t.expand,onAddPlayer:l.HandlerAddplayer,onMediadata:i[2]||(i[2]=f=>l.emitEventMedia(f,a.category,a.categoryName)),data:a.typeTable==0?{position:h.top,player_name:h.name,player_short:h.name_short,player_photo:h.img,total:h.total,id:h.id,player_age:h.age,team_abrev:h.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",player_position:h.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+h.country+".jpg",player_games:h.minutes,player_min:h.games,league_name:"          Liga MX          "}:{position:h.top,team_logo:h.img,team_abrev:h.name,frequency:h.frecuency,promthistournament:h.game_avg,promlasttournament:h.game_avg_last_season,teams_games:"-",category:a.category,total:h.total,id:h.id},height:"71px",background:d%2===0?a.backgroundEven:a.backgroundOdd,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==h.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":h.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:h.teamname,age:h.age,dataofbirth:h.date,nationality:h.nationality,countryFlag:h.player_country_flag,position:h.position,games:h.games,min:h.minutes,goals:h.originalTotal||h.total,effectiveness:h.effectiveness,category:a.categoryName,id:h.id}:{position:h.position,goals:h.goals,goals_received:h.goalsrecived,games_played:h.games_played,category:a.categoryName,effectiveness:h.effectiveness,xg:h.xg,total:h.originalTotal||h.total,attendance:"-",id:h.id},onViewprofile:f=>l.viewprofile(f,h.teamid),background:d%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(e.openBlock(),e.createElementBlock("div",Fle,[t.isloading?(e.openBlock(),e.createElementBlock("div",Ple,Ale)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Ile,Mle],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(y,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.displayData,(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==d.id&&t.expand,onMediadata:i[3]||(i[3]=u=>l.emitEventMediaFullTable(u,a.category,a.categoryName)),onAddPlayer:l.HandlerAddplayer,data:a.typeTable==0?{position:d.top,player_name:d.name,player_short:d.name_short,player_photo:d.img,total:d.total,id:d.id,player_age:d.age,team_abrev:d.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.teamid+".png",player_position:d.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+d.country+".jpg",player_games:d.games,player_min:d.minutes,league_name:"          Liga MX          "}:{position:d.positiontable,team_logo:d.img,team_abrev:d.name,frequency:d.frecuency,promthistournament:d.game_avg,promlasttournament:d.game_avg_last_season,category:a.category,team_games:d.games_played,total:d.total,id:d.id},height:"71px",background:((h+1)*5+f)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==d.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":d.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:d.teamname,age:d.age,dataofbirth:d.date,nationality:d.nationality,countryFlag:d.player_country_flag,position:d.position,positionfull:d.positionfull,games:d.games,min:d.minutes,goals:d.originalTotal||d.total,effectiveness:d.effectiveness,category:l.getCategoryName(a.category),id:d.id}:{position:d.positiontable,goals:d.goals,goals_received:d.goalsrecived,games_played:d.games_played,category:a.categoryName,effectiveness:d.effectiveness,xg:d.xg,total:d.originalTotal||d.total,category:l.getCategoryName(a.category),attendance:"-",id:d.id},onViewprofile:u=>l.viewprofile(u,d.teamid),background:f%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const Rle=Ce(Qs,[["render",Lle],["__scopeId","data-v-a6a3a58b"]]),Ole="_filtersContainer_b9wc6_1",Dle="_filtersContainer1232_b9wc6_1",jle="_closeFiltersPc_b9wc6_1",Wle="_textleyemdmultipleleagues_b9wc6_1",vle="_textleyemdmultipleleagues380_b9wc6_1",Ule="_filtersContainer760_b9wc6_1",Gle="_filtersContainer460_b9wc6_1",Hle="_containerSectionPlay_b9wc6_1",Jle="_containerSectionPlay1232_b9wc6_1",qle="_containerSectionPlay960_b9wc6_1",Yle="_containerSectionPlay320_b9wc6_1",Zle="_containerSectionPlay350_b9wc6_1",Kle="_containerSection_b9wc6_1",Xle="_containerSection1232_b9wc6_1",Qle="_containerSection960_b9wc6_1",ere="_containerSection320_b9wc6_1",tre="_containerSection350_b9wc6_1",are="_templateLosMejores_b9wc6_1",ire="_templateLosMejores1232_b9wc6_1",ore="_templateLosMejores960_b9wc6_1",sre="_templateLosMejores420_b9wc6_1",lre="_templateLosMejores320_b9wc6_1",rre="_templateLosMejores540_b9wc6_1",nre="_templateLosMejores350_b9wc6_1",dre="_topFiltersParent_b9wc6_1",cre="_topFiltersParent1232_b9wc6_1",pre="_topFiltersParent960_b9wc6_1",mre="_topFiltersParent460_b9wc6_1",hre="_topFiltersParent420_b9wc6_1",ure="_containerTheBest_b9wc6_1",fre="_containerTheBest1232_b9wc6_1",yre="_containerTheBest960_b9wc6_1",gre="_containerTheBest320_b9wc6_1",_re="_titleSection_b9wc6_1",bre="_titleSection540_b9wc6_1",Sre="_containerTables_b9wc6_1",Cre="_containerTables960_b9wc6_1",wre="_containerTables760_b9wc6_1",kre="_containerTables320_b9wc6_1",Ere="_toniKroosWrapper_b9wc6_1",Vre="_toniKroosWrapper1080_b9wc6_1",Tre="_toniKroosWrapper975_b9wc6_1",Nre="_toniKroosWrapper760_b9wc6_1",xre="_toniKroosWrapper420_b9wc6_1",Bre="_toniKroosWrapper320_b9wc6_1",Fre="_frameChild_b9wc6_1",Pre="_filtros_b9wc6_1",zre="_groupParent_b9wc6_1",$re="_shapeIcon_b9wc6_1",Are="_btnFilters_b9wc6_1",Ire="_btnFiltersPC_b9wc6_1",Mre="_quitarFiltros_b9wc6_1",Lre="_quitarFiltros730_b9wc6_1",Rre="_quitarFiltros480_b9wc6_1",Ore="_quitarFiltros380_b9wc6_1",Dre="_btnCloseFilters_b9wc6_1",jre="_mejoresJugadores_b9wc6_1",Wre="_mejoresJugadores730_b9wc6_1",vre="_mejoresJugadores480_b9wc6_1",Ure="_mejoresJugadoresSM_b9wc6_1",Gre="_toniKroos_b9wc6_1",Hre="_teamBar_b9wc6_1",Jre="_menuSection_b9wc6_1",qre="_menuSection960_b9wc6_1",Yre="_menuSectionPlay_b9wc6_1",Zre="_menuSectionPlay960_b9wc6_1",Kre="_containerMenu_b9wc6_1",Xre="_containerMenu760_b9wc6_1",Qre="_containerFilters_b9wc6_1",ene="_teamBarParent_b9wc6_1",tne="_topFilters_b9wc6_1",ane="_topFilters1232_b9wc6_1",ine="_topFilters420_b9wc6_1",one="_topFilters460_b9wc6_1",sne="_losMejores_b9wc6_1",lne="_losMejores380_b9wc6_1",rne="_losMejores530_b9wc6_1",nne="_losMejores730_b9wc6_1",dne="_menuSectionHeader_b9wc6_1",cne="_menuSectionHeader1232_b9wc6_1",pne="_menuSectionHeader960_b9wc6_1",mne="_menuSectionHeader730_b9wc6_1",hne="_dropdown_b9wc6_1",une="_dropdown730_b9wc6_1",fne="_dropdown1_b9wc6_1",yne="_dropdown1730_b9wc6_1",gne="_dropdownParent_b9wc6_1",_ne="_dropdownParent730_b9wc6_1",bne="_menuSectionParentHeader_b9wc6_1",Sne="_menuSectionParentHeader1232_b9wc6_1",Cne="_menuSectionParentHeader960_b9wc6_1",wne="_menuSectionParentHeader730_b9wc6_1",kne="_menuSectionParentHeader430_b9wc6_1",Ene="_descubreVideos_b9wc6_1",Vne="_descubreVideos1232_b9wc6_1",Tne="_descubreVideos960_b9wc6_1",Nne="_allCategories_b9wc6_1",xne="_containerScountingBtn_b9wc6_3",Bne="_btnDeleteAplica_b9wc6_13",Fne="_SearchBtnBar_b9wc6_33",Pne="_btnLeyendTxt_b9wc6_52",zne="_BtnSearchScounting_b9wc6_61",$ne="_containerPredefined_b9wc6_85",Ane="_containerPredefinedScounting_b9wc6_92",Ine="_titleContainerPredefined_b9wc6_100",Mne="_subtitleContainerPredefined_b9wc6_111",Lne={filtersContainer:Ole,filtersContainer1232:Dle,closeFiltersPc:jle,textleyemdmultipleleagues:Wle,textleyemdmultipleleagues380:vle,filtersContainer760:Ule,filtersContainer460:Gle,containerSectionPlay:Hle,containerSectionPlay1232:Jle,containerSectionPlay960:qle,containerSectionPlay320:Yle,containerSectionPlay350:Zle,containerSection:Kle,containerSection1232:Xle,containerSection960:Qle,containerSection320:ere,containerSection350:tre,templateLosMejores:are,templateLosMejores1232:ire,templateLosMejores960:ore,templateLosMejores420:sre,templateLosMejores320:lre,templateLosMejores540:rre,templateLosMejores350:nre,topFiltersParent:dre,topFiltersParent1232:cre,topFiltersParent960:pre,topFiltersParent460:mre,topFiltersParent420:hre,containerTheBest:ure,containerTheBest1232:fre,containerTheBest960:yre,containerTheBest320:gre,titleSection:_re,titleSection540:bre,containerTables:Sre,containerTables960:Cre,containerTables760:wre,containerTables320:kre,toniKroosWrapper:Ere,toniKroosWrapper1080:Vre,toniKroosWrapper975:Tre,toniKroosWrapper760:Nre,toniKroosWrapper420:xre,toniKroosWrapper320:Bre,frameChild:Fre,filtros:Pre,groupParent:zre,shapeIcon:$re,btnFilters:Are,btnFiltersPC:Ire,quitarFiltros:Mre,quitarFiltros730:Lre,quitarFiltros480:Rre,quitarFiltros380:Ore,btnCloseFilters:Dre,mejoresJugadores:jre,mejoresJugadores730:Wre,mejoresJugadores480:vre,mejoresJugadoresSM:Ure,toniKroos:Gre,teamBar:Hre,menuSection:Jre,menuSection960:qre,menuSectionPlay:Yre,menuSectionPlay960:Zre,containerMenu:Kre,containerMenu760:Xre,containerFilters:Qre,teamBarParent:ene,topFilters:tne,topFilters1232:ane,topFilters420:ine,topFilters460:one,losMejores:sne,losMejores380:lne,losMejores530:rne,losMejores730:nne,menuSectionHeader:dne,menuSectionHeader1232:cne,menuSectionHeader960:pne,menuSectionHeader730:mne,dropdown:hne,dropdown730:une,dropdown1:fne,dropdown1730:yne,dropdownParent:gne,dropdownParent730:_ne,menuSectionParentHeader:bne,menuSectionParentHeader1232:Sne,menuSectionParentHeader960:Cne,menuSectionParentHeader730:wne,menuSectionParentHeader430:kne,descubreVideos:Ene,descubreVideos1232:Vne,descubreVideos960:Tne,allCategories:Nne,containerScountingBtn:xne,btnDeleteAplica:Bne,SearchBtnBar:Fne,btnLeyendTxt:Pne,BtnSearchScounting:zne,containerPredefined:$ne,containerPredefinedScounting:Ane,titleContainerPredefined:Ine,subtitleContainerPredefined:Mne},Rne=e.ref(Gs()),One=e.ref(Nq()),Dne=e.ref(Zc()),jne={components:{GSCTableHeader:Qo,GscSwitchComponent:us,GSCFilterperteam:ud,DropdownYears:Yc,GSCFilters:Us,DropdownPositions:qc,GSCExpandedInfo:ns,GSCLabel:xd,GSCSeasonSelect:ed,GSCTopCategory:Rle,GSCTournamentSelect:id,GSCRowTable:as},computed:{...Kn.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},i=JSON.stringify(t);if(JSON.stringify(this.filters)!=i)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...Rne.value}},filterButtonPropsAux(){return{...One.value}},filterButtonPropsTournaments(){return{...Dne.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!0},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Oe(t);return{myDivRefTopsFull:t,elementSize:i}},data(){return{cachedPlayersMap:[],dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},isAvanced:!1,elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],fvTypeStats:"totals",seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,seasonsArray:[{id:1933,tournament:1}],updateTablesfull:0,teamselect:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:B,personalDataFilters:Yt,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{onChangeYear(t){this.personalDataFilters.selectedYear=t},onChangePositions(){},async fillPersonalDataFilters(){try{this.personalDataFilters=await OD(this.seasonsArray,this.tokenFree)}catch(t){console.error("error",t)}},toggleAdvancedView(){this.isAvanced=!this.isAvanced},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(oe.All),i.clearFilters(oe.AGE_RANGE),i.clearFilters(oe.YEAR),i.clearFilters(oe.NATIONALITY),i.clearFilters(oe.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},HandlerShowGraph(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id);if(o){const s={id:t.id,player_name:o.stringFullName,position:t.position,is_female:(o==null?void 0:o.is_female)||0,team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,nationality:o.stringNationalityName,photo:o.stringImageUrl,countryFlag:o.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id||t.player_id);if(o){const s={player_id:o.numberId,name:o.stringFullName,position:o.numberPositionId,is_female:(o==null?void 0:o.is_female)||0,dob:"",team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:o.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY)),t=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.POSITION)),t=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(oe.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(oe.YEAR),this.FVYear=1981,this.personalDataFilters.selectedYear=1981,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(i!=-1?this.arrayFiltersPlays[i].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(oe.All),a.clearFilters(oe.AGE_RANGE),a.clearFilters(oe.YEAR),a.clearFilters(oe.NATIONALITY),a.clearFilters(oe.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange?(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let h=0;h<t.nationalities.length;h++)t.nationalities[h].isSelected&&this.fVnationalities.add(t.nationalities[h].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;for(let h=0;h<t.positions.length;h++)t.positions[h].isSelected&&this.fVsetPositionsIds.push(t.positions[h].id);if(t.hasOwnProperty("nationalities"))var l=t.nationalities.filter(h=>h.isSelected===!0);var r=t.positions.filter(h=>h.isSelected===!0);if(r.length==1&&(o=r[0].name),t.hasOwnProperty("nationalities")&&l.length==1&&(s=l[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var c=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersPosition");c!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[c].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(c,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");p!=-1?this.arrayFiltersPlays[p].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.hasOwnProperty("ageLimits")&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");y!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[y].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var y=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersAge");y!=-1&&this.arrayFiltersPlays.splice(y,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var m=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");m!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[m].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.categoriesPlaysTypes={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},this.detailsObject={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},this.detailsObjectSelection={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=ue.create({headers:{Authorization:`${this.token}`}}),{data:a}=await i.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var i="";t.id==1?i=this.urlFilter:i=this.urlFilter;const a=ue.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=o[0].match_lapse_combinations[m]}),Object.keys(o[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=o[0].playing_as_combinations[m]}),Object.keys(o[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=o[0].field_sections_combinations[m]}),o[0]){for(let m=0;m<o[0].filter_records.length;m++){var s=o[0].description;if(o[0].filter_records[m].field_sections!==void 0){const d=o[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[d]||this.predefinedFiltersSections[d]=="")&&(this.predefinedFiltersSections[d]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[d]):s=s.replace("{field_sections}",this.predefinedFiltersSections[d]))}if(o[0].filter_records[m].match_lapse!==void 0){const d=o[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[d]||this.predefinedFiltersMatchLapse[d]=="")&&(this.predefinedFiltersMatchLapse[d]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[d]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[d]))}if(o[0].filter_records[m].playing_as!==void 0){const d=o[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[d]))}o[0].filter_records[m].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[m].match_result,playingAs:o[0].filter_records[m].playing_as,sections:o[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var n=0,c=new Set,p={},y=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;h++)c.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[h]);p.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),p.setNationalitiesIds=c;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,r.push({id:m+1,name:y,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((y,m)=>y-m).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=c.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let y=1;y<=p.length;y++)y%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=o,t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const c=a.get(r[0])||{};return{id:c.id,name:c.name,img:c.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var c,p,y,m,h,d,f,u,g,C;const w=o.get(r[0])||{};return{age:w.numberAge,categoryName:s.name,country:(p=(c=w.countryId)==null?void 0:c[0])==null?void 0:p.nationality_id,date:w.date,effectiveness:w.effectiveness||0,games:w.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:w.min,name:w.stringFullName,name_short:w.stringFullName,nationality:w.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(m=(y=w.countryId)==null?void 0:y[0])==null?void 0:m.nationality_id}.jpg`,position:w.position_short,positionId:w.numberPositionId,positionfull:this.positions[w.numberPositionId-1],team:((d=(h=w.teamName)==null?void 0:h[0])==null?void 0:d.acronym)||"",teamid:((u=(f=w.teamName)==null?void 0:f[0])==null?void 0:u.team_id)||"",teamname:((C=(g=w.teamName)==null?void 0:g[0])==null?void 0:C.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=ue.create({headers:{Authorization:`${this.token}`}}),i=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=ue.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${i}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),i=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(i.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadPreloadedTops();const t=await ue.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)}}},Wne={ref:"myDivRefTopsFull",class:"play-tops"},vne={key:0,class:"overlay-loading"},Une=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),Gne=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),Hne=[Une,Gne],Jne=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),qne=[Jne],Yne={key:0},Zne={style:{display:"contents"}},Kne={style:{display:"contents"}},Xne={key:0,class:"cont-leyemd-multipleleagues"},Qne=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),ede={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},tde={key:0,style:{"margin-left":"10px"}},ade=e.createElementVNode("span",null,"Todas las categorías",-1),ide=[ade],ode=e.createElementVNode("span",null,"Tipo de Jugada",-1),sde=e.createElementVNode("span",null,"Filtro GolStats",-1),lde={key:3,style:{width:"100%",height:"295px"}};function rde(t,i,a,o,s,l){var r,n,c;const p=e.resolveComponent("GSCTournamentSelect"),y=e.resolveComponent("GSCSeasonSelect"),m=e.resolveComponent("GscSwitchComponent"),h=e.resolveComponent("GSCFilterperteam"),d=e.resolveComponent("GSCFilters"),f=e.resolveComponent("DropdownPositions"),u=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),C=e.resolveComponent("GSCTopCategory"),w=e.resolveComponent("GSCTableHeader"),v=e.resolveComponent("GSCRowTable"),q=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",Wne,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",vne,Hne)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(y,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(m,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(y,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(h,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...A)=>l.clickOpenFilters&&l.clickOpenFilters(...A))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...A)=>l.clickCloseFilters&&l.clickCloseFilters(...A))},qne,2)):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...A)=>l.openMenuFilters&&l.openMenuFilters(...A))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:Kc},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...A)=>l.openMenuFilters&&l.openMenuFilters(...A))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(o.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:i[4]||(i[4]=(...A)=>l.toggleAdvancedView&&l.toggleAdvancedView(...A))},[s.isAvanced?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ocultar avanzado")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ver avanzado")],64))],2),s.isAvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Yne,"Liga: ")),e.createElementVNode("div",{style:e.normalizeStyle(s.isAvanced?"width: auto;":o.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,"button-filter-props":s.isAvanced?l.filterButtonPropsTournaments:l.filterButtonProps,width:"100%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",Zne,[e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 61px;"))},"Posición: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(f,{"dropdown-props":s.dropdownProps,positions:(r=s.personalDataFilters)==null?void 0:r.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(u,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(c=s.personalDataFilters)==null?void 0:c.selectedYear,onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",Kne,[e.withDirectives(e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(d,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonPropsTournaments,filters:s.personalDataFilters},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","filters","filter-type","season","token","onUpdate:filters"]),[[e.vShow,s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"]])],512),[[e.vShow,s.isAvanced]])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[5]||(i[5]=(...A)=>l.getScoutingData&&l.getScoutingData(...A))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(d,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",Xne,[Qne,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(h,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",ede," 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",tde,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(A,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":A.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:A.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(A=>A.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[6]||(i[6]=(...A)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...A))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},ide,2))],64)):e.createCommentVNode("",!0)],2),s.seasonActive!=0||a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.containerTablesClass),id:"container-tables",style:e.normalizeStyle(s.showFullTable?"gap: 0px!important;":"")},[s.optionSelected!=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelectedSubmenu=="Todas las jugadas"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.categoriesDefault,(A,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(A.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(C,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[A.id],"border-radius":"12px","filters-prop":l.filterChange,category:A.id,"type-table":s.typeTable,categoryName:A.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded","onShowGraph","onAddPlayer"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(A.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(C,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":!1,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(C,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ode,e.createTextVNode(" y un "),sde,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(w,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(A,G)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:G},[s.teamselectrec==0||s.teamselectrec==A.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(v,{type:2,"is-expanded":s.playerexpand==A.id&&s.expand,onMediadata:l.setMediaData,data:{position:A.position,player_name:A.player_name,player_photo:A.player_photo,total:A.total,id:A.id,player_age:A.player_age,team_abrev:A.team_abrev,team_logo:A.team_logo,player_position:s.positions[A.player_position-1].fullname,player_country_flag:A.player_country_flag,player_games:A.player_games,player_min:A.player_min,league_name:A.league_name,seasons:A.seasons,season_id:A.season_id},height:"71px",background:G%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==A.id?(e.openBlock(),e.createBlock(q,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:A.team_name,age:A.player_age,dataofbirth:A.date,nationality:A.nationality_name,countryFlag:A.player_country_flag,position:s.positions[A.player_position-1].name,games:A.player_games,min:A.player_min,goals:A.total,effectiveness:"-",category:"total",id:A.id},onViewprofile:Y=>l.viewprofile(Y,A.season_id,A.team_id),background:G%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[7]||(i[7]=(...A)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...A))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[8]||(i[8]=(...A)=>l.getScoutingData&&l.getScoutingData(...A))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",lde)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const nde={$style:Lne},dde=Ce(jne,[["render",rde],["__cssModules",nde]]),cde=e.ref(Gs()),pde=e.ref(Zc()),mde={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0},templates:{type:Array,default:()=>[]}},components:{GscSwitchComponent:us,GSCRadioToggle:XZ,ModalAddPlayList:FK,DropdownTemplates:Tq,GSCTableScrollable:bQ,GSCFilters:Us,ModalAddLista:vK,DropdownYears:Yc,DropdownPositions:qc,PlayTops:dde},computed:{filterButtonProps(){return{...cde.value}},filterButtonPropsTournamentsAdvanced(){return{...pde.value}},sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"90px":t<=330?"95px":t<=340||t<=350?"110px":t<=360?"120px":t<=470?"122px":"130px"},advancedText(){return this.showAdvanced?"Ocultar avanzado":"Ver avanzado"}},data(){return{MobileFilterDesing:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},showtableType:!0,formattedPlayers:[],totalNationalities:0,defaultFiltersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},visibleModalAddPlaylist:!1,showCreatePlaylistModal:!1,filtersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},positions:[{id:1,name:"Portero",fullname:"POR"},{id:2,name:"Defensa central",fullname:"DFC"},{id:3,name:"Lateral por izquierda",fullname:"LI"},{id:4,name:"Lateral por derecha",fullname:"LD"},{id:5,name:"Volante por izquierda",fullname:"VI"},{id:6,name:"Volante por derecha",fullname:"VD"},{id:7,name:"Volante defensivo",fullname:"VDF"},{id:8,name:"Volante ofensivo",fullname:"VO"},{id:9,name:"Delantero",fullname:"DEL"},{id:10,name:"Desconocida",fullname:"Desc"}],tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],filtersTypes:B,personalDataFilters:Yt,personalDataSubFiltersTypes:oe,tournamentsToFilter:UK,tournamentsToFilterVariables:GK,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"Poppins-Regular"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},optionSelected:"Los mejores",showVariables:!0,selectedRadioOption:"Variables propias",showAdvanced:!1,isSearchActive:!1,lastSearchFilters:null,seasonsArray:[],activeFilters:[],isLoading:!1,selectedPlayerToAdd:null}},setup(){const t=e.ref("myDivRefTopsBestPlay"),i=e.ref(null),a=e.ref(null),{elementSize:o}=Oe(t),{elementSize:s}=Oe(i),{elementSize:l}=Oe(a);return{myDivRefTopsBestPlay:t,midLayoutRef:i,filterBoxRef:a,elementSize:o,midLayoutSize:s,filterBoxSize:l}},created(){},async mounted(){try{await this.fillPersonalDataFilters(),this.isSearchActive=!0,this.hasTemplates?await new Promise(t=>{const i=()=>{this.filtersObject.template_id?t(!0):setTimeout(i,100)};i()}):(this.selectedRadioOption="Info general",delete this.filtersObject.template_id,this.showVariables=!1,this.checkSearchButton()),await this.toggleSearch()}catch(t){console.error("Error durante la inicialización:",t)}},methods:{onViewProfile(t){this.$emit("open-profile-player",t)},onAddToList(t){this.selectedPlayerToAdd={player_id:t.objeto_player.player_id,name:t.objeto_player.name,position:t.objeto_player.position_id,is_female:t.objeto_player.is_female||0,dob:t.objeto_player.dob,team_id:t.objeto_player.teams[0].team_id,jersey:t.objeto_player.jersey||0,nationality:t.objeto_player.nationality},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",t)},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),i=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==i},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(i=>i.isSelected).map(i=>i.id),this.seasonsArray=t.filter(i=>i.isSelected).map(i=>({id:i.seasons[0].id,tournamentId:i.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[o,s],this.filtersObject.age_or_year=1}else t.hasOwnProperty("year")?(this.filtersObject.year=t.year,this.filtersObject.age_or_year=0,this.filtersObject.range_age=[]):this.filtersObject.year=0;var i=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=i,this.checkSearchButton(),this.updateActiveFilters()},onFiltersField(t){this.checkSearchButton()},onFiltersUniverse(t){this.filtersObject.minutes_played=Number(t.minutesPlayed),this.filtersObject.last_months=Number(t.lastMonths),this.filtersObject.minutes_played_avg=Number(t.percentMinutesPlayed),this.filtersObject.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1,this.checkSearchButton()},onFiltersProductivity(t){var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filtersObject.categories=i,this.filtersObject.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filtersObject.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filtersObject.red_cards=t.offensesConditions.areRedCardsSelected,this.checkSearchButton()},onChangePositions(t){this.filtersObject.positions=t.filter(i=>i.isSelected&&i.id!==0).map(i=>i.id),this.checkSearchButton()},onChangeYear(t){this.filtersObject.year=t,this.personalDataFilters.selectedYear=t,this.checkSearchButton()},async toggleSearch(){if(this.isSearchActive)try{this.isLoading=!0;const t=await(await fetch("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...this.filtersObject,year:this.filtersObject.year==="Sin límite"?this.personalDataFilters.availableYears[this.personalDataFilters.availableYears.length-1]:this.filtersObject.year})})).json();this.showtableType=!this.filtersObject.template_id,this.formattedPlayers=t.map(i=>({objeto_player:i,player_photo:i.photo,player_name:i.acronym,player_age:this.calculateAge(i.dob),team_abrev:i.teams[0].acronym,jersey:i.jersey||"",nationality:i.nationality,team_name:i.team_name,is_female:i.is_female||0,position_name:this.positions[i.position_id-1].fullname,player_position:this.positions[i.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${i.nationality_id}.jpg`,player_games:i.games_played,player_min:i.minutes_played,nationality_name:ct[i.nationality_id],league_name:i.tournament_name,seasons:i.seasons,season_id:i.seasons[0],stats:i.stats?i.stats.map(a=>({category_id:a[4]||null,custom_category_id:a[0]||null,name:a[1]||"",total:a[2]||0,seasons:a[3]||null})):[]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(t){console.error("Error al realizar la búsqueda:",t)}finally{this.isLoading=!1}},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},resetFilters(){this.filtersObject=JSON.parse(JSON.stringify(this.defaultFiltersObject)),this.lastSearchFilters=null,this.checkSearchButton()},async fillPersonalDataFilters(){this.seasonsArray,this.tokenFree},async changeTabsGeneral(t){this.optionSelected=t},closeModalAddPlaylist(){this.visibleModalAddPlaylist=!1},ChangeRadio(t){if(!this.hasTemplates){this.selectedRadioOption="Info general";return}typeof t=="string"?(this.selectedRadioOption=t,this.showVariables=t==="Variables propias",t==="Info general"&&delete this.filtersObject.template_id,this.checkSearchButton()):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t&&(this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton())},updateActiveFilters(){const t=[];if(this.filtersObject.tournaments.length>0&&this.filtersObject.tournaments.length!=6)if(this.filtersObject.tournaments.length>1)t.push(`Ligas ${this.filtersObject.tournaments.length}`);else{const i=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));i&&t.push(i.name)}else t.push("Todas las ligas");if(this.filtersObject.nationalities.length>0&&this.filtersObject.nationalities.length!==this.totalNationalities&&this.filtersObject.nationalities.length!==231){const i=this.filtersObject.nationalities.length;i===1?t.push("Nacionalidad "+ct[this.filtersObject.nationalities[0]]):t.push(`${i} nacionalidades`)}if(this.filtersObject.elegibles&&this.filtersObject.elegibles.length>0&&t.push("Nacionalidad Mexicana"),this.filtersObject.positions.length>0&&this.filtersObject.positions.length!==9)if(this.filtersObject.positions.length===1){const i=this.positions.find(a=>a.id===this.filtersObject.positions[0]);i&&t.push(i.name)}else t.push(`${this.filtersObject.positions.length} posiciones de juego`);if(this.filtersObject.year>0&&t.push(`A partir del ${this.filtersObject.year}`),this.filtersObject.range_age.length===2&&t.push(`${this.filtersObject.range_age[0]}-${this.filtersObject.range_age[1]} años`),this.filtersObject.last_months&&this.filtersObject.last_months!==12&&t.push(`Últimos ${this.filtersObject.last_months} meses`),this.filtersObject.minutes_played>0&&t.push(`Min. ${this.filtersObject.minutes_played} min`),this.filtersObject.minutes_played_avg>0&&t.push(`Min. ${this.filtersObject.minutes_played_avg}% min`),this.filtersObject.type_stats!==1){const i=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(i)}this.activeFilters=t},handleCreateList(){this.showCreatePlaylistModal=!0,this.visibleModalAddPlaylist=!1},closeCreatePlaylistModal(){this.showCreatePlaylistModal=!1},changeSeasonId(t){this.$emit("change-season-id",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},topsLoaded(t){this.$emit("tops-loaded",t)},handleCompareClick(){this.formattedPlayers.length>0&&this.$emit("compare-players",this.formattedPlayers)}}},st=t=>(e.pushScopeId("data-v-7403faaf"),t=t(),e.popScopeId(),t),hde={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},ude={class:"overlay-loading"},fde=st(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),yde=st(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),gde=[fde,yde],_de={class:"strip-menu"},bde={class:"strip-options-vars"},Sde={key:0,class:"desktop-layout"},Cde={class:"left-containers"},wde={class:"filter-container filter-container-variables container-372"},kde={key:0,class:"filter-container filter-container-variables container-291"},Ede=st(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),Vde={class:"variables-indicator"},Tde=st(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),Nde={class:"filter-container-box"},xde=st(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),Bde={class:"filter-container-box-2"},Fde=st(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),Pde={class:"filter-container-box-3"},zde={class:"advanced-row-top"},$de=st(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),Ade={class:"stats-section"},Ide={class:"filters-applied"},Mde=st(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),Lde={class:"filters-tags-wrapper"},Rde={class:"filters-tags"},Ode=st(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),Dde={key:0,class:"no-results"},jde={key:1,class:"content-container"};function Wde(t,i,a,o,s,l){const r=e.resolveComponent("ModalAddPlayList"),n=e.resolveComponent("ModalAddLista"),c=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCRadioToggle"),y=e.resolveComponent("DropdownTemplates"),m=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),d=e.resolveComponent("DropdownYears"),f=e.resolveComponent("GSCTableScrollable"),u=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock("div",hde,[e.createVNode(r,{isVisible:s.visibleModalAddPlaylist,onClose:l.closeModalAddPlaylist,"user-id":a.userId,onCreateList:l.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(n,{isVisible:s.showCreatePlaylistModal,onClose:l.closeCreatePlaylistModal,"user-id":a.userId,player:s.selectedPlayerToAdd,templates:a.templates.data},null,8,["isVisible","onClose","user-id","player","templates"]),e.withDirectives(e.createElementVNode("div",ude,gde,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",_de,[e.createVNode(c,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":l.sizeTabsFontMP,width:l.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",bde,[o.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",Sde,[e.createElementVNode("div",Cde,[e.createElementVNode("div",wde,[a.hasTemplates?(e.openBlock(),e.createBlock(p,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",kde,[Ede,e.createElementVNode("div",Vde,[e.createVNode(y,{"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:i[0]||(i[0]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":o.elementSize.width<=480,"mid-layout":o.elementSize.width<=780&&o.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":o.elementSize.width<=780&&o.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":o.elementSize.width<=480}])},[a.hasTemplates?(e.openBlock(),e.createBlock(p,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),o.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[1]||(i[1]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container container-291",{"mobile-container":o.elementSize.width<=480,"mid-container":o.elementSize.width<=780&&o.elementSize.width>480,"container-292":o.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":o.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":o.elementSize.width<=480}])},[e.createVNode(y,{"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["team-id","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),o.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[2]||(i[2]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var g,C;return[s.showAdvanced?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":o.elementSize.width<=890,"layout-480":o.elementSize.width<=480}])},[e.createElementVNode("div",zde,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({width:"99.7%","button-filter-props":l.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":l.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":""},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":l.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-75",{"equal-width":o.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[4]||(i[4]=(...w)=>l.toggleSearch&&l.toggleSearch(...w))},"Buscar",2)],2)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":o.elementSize.width<=780,"gap-reduced-850":o.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-tournament":o.elementSize.width<=1e3}])},[Tde,e.createElementVNode("div",Nde,[e.createVNode(m,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.selectedRadioOption!="Variables propias"?s.tournamentsToFilter:s.tournamentsToFilterVariables,"onUpdate:filters":l.onUpdateTournaments},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-2",{"filter-half-position":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-position":o.elementSize.width<=1e3}])},[xde,e.createElementVNode("div",Bde,[e.createVNode(h,{"dropdown-props":s.dropdownProps,positions:(g=s.personalDataFilters)==null?void 0:g.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced":o.elementSize.width<=1e3}])},[Fde,e.createElementVNode("div",Pde,[e.createVNode(d,{"dropdown-props":s.dropdownProps,years:(C=s.personalDataFilters)==null?void 0:C.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[3]||(i[3]=(...w)=>l.toggleSearch&&l.toggleSearch(...w))},"Buscar",2)],2)],2)],2))]}),_:1}),$de,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":o.elementSize.width<=780}])},[e.createElementVNode("div",Ade,[e.createElementVNode("div",Ide,[Mde,e.createElementVNode("div",Lde,[e.createElementVNode("div",Rde,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(g,C)=>(e.openBlock(),e.createElementBlock("span",{key:C,class:"filter-tag"},e.toDisplayString(g),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":o.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:i[5]||(i[5]=(...g)=>l.handleCompareClick&&l.handleCompareClick(...g))},[e.createTextVNode(" Comparar jugadores "),Ode])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",Dde," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",jde,[e.createVNode(f,{players:s.formattedPlayers,"is-general":s.showtableType,onViewProfile:l.onViewProfile,onAddToList:l.onAddToList,onShowGraph:l.onShowGraph,onOpenMedia:l.onOpenMedia},null,8,["players","is-general","onViewProfile","onAddToList","onShowGraph","onOpenMedia"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(u,{key:1,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded,onShowGraph:l.onShowGraph,onAddPlayer:l.onAddPlayer},null,8,["onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)}const vde=Ce(mde,[["render",Wde],["__scopeId","data-v-7403faaf"]]),Ude={name:"SwitchTopsType",components:{TopsFull:JZ,TopsBestAndPlay:vde},data(){return{templates:[],hasTemplates:!1,isTemplatesLoaded:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},created(){this.fetchTemplates()},props:{type:{type:Number,default:1},userId:{type:String,required:!0},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1}},methods:{async fetchTemplates(){var t;try{const i=await ue.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${this.teamId}/templates`);(t=i.data)!=null&&t.data&&Array.isArray(i.data.data)&&i.data.data.length>0?(this.templates=i.data.data,this.hasTemplates=!0):(this.templates=[],this.hasTemplates=!1)}catch(i){console.error("Error al obtener templates:",i),this.templates=[],this.hasTemplates=!1}finally{this.isTemplatesLoaded=!0}},topsLoaded(t){this.$emit("tops-loaded",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},changeSeasonId(t){this.$emit("change-season-id",t)},comparePlayers(t){this.$emit("compare-players",t)},onOpenMedia(t){this.$emit("open-media",t)},onShowGraph(t){this.$emit("show-graph",t)},onOpenProfilePlayer(t){this.$emit("open-profile-player",t)},onAddToList(t){this.$emit("add-to-list",t)}}};function Gde(t,i,a,o,s,l){const r=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(r,{key:0,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,"team-id":a.teamId,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded},null,8,["onChangeSeasonId","onOpenmedia","team-id","current-season-id","is-selection","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded"])):s.isTemplatesLoaded?(e.openBlock(),e.createBlock(n,{key:1,"team-id":a.teamId,"has-templates":s.hasTemplates,templates:s.templates,onOpenMedia:l.onOpenMedia,onShowGraph:l.onShowGraph,onComparePlayers:l.comparePlayers,onOpenProfilePlayer:l.onOpenProfilePlayer,onAddToList:l.onAddToList,onChangeSeasonId:l.changeSeasonId,onOpenProfileTeam:l.openProfileTeam,onTopsLoaded:l.topsLoaded,"user-id":a.userId},null,8,["team-id","has-templates","templates","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id"])):e.createCommentVNode("",!0)])}const Hde=Ce(Ude,[["render",Gde]]),Jde={class:"elegibles"},hp=Qt(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=t,o=y=>{i("openmedia",y)},s=y=>{i("open-profile-team",y)},l=y=>{i("open-profile-player",y)};function r(y){i("showGraph",y)}function n(y){i("change-season-id",y)}function c(y){i("tops-loaded",y)}function p(y){i("comparePlayers",y)}return(y,m)=>(e.openBlock(),e.createElementBlock("div",Jde,[e.createVNode(e.unref(Hde),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores",onOpenmedia:o,onComparePlayers:p,onOpenMedia:o,onOpenProfileTeam:s,onOpenProfilePlayer:l,onShowGraph:r,onChangeSeasonId:n,onTopsLoaded:c},null,8,["user-id","team-id"])]))}}),[["__scopeId","data-v-f4842a4e"]]),qde=(t=>(e.pushScopeId("data-v-cd150b8a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),Yde={class:""},Zde={class:"tabs"},Kde=Qt({__name:"PlayersTrackingMain",props:{tournamentsApiUrl:{type:String,default:""},tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},isSeleccionUser:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},userId:{type:Number,default:24254,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:i}){const a=t,o={fontFamily:"Poppins-Light",logosUrl:"https://golstatsimages.blob.core.windows.net/todoelfut/",logoFileType:"png",height:"40px",width:"179px",borderRadius:8,arrowHeight:24,arrowWidth:24,borderType:"solid",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#0d1d29",color:"white",arrowColor:"#CBEE6B"},s=["Detección de jugadores","Lista de seguimientos","Última convocatoria"],l=e.ref("Detección de jugadores"),r=e.ref({width:0}),n=e.ref(null),c=e.ref(0),p=e.ref(0),y=e.ref([]),m=e.ref([]),h=e.ref(!1),d=e.ref(!1),f=e.ref({}),u=e.ref([]),g=e.ref({});e.ref([]),e.watch(()=>a.tournamentId,$=>{$&&v()},{immediate:!0}),e.watch(()=>a.teamId,async $=>{$&&(await w(),await v())},{immediate:!0});const C=$=>{l.value=$};async function w(){try{const $=[fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/last-call/teams/${a.teamId}/seasons`,{method:"GET",headers:{Authorization:a.token}}),fetch("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",{method:"GET",headers:{Authorization:a.token}})],[U,D]=await Promise.all($),_=await U.json(),b=await D.json();_.forEach(k=>{k.seasonsIds=new Set(k.seasons.map(j=>j.id)),k.availableTournaments=k.seasonsIds?b.reduce((j,K)=>{if(K.seasons.some(je=>k.seasonsIds.has(je.id))){const je=K.seasons.filter(Oi=>k.seasonsIds.has(Oi.id));j.push({...K.tournament,seasonsIds:k.seasonsIds,seasons:je,teamId:k.team_id})}return j},[]):[]}),u.value=_,g.value=_[0]}catch($){console.error($)}}async function v(){try{if(c.value!==a.tournamentId||p.value!==a.teamId){const $=[A()];c.value=a.tournamentId,p.value=a.teamId;const[U]=await Promise.all($);m.value=U}}catch($){console.error("Error filling data",$)}}function q(){G().then($=>{y.value=$})}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($){console.error("Error fetching in followed",$)}}async function G(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${f.value.id}/teams/${f.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch($){console.error("Error fetching last called",$)}}const Y=()=>{n.value&&(r.value.width=n.value.offsetWidth,h.value=r.value.width<700,d.value=r.value.width<420)};e.onMounted(()=>{Y();const $=new ResizeObserver(Y);n.value&&$.observe(n.value)});const J=e.computed(()=>{const $=r.value.width;return $<=560?"170px":($<=650||$<=768,"225px")}),V=e.computed(()=>{const $=r.value.width;return $<=460?"12px":$<=650?"13px":$<=768?"14px":"16px"});e.computed(()=>r.value.width<=380?"18px":"22px");const x=e.computed(()=>{switch(l.value){case"Detección de jugadores":return hp;case"Lista de seguimientos":return r7;case"Última convocatoria":return Gm;default:return hp}}),S=e.computed(()=>d.value||h.value?"100%":"179px"),P=$=>{i("openmedia",$)},z=$=>{i("showGraph",$)},H=$=>{i("open-profile-team",$)},Z=$=>{i("open-profile-player",$)},ce=$=>{i("open-profile-player",$)},Q=$=>{i("comparePlayers",$)};function E($){i("change-season-id",$)}function T($){i("tops-loaded",$)}const O=$=>{f.value=$,q()};function N($){g.value=$}function W($){g.value=$}return($,U)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":h.value}])},[qde,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":h.value}])},[t.isSeleccionUser&&l.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[e.createVNode(e.unref(Ip),e.mergeProps(o,{"model-value":g.value,items:u.value,onInput:N,"onUpdate:modelValue":W}),{default:e.withCtx(({selectedItem:D})=>[e.createElementVNode("div",Yde,e.toDisplayString(D.team_name),1)]),availableItem:e.withCtx(({item:D})=>[e.createElementVNode("div",null,e.toDisplayString(D.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(rm),{key:0,items:g.value.availableTournaments,width:S.value,onInput:O},null,8,["items","width"])):e.createCommentVNode("",!0)],2)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",Zde,[e.createVNode(e.unref(Bm),{type:2,buttons:s,"font-family":"Poppins-Medium","selected-option":l.value,"font-size":V.value,width:J.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:C},null,8,["selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":l.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.value),{"parent-width":r.value.width,"user-id":a.userId,"user-team-id":a.userTeamId,"last-called-players":y.value,"in-followed-players":m.value,onShowGraph:z,onShowProfile:ce,onOpenmedia:P,onOpenMedia:P,onOpenProfileTeam:H,onOpenProfilePlayer:Z,onChangeSeasonId:E,onTopsLoaded:T,onComparePlayers:Q},null,40,["parent-width","user-id","user-team-id","last-called-players","in-followed-players"]))],2)],512))}},[["__scopeId","data-v-cd150b8a"]]),Xde={class:"subcategory-group"},Qde={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Xde,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(le),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},ece=ne(Qde,[["__scopeId","data-v-ae6f3d72"]]),tce={class:"filter-subcategories"},ace=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",tce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"filter-subcategories__group"},[e.createVNode(ece,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Li=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),ice={class:"details__header"},oce=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),sce={class:"details__header__checkbox"},lce={class:"details__body"},rce={class:"details__body__playing-as"},nce=["onClick"],dce={class:"details__header"},cce=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),pce={class:"details__header__checkbox"},mce={class:"details__body"},hce=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),uce={class:"details__body__game-section"},fce=["onClick"],yce={class:"details__body"},gce=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),_ce={class:"details__body__game-section"},bce=["onClick"],Sce=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const i=t;e.useCssVars(y=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>i.playingAs.every(y=>y.isSelected)),o=e.computed(()=>i.gameSections.every(y=>y.isSelected)),s=e.computed(()=>i.gameSections.reduce((y,m)=>(m.value<=3?y.firstHalf.push(m):y.secondHalf.push(m),y),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(y){y?i.playingAs.forEach(m=>{m.isSelected=!0}):i.playingAs.forEach((m,h)=>{m.isSelected=h===0})}function n(y){i.playingAs.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){i.gameSections.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?i.gameSections.forEach(m=>{m.isSelected=!0}):i.gameSections.forEach((m,h)=>{m.isSelected=h===0})}return(y,m)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",ice,[oce,e.createElementVNode("div",sce,[e.createVNode(e.unref(le),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",lce,[e.createElementVNode("div",rce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>n(h)},e.toDisplayString(h.name),11,nce))),128))])]),e.createElementVNode("div",dce,[cce,e.createElementVNode("div",pce,[e.createVNode(e.unref(le),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",mce,[hce,e.createElementVNode("div",uce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,fce))),128))])]),e.createElementVNode("div",yce,[gce,e.createElementVNode("div",_ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,bce))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Cce={class:"filter-field"},wce=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Cce,[e.createVNode(e.unref(_r),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),kce={class:"subcategory-group"},Ece={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",kce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(se),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Vce=re(Ece,[["__scopeId","data-v-ae6f3d72"]]),Tce={class:"filter-subcategories"},Nce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Tce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"filter-subcategories__group"},[e.createVNode(Vce,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Ri=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),xce={class:"details__header"},Bce=Ri(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Fce={class:"details__header__checkbox"},Pce={class:"details__body"},zce={class:"details__body__playing-as"},$ce=["onClick"],Ace={class:"details__header"},Ice=Ri(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Mce={class:"details__header__checkbox"},Lce={class:"details__body"},Rce=Ri(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Oce={class:"details__body__game-section"},Dce=["onClick"],jce={class:"details__body"},Wce=Ri(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),vce={class:"details__body__game-section"},Uce=["onClick"],Gce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const i=t;e.useCssVars(y=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>i.playingAs.every(y=>y.isSelected)),o=e.computed(()=>i.gameSections.every(y=>y.isSelected)),s=e.computed(()=>i.gameSections.reduce((y,m)=>(m.value<=3?y.firstHalf.push(m):y.secondHalf.push(m),y),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(y){y?i.playingAs.forEach(m=>{m.isSelected=!0}):i.playingAs.forEach((m,h)=>{m.isSelected=h===0})}function n(y){i.playingAs.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){i.gameSections.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?i.gameSections.forEach(m=>{m.isSelected=!0}):i.gameSections.forEach((m,h)=>{m.isSelected=h===0})}return(y,m)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",xce,[Bce,e.createElementVNode("div",Fce,[e.createVNode(e.unref(se),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",Pce,[e.createElementVNode("div",zce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>n(h)},e.toDisplayString(h.name),11,$ce))),128))])]),e.createElementVNode("div",Ace,[Ice,e.createElementVNode("div",Mce,[e.createVNode(e.unref(se),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",Lce,[Rce,e.createElementVNode("div",Oce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,Dce))),128))])]),e.createElementVNode("div",jce,[Wce,e.createElementVNode("div",vce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,Uce))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Hce={class:"filter-field"},Jce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Hce,[e.createVNode(e.unref(Kd),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));yt.GSCPlayersTracking=Kde,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"})});
25
+ `+s):a.stack=s}catch{}}throw a}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ft(this.defaults,i);const{transitional:a,paramsSerializer:o,headers:s}=i;a!==void 0&&Bi.assertOptions(a,{silentJSONParsing:tt.transitional(tt.boolean),forcedJSONParsing:tt.transitional(tt.boolean),clarifyTimeoutError:tt.transitional(tt.boolean)},!1),o!=null&&(R.isFunction(o)?i.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:tt.function,serialize:tt.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Bi.assertOptions(i,{baseUrl:tt.spelling("baseURL"),withXsrfToken:tt.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=s&&R.merge(s.common,s[i.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),i.headers=Ye.concat(l,s);const r=[];let n=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(i)===!1||(n=n&&d.synchronous,r.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let p,y=0,m;if(!n){const d=[Fc.bind(this),void 0];for(d.unshift.apply(d,r),d.push.apply(d,c),m=d.length,p=Promise.resolve(i);y<m;)p=p.then(d[y++],d[y++]);return p}m=r.length;let h=i;for(y=0;y<m;){const d=r[y++],f=r[y++];try{h=d(h)}catch(u){f.call(this,u);break}}try{p=Fc.call(this,h)}catch(d){return Promise.reject(d)}for(y=0,m=c.length;y<m;)p=p.then(c[y++],c[y++]);return p}getUri(t){t=Ft(this.defaults,t);const i=Cc(t.baseURL,t.url,t.allowAbsoluteUrls);return mc(i,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){Fi.prototype[t]=function(i,a){return this.request(Ft(a||{},{method:t,url:i,data:(a||{}).data}))}}),R.forEach(["post","put","patch"],function(t){function i(a){return function(o,s,l){return this.request(Ft(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Fi.prototype[t]=i(),Fi.prototype[t+"Form"]=i(!0)});const Pi=Fi;class As{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](s);o._listeners=null}),this.promise.then=s=>{let l;const r=new Promise(n=>{o.subscribe(n),l=n}).then(s);return r.cancel=function(){o.unsubscribe(l)},r},i(function(s,l,r){o.reason||(o.reason=new qt(s,l,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const i=new AbortController,a=o=>{i.abort(o)};return this.subscribe(a),i.signal.unsubscribe=()=>this.unsubscribe(a),i.signal}static source(){let i;return{token:new As(function(a){i=a}),cancel:i}}}const hD=As;function uD(t){return function(i){return t.apply(null,i)}}function fD(t){return R.isObject(t)&&t.isAxiosError===!0}const Is={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Is).forEach(([t,i])=>{Is[i]=t});const yD=Is;function $c(t){const i=new Pi(t),a=Xd(Pi.prototype.request,i);return R.extend(a,Pi.prototype,i,{allOwnKeys:!0}),R.extend(a,i,null,{allOwnKeys:!0}),a.create=function(o){return $c(Ft(t,o))},a}const be=$c(xs);be.Axios=Pi,be.CanceledError=qt,be.CancelToken=hD,be.isCancel=gc,be.VERSION=Pc,be.toFormData=wi,be.AxiosError=ie,be.Cancel=be.CanceledError,be.all=function(t){return Promise.all(t)},be.spread=uD,be.isAxiosError=fD,be.mergeConfig=Ft,be.AxiosHeaders=Ye,be.formToJSON=t=>fc(R.isHTMLForm(t)?new FormData(t):t),be.getAdapter=Bc.getAdapter,be.HttpStatusCode=yD,be.default=be;const Pt=be,Yt={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,i)=>1981+i).sort((t,i)=>i-t),nationalTeams:[{booleanIsSelected:!1,stringName:"Selección mexicana",setAvailablePlayersIds:{},numberId:392}],isEligibilitySelected:!1,eligibility:[{isSelected:!0,id:138,name:"Mexicana"}],nationalities:[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}],positions:[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},Ac={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},Ic={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function zi(t){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},zi(t)}function ot(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function ye(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function he(t){ye(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||zi(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function gD(t,i){ye(2,arguments);var a=he(t),o=ot(i);return isNaN(o)?new Date(NaN):(o&&a.setDate(a.getDate()+o),a)}function _D(t,i){ye(2,arguments);var a=he(t),o=ot(i);if(isNaN(o))return new Date(NaN);if(!o)return a;var s=a.getDate(),l=new Date(a.getTime());l.setMonth(a.getMonth()+o+1,0);var r=l.getDate();return s>=r?l:(a.setFullYear(l.getFullYear(),l.getMonth(),s),a)}function Ca(t,i){if(ye(2,arguments),!i||zi(i)!=="object")return new Date(NaN);var a=i.years?ot(i.years):0,o=i.months?ot(i.months):0,s=i.weeks?ot(i.weeks):0,l=i.days?ot(i.days):0,r=i.hours?ot(i.hours):0,n=i.minutes?ot(i.minutes):0,c=i.seconds?ot(i.seconds):0,p=he(t),y=o||a?_D(p,o+a*12):p,m=l||s?gD(y,l+s*7):y,h=n+r*60,d=c+h*60,f=d*1e3,u=new Date(m.getTime()+f);return u}function Mc(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function Lc(t){ye(1,arguments);var i=he(t);return i.setHours(0,0,0,0),i}var bD=864e5;function SD(t,i){ye(2,arguments);var a=Lc(t),o=Lc(i),s=a.getTime()-Mc(a),l=o.getTime()-Mc(o);return Math.round((s-l)/bD)}function Zt(t,i){ye(2,arguments);var a=he(t),o=he(i),s=a.getTime()-o.getTime();return s<0?-1:s>0?1:s}var CD=6e4,wD=36e5;function kD(t,i){ye(2,arguments);var a=he(t),o=he(i),s=a.getFullYear()-o.getFullYear(),l=a.getMonth()-o.getMonth();return s*12+l}function ED(t,i){ye(2,arguments);var a=he(t),o=he(i);return a.getFullYear()-o.getFullYear()}function Rc(t,i){var a=t.getFullYear()-i.getFullYear()||t.getMonth()-i.getMonth()||t.getDate()-i.getDate()||t.getHours()-i.getHours()||t.getMinutes()-i.getMinutes()||t.getSeconds()-i.getSeconds()||t.getMilliseconds()-i.getMilliseconds();return a<0?-1:a>0?1:a}function VD(t,i){ye(2,arguments);var a=he(t),o=he(i),s=Rc(a,o),l=Math.abs(SD(a,o));a.setDate(a.getDate()-s*l);var r=+(Rc(a,o)===-s),n=s*(l-r);return n===0?0:n}function Ms(t,i){return ye(2,arguments),he(t).getTime()-he(i).getTime()}var TD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},ND="trunc";function Ls(t){return TD[ND]}function xD(t,i,a){ye(2,arguments);var o=Ms(t,i)/wD;return Ls()(o)}function BD(t,i,a){ye(2,arguments);var o=Ms(t,i)/CD;return Ls()(o)}function FD(t){ye(1,arguments);var i=he(t);return i.setHours(23,59,59,999),i}function PD(t){ye(1,arguments);var i=he(t),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function zD(t){ye(1,arguments);var i=he(t);return FD(i).getTime()===PD(i).getTime()}function $D(t,i){ye(2,arguments);var a=he(t),o=he(i),s=Zt(a,o),l=Math.abs(kD(a,o)),r;if(l<1)r=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*l);var n=Zt(a,o)===-s;zD(he(t))&&l===1&&Zt(t,o)===1&&(n=!1),r=s*(l-Number(n))}return r===0?0:r}function AD(t,i,a){ye(2,arguments);var o=Ms(t,i)/1e3;return Ls()(o)}function ID(t,i){ye(2,arguments);var a=he(t),o=he(i),s=Zt(a,o),l=Math.abs(ED(a,o));a.setFullYear(1584),o.setFullYear(1584);var r=Zt(a,o)===-s,n=s*(l-Number(r));return n===0?0:n}function Oc(t){return ye(1,arguments),he(t).getFullYear()}function Dc(t){ye(1,arguments);var i=he(t.start),a=he(t.end);if(isNaN(i.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var o={};o.years=Math.abs(ID(a,i));var s=Zt(a,i),l=Ca(i,{years:s*o.years});o.months=Math.abs($D(a,l));var r=Ca(l,{months:s*o.months});o.days=Math.abs(VD(a,r));var n=Ca(r,{days:s*o.days});o.hours=Math.abs(xD(a,n));var c=Ca(n,{hours:s*o.hours});o.minutes=Math.abs(BD(a,c));var p=Ca(c,{minutes:s*o.minutes});return o.seconds=Math.abs(AD(a,p)),o}const MD="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",LD="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",zt={...Yt},jc=new Set([1]);async function RD(t,i=""){try{const a={Authorization:i||MD},o={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:LD,s=await Pt.get(o+t.id,{headers:a});return s.data?s.data.players:[]}catch(a){return Promise.reject(a)}}async function OD(t=[],i=""){try{const a=t.map(o=>RD(o,i));if(a.length){const o=new Set,s=new Date,l=[],r=new Map,n=new Map,c=await Promise.all(a);for(const p of c)for(const y of p){const m=new Date(y.dob),h=Oc(m),d=Dc({start:m,end:s});r.has(y.nationality_id)||r.set(y.nationality_id,{id:y.nationality_id,isSelected:!0,name:Ac[`${y.nationality_id}`]}),n.has(y.position_id)||n.set(y.position_id,{id:y.position_id,isSelected:!0,name:Ic[`${y.position_id}`]}),o.add(h),l.push(d.years)}return zt.minAge=Math.min(...l),zt.maxAge=Math.max(...l),zt.availableYears=[...o].sort((p,y)=>y-p),zt.nationalities=[...r.values()],zt.positions=[...n.values()],zt.isEligibilitySwitchVisible=t.some(p=>jc.has(p.tournamentId)),zt}else return null}catch(a){return Promise.reject(a)}}const DD={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){o.value&&(o.value.checked=a.modelValue)}function l(r){i("update:modelValue",r.target.checked)}return e.onMounted(()=>{s()}),(r,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:o,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:l},null,544))}},wa=re(DD,[["__scopeId","data-v-e3a6ae4e"]]),$t=t=>(e.pushScopeId("data-v-8c3ead4b"),t=t(),e.popScopeId(),t),jD={class:"personal-data"},WD={class:"personal-data__age"},vD={class:"personal-data__age__toggle"},UD={class:"personal-data__age__range"},GD={class:"personal-data__age__dropdown"},HD=$t(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),JD={class:"selected-item"},qD=$t(()=>e.createElementVNode("div",{class:"separator"},null,-1)),YD={class:"personal-data__nationality-position"},ZD={key:0,class:"personal-data__nationality-position__switch"},KD=$t(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),XD=$t(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),QD={class:"personal-data__nationality-position__nationality"},ej=$t(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),tj={class:"selected-item"},aj=$t(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),ij={class:"selected-item"},oj={class:"personal-data__nationality-position__position"},sj=$t(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),lj={class:"selected-item"},rj="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",nj={__name:"TemplatePersonalData",props:{filters:{type:Object,default:()=>null},isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"},awaitForFilters:{type:Boolean,default:!1}},emits:["update:filters"],setup(t,{expose:i,emit:a}){const o=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},l={id:0,name:"Todas las posiciones",isSelected:!1},r=e.ref({...Yt}),n=e.ref(["Por edad","Por año"]),c=e.ref(0),p=e.ref({min:Yt.minAge,max:Yt.maxAge}),y=e.ref(ht),m=e.ref(""),h=e.ref(""),d=e.ref(r.value.availableYears[r.value.availableYears.length-1]),f=e.ref(0),u=e.computed(()=>{const S=r.value.nationalities?[...r.value.nationalities]:[];o.isSeleccion&&S.forEach(z=>{z.isSelected=z.id===138});const P=S[0];return(!P||P.id!==0)&&S.unshift(s),S}),g=e.computed(()=>{let S=(o.filter&&o.filter.positions?o.filter.positions:r.value.positions)?[...r.value.positions]:[];const P=S[0];return(!P||P.id!==0)&&S.unshift(l),S.sort((z,H)=>z.id-H.id),S}),C=e.computed(()=>o.season&&o.season.tournamentId&&jc.has(o.season.tournamentId)||o.filters&&o.filters.isEligibilitySwitchVisible);e.watch(u,S=>{const P=S.reduce((z,H,Z)=>(Z!==0&&H.isSelected&&z++,z),0);P===u.value.length-1&&(S[0].isSelected=!0),S[0]&&S[0].isSelected?m.value="Todas las nacionalidades":m.value=`${P} seleccionadas`,J()},{immediate:!0,deep:!0}),e.watch(g,S=>{const P=S.reduce((z,H,Z)=>(Z!==0&&H.isSelected&&z++,z),0);P===g.value.length-1&&(S[0].isSelected=!0),S[0]&&S[0].isSelected?h.value="Todas las posiciones":h.value=`${P} seleccionadas`,J()},{immediate:!0,deep:!0}),e.watch(()=>o.filters,S=>{if(S&&S.availableYears){const P=!Number.isNaN(Number(S.selectedYear));r.value=S,c.value=r.value.selectedYear&&P?1:0,d.value=P?r.value.selectedYear:r.value.availableYears[0],p.value.min=r.value.minAge,p.value.max=r.value.maxAge,l.isSelected=S.positions.every(z=>z.isSelected),J()}},{immediate:!0,deep:!0}),e.watch(()=>r.value.isEligibilitySelected,()=>{J()}),e.watch(()=>o.season,S=>{S&&S.id!==f.value&&!o.awaitForFilters&&(f.value=S.id,w(S))},{immediate:!0,deep:!1});async function w(S){try{if(S&&S.id){const P=new Set,z=await q(S.id),H=new Date,Z=[],ce=new Map,Q=new Map;z.forEach(E=>{const T=new Date(E.dob),O=Oc(T),N=Dc({start:T,end:H});ce.has(E.nationality_id)||ce.set(E.nationality_id,{id:E.nationality_id,isSelected:!0,name:Ac[`${E.nationality_id}`]}),Q.has(E.position_id)||Q.set(E.position_id,{id:E.position_id,isSelected:!0,name:Ic[`${E.position_id}`]}),P.add(O),Z.push(N.years)}),r.value.minAge=Math.min(...Z),r.value.maxAge=Math.max(...Z),r.value.availableYears=[...P].sort((E,T)=>T-E),d.value=r.value.availableYears[0],r.value.nationalities=[...ce.values()],r.value.positions=[...Q.values()],p.value.min=r.value.minAge,p.value.max=r.value.maxAge}}catch(P){throw new Error(P)}}function v(S=null){const P=!S||S===oe.All;(P||S===oe.NATIONALITY)&&u.value.forEach(z=>{z.isSelected=!0}),(P||S===oe.ELIGIBILITY)&&(r.value.isEligibilitySelected=!1),(P||S===oe.POSITION)&&g.value.forEach(z=>{z.isSelected=!0}),(P||S===oe.AGE_RANGE)&&(p.value.min=r.value.minAge,p.value.max=r.value.maxAge,c.value=0),(P||S===oe.YEAR)&&(d.value=o.isScouting?r.value.availableYears[r.value.availableYears.length-1]:r.value.availableYears[0],c.value=0),J()}async function q(S){try{const P={Authorization:localStorage.getItem("user_token")||o.token},z={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:rj,H=await Pt.get(z+S,{headers:P});return H.data?H.data.players:[]}catch(P){return Promise.reject(P)}}function A(S){c.value=S.index,o.filters&&o.filters.availableYears&&S.index===0?o.filters.selectedYear="Sin límite":o.filters&&o.filters.availableYears&&S.index===1&&(o.filters.selectedYear=o.filters.availableYears[0])}function G(S){p.value.min=S.minValue,p.value.max=S.maxValue,J()}function Y(S,P){P.id===0?u.value.forEach(z=>{z.isSelected=S}):(P.isSelected=S,u.value[0].isSelected=u.value.every((z,H)=>H===0?!0:z.isSelected))}function J(){const S=c.value===0,P={};S?(P.ageByRange=p.value,P.ageLimits={min:r.value.minAge,max:r.value.maxAge}):P.year=d.value,r.value.isEligibilitySelected?P.eligibility=[...r.value.eligibility]:P.nationalities=u.value.reduce((z,H,Z)=>(Z!==0&&z.push({...H}),z),[]),P.positions=g.value.reduce((z,H,Z)=>(Z!==0&&z.push({...H}),z),[]),a("update:filters",P)}function V(S,P){P.id===0?g.value.forEach(z=>{z.isSelected=S}):(P.isSelected=S,g.value[0].isSelected=g.value.every((z,H)=>H===0?!0:z.isSelected))}function x(S){d.value=S,o.filters&&(o.filters.selectedYear=S),J()}return i({onClearFilters:v}),(S,P)=>(e.openBlock(),e.createElementBlock("div",jD,[e.createElementVNode("div",WD,[e.createElementVNode("div",vD,[e.createVNode(RR,{"selected-button-index":c.value,buttons:n.value,width:"220px",onChange:A},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",UD,[e.createVNode(e.unref(Ud),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":r.value.minAge,"max-limit":r.value.maxAge,"min-value":p.value.min,"max-value":p.value.max,onInput:G},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",GD,[HD,e.createVNode(e.unref(Je),e.mergeProps({"model-value":d.value},y.value,{items:r.value.availableYears,onInput:x}),{default:e.withCtx(({selectedItem:z})=>[e.createElementVNode("div",JD,e.toDisplayString(z),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,e.toDisplayString(z),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),qD,e.createElementVNode("div",YD,[C.value?(e.openBlock(),e.createElementBlock("div",ZD,[KD,e.createVNode(wa,{modelValue:r.value.isEligibilitySelected,"onUpdate:modelValue":P[0]||(P[0]=z=>r.value.isEligibilitySelected=z)},null,8,["modelValue"]),XD])):e.createCommentVNode("",!0),e.createElementVNode("div",QD,[r.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[aj,e.createVNode(e.unref(Je),e.mergeProps(y.value,{"is-multiple-option":"",items:r.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:z})=>[e.createElementVNode("div",ij,e.toDisplayString(z.name),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":z.isSelected,label:z.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ej,e.createVNode(e.unref(Je),e.mergeProps(y.value,{"is-multiple-option":"",items:u.value}),{default:e.withCtx(()=>[e.createElementVNode("div",tj,e.toDisplayString(m.value),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":z.isSelected,label:z.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Y(H,z)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",oj,[sj,e.createVNode(e.unref(Je),e.mergeProps(y.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",lj,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h.value),1)],64))])]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":z.isSelected,label:t.isFemale?z.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):z.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>V(H,z)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},dj=re(nj,[["__scopeId","data-v-8c3ead4b"]]),cj={class:"plays"},pj={class:"plays__body__offensive"},mj={class:"plays__body__title"},hj={class:"number-of-categories"},uj={class:"plays__body__categories"},fj={class:"plays__body__defensive-possession-offenses"},yj={class:"plays__body__title"},gj={class:"number-of-categories"},_j={class:"plays__body__categories"},bj={class:"plays__body__title"},Sj={class:"number-of-categories"},Cj={class:"plays__body__categories"},wj={class:"plays__body__title"},kj={class:"number-of-categories"},Ej={class:"plays__body__categories"},Vj={__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(t){const i=t,a=e.ref(!1),o=e.ref(!1),s=e.ref(!1),l=e.ref(!1),r=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>i.playsCategories.offensive.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),c=e.computed(()=>i.playsCategories.defensive.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),p=e.computed(()=>i.playsCategories.possession.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),y=e.computed(()=>i.playsCategories.offenses.categories.reduce((d,f)=>(f.isSelected&&d++,d),0));function m(d,f){f.isSelected=d}function h(d){d==="offensive"?a.value=!a.value:d==="defensive"?o.value=!o.value:d==="possession"?s.value=!s.value:d==="offenses"&&(l.value=!l.value)}return(d,f)=>(e.openBlock(),e.createElementBlock("div",cj,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",pj,[e.createElementVNode("div",mj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[0]||(f[0]=u=>h("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",hj,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[1]||(f[1]=u=>h("offensive"))},[e.withDirectives(e.createVNode(xt,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",uj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",fj,[e.createElementVNode("div",yj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[2]||(f[2]=u=>h("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",gj,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[3]||(f[3]=u=>h("defensive"))},[e.withDirectives(e.createVNode(xt,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",_j,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]]),e.createElementVNode("div",bj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[4]||(f[4]=u=>h("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",Sj,"("+e.toDisplayString(p.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[5]||(f[5]=u=>h("possession"))},[e.withDirectives(e.createVNode(xt,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Cj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",wj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[6]||(f[6]=u=>h("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",kj,"("+e.toDisplayString(y.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[7]||(f[7]=u=>h("offenses"))},[e.withDirectives(e.createVNode(xt,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",Ej,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(se),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])])],4)]))}},Tj=re(Vj,[["__scopeId","data-v-364e6cae"]]),Nj={class:"template-results"},xj={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:i}){const a=t,o=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{i("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,l)=>(e.openBlock(),e.createElementBlock("div",Nj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:r.isSelected,"onUpdate:modelValue":c=>r.isSelected=c,label:r.name,"avoid-interaction":o.value===1&&r.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},Bj=re(xj,[["__scopeId","data-v-453e89c2"]]),Fj={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:i}){const a=t,o=e.computed(()=>({"--height":a.height,"--width":a.width,"--padding":a.padding,"--border-radius":a.borderRadius,"--border":`solid ${a.borderWidth} ${a.borderColor}`,"--background-color":a.backgroundColor,"--font-color":a.fontColor,"--font-size":a.fontSize,"--font-family":a.fontFamily,"--active-background-color":a.activeBackgroundColor||a.backgroundColor,"--active-border-color":a.activeBorderColor||a.borderColor,"--active-font-color":a.activeFontColor||a.fontColor}));function s(){i("click")}return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(o.value),onClick:s},e.toDisplayString(t.text),7))}},ka=re(Fj,[["__scopeId","data-v-9688933e"]]),Pj={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Wc={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},zj={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},$j={4:"OF",5:"Cf",6:"S",7:"F"};function Rs(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const Aj={class:"dropdown"},Ij={class:"selected-item"},Mj={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Aj,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(ht),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",Ij,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),_:1},16,["is-list-same-width","items"])]))}},Ae=re(Mj,[["__scopeId","data-v-064d5f86"]]),Lj={class:"dropdown"},Rj={class:"game-item"},Oj={key:0,class:"item-game"},Dj={class:"match-day"},jj={class:"team-logo"},Wj=["src"],vj={class:"text"},Uj={class:"text score"},Gj={class:"text"},Hj={class:"team-logo"},Jj=["src"],qj={class:"item-game"},Yj={class:"team-logo"},Zj=["src"],Kj={class:"text"},Xj={class:"text score"},Qj={class:"text"},eW={class:"team-logo"},tW=["src"],aW={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Lj,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(ht),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",Rj,[l.homeTeam?(e.openBlock(),e.createElementBlock("div",Oj,[e.createElementVNode("div",Dj,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",jj,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,Wj)]),e.createElementVNode("div",vj,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",Uj,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",Gj,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",Hj,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,Jj)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",qj,[e.createElementVNode("div",null,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",Yj,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,Zj)]),e.createElementVNode("div",Kj,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",Xj,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",Qj,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",eW,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,tW)])])]),_:1},16,["items"])]))}},$i=re(aW,[["__scopeId","data-v-7883a91e"]]),Ai=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),iW={class:"container"},oW={class:"container__row"},sW={class:"container__row__wrapper"},lW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),rW={class:"container__row__wrapper__input"},nW={class:"container__row two-items"},dW={class:"container__row__wrapper"},cW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),pW={key:0,class:"container__row__wrapper__input"},mW={class:"container__row__wrapper"},hW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),uW={key:0,class:"container__row__wrapper__input"},fW={class:"container__row"},yW={class:"container__row__wrapper"},gW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),_W={key:0,class:"container__row__wrapper__input"},bW={class:"container__action"},SW={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null);function n(m){o.value=m,i("update:tournament",m)}function c(m){s.value=m,i("update:season",m)}function p(m){l.value=m}function y(m){r.value=m}return(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",iW,[e.createElementVNode("div",oW,[e.createElementVNode("div",sW,[lW,e.createElementVNode("div",rW,[e.createVNode(Ae,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",nW,[e.createElementVNode("div",dW,[cW,o.value&&o.value.seasons?(e.openBlock(),e.createElementBlock("div",pW,[e.createVNode(Ae,{items:o.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",mW,[hW,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",uW,[e.createVNode(Ae,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",fW,[e.createElementVNode("div",yW,[gW,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",_W,[e.createVNode($i,{items:l.value.arrayGames,onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",bW,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},CW=re(SW,[["__scopeId","data-v-b63e9c84"]]),wW={class:"dropdown"},kW={class:"item-team"},EW={class:"team-logo"},VW=["src"],TW={class:"team-acronym"},NW={class:"item-team"},xW={class:"team-logo"},BW=["src"],FW={class:"team-acronym"},PW={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",wW,[e.createVNode(e.unref(Je),e.mergeProps(e.unref(ht),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",kW,[e.createElementVNode("div",EW,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,VW)]),e.createElementVNode("div",TW,e.toDisplayString(l.acronym),1)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",NW,[e.createElementVNode("div",xW,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,BW)]),e.createElementVNode("div",FW,e.toDisplayString(l.acronym),1)])]),_:1},16,["items"])]))}},vc=re(PW,[["__scopeId","data-v-afd2bee8"]]),zW={class:"advanced-filters"},$W={class:"advanced-filters__buttons"},AW=["onClick"],IW={class:"advanced-filters__filters"},MW={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Nce)),o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Gce)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Jce)),l=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:o}],r=e.ref(l[0]),n=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function c(p){r.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock("div",zW,[e.createElementVNode("div",$W,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,m=>e.createElementVNode("div",{key:m.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:r.value.name===m.name}]),onClick:h=>c(m)},e.toDisplayString(m.name),11,AW)),64))]),e.createElementVNode("div",IW,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},Os=re(MW,[["__scopeId","data-v-c62c5b9c"]]),At=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),LW={class:"container"},RW={class:"container__row"},OW={class:"container__row__wrapper"},DW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),jW={class:"container__row__wrapper__input"},WW={class:"container__row two-items"},vW={class:"container__row__wrapper"},UW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),GW={key:0,class:"container__row__wrapper__input"},HW={class:"container__row__wrapper"},JW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),qW={key:0,class:"container__row__wrapper__input"},YW={class:"container__row"},ZW={class:"container__row__wrapper"},KW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),XW={key:0,class:"container__row__wrapper__input"},QW={class:"container__row"},ev={class:"container__row__wrapper"},tv=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),av={key:0,class:"container__row__wrapper__input"},iv={class:"container__row type-and-advanced"},ov={class:"container__row__wrapper"},sv=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),lv={class:"container__row__wrapper__input"},rv={class:"container__row__wrapper center"},nv=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),dv={class:"container__row__wrapper__input"},cv={class:"container__row"},pv={class:"container__action"},mv={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(null),y=e.ref(!0),m=e.computed(()=>c.value?c.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function h(w){s.value=w,i("update:tournament",w)}function d(w){l.value=w,i("update:season",w)}function f(w){n.value=w,i("update:team",w)}function u(w){c.value=w}function g(w){r.value=w}function C(w){p.value=w}return(w,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",LW,[e.createElementVNode("div",RW,[e.createElementVNode("div",OW,[DW,e.createElementVNode("div",jW,[e.createVNode(Ae,{items:t.tournaments,itemTextKey:"name",onInput:h},null,8,["items"])])])]),e.createElementVNode("div",WW,[e.createElementVNode("div",vW,[UW,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",GW,[e.createVNode(Ae,{items:s.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",HW,[JW,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",qW,[e.createVNode(vc,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",YW,[e.createElementVNode("div",ZW,[KW,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",XW,[e.createVNode(Ae,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",QW,[e.createElementVNode("div",ev,[tv,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",av,[e.createVNode($i,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",iv,[e.createElementVNode("div",ov,[sv,e.createElementVNode("div",lv,[e.createVNode(Ae,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:C},null,8,["items"])])]),e.createElementVNode("div",rv,[nv,e.createElementVNode("div",dv,[e.createVNode(wa,{modelValue:y.value,"onUpdate:modelValue":v[0]||(v[0]=q=>y.value=q)},null,8,["modelValue"])])])]),e.createElementVNode("div",cv,[e.createVNode(Os,{"selected-category":p.value},null,8,["selected-category"])])]),e.createElementVNode("div",pv,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},hv=re(mv,[["__scopeId","data-v-575b26b5"]]),Kt=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),uv={class:"container"},fv={class:"container__row"},yv={class:"container__row__wrapper"},gv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),_v={class:"container__row__wrapper__input"},bv={class:"container__row two-items"},Sv={class:"container__row__wrapper"},Cv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),wv={key:0,class:"container__row__wrapper__input"},kv={class:"container__row__wrapper"},Ev=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),Vv={key:0,class:"container__row__wrapper__input"},Tv={class:"container__row"},Nv={class:"container__row__wrapper"},xv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Bv={key:0,class:"container__row__wrapper__input"},Fv={class:"container__row type-and-advanced"},Pv={class:"container__row__wrapper"},zv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),$v={class:"container__row__wrapper__input"},Av={class:"container__row__wrapper center"},Iv=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),Mv={class:"container__row__wrapper__input"},Lv={class:"container__row"},Rv={class:"container__action"},Ov={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.team);function m(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function d(g){n.value=g,i("update:team",g)}function f(g){r.value=g}function u(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",uv,[e.createElementVNode("div",fv,[e.createElementVNode("div",yv,[gv,e.createElementVNode("div",_v,[e.createVNode(Ae,{items:t.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),e.createElementVNode("div",bv,[e.createElementVNode("div",Sv,[Cv,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",wv,[e.createVNode(Ae,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",kv,[Ev,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",Vv,[e.createVNode(vc,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Tv,[e.createElementVNode("div",Nv,[xv,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",Bv,[e.createVNode($i,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Fv,[e.createElementVNode("div",Pv,[zv,e.createElementVNode("div",$v,[e.createVNode(Ae,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",Av,[Iv,e.createElementVNode("div",Mv,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=w=>p.value=w)},null,8,["modelValue"])])])]),e.createElementVNode("div",Lv,[e.createVNode(Os,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",Rv,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},Dv=re(Ov,[["__scopeId","data-v-6d73d5e6"]]),Xt=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),jv={class:"container"},Wv={class:"container__row"},vv={class:"container__row__wrapper"},Uv=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Gv={class:"container__row__wrapper__input"},Hv={class:"container__row two-items"},Jv={class:"container__row__wrapper"},qv=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Yv={key:0,class:"container__row__wrapper__input"},Zv={class:"container__row__wrapper"},Kv=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),Xv={key:0,class:"container__row__wrapper__input"},Qv={class:"container__row"},eU={class:"container__row__wrapper"},tU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),aU={key:0,class:"container__row__wrapper__input"},iU={class:"container__row type-and-advanced"},oU={class:"container__row__wrapper"},sU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),lU={class:"container__row__wrapper__input"},rU={class:"container__row__wrapper center"},nU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),dU={class:"container__row__wrapper__input",style:{width:"fit-content"}},cU={class:"container__row"},pU={class:"container__action"},mU={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null),r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.games);function m(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function d(g){r.value=g}function f(g){n.value=g}function u(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",jv,[e.createElementVNode("div",Wv,[e.createElementVNode("div",vv,[Uv,e.createElementVNode("div",Gv,[e.createVNode(Ae,{items:t.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),e.createElementVNode("div",Hv,[e.createElementVNode("div",Jv,[qv,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",Yv,[e.createVNode(Ae,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Zv,[Kv,l.value&&l.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",Xv,[e.createVNode(Ae,{items:l.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Qv,[e.createElementVNode("div",eU,[tU,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",aU,[e.createVNode($i,{items:r.value.arrayGames,onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",iU,[e.createElementVNode("div",oU,[sU,e.createElementVNode("div",lU,[e.createVNode(Ae,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",rU,[nU,e.createElementVNode("div",dU,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=w=>p.value=w)},null,8,["modelValue"])])])]),e.createElementVNode("div",cU,[e.createVNode(Os,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",pU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},hU=re(mU,[["__scopeId","data-v-6e904db8"]]),uU={class:"template-videos"},fU={class:"template-videos__header"},yU={class:"template-videos__body"},gU=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:CW,VideosPlayer:hv,VideosTeam:Dv,VideosGame:hU}}),_U=Object.assign(gU,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(t,{emit:i}){const a=t,o={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],l=["g-23","g-24","g-25"],r={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),p=e.ref([]),y=e.ref(c.value[0]),m=e.ref({}),h=e.ref({}),d=e.ref({}),f=e.ref({}),u=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const C=e.ref(null);e.watch(m,E=>{h.value.numberSeasonSelectedIndex=h.value.seasons.findIndex(T=>T.id===E.id),E.arrayMatchDays?(f.value=E.arrayMatchDays[0]||{},d.value=E.arrayTeams[0]||{}):(G(E),Y(E))}),e.watch(d,()=>{setTimeout(()=>{m.value.mapPlayersByTeam&&(!d.value.arrayPlayers||!d.value.arrayPlayers.length)&&(d.value.arrayPlayers=m.value.mapPlayersByTeam.get(d.value.team_id))},700)});async function w(){try{p.value=await v()}catch(E){throw new Error(E)}}async function v(){try{const E={Authorization:Rs()||a.token},T={}.API_TOURNAMENTS||a.tournamentsUrl,O=await Pt.get(T,{headers:E});return O.data?O.data.map(N=>({...N.tournament,seasons:N.seasons})):[]}catch(E){return Promise.reject(E)}}async function q(E,T,O=""){i("loading-data");let N=O;try{N||(N={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,E.forEach((D,_)=>{N+=`${_===0?"":"&"}seasons=${D}`}));const W={Authorization:Rs()||a.token},{data:{data:$,teams:U}}=await Pt.get(N,{headers:W});return{seasonsAndGames:$,seasonsAndTeams:U}}catch(W){if(T>0)return q(E,T-1,N);throw new Error(W)}finally{i("loading-data")}}async function A(E){try{const T={Authorization:Rs()||a.token},O=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${E.seasonId}`,N=await Pt.get(O,{headers:T});return N.data?N.data.players:[]}catch(T){return Promise.reject(T)}}async function G(E){try{const{seasonsAndGames:T,seasonsAndTeams:O}=await q([E.id,...E.related_seasons.map(U=>U.id)],3),N=O.find(U=>U._id===E.id);m.value.arrayTeams=[],m.value.mapTeams=new Map;const W=N.teams.reduce((U,D)=>(m.value.arrayTeams.push(D),m.value.mapTeams.set(D.team_id,{name:D.colloquial_name,acronym:D.acronym,logo:D.logo,id:D.team_id}),U.set(D.team_id,D),U),new Map);d.value=m.value.arrayTeams[0],m.value.mapGames=new Map,m.value.mapGamesByTeam=new Map;const $=Array.from(T.reduce((U,D)=>(D.games.forEach(_=>{if(_.game_status===1&&_.has_video){(!m.value.maxGameId||_.game_id>m.value.maxGameId)&&(m.value.maxGameId=_.game_id);let b=_.matchday_abbreviation.replace("M","J"),k=_.matchday_abbreviation.replace("M","Jornada ");const j=_.matchday_abbreviation.replace("M","");D.season_type===0?h.value.tournament_type===1&&(_.seasonId===881?(b=$j[j]||b,k=zj[j]||k):(b=Wc[_.matchday_abbreviation]?_.matchday_abbreviation:b,k=Wc[_.matchday_abbreviation]||k,b==="FINAL"&&(b="F"))):D.season_type===1?(b=Pj[_.matchday_abbreviation],k=b):(b=_.matchday_abbreviation.replace("PO","R"),k="Repechaje"),_.roundAbbreviation=b,_.roundName=k,m.value.mapGames.set(_.game_id,{id:_.game_id,date:_.date,dateTimeMillis:new Date(_.date_time_utc).valueOf(),homeTeam:m.value.mapTeams.get(_.home_team),awayTeam:m.value.mapTeams.get(_.visiting_team),roundAbbreviation:_.roundAbbreviation,roundName:_.roundName,score:_.score,gameResult:_.score[0]>_.score[1]?1:_.score[0]<_.score[1]?2:3,seasonId:D.season_id});const K=U.get(_.roundAbbreviation);_.numberDateTimeMillis=new Date(_.date_time_utc).getTime(),_.homeTeam=W.get(_.home_team),_.awayTeam=W.get(_.visiting_team);const pe=m.value.mapGamesByTeam.get(_.home_team),je=m.value.mapGamesByTeam.get(_.visiting_team);pe?pe.push(_):m.value.mapGamesByTeam.set(_.home_team,[_]),je?je.push(_):m.value.mapGamesByTeam.set(_.visiting_team,[_]),K?K.arrayGames.push(_):U.set(_.roundAbbreviation,{stringMatchDayAbbreviation:_.roundAbbreviation,stringMatchDayName:_.roundName,arrayGames:[_]})}}),U),new Map).values());$.reverse(),$.forEach(U=>{U.arrayGames.sort((D,_)=>D.numberDateTimeMillis-_.numberDateTimeMillis)}),m.value.arrayMatchDays=$,f.value=$[0]||{}}catch(T){throw new Error(T)}}async function Y(E){try{const T=await P(E.id);m.value.mapPlayers=new Map,m.value.mapPlayersByTeam=T.reduce((O,N)=>{m.value.mapPlayers.set(N.player_id,{id:N.player_id,name:N.player_name,shortName:N.shortName,photo:N.player_photo,teamId:N.team_id,positionId:N.position_id});const W=O.get(N.team_id);return W?W.push(N):O.set(N.team_id,[N]),O},new Map)}catch(T){throw new Error(T)}}async function J(){try{let E=[];u.value.isEmpty?(E=await z(),g.value={...E}):E=g.value;const T=[];if(E&&E.length){u.value=E.reduce((D,_)=>{if(_.group_id!=="g-55"){const b={idAux:_.group_id,ids:[..._.ids?_.ids:[],..._.rival_Ids?_.rival_Ids:[]],type:_.type,name:_.name,coordinatePoint:_.coordinate_point,requiresRivalTransform:l.includes(_.group_id)};b.idsAux=[...b.ids],b.subcategoryGroups=_.group_id==="g-12"?[]:V(_,0,new Map,!1,{},b.idsAux),T.push(b),b.type.includes(n.player)&&D.player.push(b),b.type.includes(n.team)&&(b.idAux!=="g-2"&&D.games.push(b),D.team.push(b)),b.type.includes(n.goalkeeper)&&D.goalkeeper.push(b)}return D},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const O=new Map,N="Resumen",W="Todas sus jugadas",$=u.value.player.reduce((D,_)=>{const b=x(_);return b.forEach(k=>{O.set(k,_.name)}),D.push(...b),D},[]),U=u.value.goalkeeper.reduce((D,_)=>{const b=x(_);return b.forEach(k=>{O.set(k,_.name)}),D.push(...b),D},[]);u.value.games.unshift({name:N,arrayCategoriesIds:r.games,booleanIsBestPlays:!0}),u.value.team.unshift({name:N,arrayCategoriesIds:r.team,booleanIsBestPlays:!0}),u.value.player.unshift({name:N,arrayCategoriesIds:r.player.regular,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:$,booleanIsMinutesPlayed:!0}),u.value.goalkeeper.unshift({name:N,arrayCategoriesIds:r.player.goalkeeper,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:U,booleanIsMinutesPlayed:!0})}}catch(E){throw new Error(E)}}function V(E,T=0,O=new Map,N=!1,W={},$=[]){if(!E.group_id)return;let U=O.get(T);const D=N?`${E.id_category}_r`:E.id_category;E.id_category&&$.push(E.id_category);let _={ids:[D],groupId:E.group_id,level:T,name:E.name,isSelected:!0,fatherCategories:T>0?[W]:[],idsByFatherCategory:{[E.category_father]:[D]}};if(T>0&&T===1&&(_.id=E.id_category),U&&T!==0){const b=E.group_id.charAt(E.group_id.length-1),k=U.find(j=>j.groupId.endsWith(b));k&&!s.includes(_.groupId)?(_=k,k.ids.push(D),k.fatherCategories.push(W),k.fatherCategories.forEach(j=>{j.childCategories?j.childCategories.find(K=>K.groupId===_.groupId)||j.childCategories.push(_):j.childCategories=[_]}),k.idsByFatherCategory[E.category_father]?k.idsByFatherCategory[E.category_father].push(D):k.idsByFatherCategory[E.category_father]=[D]):(_.fatherCategories.forEach(j=>{j.childCategories?j.childCategories.find(K=>K.groupId===_.groupId)||j.childCategories.push(_):j.childCategories=[_]}),U.push(_))}else T!==0&&(W.childCategories?W.childCategories.push(_):W.childCategories=[_],U=[_],O.set(T,U));if(E.categories&&E.categories.length?E.categories.forEach(b=>{V(b,T+1,O,N,_,$)}):E.rival_categories&&E.rival_categories.length&&E.rival_categories.forEach(b=>{V(b,T+1,O,!0,_,$)}),T===0)return Array.from(O.values())}function x(E){const T=E||E;if(T.booleanIsBestPlays)return T.arrayCategoriesIds;const O={total:[],toRemove:[]};if(T.subcategoryGroups&&T.subcategoryGroups.length?T.subcategoryGroups[0].forEach(N=>{S(N,null,O)}):(T.ids&&O.total.push(...T.ids),T.rival_ids&&T.rival_ids.forEach(N=>{O.total.push(`${N}_r`)})),O.total=O.total.reduce((N,W)=>(O.toRemove.includes(W)||N.push(W),N),[]),!E){const N=T.name.toLowerCase().includes("recibid");C.value.isRivalSubject=N,C.value.avoidCategorySingleName=N,C.value.coordinatePoint=T.coordinatePoint,C.value.requiresRivalTransform=T.requiresRivalTransform}return O.total}function S(E,T=[],O={total:[],toRemove:[]}){E.isSelected?E.childCategories?E.childCategories.forEach(N=>{const W=T?Object.entries(E.idsByFatherCategory).reduce(($,[U,D])=>(T.includes(Number(U))&&D.forEach(_=>{typeof _=="string"&&_.endsWith("_r")?$.push(Number(_.split("_")[0])):$.push(_)}),$),[]):[E.id];S(N,W,O)}):T?Object.entries(E.idsByFatherCategory).forEach(([N,W])=>{T.includes(Number(N))&&W.forEach($=>{O.total.push($)})}):E.level===1?Object.entries(E.idsByFatherCategory).forEach(([N,W])=>{W.forEach($=>{O.total.push($)})}):O.total.push(E.id):E.childCategories||E.ids.forEach(N=>{O.toRemove.push(N)})}async function P(E){try{const T=await A({seasonId:E});return T.forEach(O=>{const[N,W]=O.player_name.split(","),$=N.split(" ");let U="";for(const D of $)if(U+=` ${D}`,D.length>3)break;O.shortName=W&&N?`${W.trim().charAt(0)}.${U}`:""}),T}catch(T){return Promise.reject(T)}}async function z(){try{const E={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Pt.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:E})).data||[]}catch(E){return Promise.reject(E)}}function H(E){y.value=E}function Z(E){h.value=E,m.value=E.seasons[0]}function ce(E){m.value=E}function Q(E){d.value=E}return w(),J(),(E,T)=>(e.openBlock(),e.createElementBlock("div",uU,[e.createElementVNode("div",fU,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,O=>(e.openBlock(),e.createBlock(ka,e.mergeProps({key:O.name},o,{text:O.name,"is-active":y.value.componentName===O.componentName,tournaments:p.value,onClick:N=>H(O)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",yU,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value.componentName),{tournaments:p.value,"advanced-filter-categories":u.value,"onUpdate:tournament":Z,"onUpdate:season":ce,"onUpdate:team":Q},null,40,["tournaments","advanced-filter-categories"]))])]))}}),bU=re(_U,[["__scopeId","data-v-d6f7aec8"]]),Uc=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),SU={class:"template-taken-corners"},CU={class:"template-taken-corners__header"},wU={class:"template-taken-corners__header__all"},kU={class:"template-taken-corners__body"},EU={class:"template-taken-corners__body__players"},VU={class:"template-taken-corners__body__players__player__jersey"},TU={class:"template-taken-corners__body__players__player__photo"},NU={class:"template-taken-corners__body__players__player__photo__img"},xU=["src"],BU={class:"template-taken-corners__body__players__player__info"},FU={class:"template-taken-corners__body__players__player__info__name"},PU={class:"template-taken-corners__body__players__player__info__position"},zU={class:"template-taken-corners__body__players__player__info__position__nationality"},$U=["src"],AU={class:"template-taken-corners__body__players__player__info__position__name"},IU={class:"template-taken-corners__body__players__player__checkbox"},MU={__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!1),l=e.ref([]),r=e.computed(()=>o.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>l.value.reduce((u,g)=>g.isSelected?u+1:u,0));e.watch(()=>o.takenCornersFilters,u=>{l.value=u.map(g=>{const C={...g};return(g.isSelected===void 0||g.isSelected===null)&&(C.isSelected=!0),C})},{immediate:!0,deep:!0}),e.watch(n,u=>{s.value=u===l.value.length,a("change-filters-selected",u),a("update:filters",l.value)},{immediate:!0});function c(u){return`https://golstatsimages.blob.core.windows.net/flags/${u}.jpg`}function p(u){return`https://golstatsimages.blob.core.windows.net/players-profile/${u}.png`}function y(u){let g=!1;return u.split(" ").reduce((C,w)=>(g||(w.length>3?(C=w,g=!0):C+=`${w} `),C),"").trim()}function m(u){return`${y(u.last_name)}, ${u.first_name.trim()}`}function h(u){return o.isFemale?Uc.get(u.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):Uc.get(u.positions[0])}function d(u){u?l.value.forEach(g=>{g.isSelected=!0}):l.value.forEach((g,C)=>{g.isSelected=C===0})}function f(){l.value.forEach(u=>{u.isSelected=!0})}return i({clearFilters:f}),(u,g)=>(e.openBlock(),e.createElementBlock("div",SU,[e.createElementVNode("div",CU,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(r.value),5),e.createElementVNode("div",wU,[e.createVNode(e.unref(se),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",kU,[e.createElementVNode("div",EU,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",VU,e.toDisplayString(C.jersey),1),e.createElementVNode("div",TU,[e.createElementVNode("div",NU,[e.createElementVNode("img",{src:p(C.player_id),alt:"player photo",width:"36",height:"36"},null,8,xU)])]),e.createElementVNode("div",BU,[e.createElementVNode("div",FU,e.toDisplayString(m(C)),1),e.createElementVNode("div",PU,[e.createElementVNode("div",zU,[e.createElementVNode("img",{src:c(C.nationality_id),alt:"country flag"},null,8,$U)]),e.createElementVNode("div",AU,e.toDisplayString(h(C)),1)])]),e.createElementVNode("div",IU,[e.createVNode(e.unref(se),{modelValue:C.isSelected,"onUpdate:modelValue":w=>C.isSelected=w,"avoid-interaction":n.value===1&&C.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},LU=re(MU,[["__scopeId","data-v-763fcc54"]]),Ds={cornerType:"left",left:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[120]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[126]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[327]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[133]}],right:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-derecha.png",howMany:0,isSelected:!0,categoriesIds:[134]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-derecha.png",howMany:0,isSelected:!0,categoriesIds:[140]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-derecha.png",howMany:0,isSelected:!0,categoriesIds:[146]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-derecha.png",howMany:0,isSelected:!0,categoriesIds:[147]}]},js=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),RU={class:"template-how-was-corner"},OU={class:"template-how-was-corner__header"},DU=js(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),jU={class:"template-how-was-corner__header__radio-input"},WU={class:"template-how-was-corner__header__radio-input__radio"},vU=js(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),UU={class:"template-how-was-corner__header__radio-input"},GU={class:"template-how-was-corner__header__radio-input__radio"},HU=js(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),JU=["onClick"],qU={class:"template-how-was-corner__content__corner-type__img"},YU=["src","alt"],ZU={class:"template-how-was-corner__content__corner-type__info"},KU={class:"template-how-was-corner__content__corner-type__info__title"},XU={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Ds},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:i}){const a=t,o=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),l=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>o.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{i("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((c,p)=>p.isSelected?c+1:c,0)),o.value=n.cornerType,i("update:filters",n)},{deep:!0,immediate:!0});function r(n){n.isSelected&&l.value===1||(n.isSelected=!n.isSelected)}return(n,c)=>(e.openBlock(),e.createElementBlock("div",RU,[e.createElementVNode("div",OU,[DU,e.createElementVNode("div",jU,[e.createElementVNode("div",WU,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),vU])]),e.createElementVNode("div",UU,[e.createElementVNode("div",GU,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),HU])])]),e.createElementVNode("div",{class:e.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":t.isExpansionMode}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(p,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":p.isSelected}]),onClick:m=>r(p)},[e.createElementVNode("div",qU,[e.createElementVNode("img",{src:p.imgSrc,alt:p.title},null,8,YU)]),e.createElementVNode("div",ZU,[e.createElementVNode("div",KU,e.toDisplayString(p.title),1)])],10,JU))),128))],2)]))}},QU=re(XU,[["__scopeId","data-v-b7e3b8e0"]]),Ea=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],ut=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),eG={class:"template-zone"},tG={class:"controls-zone-container"},aG={class:"controls-zone-container-title-checkcon"},iG={class:"controls-zone-container-title-checkcon-check"},oG={class:"gsc-field-img-container"},sG={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lG=["fill"],rG=["fill"],nG=["fill"],dG=["fill"],cG=["fill"],pG=["fill"],mG=["fill"],hG=["fill"],uG=["fill"],fG=["fill"],yG=["fill"],gG=["fill"],_G=["fill"],bG=["fill"],SG=["fill"],CG=["fill"],wG=["fill"],kG=["fill"],EG=["fill"],VG=["fill"],TG=["fill"],NG=["fill"],xG=["fill"],BG=["fill"],FG=["fill"],PG=["fill"],zG=["fill"],$G=["fill"],AG=["fill"],IG=["fill"],MG=["fill"],LG=["fill"],RG=["fill"],OG=["fill"],DG=["fill"],jG=ut(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),WG=ut(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),vG=["id"],UG=ut(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),GG=[UG],HG=["mask"],JG=ut(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),qG=[JG],YG=ut(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),ZG=ut(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),KG={class:"template-zone__total-corners"},XG=ut(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),QG=ut(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),eH=[XG,QG],tH={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ea]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!0),l=e.ref([]),r=e.computed(()=>new Date().getTime());e.watch(l,y=>{s.value=y.length===35}),e.watch(()=>o.zoneFilters,y=>{l.value=y},{immediate:!0,deep:!0}),e.watch(()=>l.value,y=>{a("update:filters",y),a("change-filters-selected",y.length)},{deep:!0});function n(y){y?(l.value=Ea,s.value=!0):(l.value=[],s.value=!1)}function c(y){l.value.includes(y)?l.value=l.value.filter(m=>m!==y):l.value.push(y),s.value=l.value.length===35}function p(){l.value=[...Ea]}return i({clearFilters:p}),(y,m)=>(e.openBlock(),e.createElementBlock("div",eG,[e.createElementVNode("div",tG,[e.createElementVNode("div",{class:"controls-zone-container-title",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 11px;":"#2e3b46")}," ¿A donde fue el balón?: ",4),e.createElementVNode("div",aG,[e.createElementVNode("div",{class:"controls-zone-container-title-checkcon-label",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 12px;":"#2e3b46")}," Todas las zonas ",4),e.createElementVNode("div",iG,[e.createVNode(e.unref(se),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",oG,[(e.openBlock(),e.createElementBlock("svg",sG,[e.createElementVNode("rect",{onClick:m[0]||(m[0]=h=>c(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,lG),e.createElementVNode("rect",{onClick:m[1]||(m[1]=h=>c(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,rG),e.createElementVNode("rect",{onClick:m[2]||(m[2]=h=>c(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,nG),e.createElementVNode("rect",{onClick:m[3]||(m[3]=h=>c(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,dG),e.createElementVNode("rect",{onClick:m[4]||(m[4]=h=>c(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,cG),e.createElementVNode("rect",{onClick:m[5]||(m[5]=h=>c(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,pG),e.createElementVNode("rect",{onClick:m[6]||(m[6]=h=>c(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,mG),e.createElementVNode("rect",{onClick:m[7]||(m[7]=h=>c(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,hG),e.createElementVNode("rect",{onClick:m[8]||(m[8]=h=>c(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,uG),e.createElementVNode("rect",{onClick:m[9]||(m[9]=h=>c(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,fG),e.createElementVNode("rect",{onClick:m[10]||(m[10]=h=>c(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,yG),e.createElementVNode("rect",{onClick:m[11]||(m[11]=h=>c(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,gG),e.createElementVNode("rect",{onClick:m[12]||(m[12]=h=>c(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,_G),e.createElementVNode("rect",{onClick:m[13]||(m[13]=h=>c(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,bG),e.createElementVNode("rect",{onClick:m[14]||(m[14]=h=>c(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,SG),e.createElementVNode("rect",{onClick:m[15]||(m[15]=h=>c(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,CG),e.createElementVNode("rect",{onClick:m[16]||(m[16]=h=>c(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,wG),e.createElementVNode("rect",{onClick:m[17]||(m[17]=h=>c(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,kG),e.createElementVNode("rect",{onClick:m[18]||(m[18]=h=>c(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,EG),e.createElementVNode("rect",{onClick:m[19]||(m[19]=h=>c(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,VG),e.createElementVNode("rect",{onClick:m[20]||(m[20]=h=>c(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,TG),e.createElementVNode("rect",{onClick:m[21]||(m[21]=h=>c(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,NG),e.createElementVNode("rect",{onClick:m[22]||(m[22]=h=>c(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,xG),e.createElementVNode("rect",{onClick:m[23]||(m[23]=h=>c(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,BG),e.createElementVNode("rect",{onClick:m[24]||(m[24]=h=>c(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,FG),e.createElementVNode("rect",{onClick:m[25]||(m[25]=h=>c(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,PG),e.createElementVNode("rect",{onClick:m[26]||(m[26]=h=>c(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,zG),e.createElementVNode("rect",{onClick:m[27]||(m[27]=h=>c(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,$G),e.createElementVNode("rect",{onClick:m[28]||(m[28]=h=>c(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,AG),e.createElementVNode("rect",{onClick:m[29]||(m[29]=h=>c(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,IG),e.createElementVNode("rect",{onClick:m[30]||(m[30]=h=>c(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,MG),e.createElementVNode("rect",{onClick:m[31]||(m[31]=h=>c(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,LG),e.createElementVNode("rect",{onClick:m[32]||(m[32]=h=>c(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,RG),e.createElementVNode("rect",{onClick:m[33]||(m[33]=h=>c(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,OG),e.createElementVNode("rect",{onClick:m[34]||(m[34]=h=>c(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,DG),jG,WG,e.createElementVNode("mask",{id:r.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},GG,8,vG),e.createElementVNode("g",{mask:`url(#${r.value})`},qG,8,HG),YG,ZG]))]),e.withDirectives(e.createElementVNode("div",KG,eH,512),[[e.vShow,!1]])]))}},aH=re(tH,[["__scopeId","data-v-378bf7e2"]]),Ws=[{text:"Rematado con destino a portería",isSelected:!0,child:[{text:"Fue gol",isSelected:!0,categoryIds:[583,585,587,589]},{text:"No fue gol",isSelected:!0,categoryIds:[584,586,588,590]}]},{text:"Rematado sin destino a portería",isSelected:!0,categoryIds:[122,128,136,142]},{text:"Ganados por portero rival",isSelected:!0,categoryIds:[123,129,137,143]},{text:"Ganados por jugador rival",isSelected:!0,categoryIds:[124,130,138,144]},{text:"Sin destino",isSelected:!0,categoryIds:[125,131,139,145]}],iH={class:"what-happened"},oH={class:"what-happened__all"},sH={class:"what-happened__filters"},lH={key:0,class:"what-happened__filters__filter__composed"},rH={class:"what-happened__filters__filter__composed__main"},nH={key:1,class:"what-happened__filters__filter__single"},dH={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Ws]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.computed(()=>o.whatHappenedFilters.reduce((d,f)=>(f.child?f.child.forEach(u=>{u.isSelected&&d++}):f.isSelected&&d++,d),0)),l=e.computed(()=>o.whatHappenedFilters.reduce((d,f)=>(f.child?d+=f.child.length:d++,d),0)),r=e.computed(()=>s.value===l.value),n=e.computed(()=>s.value===1);e.watch(()=>o.whatHappenedFilters,d=>{a("change-filters-selected",s.value),a("update:filters",d)},{deep:!0,immediate:!0});function c(d){o.whatHappenedFilters.forEach(f=>{d?(f.isSelected=d,f.child&&f.child.forEach(u=>{u.isSelected=d})):f.child?(f.isSelected=!0,f.child.forEach(u=>{u.isSelected=!0})):f.isSelected=!1})}function p(d,f){f.isSelected=d,f.child.forEach(u=>{u.isSelected=d})}function y(d,f,u){u.isSelected=d,f.isSelected=f.child.every(g=>g.isSelected)}function m(d,f){f.isSelected=d}function h(){o.whatHappenedFilters.forEach(d=>{d.child?d.child.forEach(f=>{f.isSelected=!0}):d.isSelected=!0})}return i({onResetFilters:h}),(d,f)=>(e.openBlock(),e.createElementBlock("div",iH,[e.createElementVNode("div",oH,[e.createVNode(e.unref(se),{label:"Todos","model-value":r.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",sH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(u,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[u.child?(e.openBlock(),e.createElementBlock("div",lH,[e.createElementVNode("div",rH,[e.createVNode(e.unref(se),{"model-value":u.isSelected,label:t.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":n.value&&u.isSelected,"onUpdate:modelValue":C=>p(C,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.child,(C,w)=>(e.openBlock(),e.createElementBlock("div",{key:`c${w}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(se),{"model-value":C.isSelected,label:t.isFemale?C.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):C.text,"avoid-interaction":n.value&&C.isSelected,"onUpdate:modelValue":v=>y(v,u,C)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",nH,[e.createVNode(e.unref(se),{"model-value":u.isSelected,label:t.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":n.value&&u.isSelected,"onUpdate:modelValue":C=>m(C,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},cH=re(dH,[["__scopeId","data-v-8f375a1a"]]),vs={isMoment:!1,isMomentOnly:!1,results:{final:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}],moment:[{name:"Iba ganando",value:1,isSelected:!0},{name:"Iba perdiendo",value:2,isSelected:!0},{name:"Iba empatando",value:3,isSelected:!0}]}},Gc=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),pH={class:"template-results"},mH={class:"template-results__type-switch"},hH=Gc(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),uH=Gc(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),fH={class:"template-results__info"},yH={key:0,class:"template-results__group"},gH={key:1,class:"template-results__group"},_H={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...vs})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.computed(()=>{const c=s.value.isMoment?s.value.results.moment.filter(p=>p.isSelected).length:s.value.results.final.filter(p=>p.isSelected).length;return a("change-filters-selected",c),c}),r=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>o.resultsFilters,c=>{s.value===null&&(s.value={...c})},{deep:!0,immediate:!0}),e.watch(s,c=>{a("update:filters",c)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(c=>{c.isSelected=!0}),s.value.results.final.forEach(c=>{c.isSelected=!0})}return i({removeFilters:n}),(c,p)=>(e.openBlock(),e.createElementBlock("div",pH,[e.withDirectives(e.createElementVNode("div",mH,[hH,e.createVNode(wa,{modelValue:s.value.isMoment,"onUpdate:modelValue":p[0]||(p[0]=y=>s.value.isMoment=y)},null,8,["modelValue"]),uH],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",fH,e.toDisplayString(r.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",yH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:y.isSelected,"onUpdate:modelValue":h=>y.isSelected=h,label:y.name,"avoid-interaction":l.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",gH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"template-results__result"},[e.createVNode(e.unref(se),{modelValue:y.isSelected,"onUpdate:modelValue":h=>y.isSelected=h,label:y.name,"avoid-interaction":l.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},bH=re(_H,[["__scopeId","data-v-ee3b28d3"]]),SH=t=>(e.pushScopeId("data-v-6f640dee"),t=t(),e.popScopeId(),t),CH={key:0,class:"productivity__header__text"},wH={key:0},kH=SH(()=>e.createElementVNode("span",null,"mínimo 5 categorías y máximo 12",-1)),EH={key:1},VH={key:2},TH={key:1,class:"productivity__header__checkbox"},NH={class:"templates__body"},xH={key:0,class:"templates-plays"},BH={key:1,class:"templates-productivity"},FH={key:2,class:"template-field"},PH={key:3,class:"template-details"},zH={key:4,class:"template-personal-data"},$H={key:5,class:"template-leagues"},AH={key:6,class:"template-plays"},IH={key:7,class:"template-plays"},MH={key:8,class:"template-universe"},LH={key:9,class:"template-distance"},RH={key:10,class:"template-results"},OH={key:11,class:"template-results-by-type"},DH={key:12,class:"template-games"},jH={key:13,class:"template-taken-corners"},WH={key:14,class:"template-videos"},vH={key:15,class:"template-how-was-corner"},UH={key:16,class:"template-zone"},GH={key:17,class:"template-what-happened"},HH={key:1,class:"templates__footer"},JH={class:"templates__footer__button"},qH={class:"templates__footer__button"},YH={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(!1),r=e.ref({playingAs:o.playingAs,gameSections:o.gameSections,statisticType:o.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),c=e.ref(null),p=e.ref(null),y=e.ref(null),m=e.ref(null),h=e.ref(null),d=e.computed(()=>({"--width":o.width,"--max-width":o.maxWidth,"--background-color":o.backgroundColor,"--border-radius":o.borderRadius,"--border-color":o.borderColor,"--border-width":o.borderWidth,"--box-shadow":o.boxShadow,"--padding":o.filterType!==B.VIDEOS?o.isExpansionMode?"10px 0":o.padding:"0","--footer-border-color":o.footerBorderColor,"--footer-border-width":o.footerBorderWidth,"--text-color":o.textColor})),f=e.computed(()=>{const b=[];return o.productivityCategories&&Object.values(o.productivityCategories).forEach(k=>{k.categories&&k.categories.forEach(j=>{b.push(j)})}),b}),u=e.computed(()=>{const b=[];return o.playsCategories&&Object.values(o.playsCategories).forEach(k=>{k.categories&&k.categories.forEach(j=>{b.push(j)})}),b}),g=e.computed(()=>{const b=f.value.filter(k=>k.isSelected);return q(b),o.filterType===B.PRODUCTIVITY&&a("change-categories-selected",b.length),b.length}),C=e.computed(()=>g.value>=o.productivityMaxCategories),w=e.computed(()=>g.value<=o.productivityMinCategories),v=e.computed(()=>o.isPlayingAsHidden?o.gameSections:o.playingAs.concat(o.gameSections));e.watch(r,b=>{o.filterType===B.DETAILS&&a("update:filters",b)},{immediate:!0,deep:!0}),e.watch(()=>v.value,b=>{if(o.filterType===B.DETAILS){const k=b.filter(j=>j.isSelected);a("change-filters-selected",k.length)}},{immediate:!0,deep:!0}),e.watch(()=>o.playsGolstatsCategories,b=>{if(o.filterType===B.PLAYS_TYPES||o.filterType===B.GOLSTATS){const k=b.filter(j=>j.isSelected);a("change-filters-selected",k.length)}},{immediate:!0}),e.watch(()=>o.fieldAreas,b=>{o.filterType===B.FIELD&&a("change-filters-selected",b.length)}),e.watch(u,()=>{o.filterType===B.PLAYS&&z()},{immediate:!0,deep:!0}),e.watch(f,()=>{o.filterType===B.PRODUCTIVITY&&H()},{immediate:!0,deep:!0}),e.watch(()=>o.resultsFilters,b=>{o.filterType===B.RESULTS&&a("change-filters-selected",b.results.filter(k=>k.isSelected).length)},{immediate:!0,deep:!0});function q(b){setTimeout(()=>{b.sort((k,j)=>k.priority-j.priority),b.forEach((k,j)=>{k.priority=j+1})},10)}function A(b=null){G(b)}function G(b=null){o.filterType===B.PRODUCTIVITY?f.value.forEach(k=>{k.isSelected=!1}):o.filterType===B.PLAYS?(u.value.forEach(k=>{k.isSelected=!0}),l.value=!0):o.filterType===B.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):o.filterType===B.DETAILS?(o.playingAs.forEach(k=>{k.isSelected=!0}),o.gameSections.forEach(k=>{k.isSelected=!0})):o.filterType===B.TOURNAMENTS?(o.tournaments.forEach((k,j)=>{o.isOneTournamentOnly?k.isSelected=j===0:k.isSelected=!0}),a("change-filters-selected",0)):o.filterType===B.PLAYS_TYPES?o.playsGolstatsCategories.forEach(k=>{k.isSelected=!0}):o.filterType===B.GOLSTATS?o.playsGolstatsCategories.forEach(k=>{k.isSelected=!1}):o.filterType===B.UNIVERSE?c.value&&c.value.resetFilters():o.filterType===B.PERSONAL_DATA?(s.value&&s.value.onClearFilters(b||oe.All),a("change-personal-data-filters",{})):o.filterType===B.DISTANCE?a("update:filters",{minValue:o.distanceFilters.minLimit,maxValue:o.distanceFilters.maxLimit}):o.filterType===B.RESULTS?a("update:filters",{results:o.resultsFilters.results.map(k=>(k.isSelected=!0,k))}):o.filterType===B.RESULTS_BY_TIME?h.value&&h.value.removeFilters():o.filterType===B.GAMES?o.gamesFilters.forEach(k=>{k.isSelected=!0}):o.filterType===B.TAKEN_CORNERS?p.value.clearFilters():o.filterType===B.HOW_WAS_CORNER?(o.howWasCornerFilters.left.forEach(k=>{k.isSelected=!0}),o.howWasCornerFilters.right.forEach(k=>{k.isSelected=!0})):o.filterType===B.ZONE?y.value&&y.value.clearFilters():o.filterType===B.WHAT_HAPPENED&&m.value&&m.value.onResetFilters()}function Y(b){o.filterType===B.TOURNAMENTS&&a("change-filters-selected",b)}function J(b){o.filterType===B.UNIVERSE&&a("change-universe-filters",b)}function V(b){o.filterType===B.FIELD&&a("change-field-areas",b)}function x(b){o.filterType===B.GOLSTATS&&a("change-filters-selected",b)}function S(b){a("change-filters-selected",b)}function P(b){o.filterType===B.PRODUCTIVITY?f.value.forEach(k=>{k.isSelected=b}):(l.value=b,o.playsCategories.offensive.categories.forEach(k=>{k.isSelected=b}),o.playsCategories.defensive.categories.forEach(k=>{k.isSelected=b}),o.playsCategories.possession.categories.forEach(k=>{k.isSelected=b}),o.playsCategories.offenses.categories.forEach(k=>{k.isSelected=b}))}function z(){let b=0;const k={playsCategories:u.value.filter(j=>j.isSelected)};l.value=k.playsCategories.length===u.value.length,b=k.playsCategories.length,Object.values(n.value).forEach(j=>{j&&b++}),a("change-filters-selected",b),a("update:filters",k)}function H(){let b=0;const k={productivityFilters:f.value.filter(j=>j.isSelected),offensesConditions:n.value};b=k.productivityFilters.length,Object.values(n.value).forEach(j=>{j&&b++}),a("change-filters-selected",b),a("update:filters",k)}function Z(){a("apply")}function ce(){(o.filterType===B.PLAYS_TYPES||o.filterType===B.GOLSTATS)&&o.playsGolstatsCategories&&o.playsGolstatsCategories.forEach(b=>{b.isSelected=!1}),o.filterType===B.PRODUCTIVITY&&f.value.forEach(b=>{b.isSelected=!1}),a("apply")}function Q(b){a("update:filters",b)}function E(b){o.filterType===B.PERSONAL_DATA&&a("update:filters",b)}function T(b){o.filterType===B.TOURNAMENTS&&a("update:filters",b)}function O(b){(o.filterType===B.PLAYS_TYPES||o.filterType===B.GOLSTATS)&&a("update:filters",b)}function N(b){o.filterType===B.PRODUCTIVITY&&(n.value=b,H())}function W(b){o.filterType===B.DISTANCE&&a("update:filters",b)}function $(b){o.filterType===B.RESULTS&&a("update:filters",b)}function U(b){o.filterType===B.GAMES&&(a("update:filters",b),a("change-filters-selected",b.filter(k=>k.isSelected).length))}function D(b){r.value.statisticType=b}const _=e.computed(()=>o.filterType===B.PLAYS?u.value.length:o.filterType===B.PRODUCTIVITY?f.value.length:o.filterType===B.FIELD?16:o.filterType===B.UNIVERSE?6:o.filterType===B.DETAILS?8:o.filterType===B.RESULTS||o.filterType===B.RESULTS_BY_TIME?3:o.filterType===B.GAMES?o.gamesFilters.length:0);return a("total-filters",_),i({clearFilters:A}),(b,k)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(d.value)},[t.filterType===e.unref(B).PRODUCTIVITY||t.filterType===e.unref(B).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(B).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",CH,[t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",wH,[e.createTextVNode(" Elige tipo de jugadas: "),kH])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",EH,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",VH,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(B).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",TH,[e.createVNode(e.unref(se),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":l.value,"label-color":t.textColor,"onUpdate:modelValue":P},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",NH,[t.filterType===e.unref(B).PLAYS?(e.openBlock(),e.createElementBlock("div",xH,[e.createVNode(Tj,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",BH,[e.createVNode(CI,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":C.value,"are-min-categories-reached":w.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"onUpdate:offensesConditions":N},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).FIELD?(e.openBlock(),e.createElementBlock("div",FH,[e.createVNode(e.unref(Kd),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":V}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).DETAILS?(e.openBlock(),e.createElementBlock("div",PH,[e.createVNode(XI,{"is-playing-as-hidden":t.isPlayingAsHidden,"playing-as":t.playingAs,"game-sections":t.gameSections,"font-gamily":t.fontFamily,"is-statistic-type-visible":t.isStatisticTypeVisible,"statistic-type":t.statisticType,onChangeStatisticType:D},null,8,["is-playing-as-hidden","playing-as","game-sections","font-gamily","is-statistic-type-visible","statistic-type"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",zH,[e.createVNode(dj,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":E},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",$H,[e.createVNode(oM,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:Y,"onUpdate:filters":T},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",AH,[e.createVNode(Ad,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":O},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).GOLSTATS?(e.openBlock(),e.createElementBlock("div",IH,[e.createVNode(Ad,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:x,"onUpdate:filters":O},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).UNIVERSE?(e.openBlock(),e.createElementBlock("div",MH,[e.createVNode(QM,{ref_key:"templateUniverse",ref:c,"universe-filters":t.universeFilters,"onUpdate:universeFilters":J},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).DISTANCE?(e.openBlock(),e.createElementBlock("div",LH,[e.createVNode(SL,{distance:t.distanceFilters,"onUpdate:distanceFilters":W},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).RESULTS?(e.openBlock(),e.createElementBlock("div",RH,[e.createVNode(Bj,{ref_key:"templateResults",ref:h,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":$},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",OH,[e.createVNode(bH,{ref_key:"templateResults",ref:h,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).GAMES?(e.openBlock(),e.createElementBlock("div",DH,[e.createVNode(NL,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":U},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",jH,[e.createVNode(LU,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:p,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).VIDEOS?(e.openBlock(),e.createElementBlock("div",WH,[e.createVNode(bU,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",vH,[e.createVNode(QU,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).ZONE?(e.openBlock(),e.createElementBlock("div",UH,[e.createVNode(aH,{ref_key:"templateZone",ref:y,"zone-filters":t.zoneFilters,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(B).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",GH,[e.createVNode(cH,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:m,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:S,"onUpdate:filters":Q},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",HH,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:ce})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",JH,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:ce})):(e.openBlock(),e.createBlock(e.unref(gi),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:G}))]),e.createElementVNode("div",qH,[e.createVNode(e.unref(gi),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:Z})])],64))])):e.createCommentVNode("",!0)],4))}},Hc=re(YH,[["__scopeId","data-v-6f640dee"]]),ZH=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},KH={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(t){return!Number.isNaN(t)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3},leftMenu:{type:String,default:"unset"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(d=>({"398d9242":t.width,f164e302:c.value,"4bb88040":t.menuWidth}));const o=e.ref(null),s=e.ref(!1),l=e.ref(null),r=e.ref({}),n=e.computed(()=>{const d={top:"0px","--left-menu":a.leftMenu};if(o.value){const f=o.value.getBoundingClientRect();d.top=`${f.height+a.menuMarginTop}px`}return d}),c=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,d=>{d!==s.value&&(s.value=d)},{immediate:!0}),e.watch(s,d=>{d||setTimeout(()=>{r.value["--translate-x"]="0px"},500)});function p(d){const f=window.innerWidth,u=d.boundingClientRect.x,g=d.boundingClientRect.x+d.boundingClientRect.width,C=u<=0?Math.abs(u)+4:g>=f?f-(g+10):0;r.value["--translate-x"]=`${C}px`}function y(){new IntersectionObserver(d=>{d[0].intersectionRatio>0&&p(d[0])}).observe(l.value)}function m(){s.value=!s.value,i("update:modelValue",s.value)}function h(){s.value=!1,i("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{y()})}),(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:h})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:o,class:"menu-container__trigger",onClick:m},[e.renderSlot(d.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:l,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(d.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},XH=ZH(KH,[["__scopeId","data-v-18c0df61"]]),It=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),QH={key:0,class:"button__icon"},eJ={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tJ=["stroke"],aJ=["stroke"],iJ=["stroke"],oJ={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sJ=["stroke"],lJ=["stroke"],rJ=["fill"],nJ={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dJ=["fill"],cJ={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pJ=["stroke"],mJ=["stroke"],hJ=["stroke"],uJ=["stroke"],fJ=["stroke"],yJ={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gJ=It(()=>e.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1)),_J=[gJ],bJ={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},SJ=It(()=>e.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1)),CJ=[SJ],wJ={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kJ=It(()=>e.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1)),EJ=[kJ],VJ={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TJ=It(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),NJ=It(()=>e.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),xJ=It(()=>e.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),BJ=It(()=>e.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),FJ=[TJ,NJ,xJ,BJ],PJ={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zJ=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-2504d135><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-2504d135></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-2504d135></path></g><defs data-v-2504d135><clipPath id="gpdeo9cu3a" data-v-2504d135><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-2504d135></path></clipPath></defs>',2),$J=[zJ],AJ={class:"button__text"},IJ={key:0,class:"info-container"},MJ={key:1,style:{width:"20px"}},LJ={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},RJ=["fill"],OJ={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadge:{type:Boolean,default:!0},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"},showIcon:{type:Boolean,default:!0}},setup(t){const i=t,a=e.computed(()=>({"--height":i.height,"--width":i.width,"--text-font-family":i.textFontFamily,"--text-font-size":i.textFontSize,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.isActive?i.borderColorActive:i.borderColor,"--border-width":i.borderWidth,"--padding":i.padding,"--font-color":i.fontColor})),o=e.computed(()=>({"--info-background-color":i.infoValue?i.infoBackgroundColor:"transparent","--info-border-color":i.infoValue?i.infoBorderColor:"transparent","--info-border-radius":i.infoBorderRadius,"--info-font-family":i.infoFontFamily,"--info-font-size":i.infoFontSize,"--info-font-color":i.infoFontColor,"--info-height":i.infoHeight,"--info-width":i.infoWidth})),s=e.computed(()=>[B.PLAYS_TYPES,B.GOLSTATS,B.TOURNAMENTS,B.PLAYS,B.RESULTS,B.RESULTS_BY_TIME].includes(i.iconType)),l=e.computed(()=>[B.FIELD,B.GAMES].includes(i.iconType)),r=e.computed(()=>[B.DETAILS,B.UNIVERSE].includes(i.iconType)),n=e.computed(()=>[B.PERSONAL_DATA].includes(i.iconType)),c=e.computed(()=>[B.PRODUCTIVITY].includes(i.iconType)),p=e.computed(()=>[B.HOW_WAS_CORNER].includes(i.iconType)),y=e.computed(()=>[B.TAKEN_CORNERS].includes(i.iconType)),m=e.computed(()=>[B.ZONE].includes(i.iconType)),h=e.computed(()=>[B.WHAT_HAPPENED].includes(i.iconType));return(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",QH,[n.value?(e.openBlock(),e.createElementBlock("svg",eJ,[e.createElementVNode("path",{d:"M12.6665 16.0001V14.3334C12.6665 13.4494 12.3153 12.6015 11.6902 11.9764C11.0651 11.3513 10.2173 11.0001 9.33323 11.0001H4.33329C3.44925 11.0001 2.60141 11.3513 1.9763 11.9764C1.35119 12.6015 1 13.4494 1 14.3334V16.0001",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,tJ),e.createElementVNode("path",{d:"M6.83329 7.66658C8.67422 7.66658 10.1666 6.17422 10.1666 4.33329C10.1666 2.49237 8.67422 1 6.83329 1C4.99237 1 3.5 2.49237 3.5 4.33329C3.5 6.17422 4.99237 7.66658 6.83329 7.66658Z",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,aJ),e.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,iJ)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",oJ,[e.createElementVNode("path",{d:"M11.3464 15.7091C13.2744 15.7091 14.8373 14.1462 14.8373 12.2182C14.8373 10.2902 13.2744 8.72729 11.3464 8.72729C9.4184 8.72729 7.85547 10.2902 7.85547 12.2182C7.85547 14.1462 9.4184 15.7091 11.3464 15.7091Z",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,sJ),e.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,lJ),e.createElementVNode("path",{d:"M1.74545 14.1136H5.57341C5.80365 14.6432 6.11192 15.1265 6.4797 15.5591H1.74545C0.85957 15.5591 0.15 14.8495 0.15 13.9636V1.74545C0.15 0.85957 0.85957 0.15 1.74545 0.15H13.9636C14.8495 0.15 15.5591 0.85957 15.5591 1.74545V8.27117C15.1619 7.74472 14.6701 7.28299 14.1136 6.90213V1.74545V1.59545H13.9636H1.74545H1.59545V1.74545V13.9636V14.1136H1.74545ZM3.64091 3.64091H12.0682V5.08636H3.64091V3.64091ZM3.64091 7.13182H7.39844C6.87199 7.52898 6.41026 8.02079 6.0294 8.57727H3.64091V7.13182ZM3.64091 10.6227H5.20065C5.12651 11.0081 5.08636 11.3945 5.08636 11.7818V12.0682H3.64091V10.6227Z",fill:t.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,rJ)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",nJ,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 0C13.1944 0 17 3.80558 17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0ZM8.49751 1.54553C4.65662 1.54553 1.54297 4.65919 1.54297 8.50008C1.54297 12.341 4.65662 15.4546 8.49751 15.4546C12.3384 15.4546 15.4521 12.341 15.4521 8.50008C15.4521 4.65919 12.3384 1.54553 8.49751 1.54553ZM8.49929 3.09082C8.92605 3.09082 9.27202 3.43678 9.27202 3.86355V8.12198L12.451 10.5945C12.7878 10.8565 12.8485 11.342 12.5865 11.6789C12.3245 12.0157 11.839 12.0764 11.5022 11.8144L8.02488 9.10986C7.83666 8.96347 7.72656 8.73837 7.72656 8.49991V3.86355C7.72656 3.43678 8.07252 3.09082 8.49929 3.09082Z",fill:t.iconColor},null,8,dJ)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",cJ,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,pJ),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,mJ),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,hJ),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,uJ),e.createElementVNode("path",{d:"M13.5033 9.00032C13.5033 10.5651 12.2348 11.8337 10.67 11.8337C9.1052 11.8337 7.83667 10.5651 7.83667 9.00032C7.83667 7.43552 9.1052 6.16699 10.67 6.16699C12.2348 6.16699 13.5033 7.43552 13.5033 9.00032Z",stroke:t.iconColor},null,8,fJ)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",yJ,_J)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",bJ,CJ)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",wJ,EJ)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",VJ,FJ)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",PJ,$J)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",AJ,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",IJ,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filtersTotal>0&&t.filtersTotal!=parseInt(t.infoValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)):t.filtersTotal>0?(e.openBlock(),e.createElementBlock("div",MJ)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",LJ,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,RJ)]))],2)],4))}},DJ=re(OJ,[["__scopeId","data-v-2504d135"]]),jJ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},WJ=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),vJ={class:"panel__activator__icon"},UJ=["src"],GJ={class:"panel__activator__text"},HJ=["height","width"],JJ=["stroke"],qJ={class:"panel__content"},YJ=WJ(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),ZJ={class:"panel__content__slot"},KJ={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,r=>{o.value=r},{immediate:!0});function l(){o.value=!o.value,i("update:modelValue",o.value)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:l},[e.createElementVNode("div",vJ,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,UJ)):e.createCommentVNode("",!0)]),e.createElementVNode("div",GJ,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":o.value}])},[(e.openBlock(),e.createElementBlock("svg",{height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,JJ)],8,HJ))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",qJ,[YJ,e.createElementVNode("div",ZJ,[e.renderSlot(r.$slots,"content",{},void 0,!0)])],512),[[e.vShow,o.value]])]),_:3})],4))}},XJ=jJ(KJ,[["__scopeId","data-v-0ca35abc"]]),at={isPlayingAsHidden:!1,playingAs:[{name:"Local",isSelected:!0,value:1},{name:"Visitante",isSelected:!0,value:2}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},QJ={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},eq={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:2},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:21},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]}},tq={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},aq=[{name:"Sub-20",logo:null,isSelected:!0,id:44,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]},{name:"Tournoi Maurice Revello",logo:null,isSelected:!0,id:108,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Tournoi Maurice Revello 23",related_seasons:[],id:1770,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"FIFA World Cup",logo:null,isSelected:!0,id:33,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa del Mundo 2022",related_seasons:[],id:1512,type:0},{name:"Copa del Mundo 2018",related_seasons:[],id:881,type:0}]},{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Copa Oro",logo:null,isSelected:!0,id:29,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa Oro 2023",related_seasons:[],id:1741,type:0}]},{name:"Women Revelations Cup",logo:null,isSelected:!0,id:1137,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Women Revelations Cup 2023",related_seasons:[],id:1731,type:0}]},{name:"Leagues Cup",logo:null,isSelected:!0,id:1046,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Leagues Cup 2023",related_seasons:[],id:1784,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]}],iq=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Tiros a gol",isSelected:!1},{id:3,name:"Asistencias",isSelected:!1},{id:4,name:"Centros",isSelected:!1},{id:5,name:"Balones ganados en área propia",isSelected:!1},{id:6,name:"Participaciones en gol",isSelected:!1},{id:7,name:"Cabeceo area rival",isSelected:!1}],oq=[{id:1,name:"Mas goles anotados",isSelected:!1,value:1},{id:2,name:"Mas goles durante los ultimos 15 min de 2do tiempo",isSelected:!1,value:7},{id:3,name:"Con mas goles como visitante",isSelected:!1,value:3},{id:4,name:"Con mas goles como local",isSelected:!1,value:3},{id:5,name:"Mas goles durante el 1er tiempo",isSelected:!1,value:3},{id:6,name:"Mas goles durante el 2do tiempo",isSelected:!1,value:3},{id:7,name:"Mas goles como local durante el 2do tiempo",isSelected:!1,value:7}],sq={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Jc={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},lq={class:"filters"},rq={key:0,class:"filters__expansion"},nq={class:"content"},dq={key:1,class:"filters__menus"},cq={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0}},emits:["update:filters","apply","close"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(_=>({"5e59eb26":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.PRODUCTIVITY,isFooterVisible:!0},l={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.PLAYS,isFooterVisible:!0},r={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.TOURNAMENTS,isFooterVisible:!0},p={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.PERSONAL_DATA,isFooterVisible:!0},y={width:"310px",modalHeight:o.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},m={width:"380px",modalHeight:o.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},h={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.UNIVERSE,isFooterVisible:!0},d={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.DISTANCE,isFooterVisible:!0},f={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.RESULTS,padding:"0",isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.VIDEOS,isFooterVisible:!1},C={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.GAMES,isFooterVisible:!0},w={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.TAKEN_CORNERS,isFooterVisible:!0},v={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.HOW_WAS_CORNER,isFooterVisible:!0},q={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.ZONE,isFooterVisible:!0},A={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:B.WHAT_HAPPENED,isFooterVisible:!0},G=e.ref(!1),Y=e.ref(!1),J=e.ref(0),V=e.ref(0),x=e.ref({}),S=e.ref(null),P=e.ref(null),z=e.computed(()=>o.isForTemplateForm?"0":"unset"),H=e.computed(()=>o.buttonFilterProps&&o.buttonFilterProps.text?o.buttonFilterProps.text:o.menuButtonText||O()),Z=e.computed(()=>o.isFromTemplates?B.RESULTS:o.filterType),ce=e.computed(()=>o.expansionPanelText||O()),Q=e.ref(null);e.watch(()=>o.filterType,_=>{if(_===B.PRODUCTIVITY)x.value={...s,...o.templateProps,productivityCategories:o.filters||QJ};else if(_===B.PLAYS)x.value={...l,...o.templateProps,fontFamily:o.buttonFilterProps?o.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:o.filters||eq};else if(_===B.FIELD)x.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters||[]};else if(_===B.DETAILS)x.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:at.isPlayingAsHidden,playingAs:o.filters&&o.filters.playingAs||at.playingAs,gameSections:o.filters&&o.filters.gameSections||at.gameSections,statisticType:o.filters?o.filters.statisticType:at.statisticType,isStatisticTypeVisible:o.filters?o.filters.isStatisticTypeVisible:at.isStatisticTypeVisible};else if(_===B.TOURNAMENTS){const b=o.filters||aq;o.isOneTournamentOnly&&b.forEach(k=>{k.isSelected=k.id===o.defaultTournamentId}),x.value={...c,...o.templateProps,tournaments:b}}else _===B.PERSONAL_DATA?x.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:_===B.PLAYS_TYPES?x.value={...y,...o.templateProps,playsGolstatsCategories:o.filters||iq}:_===B.GOLSTATS?x.value={...m,...o.templateProps,playsGolstatsCategories:o.filters||oq}:_===B.UNIVERSE?x.value={...h,...o.templateProps,universeFilters:o.filters||tq}:_===B.DISTANCE?x.value={...d,...o.templateProps,distanceFilters:o.filters||sq}:_===B.RESULTS?x.value={...f,...o.templateProps,resultsFilters:o.filters||Jc}:_===B.RESULTS_BY_TIME?x.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||vs}:_===B.GAMES?x.value={...C,...o.templateProps,gamesFilters:o.filters||[]}:_===B.VIDEOS?x.value={...g,...o.templateProps,token:o.token}:_===B.TAKEN_CORNERS?x.value={...w,...o.templateProps,takenCornersFilters:o.filters||[]}:_===B.HOW_WAS_CORNER?x.value={...v,...o.templateProps,howWasCornerFilters:o.filters||Ds}:_===B.ZONE?x.value={...q,...o.templateProps,zoneFilters:o.filters||[...Ea]}:_===B.WHAT_HAPPENED&&(x.value={...A,...o.templateProps,whatHappenedFilters:o.filters||[...Ws]});x.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(x.value.width="100%",x.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>o.filters,()=>{if(o.filterType===B.PRODUCTIVITY)x.value={...s,...o.templateProps,productivityCategories:o.filters};else if(o.filterType===B.PLAYS)x.value={...l,...o.templateProps,playsCategories:o.filters};else if(o.filterType===B.FIELD)x.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters};else if(o.filterType===B.DETAILS)x.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:at.isPlayingAsHidden,playingAs:o.filters?o.filters.playingAs:at.playingAs,gameSections:o.filters?o.filters.gameSections:at.gameSections,statisticType:o.filters?o.filters.statisticType:at.statisticType,isStatisticVisible:o.filters?o.filters.isStatisticVisible:at.isStatisticVisible};else if(o.filterType===B.TOURNAMENTS){const _=o.filters;o.isOneTournamentOnly&&_.forEach(b=>{b.isSelected=b.id===o.defaultTournamentId}),x.value={...c,...o.templateProps,tournaments:_}}else o.filterType===B.PERSONAL_DATA?x.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:o.filterType===B.PLAYS_TYPES?x.value={...y,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===B.GOLSTATS?x.value={...m,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===B.UNIVERSE?x.value={...h,...o.templateProps,universeFilters:o.filters}:o.filterType===B.DISTANCE?x.value={...d,...o.templateProps,distanceFilters:o.filters}:o.filterType===B.RESULTS?x.value={...f,...o.templateProps,resultsFilters:o.filters||Jc}:o.filterType===B.RESULTS_BY_TIME?x.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||vs}:o.filterType===B.GAMES?x.value={...C,...o.templateProps,gamesFilters:o.filters}:o.filterType===B.VIDEOS?x.value={...g,...o.templateProps,token:o.token}:o.filterType===B.TAKEN_CORNERS?x.value={...w,...o.templateProps,takenCornersFilters:o.filters||[]}:o.filterType===B.HOW_WAS_CORNER?x.value={...v,...o.templateProps,howWasCornerFilters:o.filters||Ds}:o.filterType===B.ZONE?x.value={...q,...o.templateProps,zoneFilters:o.filters||[...Ea]}:o.filterType===B.WHAT_HAPPENED&&(x.value={...A,...o.templateProps,whatHappenedFilters:o.filters||[...Ws]});x.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(x.value.width="100%",x.value.maxWidth="100%")}),e.watch(G,_=>{_||a("close",Q.value)}),e.watch(Y,_=>{_||a("close",Q.value)});function E(_){J.value=_}function T(){o.isExpansionPanel?Y.value=!1:G.value=!1,a("apply",Q.value)}function O(){if(o.filterType===B.PRODUCTIVITY)return o.isFromTemplates?"Tipos de jugadas":"Características de juego";if(o.filterType===B.PLAYS)return"Jugada(s)";if(o.filterType===B.FIELD)return"Zona de cancha";if(o.filterType===B.DETAILS)return"Detalles";if(o.filterType===B.TOURNAMENTS)return"Ligas";if(o.filterType===B.PERSONAL_DATA)return"Datos personales";if(o.filterType===B.PLAYS_TYPES)return"Tipos de jugada";if(o.filterType===B.GOLSTATS)return"Filtros Golstats";if(o.filterType===B.UNIVERSE)return"Universo";if(o.filterType===B.DISTANCE)return"Distancia";if([B.RESULTS,B.RESULTS_BY_TIME].includes(o.filterType))return"Resultados";if(o.filterType===B.GAMES)return"Partidos";if(o.filterType===B.VIDEOS)return"Videos";if(o.filterType===B.TAKEN_CORNERS)return"¿Quién cobró?";if(o.filterType===B.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(o.filterType===B.ZONE)return"Zona";if(o.filterType===B.WHAT_HAPPENED)return"¿Qué sucedió?"}function N(_){x.value.fieldAreas=_,J.value=_.length,$(_)}function W(_){let b=0;_.value&&_.value.statistics&&(_.value.minutesPlayed&&b++,_.value.percentMinutesPlayed&&b++,_.value.lastMonths&&b++,_.value.statistics.totals&&b++,_.value.statistics.averagePerGame&&b++,_.value.statistics.averagePerMinute&&b++),x.value.universe=_.value,J.value=b,$(_.value)}function $(_){Q.value=_,a("update:filters",_)}function U(_){V.value=_}function D(_=null){S.value&&S.value.clearFilters(_),P.value&&P.value.clearFilters(_)}return i({clearFilters:D}),(_,b)=>(e.openBlock(),e.createElementBlock("div",lq,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",rq,[e.createVNode(e.unref(XJ),e.mergeProps(t.expansionPanelProps,{modelValue:Y.value,"onUpdate:modelValue":b[0]||(b[0]=k=>Y.value=k),text:ce.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+o.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",nq,[e.createVNode(Hc,e.mergeProps(x.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateExpansionPanel",ref:P,onChangeFieldAreas:N,onChangeCategoriesSelected:E,onChangeFiltersSelected:E,onChangeUniverseFilters:W,onApply:T,"onUpdate:filters":$,onTotalFilters:U}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",dq,[e.createVNode(e.unref(XH),{modelValue:G.value,"onUpdate:modelValue":b[1]||(b[1]=k=>G.value=k),width:t.width,"left-menu":z.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(DJ,e.mergeProps(t.buttonFilterProps,{text:H.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":J.value,"filters-total":V.value.value,"is-active":G.value,"icon-type":Z.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(Hc,e.mergeProps(x.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateMenu",ref:S,onChangeFieldAreas:N,onChangeCategoriesSelected:E,onChangeFiltersSelected:E,onChangeUniverseFilters:W,"onUpdate:filters":$,onTotalFilters:U,onApply:T}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},Us=re(cq,[["__scopeId","data-v-a8b543ef"]]),pq={class:"dropdown__position"},mq={key:0,class:"label"},hq={class:"selected-item"},qc={__name:"DropdownPositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isLabelVisible:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-positions"],setup(t,{emit:i}){const a=t,o={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),l=e.computed(()=>{const c={...ht};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{c[p]=a.dropdownProps[p]}),c}),r=e.computed(()=>{let c=a.positions&&a.positions.length?[...a.positions]:[];const p=c[0];return(!p||p.id!==0)&&c.unshift(o),c.sort((y,m)=>y.id-m.id),c});e.watch(r,c=>{const p=c.filter(y=>y.isSelected);p.length===r.value.length-1&&(c[0].isSelected=!0),c[0]&&c[0].isSelected?s.value="Todas las posiciones":p.length===1?s.value=p[0].name:s.value=`${p.length} seleccionadas`,i("change-positions",c)},{immediate:!0,deep:!0});function n(c,p){p.id===0?r.value.forEach(y=>{y.isSelected=c}):(p.isSelected=c,r.value[0].isSelected=r.value.every((y,m)=>m===0?!0:y.isSelected))}return(c,p)=>(e.openBlock(),e.createElementBlock("div",pq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",mq,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps(l.value,{"is-multiple-option":"",items:r.value,arrowWidth:"10"}),{default:e.withCtx(()=>[e.createElementVNode("div",hq,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(s.value),1)],64))])]),availableItem:e.withCtx(({item:y})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(se),{"model-value":y.isSelected,label:t.isFemale?y.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):y.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":m=>n(m,y)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},uq={class:"dropdown-years"},fq={key:0,class:"label"},yq={class:"selected-item"},Yc={__name:"DropdownYears",props:{years:{type:Array,default:()=>[]},selectedYear:{type:[Number,String],default:0},hasNoLimitOption:{type:Boolean,default:!0},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-year"],setup(t,{emit:i}){const a=t,o=e.computed(()=>{const r={...ht};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(n=>{r[n]=a.dropdownProps[n]}),r}),s=e.computed(()=>a.hasNoLimitOption?["Sin límite",...a.years]:a.years);function l(r){i("change-year",r)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",uq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",fq,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps({"model-value":t.selectedYear,arrowWidth:"10"},o.value,{items:s.value,"onUpdate:modelValue":l}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",yq,e.toDisplayString(c),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c),1)]),_:1},16,["model-value","items"])]))}},gq=t=>(e.pushScopeId("data-v-8bd3ce77"),t=t(),e.popScopeId(),t),_q={class:"dropdown-templates"},bq={key:0,class:"label"},Sq={class:"selected-item"},Cq={class:"item"},wq={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kq=gq(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1)),Eq=[kq],Vq={__name:"DropdownTemplates",props:{dropdownProps:{type:Object,default:()=>null},selectedTemplate:{type:Object,default:()=>{}},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},teamId:{type:Number,default:0}},emits:["change-template"],setup(t,{emit:i}){const a=t,o=e.ref([]),s=e.ref(null),l=e.computed(()=>{const c={...ht};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{c[p]=a.dropdownProps[p]}),c});e.watch(()=>a.teamId,c=>{c&&n()},{immediate:!0});function r(c){s.value=c,i("change-template",c)}async function n(){try{const c=await Pt.get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${a.teamId}/templates`,{headers:{Authorization:a.token}});o.value=c.data&&c.data.data?c.data.data:[]}catch(c){console.error("Error filling templates: ",c)}}return n(),(c,p)=>(e.openBlock(),e.createElementBlock("div",_q,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",bq,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(Je),e.mergeProps({"model-value":t.selectedTemplate},l.value,{items:o.value,"arrow-width":"10",onInput:r}),{default:e.withCtx(({selectedItem:y})=>[e.createElementVNode("div",Sq,e.toDisplayString(y.name),1)]),availableItem:e.withCtx(({item:y})=>[e.createElementVNode("div",Cq,[e.createElementVNode("div",null,e.toDisplayString(y.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",wq,Eq,512)),[[e.vShow,s.value.name===y.name]])])]),_:1},16,["model-value","items"])]))}},Tq=re(Vq,[["__scopeId","data-v-8bd3ce77"]]);function Gs(){return{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!1}}function Zc(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!0}}function Nq(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 0px",textFontFamily:"'Poppins-Regular'"}}const Ii="/group-427321501.svg",Kc="/shape.svg",xq="_filtersContainer_b9wc6_1",Bq="_filtersContainer1232_b9wc6_1",Fq="_closeFiltersPc_b9wc6_1",Pq="_textleyemdmultipleleagues_b9wc6_1",zq="_textleyemdmultipleleagues380_b9wc6_1",$q="_filtersContainer760_b9wc6_1",Aq="_filtersContainer460_b9wc6_1",Iq="_containerSectionPlay_b9wc6_1",Mq="_containerSectionPlay1232_b9wc6_1",Lq="_containerSectionPlay960_b9wc6_1",Rq="_containerSectionPlay320_b9wc6_1",Oq="_containerSectionPlay350_b9wc6_1",Dq="_containerSection_b9wc6_1",jq="_containerSection1232_b9wc6_1",Wq="_containerSection960_b9wc6_1",vq="_containerSection320_b9wc6_1",Uq="_containerSection350_b9wc6_1",Gq="_templateLosMejores_b9wc6_1",Hq="_templateLosMejores1232_b9wc6_1",Jq="_templateLosMejores960_b9wc6_1",qq="_templateLosMejores420_b9wc6_1",Yq="_templateLosMejores320_b9wc6_1",Zq="_templateLosMejores540_b9wc6_1",Kq="_templateLosMejores350_b9wc6_1",Xq="_topFiltersParent_b9wc6_1",Qq="_topFiltersParent1232_b9wc6_1",eY="_topFiltersParent960_b9wc6_1",tY="_topFiltersParent460_b9wc6_1",aY="_topFiltersParent420_b9wc6_1",iY="_containerTheBest_b9wc6_1",oY="_containerTheBest1232_b9wc6_1",sY="_containerTheBest960_b9wc6_1",lY="_containerTheBest320_b9wc6_1",rY="_titleSection_b9wc6_1",nY="_titleSection540_b9wc6_1",dY="_containerTables_b9wc6_1",cY="_containerTables960_b9wc6_1",pY="_containerTables760_b9wc6_1",mY="_containerTables320_b9wc6_1",hY="_toniKroosWrapper_b9wc6_1",uY="_toniKroosWrapper1080_b9wc6_1",fY="_toniKroosWrapper975_b9wc6_1",yY="_toniKroosWrapper760_b9wc6_1",gY="_toniKroosWrapper420_b9wc6_1",_Y="_toniKroosWrapper320_b9wc6_1",bY="_frameChild_b9wc6_1",SY="_filtros_b9wc6_1",CY="_groupParent_b9wc6_1",wY="_shapeIcon_b9wc6_1",kY="_btnFilters_b9wc6_1",EY="_btnFiltersPC_b9wc6_1",VY="_quitarFiltros_b9wc6_1",TY="_quitarFiltros730_b9wc6_1",NY="_quitarFiltros480_b9wc6_1",xY="_quitarFiltros380_b9wc6_1",BY="_btnCloseFilters_b9wc6_1",FY="_mejoresJugadores_b9wc6_1",PY="_mejoresJugadores730_b9wc6_1",zY="_mejoresJugadores480_b9wc6_1",$Y="_mejoresJugadoresSM_b9wc6_1",AY="_toniKroos_b9wc6_1",IY="_teamBar_b9wc6_1",MY="_menuSection_b9wc6_1",LY="_menuSection960_b9wc6_1",RY="_menuSectionPlay_b9wc6_1",OY="_menuSectionPlay960_b9wc6_1",DY="_containerMenu_b9wc6_1",jY="_containerMenu760_b9wc6_1",WY="_containerFilters_b9wc6_1",vY="_teamBarParent_b9wc6_1",UY="_topFilters_b9wc6_1",GY="_topFilters1232_b9wc6_1",HY="_topFilters420_b9wc6_1",JY="_topFilters460_b9wc6_1",qY="_losMejores_b9wc6_1",YY="_losMejores380_b9wc6_1",ZY="_losMejores530_b9wc6_1",KY="_losMejores730_b9wc6_1",XY="_menuSectionHeader_b9wc6_1",QY="_menuSectionHeader1232_b9wc6_1",eZ="_menuSectionHeader960_b9wc6_1",tZ="_menuSectionHeader730_b9wc6_1",aZ="_dropdown_b9wc6_1",iZ="_dropdown730_b9wc6_1",oZ="_dropdown1_b9wc6_1",sZ="_dropdown1730_b9wc6_1",lZ="_dropdownParent_b9wc6_1",rZ="_dropdownParent730_b9wc6_1",nZ="_menuSectionParentHeader_b9wc6_1",dZ="_menuSectionParentHeader1232_b9wc6_1",cZ="_menuSectionParentHeader960_b9wc6_1",pZ="_menuSectionParentHeader730_b9wc6_1",mZ="_menuSectionParentHeader430_b9wc6_1",hZ="_descubreVideos_b9wc6_1",uZ="_descubreVideos1232_b9wc6_1",fZ="_descubreVideos960_b9wc6_1",yZ="_allCategories_b9wc6_1",gZ="_containerScountingBtn_b9wc6_3",_Z="_btnDeleteAplica_b9wc6_13",bZ="_SearchBtnBar_b9wc6_33",SZ="_btnLeyendTxt_b9wc6_52",CZ="_BtnSearchScounting_b9wc6_61",wZ="_containerPredefined_b9wc6_85",kZ="_containerPredefinedScounting_b9wc6_92",EZ="_titleContainerPredefined_b9wc6_100",VZ="_subtitleContainerPredefined_b9wc6_111",TZ={filtersContainer:xq,filtersContainer1232:Bq,closeFiltersPc:Fq,textleyemdmultipleleagues:Pq,textleyemdmultipleleagues380:zq,filtersContainer760:$q,filtersContainer460:Aq,containerSectionPlay:Iq,containerSectionPlay1232:Mq,containerSectionPlay960:Lq,containerSectionPlay320:Rq,containerSectionPlay350:Oq,containerSection:Dq,containerSection1232:jq,containerSection960:Wq,containerSection320:vq,containerSection350:Uq,templateLosMejores:Gq,templateLosMejores1232:Hq,templateLosMejores960:Jq,templateLosMejores420:qq,templateLosMejores320:Yq,templateLosMejores540:Zq,templateLosMejores350:Kq,topFiltersParent:Xq,topFiltersParent1232:Qq,topFiltersParent960:eY,topFiltersParent460:tY,topFiltersParent420:aY,containerTheBest:iY,containerTheBest1232:oY,containerTheBest960:sY,containerTheBest320:lY,titleSection:rY,titleSection540:nY,containerTables:dY,containerTables960:cY,containerTables760:pY,containerTables320:mY,toniKroosWrapper:hY,toniKroosWrapper1080:uY,toniKroosWrapper975:fY,toniKroosWrapper760:yY,toniKroosWrapper420:gY,toniKroosWrapper320:_Y,frameChild:bY,filtros:SY,groupParent:CY,shapeIcon:wY,btnFilters:kY,btnFiltersPC:EY,quitarFiltros:VY,quitarFiltros730:TY,quitarFiltros480:NY,quitarFiltros380:xY,btnCloseFilters:BY,mejoresJugadores:FY,mejoresJugadores730:PY,mejoresJugadores480:zY,mejoresJugadoresSM:$Y,toniKroos:AY,teamBar:IY,menuSection:MY,menuSection960:LY,menuSectionPlay:RY,menuSectionPlay960:OY,containerMenu:DY,containerMenu760:jY,containerFilters:WY,teamBarParent:vY,topFilters:UY,topFilters1232:GY,topFilters420:HY,topFilters460:JY,losMejores:qY,losMejores380:YY,losMejores530:ZY,losMejores730:KY,menuSectionHeader:XY,menuSectionHeader1232:QY,menuSectionHeader960:eZ,menuSectionHeader730:tZ,dropdown:aZ,dropdown730:iZ,dropdown1:oZ,dropdown1730:sZ,dropdownParent:lZ,dropdownParent730:rZ,menuSectionParentHeader:nZ,menuSectionParentHeader1232:dZ,menuSectionParentHeader960:cZ,menuSectionParentHeader730:pZ,menuSectionParentHeader430:mZ,descubreVideos:hZ,descubreVideos1232:uZ,descubreVideos960:fZ,allCategories:yZ,containerScountingBtn:gZ,btnDeleteAplica:_Z,SearchBtnBar:bZ,btnLeyendTxt:SZ,BtnSearchScounting:CZ,containerPredefined:wZ,containerPredefinedScounting:kZ,titleContainerPredefined:EZ,subtitleContainerPredefined:VZ},NZ=e.ref(Gs()),xZ={components:{GSCTableHeader:Qo,GscSwitchComponent:us,GSCFilterperteam:ud,GSCFilters:Us,GSCExpandedInfo:ns,GSCLabel:xd,GSCSeasonSelect:ed,GSCTopCategory:iA,GSCTournamentSelect:id,GSCRowTable:as},computed:{...Kn.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},i=JSON.stringify(t);if(JSON.stringify(this.filters)!=i)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...NZ.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Oe(t);return{myDivRefTopsFull:t,elementSize:i}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],fvTypeStats:"totals",seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,teamselect:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:B,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilterAux(){this.resetPredefinedTeamAll()},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(oe.All),i.clearFilters(oe.AGE_RANGE),i.clearFilters(oe.YEAR),i.clearFilters(oe.NATIONALITY),i.clearFilters(oe.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,elegible:this.FVeligible,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.isSelection?(this.detailsObjectSelection.gameSections[0].isSelected=!0,this.detailsObjectSelection.gameSections[1].isSelected=!0,this.detailsObjectSelection.gameSections[2].isSelected=!0,this.detailsObjectSelection.gameSections[3].isSelected=!0,this.detailsObjectSelection.gameSections[4].isSelected=!0,this.detailsObjectSelection.gameSections[5].isSelected=!0):(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0),this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.isSelection?(this.detailsObjectSelection.playingAs[0].isSelected=!0,this.detailsObjectSelection.playingAs[1].isSelected=!0):(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0),this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY)),t=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.POSITION)),t=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(oe.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(oe.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(i!=-1?this.arrayFiltersPlays[i].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(oe.All),a.clearFilters(oe.AGE_RANGE),a.clearFilters(oe.YEAR),a.clearFilters(oe.NATIONALITY),a.clearFilters(oe.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange&&(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h]);var l=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}else if(this.FVeligible=!1,t.hasOwnProperty("nationalities")){let h=0;this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let d=0;d<t.nationalities.length;d++)t.nationalities[d].isSelected&&(this.fVnationalities.add(t.nationalities[d].id),h++);if(h===t.nationalities.length){var l=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}}if(t.hasOwnProperty("nationalities")&&!this.FVeligible&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}if(t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;if(t.hasOwnProperty("positions")){let h=0;for(let d=0;d<t.positions.length;d++)t.positions[d].isSelected&&(this.fVsetPositionsIds.push(t.positions[d].id),h++);if(h===t.positions.length){var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPosition");r!==-1&&this.arrayFiltersPlays.splice(r,1)}}if(t.hasOwnProperty("nationalities"))var n=t.nationalities.filter(h=>h.isSelected===!0);var c=t.positions.filter(h=>h.isSelected===!0);if(c.length==1&&(o=c[0].name),t.hasOwnProperty("nationalities")&&n.length==1&&(s=n[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");p!=-1?this.arrayFiltersPlays[p].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var p=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersElegibility");p!=-1&&this.arrayFiltersPlays.splice(p,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPosition");r!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[r].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(r,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");y!=-1?this.arrayFiltersPlays[y].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.ageLimits&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var m=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");m!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[m].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var m=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersAge");m!=-1&&this.arrayFiltersPlays.splice(m,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.categoriesPlaysTypes={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},this.detailsObject={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},this.detailsObjectSelection={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.onClickDeleteFilterAux(),this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){if(this.isSelection){if(this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,t=="Más productivos"){this.optionSelected="Scouting",this.resetFilter(),this.resetLeagues(),this.filterScounting.nationalities=[138],this.filterScounting.last_months=6,this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}else this.optionSelected="Jugadores",this.typeTable=0,this.isTeam=!1,this.resetFilterTeamAndPlayers(),this.resetScouting(),await this.loadPreloadedTops();this.optionSelectedSubmenu=t}else t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=ue.create({headers:{Authorization:`${this.token}`}}),{data:a}=await i.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var i="";t.id==1?i=this.urlFilter:i=this.urlFilter;const a=ue.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=o[0].match_lapse_combinations[m]}),Object.keys(o[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=o[0].playing_as_combinations[m]}),Object.keys(o[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=o[0].field_sections_combinations[m]}),o[0]){for(let m=0;m<o[0].filter_records.length;m++){var s=o[0].description;if(o[0].filter_records[m].field_sections!==void 0){const d=o[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[d]||this.predefinedFiltersSections[d]=="")&&(this.predefinedFiltersSections[d]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[d]):s=s.replace("{field_sections}",this.predefinedFiltersSections[d]))}if(o[0].filter_records[m].match_lapse!==void 0){const d=o[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[d]||this.predefinedFiltersMatchLapse[d]=="")&&(this.predefinedFiltersMatchLapse[d]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[d]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[d]))}if(o[0].filter_records[m].playing_as!==void 0){const d=o[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[d]))}o[0].filter_records[m].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[m].match_result,playingAs:o[0].filter_records[m].playing_as,sections:o[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var n=0,c=new Set,p={},y=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;h++)c.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[h]);p.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),p.setNationalitiesIds=c;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,this.optionSelected=="Equipos"&&(this.tournamentSelectedObj.is_female?y=y.replace(/Jugadoras/g,"Equipos"):y=y.replace(/Jugadores/g,"Equipos")),p.setNationalitiesIds=[],r.push({id:m+1,name:y,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((y,m)=>y-m).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=c.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let y=1;y<=p.length;y++)y%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const c=a.get(r[0])||{};return{id:c.id,name:c.name,img:c.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var c,p,y,m,h,d,f,u,g,C;const w=o.get(r[0])||{};return{age:w.numberAge,categoryName:s.name,country:(p=(c=w.countryId)==null?void 0:c[0])==null?void 0:p.nationality_id,date:w.date,effectiveness:w.effectiveness||0,games:w.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:w.min,name:w.stringFullName,name_short:w.stringFullName,nationality:w.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(m=(y=w.countryId)==null?void 0:y[0])==null?void 0:m.nationality_id}.jpg`,position:w.position_short,positionId:w.numberPositionId,positionfull:this.positions[w.numberPositionId-1],team:((d=(h=w.teamName)==null?void 0:h[0])==null?void 0:d.acronym)||"",teamid:((u=(f=w.teamName)==null?void 0:f[0])==null?void 0:u.team_id)||"",teamname:((C=(g=w.teamName)==null?void 0:g[0])==null?void 0:C.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=ue.create({headers:{Authorization:`${this.token}`}}),i=this.isSelection?`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20&nat=138`:`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=ue.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${i}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),i=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(i.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadPreloadedTops();const t=await ue.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(t){throw new Error(t)}}},BZ={ref:"myDivRefTopsFull"},FZ={key:0,class:"overlay-loading"},PZ=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),zZ=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),$Z=[PZ,zZ],AZ=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),IZ=[AZ],MZ={key:0,class:"cont-leyemd-multipleleagues"},LZ=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),RZ={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},OZ={key:0,style:{"margin-left":"10px"}},DZ=e.createElementVNode("span",null,"Todas las categorías",-1),jZ=[DZ],WZ=e.createElementVNode("span",null,"Tipo de Jugada",-1),vZ=e.createElementVNode("span",null,"Filtro GolStats",-1),UZ={key:3,style:{width:"100%",height:"295px"}};function GZ(t,i,a,o,s,l){const r=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),c=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCFilterperteam"),y=e.resolveComponent("GSCFilters"),m=e.resolveComponent("GSCLabel"),h=e.resolveComponent("GSCTopCategory"),d=e.resolveComponent("GSCTableHeader"),f=e.resolveComponent("GSCRowTable"),u=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",BZ,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",FZ,$Z)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(c,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(p,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...g)=>l.clickOpenFilters&&l.clickOpenFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 15px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...g)=>l.clickCloseFilters&&l.clickCloseFilters(...g))},IZ,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(c,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(c,{key:2,type:2,buttons:["Todas las jugadas","Más productivos"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:Kc},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isSelection?(e.openBlock(),e.createBlock(y,e.mergeProps({key:0,"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:a.isSelection?s.detailsObjectSelection:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"?(e.openBlock(),e.createBlock(y,e.mergeProps({key:1,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","is-seleccion","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[4]||(i[4]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",MZ,[LZ,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(p,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",RZ," 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",OZ,[e.createVNode(m,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(g,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,style:{"margin-left":"10px"}},[e.createVNode(m,{"text-value":g.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:g.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(g=>g.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[5]||(i[5]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},jZ,2))],64)):e.createCommentVNode("",!0)],2),s.seasonActive!=0||a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.containerTablesClass),id:"container-tables",style:e.normalizeStyle(s.showFullTable?"gap: 0px!important;":"")},[s.optionSelected!=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelectedSubmenu=="Todas las jugadas"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.categoriesDefault,(g,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(h,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[g.id],"border-radius":"12px","filters-prop":l.filterChange,category:g.id,"type-table":s.typeTable,categoryName:g.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded},null,8,["is-female","is-team","type-stats","is-selection","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":a.isSelection,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[WZ,e.createTextVNode(" y un "),vZ,e.createTextVNode(" en la")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("que has seleccionado.")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("parte superior.")],64)):e.createCommentVNode("",!0)],2)],2))],64))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefinedScounting),style:e.normalizeStyle(s.rowScoutingData.length>0?"height: auto;":"")},[s.loadingActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.rowScoutingData.length>0?(e.openBlock(),e.createBlock(d,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:C},[s.teamselectrec==0||s.teamselectrec==g.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{type:2,"is-expanded":s.playerexpand==g.id&&s.expand,onMediadata:l.setMediaData,data:{position:g.position,player_name:g.player_name,player_photo:g.player_photo,total:g.total,id:g.id,player_age:g.player_age,team_abrev:g.team_abrev,team_logo:g.team_logo,player_position:s.positions[g.player_position-1].fullname,player_country_flag:g.player_country_flag,player_games:g.player_games,player_min:g.player_min,league_name:g.league_name,seasons:g.seasons,season_id:g.season_id},height:"71px",background:C%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==g.id?(e.openBlock(),e.createBlock(u,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:g.team_name,age:g.player_age,dataofbirth:g.date,nationality:g.nationality_name,countryFlag:g.player_country_flag,position:s.positions[g.player_position-1].name,games:g.player_games,min:g.player_min,goals:g.total,effectiveness:"-",category:"total",id:g.id},onViewprofile:w=>l.viewprofile(w,g.season_id,g.team_id),background:C%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[6]||(i[6]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[7]||(i[7]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",UZ)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const HZ={$style:TZ},JZ=Ce(xZ,[["render",GZ],["__cssModules",HZ]]),Hs={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Xc=()=>{e.useCssVars(t=>({69653168:t.backgroundColor,ca69336e:t.widthCircle,"145c8724":t.heightCircle}))},Qc=Hs.setup;Hs.setup=Qc?(t,i)=>(Xc(),Qc(t,i)):Xc;const qZ=["width","src"],YZ=["checked"],ZZ=["width","src"];function KZ(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(l.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["text-left",{inactive:s.OptionDefault}])},e.toDisplayString(a.textOptionLeft),3)):e.createCommentVNode("",!0),a.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA,class:e.normalizeClass({inactive:s.OptionDefault})},null,10,qZ)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>l.handleSwitchChange&&l.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,YZ),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([l.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB,class:e.normalizeClass({inactive:!s.OptionDefault})},null,10,ZZ)):e.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["text-right",{inactive:!s.OptionDefault}])},e.toDisplayString(a.textOptionRight),3)):e.createCommentVNode("",!0)],4)}const XZ=Ce(Hs,[["render",KZ],["__scopeId","data-v-473fe73b"]]),QZ={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},listId:{type:Number,required:!0},player:{type:Object,required:!0}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref(new Set),s=e.ref(""),l=e.ref([]),r=e.ref(!1),n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=e.ref(null),p=u=>{document.body.style.overflow=u?"hidden":"auto"},y=()=>{o.value.clear(),s.value="",c.value=null,l.value=[]},m=()=>{y(),i("close")},h=()=>{s.value=""},d=async()=>{if(t.userId){r.value=!0;try{const u=await ue.create({headers:{Authorization:`${n}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`);l.value=u.data.data}catch(u){console.error("Error al obtener las listas:",u)}finally{r.value=!1}}};e.watch(()=>t.isVisible,u=>{p(u),u&&t.userId&&d()}),e.watch(()=>t.userId,u=>{u&&t.isVisible&&d()}),e.onMounted(()=>{t.isVisible&&p(!0)}),e.onUnmounted(()=>{p(!1)});const f=e.computed(()=>{if(!s.value)return l.value;const u=s.value.toLowerCase();return l.value.filter(g=>g.name.toLowerCase().includes(u))});return{modalContent:a,selectedPlayers:o,searchQuery:s,closeModal:m,clearSearch:h,playlists:l,isLoading:r,filteredPlaylists:f,selectedPlaylist:c,handlePlaylistSelection:u=>{c.value=u},handleCreatePlaylist:async()=>{if(c.value)try{const u=ue.create({headers:{Authorization:`${n}`}}),g={user_id:t.userId,id:c.value,players:[t.player]};await u.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${c.value}/players`,g),m()}catch(u){console.error("Error al guardar el jugador en la lista:",u)}},handleCreateListClick:()=>{i("create-list"),y()}}}},ft=t=>(e.pushScopeId("data-v-3041d1a9"),t=t(),e.popScopeId(),t),eK={class:"modal-header"},tK=ft(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Agregar a lista")],-1)),aK=ft(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),iK=[aK],oK={class:"modal-body"},sK={class:"search-section"},lK={class:"search-container"},rK={class:"search-input"},nK=ft(()=>e.createElementVNode("svg",{class:"search-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M15.25 15.25L11.8855 11.8795L15.25 15.25ZM13.75 7.375C13.75 9.06576 13.0784 10.6873 11.8828 11.8828C10.6873 13.0784 9.06576 13.75 7.375 13.75C5.68424 13.75 4.06274 13.0784 2.86719 11.8828C1.67165 10.6873 1 9.06576 1 7.375C1 5.68424 1.67165 4.06274 2.86719 2.86719C4.06274 1.67165 5.68424 1 7.375 1C9.06576 1 10.6873 1.67165 11.8828 2.86719C13.0784 4.06274 13.75 5.68424 13.75 7.375V7.375Z",stroke:"white","stroke-opacity":"0.43","stroke-width":"1.5","stroke-linecap":"round"})],-1)),dK=ft(()=>e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)),cK=[dK],pK=ft(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),mK={class:"players-table-container"},hK={class:"players-table"},uK={key:0,class:"loading-message"},fK={key:1,class:"empty-message"},yK={class:"checkbox-container"},gK=["id","checked","onChange"],_K=ft(()=>e.createElementVNode("div",{class:"folder-icon"},[e.createElementVNode("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18 2H10L8 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V4C20 2.9 19.1 2 18 2Z",fill:"#ffffff","fill-opacity":"0.3"})])],-1)),bK={class:"list-content"},SK={class:"title"},CK={class:"subtitle"},wK={class:"modal-footer"},kK={class:"buttons-container buttons-container-step2"},EK=ft(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),VK=ft(()=>e.createElementVNode("span",null,"Crear nueva lista",-1)),TK=[EK,VK],NK={class:"right-buttons"},xK=["disabled"];function BK(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[8]||(i[8]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[7]||(i[7]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",eK,[tK,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},iK)]),e.createElementVNode("div",oK,[e.createElementVNode("div",sK,[e.createElementVNode("div",lK,[e.createElementVNode("div",rK,[nK,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.searchQuery=r),type:"text",placeholder:"Buscar lista..."},null,512),[[e.vModelText,o.searchQuery]]),o.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:i[2]||(i[2]=(...r)=>o.clearSearch&&o.clearSearch(...r))},cK)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"crear-playlist",onClick:i[3]||(i[3]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},[pK,e.createTextVNode(" Crear nueva lista ")])])]),e.createElementVNode("div",mK,[e.createElementVNode("div",hK,[o.isLoading?(e.openBlock(),e.createElementBlock("div",uK," Cargando listas... ")):o.filteredPlaylists.length===0?(e.openBlock(),e.createElementBlock("div",fK," No hay listas disponibles ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(o.filteredPlaylists,r=>{var n;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"list-item"},[e.createElementVNode("div",yK,[e.createElementVNode("input",{type:"checkbox",id:r.id,checked:o.selectedPlaylist===r.id,onChange:c=>o.handlePlaylistSelection(r.id)},null,40,gK)]),_K,e.createElementVNode("div",bK,[e.createElementVNode("div",SK,e.toDisplayString(r==null?void 0:r.name),1),e.createElementVNode("div",CK,e.toDisplayString((n=r==null?void 0:r.template)==null?void 0:n.name),1)])])}),128))])])]),e.createElementVNode("div",wK,[e.createElementVNode("div",kK,[e.createElementVNode("button",{class:"create-list-link",onClick:i[4]||(i[4]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},TK),e.createElementVNode("div",NK,[e.createElementVNode("button",{class:"cancelar",onClick:i[5]||(i[5]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[6]||(i[6]=(...r)=>o.handleCreatePlaylist&&o.handleCreatePlaylist(...r)),disabled:!o.selectedPlaylist}," Guardar ",8,xK)])])])],512)])):e.createCommentVNode("",!0)]),_:1})}const FK=Ce(QZ,[["render",BK],["__scopeId","data-v-3041d1a9"]]),PK={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},player:{type:Object,required:!0},templates:{type:Array,default:()=>[]}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref({title:"",templateId:""}),s=e.ref(0),l=()=>{a.value&&(s.value=a.value.offsetWidth)},r=m=>{document.body.style.overflow=m?"hidden":"auto"},n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=()=>{l(),t.isVisible&&r(!0)},p=()=>{o.value={title:"",templateId:""},i("close")},y=async()=>{if(!(!o.value.title||!o.value.templateId))try{const m=t.templates.find(f=>f.id===o.value.templateId),h={user_id:t.userId,name:o.value.title,template:m,players:[t.player]},d=await ue.create({headers:{Authorization:`${n}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,h);p()}catch(m){console.error("Error al crear la lista:",m)}};return e.onMounted(()=>{window.addEventListener("resize",c)}),e.onUnmounted(()=>{window.removeEventListener("resize",c),r(!1)}),e.watch(()=>t.isVisible,m=>{m?(setTimeout(l,0),r(!0)):r(!1)}),e.watch(()=>t.listData,m=>{m&&(m.name&&(o.value.title=m.name),m.template&&(o.value.templateId=Number(m.template)))},{immediate:!0}),{modalContent:a,playlistData:o,modalWidth:s,closeModal:p,handleNext:y}}},Js=t=>(e.pushScopeId("data-v-180b78dc"),t=t(),e.popScopeId(),t),zK={class:"modal-header"},$K=Js(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Crear lista")],-1)),AK=Js(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),IK=[AK],MK={class:"modal-body"},LK=Js(()=>e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una plantilla",-1)),RK=["value"],OK={class:"modal-footer"},DK={class:"buttons-container buttons-container-step1"},jK=["disabled"];function WK(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[6]||(i[6]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[5]||(i[5]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",zK,[$K,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},IK)]),e.createElementVNode("div",MK,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.playlistData.title=r),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,o.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":i[2]||(i[2]=r=>o.playlistData.templateId=r),class:"select-position"},[LK,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.templates,r=>(e.openBlock(),e.createElementBlock("option",{key:r.id,value:r.id},e.toDisplayString(r.name),9,RK))),128))],512),[[e.vModelSelect,o.playlistData.templateId]])]),e.createElementVNode("div",OK,[e.createElementVNode("div",DK,[e.createElementVNode("button",{class:"cancelar",onClick:i[3]||(i[3]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[4]||(i[4]=(...r)=>o.handleNext&&o.handleNext(...r)),disabled:!o.playlistData.title||!o.playlistData.templateId}," Guardar ",8,jK)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const vK=Ce(PK,[["render",WK],["__scopeId","data-v-180b78dc"]]),UK=[{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}]}],GK=[{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}]}],HK=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},JK={key:1},qK={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},YK=["fill"],ZK={key:0,class:"checkbox__teams"},KK={class:"checkbox__teams__logo"},XK=["src"],QK={class:"checkbox__teams__logo"},eX=["src"],tX={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(t){return["left","right","top","bottom"].includes(t)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function c(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",JK,[(e.openBlock(),e.createElementBlock("svg",qK,[e.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:t.boxValueColor},null,8,YK)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",ZK,[e.createElementVNode("div",KK,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,XK)]),e.createElementVNode("div",QK,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,eX)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},aX=HK(tX,[["__scopeId","data-v-b6f124d8"]]),iX=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},qs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ep=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},tp=qs.setup;qs.setup=tp?(t,i)=>(ep(),tp(t,i)):ep;const oX=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),sX=["src"],lX={key:1,class:"text"},rX=["src"],nX={class:"stats"},dX=oX(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),cX={class:"numstats"},pX={class:"leyend"};function mX(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,sX)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",lX,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,rX)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",nX,[dX,e.createElementVNode("div",cX,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",pX,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const hX=iX(qs,[["render",mX],["__scopeId","data-v-f3ee6b2b"]]),ap=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},uX=t=>(e.pushScopeId("data-v-d03b93c8"),t=t(),e.popScopeId(),t),fX={key:0,class:"overlay"},yX=uX(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),gX=["onClick"],_X={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(null),r=e.ref(0);e.ref(!1);const n=e.computed(()=>{const h=o.availablePlayers[0];return h?h.stats:[]}),c=e.computed(()=>{const h=`repeat(${n.value.length}, max-content) 36px`;let d="";return r.value>0&&document.querySelectorAll(".column-title-2").forEach(f=>{d+=`${f.offsetWidth}px `}),{"--grid-template-columns":h,"--grid-template-columns-totals":d||h}});function p(){s.value=new ResizeObserver(h=>{for(const d of h){const{width:f}=d.contentRect;r.value=f}}),s.value.observe(l.value)}function y(h,d){const f=document.querySelectorAll(".scrollable-row-totals")[h+1];f&&(f.style.marginTop=`${d}px`)}function m({player:h,stat:d}){!d.total||d==="0%"||!d.seasons||!d.seasons.length||a("open-media",{...h,stat:d})}return e.onMounted(()=>{p()}),i({setMarginTopDetails:y}),(h,d)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(c.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",fX)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:l,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,f=>(e.openBlock(),e.createElementBlock("div",{key:`t-${f.category_id}`,class:"column-title-2"},e.toDisplayString(f.name),1))),128)),yX],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${f.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.stats,g=>(e.openBlock(),e.createElementBlock("div",{key:g.category_id,class:e.normalizeClass(["row data-info",{odd:u%2!==0,underline:!!g.total&&g.total!=="0%"&&g.seasons&&g.seasons.length}]),onClick:C=>m({player:f,stat:g})},e.toDisplayString(g.total),11,gX))),128))]))),128))],4))}},bX=ap(_X,[["__scopeId","data-v-d03b93c8"]]),Fe=t=>(e.pushScopeId("data-v-378d650a"),t=t(),e.popScopeId(),t),SX={class:"table__static-column"},CX=Fe(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),wX={class:"container"},kX={class:"details-row__info"},EX={class:"details-row__info__personal"},VX={class:"bold"},TX={class:"bold"},NX={class:"bold"},xX={class:"bold"},BX={class:"details-row__info__games"},FX={class:"bold"},PX={class:"bold"},zX=["onClick"],$X=Fe(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),AX=Fe(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),IX=[$X,AX],MX=["onClick"],LX=Fe(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),RX=Fe(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),OX=[LX,RX],DX=["onClick"],jX=Fe(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),WX=Fe(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),vX=[jX,WX],UX=["onClick"],GX=Fe(()=>e.createElementVNode("div",null,"Ver perfil",-1)),HX=[GX],JX={class:"static-row__info-player"},qX={class:"position"},YX=["onClick"],ZX=Fe(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),KX=Fe(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),XX=Fe(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),QX=[ZX,KX,XX],eQ=["onClick"],tQ=Fe(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),aQ=Fe(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),iQ=Fe(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),oQ=[tQ,aQ,iQ],sQ={class:"player-photo"},lQ=["src"],rQ={class:"player-name"},nQ={class:"arrow"},dQ=["onClick"],cQ=Fe(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),pQ=[cQ],mQ={class:"table__scrollable-columns"},hQ=e.createStaticVNode('<div class="titles scrollable-row" data-v-378d650a><div class="column-title" data-v-378d650a>Equipo</div><div class="column-title" data-v-378d650a>Posición</div><div class="column-title" data-v-378d650a>Edad</div><div class="column-title" data-v-378d650a>País</div><div class="column-title" data-v-378d650a>Partidos Jugados</div><div class="column-title" data-v-378d650a>Minutos Jugados</div><div class="column-title" data-v-378d650a>Liga</div><div class="column-title" data-v-378d650a>Videos</div><div class="column-title" data-v-378d650a></div></div>',1),uQ={class:"team-logo"},fQ=["src"],yQ={class:"team-name data-info"},gQ=["src"],_Q={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media"],setup(t,{emit:i}){const a=t;let o=null,s=null;const l=e.ref([]),r=e.ref(null),n=e.ref(null),c=e.ref(0),p=e.ref(0),y=e.ref(-1);e.ref(!1);const m=e.ref(null),h=e.computed(()=>({"--width-details":`${c.value}px`,"--gap-static-row":`${d.value?"8px":"18px"}`,"--width-static-column":`${d.value?"50%":"256px"}`})),d=e.computed(()=>c.value<600);e.watch(()=>a.players,V=>{V&&V.length&&(l.value=V.map((x,S)=>{const P=S+1;return{...x,position:P<10?`0${P}`:`${P}`,isSelected:!1,isExpanded:!1,isOdd:S%2!==0,index:S}}))},{immediate:!0}),e.watch(()=>a.isEditMode,V=>{V&&l.value.forEach(x=>{x.isSelected=!1})}),e.watch(p,V=>{const x=document.querySelectorAll(".static-row")[y.value+1];x&&(x.style.marginTop=`${V}px`),a.isGeneral?f(y.value,V):n.value&&n.value.setMarginTopDetails(y.value,V),V===0&&m.value&&J(m.value)});function f(V,x){const S=document.querySelectorAll(".scrollable-row")[V+2];S&&(S.style.marginTop=`${x}px`)}function u(V){const x=V.player||V.objeto_player,S=x?x.player_id||x.id||x.playerId:V.id||V.player_id,P=x?x.team_id||x.teamId:V.team_id||V.teamId,z={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:S?[S]:[],goalkeeperIds:[],teamId:P||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(V.stat&&V.stat.seasons&&V.stat.seasons.length||V.seasons&&V.seasons.length){const H=[...V.stat&&V.stat.seasons&&V.stat.seasons.length?V.stat.seasons:V.seasons];H.sort((Z,ce)=>Z-ce),z.seasonId=H.shift(),z.seasonsIds=H}else(V.season_id||V.seasonId)&&(z.seasonId=V.season_id||V.seasonId);V.stat?V.stat.category_id?z.categoryIds=V.stat.category_id:V.stat.custom_category_id&&(z.customCategoryIds=[V.stat.custom_category_id]):z.categoryIds=w(V.player_position),i("open-media",z)}function g(){o=new ResizeObserver(V=>{for(const x of V)c.value=x.contentRect.width}),o.observe(r.value)}function C(V){s=new ResizeObserver(x=>{for(const S of x)p.value=S.contentRect.height}),s.observe(V)}function w(V){return V==="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 v(V,x){x.isSelected=V;const S=l.value.filter(P=>P.isSelected);i("change-selected-players",S)}function q(V){i("view-profile",V)}function A(V){i("delete-from-list",V)}function G(V){i("add-to-list",V)}function Y(V){i("show-graph",V)}function J(V){if(V.isExpanded){V.isExpanded=!1,m.value=null;return}const x=l.value.find(P=>P.isExpanded);if(x&&(x.isExpanded=!1),x){m.value=V;return}const S=document.querySelectorAll(".details-row")[V.index];y.value=V.index,C(S),V.isExpanded=!0}return e.onMounted(()=>{g()}),(V,x)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:r,style:e.normalizeStyle(h.value)},[e.createElementVNode("div",SX,[CX,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`s-${S.id}`,class:e.normalizeClass(["row static-row",{odd:S.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:S.isOdd}])},[e.createElementVNode("div",wX,[e.createElementVNode("div",kX,[e.createElementVNode("div",EX,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",VX,e.toDisplayString(S.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",TX,e.toDisplayString(S.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",NX,e.toDisplayString(S.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",xX,e.toDisplayString(S.position_name),1)])]),e.createElementVNode("div",BX,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",FX,e.toDisplayString(S.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",PX,e.toDisplayString(S.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(d.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:P=>Y(S)},IX,8,zX),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:P=>A(S)},OX,8,MX)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:P=>G(S)},vX,8,DX)),e.createElementVNode("div",{role:"button",class:"button green",onClick:P=>q(S)},HX,8,UX)],4)])],2),[[e.vShow,S.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(aX),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":S.isSelected,"onUpdate:modelValue":P=>v(P,S)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",JX,[e.createElementVNode("div",qX,e.toDisplayString(S.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:P=>A(S)},QX,8,YX)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:P=>G(S)},oQ,8,eQ)),e.createElementVNode("div",sQ,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:S.player_photo,alt:"player photo"},null,8,lQ)])]),e.createElementVNode("div",rQ,e.toDisplayString(S.player_name),1)]),e.createElementVNode("div",nQ,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:S.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:P=>J(S)},pQ,10,dQ))])],2))),128))]),e.createElementVNode("div",mQ,[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[hQ,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`i-${S.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:S.isOdd}])},[e.createElementVNode("div",uQ,[e.createElementVNode("img",{src:S.team_logo,alt:"team logo"},null,8,fQ)]),e.createElementVNode("div",yQ,e.toDisplayString(S.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createElementVNode("img",{src:S.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,gQ)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createVNode(e.unref(hX),{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:P=>u(S)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(bX,{key:1,ref_key:"scrollColumns",ref:n,"available-players":l.value,"is-edit-mode":t.isEditMode,onOpenMedia:u},null,8,["available-players","is-edit-mode"]))])],4))}},bQ=ap(_Q,[["__scopeId","data-v-378d650a"]]),SQ="_tablePosition_1wx0m_91",CQ="_tablePositionWrapper_1wx0m_123",wQ="_imgHenrryIcon_1wx0m_141",kQ="_americaIcon_1wx0m_157",EQ="_playerPhoto_1wx0m_181",VQ="_toniKroos_1wx0m_199",TQ="_shapeIcon_1wx0m_221",NQ="_menuiconsTeams_1wx0m_233",xQ="_component31_1wx0m_251",BQ="_playerName_1wx0m_273",FQ="_icnPlayIcon_1wx0m_289",PQ="_goles_1wx0m_305",zQ="_americaIcon1_1wx0m_319",$Q="_teamsAmerica_1wx0m_347",AQ="_topAddPlayer_1wx0m_361",IQ="_containerData_1wx0m_369",MQ="_shapeIcon1_1wx0m_385",LQ="_icnExpand1_1wx0m_397",RQ="_icnExpand_1wx0m_397",OQ="_playerData_1wx0m_437",DQ="_playerInfo_1wx0m_459",jQ="_headerTop_1wx0m_489",WQ="_playerRow_1wx0m_517",vQ="_groupsLeague_1wx0m_539",UQ="_text_1wx0m_557",GQ="_btnViewFullList_1wx0m_573",HQ="_headerTops_1wx0m_607",JQ="_btnVideosOptions_1wx0m_751",qQ="_position_1wx0m_1105",YQ="_positionWrapper_1wx0m_1129",ZQ="_imgNecaxaIcon_1wx0m_1145",KQ="_teamLogo_1wx0m_1157",XQ="_teamPhoto_1wx0m_1173",QQ="_name_1wx0m_1189",eee="_icnPlayIconType1_1wx0m_1205",tee="_verVideosType1_1wx0m_1219",aee="_btnVideosOptionsType1_1wx0m_1231",iee="_btnVideosOptions1_1wx0m_1255",oee="_leftContainer_1wx0m_1279",see="_shapeIconType1_1wx0m_1297",lee="_icnExpandType1_1wx0m_1307",ree="_arrowExpand_1wx0m_1327",nee="_containerInfo_1wx0m_1343",dee="_headerTopTeam_1wx0m_1367",cee="_containerHeader_1wx0m_1395",pee="_goles1_1wx0m_1413",mee="_golesType1_1wx0m_1419",hee="_golesWrapper_1wx0m_1429",uee="_btnViewAll_1wx0m_1447",fee="_headerTopsTeams_1wx0m_1481",yee="_arrowExpandIcon_1wx0m_1715",gee="_rotate_1wx0m_1725",_ee={tablePosition:SQ,tablePositionWrapper:CQ,imgHenrryIcon:wQ,americaIcon:kQ,playerPhoto:EQ,toniKroos:VQ,shapeIcon:TQ,menuiconsTeams:NQ,component31:xQ,playerName:BQ,icnPlayIcon:FQ,goles:PQ,americaIcon1:zQ,teamsAmerica:$Q,topAddPlayer:AQ,containerData:IQ,shapeIcon1:MQ,icnExpand1:LQ,icnExpand:RQ,playerData:OQ,playerInfo:DQ,headerTop:jQ,playerRow:WQ,groupsLeague:vQ,text:UQ,btnViewFullList:GQ,headerTops:HQ,btnVideosOptions:JQ,position:qQ,positionWrapper:YQ,imgNecaxaIcon:ZQ,teamLogo:KQ,teamPhoto:XQ,name:QQ,icnPlayIconType1:eee,verVideosType1:tee,btnVideosOptionsType1:aee,btnVideosOptions1:iee,leftContainer:oee,shapeIconType1:see,icnExpandType1:lee,arrowExpand:ree,containerInfo:nee,headerTopTeam:dee,containerHeader:cee,goles1:pee,golesType1:mee,golesWrapper:hee,btnViewAll:uee,headerTopsTeams:fee,arrowExpandIcon:yee,rotate:gee},Ys={components:{GSCButton:yi},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(t){this.$emit("play",t)},clickMore(t){this.$emit("more",t)},clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},clickFav(t){this.$emit("fav",t)},clickEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},ip=()=>{e.useCssVars(t=>({"45cfef00":t.fontSizeTopNum,e0453eba:t.fontFamilyTopNum,"50dc0174":t.fontColorTopNum,"6e214ea8":t.opacityColorTopNum,"530f5520":t.fontColorName,"1ae52c86":t.fontFamilyName,"3999eb5a":t.fontSizeName,"5ac504e3":t.backgroundColorHeader,"4b8dc330":t.fontFamilyCategory,"4f162e4d":t.fontSizeCategory,78954513:t.fontColorCategory,"969a2fd4":t.borderColorCategory}))},op=Ys.setup;Ys.setup=op?(t,i)=>(ip(),op(t,i)):ip;const bee=["src"],See=["src"],Cee=["src"],wee=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),kee=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),Eee=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),Vee=[wee,kee,Eee],Tee=["fill"],Nee=["fill"],xee=["src"],Bee=["fill"],Fee=["fill"];function Pee(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.headerTops)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerRow),id:"player-row"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTop)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerPhoto),id:"container-player-photp"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.tablePositionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.tablePosition)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHenrryIcon),alt:"",src:a.data.photo},null,10,bee),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,See)],2),e.createElementVNode("main",{class:e.normalizeClass(t.$style.playerInfo),id:"container-player-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerName)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.toniKroos)},e.toDisplayString(a.data.name),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createVNode(r,{"icon-size":"12px","icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.clickEventMedia(a.data))},null,8,["icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamsAmerica)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon1),alt:"",src:a.data.logo},null,10,Cee)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.topAddPlayer)},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[1]||(i[1]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},Vee))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:i[2]||(i[2]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Nee)],10,Tee))],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,xee)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerInfo)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leftContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(a.data.name_team),3),e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[3]||(i[3]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnVideosOptions1)},[e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.verVideosType1)},e.toDisplayString(a.data.total),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.arrowExpand),onClick:i[5]||(i[5]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Fee)],10,Bee))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const zee={$style:_ee},$ee=Ce(Ys,[["render",Pee],["__cssModules",zee]]),Aee="_rotate_1wjiv_5",Iee="_positionContainer_1wjiv_99",Mee="_positionContainer620_1wjiv_113",Lee="_rowwPlayer_1wjiv_127",Ree="_rowwPlayer960_1wjiv_159",Oee="_rowwPlayer420_1wjiv_189",Dee="_rowwPlayer460_1wjiv_221",jee="_containerLeft_1wjiv_255",Wee="_containerLeft420_1wjiv_271",vee="_containerLeft620_1wjiv_287",Uee="_iconFavoritesType1_1wjiv_301",Gee="_iconFavoritesType1320_1wjiv_317",Hee="_iconFavorites_1wjiv_301",Jee="_iconFavorites420_1wjiv_349",qee="_playerContainer_1wjiv_365",Yee="_playerContainer420_1wjiv_389",Zee="_playerContainer460_1wjiv_413",Kee="_playerContainerType1_1wjiv_437",Xee="_playerContainerType1320_1wjiv_457",Qee="_playerContainerType1460_1wjiv_477",ete="_imgPlayerIcon_1wjiv_497",tte="_imgPlayerIcon460_1wjiv_517",ate="_imgPlayerIcon420_1wjiv_537",ite="_manchesterUnited_1wjiv_557",ote="_manchesterUnited360_1wjiv_579",ste="_manchesterUnited420_1wjiv_601",lte="_manchesterUnited460_1wjiv_623",rte="_containerRight_1wjiv_645",nte="_containerRight960_1wjiv_663",dte="_containerRight420_1wjiv_683",cte="_numberOfVideos_1wjiv_705",pte="_numberOfVideos620_1wjiv_717",mte="_block02_1wjiv_729",hte="_block02960_1wjiv_749",ute="_block02620_1wjiv_767",fte="_block02420_1wjiv_781",yte="_verVideos_1wjiv_797",gte="_verVideos620_1wjiv_809",_te="_numberPosition_1wjiv_815",bte="_shapeIcon_1wjiv_827",Ste="_chivasIcon_1wjiv_837",Cte="_imgTeamIcon_1wjiv_859",wte="_teamName_1wjiv_869",kte="_nameTeam_1wjiv_881",Ete="_dfC_1wjiv_899",Vte="_position_1wjiv_99",Tte="_age_1wjiv_919",Nte="_manchesterUnitedIcon_1wjiv_935",xte="_country_1wjiv_949",Bte="_playedGames_1wjiv_963",Fte="_playedMinutes_1wjiv_977",Pte="_block01_1wjiv_991",zte="_leagueName_1wjiv_1005",$te="_roleCharacterIcon_1wjiv_1017",Ate="_btnVideos_1wjiv_1033",Ite="_containerBtnVideos_1wjiv_1063",Mte="_containerBtnVideos620_1wjiv_1083",Lte="_containesOptions_1wjiv_1101",Rte="_arrowExpandIcon_1wjiv_1115",Ote="_rowTeam_1wjiv_1133",Dte="_rowTeam420_1wjiv_1169",jte="_rowTeam320_1wjiv_1205",Wte="_rowTeam460_1wjiv_1243",vte="_rowTeam350_1wjiv_1281",Ute="_containerLeftType1_1wjiv_1317",Gte="_containerLeftType1680_1wjiv_1329",Hte="_containerLeftType1320_1wjiv_1343",Jte="_containerLeftType1350_1wjiv_1359",qte="_positionContainertype1_1wjiv_1373",Yte="_positionContainertype1380_1wjiv_1389",Zte="_positionContainertype1680_1wjiv_1405",Kte="_positionContainertype1420_1wjiv_1421",Xte="_manchesterUnitedType1_1wjiv_1437",Qte="_manchesterUnitedType1460_1wjiv_1449",eae="_manchesterUnitedType1320_1wjiv_1463",tae="_containerRightType1_1wjiv_1477",aae="_containerRightType1420_1wjiv_1499",iae="_containerRightType1320_1wjiv_1521",oae="_teamNameWrapperType1_1wjiv_1543",sae="_teamNameWrapperType1960_1wjiv_1557",lae="_teamNameWrapperType11086_1wjiv_1571",rae="_ageWrapperType1_1wjiv_1585",nae="_ageWrapperType1680_1wjiv_1599",dae="_ageWrapperType11086_1wjiv_1615",cae="_ageType1_1wjiv_1631",pae="_ageType1960_1wjiv_1647",mae="_playedGamesWrapperType1_1wjiv_1653",hae="_playedGamesWrapperType1680_1wjiv_1667",uae="_playedGamesWrapperType1960_1wjiv_1673",fae="_playedGamesType1_1wjiv_1679",yae="_playedGamesType1540_1wjiv_1693",gae="_playedGamesType1960_1wjiv_1701",_ae="_playedGamesType11086_1wjiv_1707",bae="_playedMinutesWrapperType1_1wjiv_1713",Sae="_playedMinutesWrapperType11086_1wjiv_1727",Cae="_playedMinutesType1_1wjiv_1741",wae="_playedMinutesType1680_1wjiv_1755",kae="_block02Type1_1wjiv_1761",Eae="_block02Type1680_1wjiv_1777",Vae="_block02Type1320_1wjiv_1793",Tae="_block02Type1350_1wjiv_1811",Nae="_leagueNameWrapperType1_1wjiv_1827",xae="_leagueNameWrapperType1680_1wjiv_1843",Bae="_leagueNameWrapperType1960_1wjiv_1849",Fae="_leagueNameType1_1wjiv_1865",Pae="_leagueNameType1960_1wjiv_1885",zae="_numberOfVideosType1_1wjiv_1905",$ae="_numberOfVideosType1680_1wjiv_1919",Aae="_numberOfVideosType11232_1wjiv_1933",Iae="_vectorIconType1_1wjiv_1947",Mae="_block01TitlesType1_1wjiv_1981",Lae="_numberPositionType1_1wjiv_1995",Rae="_shapeIconType1_1wjiv_2007",Oae="_tijuanaIconType1_1wjiv_2019",Dae="_tijuanaWrapperType1_1wjiv_2031",jae="_tijuanaWrapperType1NoBg_1wjiv_2053",Wae="_teamNameType1_1wjiv_2069",vae="_roleCharacterIconType1_1wjiv_2083",Uae="_verVideosType1_1wjiv_2097",Gae="_btnVideosType1_1wjiv_2109",Hae="_containerBtnVideosType1_1wjiv_2139",Jae="_containesOptionsType1_1wjiv_2161",qae="_arrowExpandIconType1_1wjiv_2177",Yae="_templateTablaProductividadType1_1wjiv_2189",Zae="_verVideosType11232_1wjiv_2213",Kae="_templateTablaProductividadType1320_1wjiv_2221",Xae="_verVideosType1680_1wjiv_2229",Qae={rotate:Aee,positionContainer:Iee,positionContainer620:Mee,rowwPlayer:Lee,rowwPlayer960:Ree,rowwPlayer420:Oee,rowwPlayer460:Dee,containerLeft:jee,containerLeft420:Wee,containerLeft620:vee,iconFavoritesType1:Uee,iconFavoritesType1320:Gee,iconFavorites:Hee,iconFavorites420:Jee,playerContainer:qee,playerContainer420:Yee,playerContainer460:Zee,playerContainerType1:Kee,playerContainerType1320:Xee,playerContainerType1460:Qee,imgPlayerIcon:ete,imgPlayerIcon460:tte,imgPlayerIcon420:ate,manchesterUnited:ite,manchesterUnited360:ote,manchesterUnited420:ste,manchesterUnited460:lte,containerRight:rte,containerRight960:nte,containerRight420:dte,numberOfVideos:cte,numberOfVideos620:pte,block02:mte,block02960:hte,block02620:ute,block02420:fte,verVideos:yte,verVideos620:gte,numberPosition:_te,shapeIcon:bte,chivasIcon:Ste,imgTeamIcon:Cte,teamName:wte,nameTeam:kte,dfC:Ete,position:Vte,age:Tte,manchesterUnitedIcon:Nte,country:xte,playedGames:Bte,playedMinutes:Fte,block01:Pte,leagueName:zte,roleCharacterIcon:$te,btnVideos:Ate,containerBtnVideos:Ite,containerBtnVideos620:Mte,containesOptions:Lte,arrowExpandIcon:Rte,rowTeam:Ote,rowTeam420:Dte,rowTeam320:jte,rowTeam460:Wte,rowTeam350:vte,containerLeftType1:Ute,containerLeftType1680:Gte,containerLeftType1320:Hte,containerLeftType1350:Jte,positionContainertype1:qte,positionContainertype1380:Yte,positionContainertype1680:Zte,positionContainertype1420:Kte,manchesterUnitedType1:Xte,manchesterUnitedType1460:Qte,manchesterUnitedType1320:eae,containerRightType1:tae,containerRightType1420:aae,containerRightType1320:iae,teamNameWrapperType1:oae,teamNameWrapperType1960:sae,teamNameWrapperType11086:lae,ageWrapperType1:rae,ageWrapperType1680:nae,ageWrapperType11086:dae,ageType1:cae,ageType1960:pae,playedGamesWrapperType1:mae,playedGamesWrapperType1680:hae,playedGamesWrapperType1960:uae,playedGamesType1:fae,playedGamesType1540:yae,playedGamesType1960:gae,playedGamesType11086:_ae,playedMinutesWrapperType1:bae,playedMinutesWrapperType11086:Sae,playedMinutesType1:Cae,playedMinutesType1680:wae,block02Type1:kae,block02Type1680:Eae,block02Type1320:Vae,block02Type1350:Tae,leagueNameWrapperType1:Nae,leagueNameWrapperType1680:xae,leagueNameWrapperType1960:Bae,leagueNameType1:Fae,leagueNameType1960:Pae,numberOfVideosType1:zae,numberOfVideosType1680:$ae,numberOfVideosType11232:Aae,vectorIconType1:Iae,block01TitlesType1:Mae,numberPositionType1:Lae,shapeIconType1:Rae,tijuanaIconType1:Oae,tijuanaWrapperType1:Dae,tijuanaWrapperType1NoBg:jae,teamNameType1:Wae,roleCharacterIconType1:vae,verVideosType1:Uae,btnVideosType1:Gae,containerBtnVideosType1:Hae,containesOptionsType1:Jae,arrowExpandIconType1:qae,templateTablaProductividadType1:Yae,verVideosType11232:Zae,templateTablaProductividadType1320:Kae,verVideosType1680:Xae},Zs={components:{GSCButton:yi},computed:{manchesterUnitedType1Class(){const t=this.elementSize.width;return t<=320?this.$style.manchesterUnitedType1320:t<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerRightType1320:t<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.teamNameWrapperType1960:t<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.ageWrapperType1680:t<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.playedGamesWrapperType1680:t<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const t=this.elementSize.width;return t<=540?this.$style.playedGamesType1540:t<=960?this.$style.playedGamesType1960:t<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const t=this.elementSize.width;return t<=320?this.$style.block02Type1320:t<=350?this.$style.block02Type1350:t<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.leagueNameWrapperType1680:t<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const t=this.elementSize.width;return t<=680?this.$style.numberOfVideosType1680:t<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerLeftType1320:t<=350?this.$style.containerLeftType1350:t<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const t=this.elementSize.width;return t<=380?this.$style.positionContainertype1380:t<=420?this.$style.positionContainertype1420:t<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const t=this.elementSize.width;return t<=320?this.$style.rowTeam320:t<=350?this.$style.rowTeam350:t<=420?this.$style.rowTeam420:t<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const t=this.elementSize.width;return t<=420?this.$style.block02420:t<=620?this.$style.block02620:t<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const t=this.elementSize.width;return t<=420?this.$style.imgPlayerIcon420:t<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const t=this.elementSize.width;return t<=360?this.$style.manchesterUnited360:t<=420?this.$style.manchesterUnited420:t<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const t=this.elementSize.width;return t<=420?this.$style.containerRight420:t<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const t=this.elementSize.width;return t<=320?this.$style.playerContainerType1320:t<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.playerContainer420:t<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeft420:t<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const t=this.elementSize.width;return t<=420?this.$style.rowwPlayer420:t<=460?this.$style.rowwPlayer460:t<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const t=e.ref("myDivRef2"),{elementSize:i}=Oe(t);return{myDivRef2:t,elementSize:i}},props:{type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},emitEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},sp=()=>{e.useCssVars(t=>({"5c9f1462":t.height,"6c44c2e9":t.background,"08c57d2a":t.fontSize,"772bfb39":t.fontColor,"72ad0a4e":t.fontFamily}))},lp=Zs.setup;Zs.setup=lp?(t,i)=>(sp(),lp(t,i)):sp;const eie={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},tie=["src"],aie=["src"],iie=["src"],oie=["src"],sie=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),lie=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),rie=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),nie=[sie,lie,rie],die=["fill"],cie=["fill"],pie=["src"],mie=["src"],hie=["fill"],uie=["fill"],fie=["src"],yie=["src"],gie=["src"],_ie=["src"],bie=["fill"],Sie=["fill"];function Cie(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",eie,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,tie),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},[o.elementSize.width<=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.data.player_short),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.data.player_name),1)],64))],2),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,aie)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,iie),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,oie)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.leagueName)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[o.elementSize.width>635?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[1]||(i[1]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),o.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.numberOfVideosClass)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[2]||(i[2]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},nie))],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[3]||(i[3]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,cie)],10,die))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.rowTeamClass),style:e.normalizeStyle(o.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(l.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,pie)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(a.typeView==0?t.$style.tijuanaWrapperType1:t.$style.tijuanaWrapperType1NoBg)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.tijuanaIconType1),alt:"",src:a.data.team_logo},null,10,mie)],2),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.teamNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamNameType1)},[e.createTextVNode(" C/"+e.toDisplayString(a.data.frequency)+" ",1),a.data.category!=2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("min")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("segs")],64))],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(l.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[o.elementSize.width>679?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[5]||(i[5]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),e.createElementVNode("div",{class:e.normalizeClass(l.numberOfVideosType1Class)},e.toDisplayString(a.data.total),3)],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[6]||(i[6]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,uie)],10,hie))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,fie),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,yie)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,gie),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,_ie)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.league_name),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[e.createVNode(r,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:o.elementSize.width<=680?"83px":a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[7]||(i[7]=n=>l.emitEventMedia(a.data)),style:e.normalizeStyle(o.elementSize.width<=680?o.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[8]||(i[8]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Sie)],10,bie))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const wie={$style:Qae},kie=Ce(Zs,[["render",Cie],["__cssModules",wie]]),Eie="_containerLeftTitles_zc6z8_119",Vie="_containerLeftTitles420_zc6z8_135",Tie="_containerLeftTitles620_zc6z8_151",Nie="_containerLeftTitlesTeam_zc6z8_169",xie="_containerLeftTitlesTeam1180_zc6z8_185",Bie="_containerLeftTitlesTeam1090_zc6z8_201",Fie="_containerLeftTitlesTeam960_zc6z8_217",Pie="_containerLeftTitlesTeam860_zc6z8_233",zie="_containerLeftTitlesTeam768_zc6z8_249",$ie="_containerLeftTitlesTeam680_zc6z8_265",Aie="_containerLeftTitlesTeam620_zc6z8_281",Iie="_containerLeftTitlesTeam420_zc6z8_297",Mie="_headTitles_zc6z8_315",Lie="_headTitles960_zc6z8_345",Rie="_headTitles420_zc6z8_375",Oie="_headTitles540_zc6z8_415",Die="_headTitles460_zc6z8_445",jie="_headTitles620_zc6z8_475",Wie="_position_zc6z8_505",vie="_position420_zc6z8_523",Uie="_player_zc6z8_529",Gie="_player420_zc6z8_551",Hie="_containerRightType1_zc6z8_559",Jie="_containerRightTitles_zc6z8_573",qie="_containerRightTitles960_zc6z8_591",Yie="_block02Titles_zc6z8_609",Zie="_block02Titles620_zc6z8_625",Kie="_mon1Scouting_zc6z8_633",Xie="_mon1Scouting960_zc6z8_653",Qie="_mon1_zc6z8_633",eoe="_mon1420_zc6z8_689",toe="_mon1620_zc6z8_709",aoe="_icnIcon_zc6z8_729",ioe="_icnIcon960_zc6z8_739",ooe="_icnIcon420_zc6z8_751",soe="_teamTitle_zc6z8_759",loe="_positionTitle_zc6z8_779",roe="_ageTitle_zc6z8_795",noe="_partidos_zc6z8_811",doe="_playedGamesTitle_zc6z8_819",coe="_playedMinutesTitle_zc6z8_839",poe="_block01Titles_zc6z8_857",moe="_mon_zc6z8_633",hoe="_containesOptionsTitles_zc6z8_889",uoe="_templateTablaProductividadType1_zc6z8_903",foe="_templateTablaProductividadType1400_zc6z8_927",yoe="_headTitlesType1_zc6z8_955",goe="_headTitlesType1420_zc6z8_981",_oe="_headTitlesType1400_zc6z8_1013",boe="_headTitlesType1540_zc6z8_1045",Soe="_headTitlesType1460_zc6z8_1073",Coe="_headTitlesType1680_zc6z8_1101",woe="_headTitlesType1350_zc6z8_1127",koe="_positionType1_zc6z8_1157",Eoe="_positionType1400_zc6z8_1175",Voe="_teamType1_zc6z8_1195",Toe="_teamType1400_zc6z8_1213",Noe="_frecuenciaType1_zc6z8_1233",xoe="_frecuenciaType1540_zc6z8_1249",Boe="_containerLeftTitlesType1_zc6z8_1267",Foe="_frecuenciaWrapperType1_zc6z8_1283",Poe="_frecuenciaWrapperType1680_zc6z8_1301",zoe="_promedioPartidoType1_zc6z8_1317",$oe="_promedioEstePartidoType1_zc6z8_1325",Aoe="_promedioEstePartidoType1960_zc6z8_1341",Ioe="_promedioEstePartidoWrapperType1_zc6z8_1349",Moe="_promedioEstePartidoWrapperType11200_zc6z8_1365",Loe="_promedioEstePartidoWrapperType11090_zc6z8_1383",Roe="_promedioEstePartidoWrapperType11086_zc6z8_1403",Ooe="_promedioPartidosType1_zc6z8_1421",Doe="_promedioPartidosWrapperType1_zc6z8_1435",joe="_promedioPartidosWrapperType1960_zc6z8_1451",Woe="_promedioPartidosWrapperType11086_zc6z8_1457",voe="_partidosJugadosType1_zc6z8_1463",Uoe="_partidosJugadosType1960_zc6z8_1475",Goe="_partidosJugadosWrapperType1_zc6z8_1489",Hoe="_partidosJugadosWrapperType11200_zc6z8_1505",Joe="_partidosJugadosWrapperType11180_zc6z8_1521",qoe="_partidosJugadosWrapperType11170_zc6z8_1537",Yoe="_partidosJugadosWrapperType11140_zc6z8_1553",Zoe="_partidosJugadosWrapperType11086_zc6z8_1569",Koe="_partidosJugadosWrapperType1960_zc6z8_1585",Xoe="_partidosJugadosWrapperType1880_zc6z8_1601",Qoe="_partidosJugadosWrapperType1860_zc6z8_1617",ese="_partidosJugadosWrapperType1830_zc6z8_1633",tse="_partidosJugadosWrapperType1790_zc6z8_1649",ase="_partidosJugadosWrapperType1930_zc6z8_1665",ise="_partidosJugadosWrapperType1770_zc6z8_1681",ose="_block01TitlesType1_zc6z8_1687",sse="_monType1_zc6z8_1703",lse="_monType1960_zc6z8_1721",rse="_monType1680_zc6z8_1741",nse="_videosType1_zc6z8_1747",dse="_videosType1680_zc6z8_1767",cse="_videosType1600_zc6z8_1785",pse="_videosType1540_zc6z8_1803",mse="_videosType1420_zc6z8_1821",hse="_videosType1400_zc6z8_1839",use="_containesOptionsTitlesType1_zc6z8_1863",fse="_containesOptionsTitlesType1768_zc6z8_1879",yse="_containesOptionsTitlesType1730_zc6z8_1893",gse="_containesOptionsTitlesType1690_zc6z8_1907",_se="_icnIconType1_zc6z8_1921",bse="_icnIconType1420_zc6z8_1933",Sse="_icnIconType1400_zc6z8_1947",Cse="_block02TitlesType1_zc6z8_1955",wse="_block02TitlesType1680_zc6z8_1969",kse="_block02TitlesType1350_zc6z8_1983",Ese="_containerRightTitlesType1_zc6z8_1997",Vse="_containerRightTitlesType1420_zc6z8_2015",Tse={containerLeftTitles:Eie,containerLeftTitles420:Vie,containerLeftTitles620:Tie,containerLeftTitlesTeam:Nie,containerLeftTitlesTeam1180:xie,containerLeftTitlesTeam1090:Bie,containerLeftTitlesTeam960:Fie,containerLeftTitlesTeam860:Pie,containerLeftTitlesTeam768:zie,containerLeftTitlesTeam680:$ie,containerLeftTitlesTeam620:Aie,containerLeftTitlesTeam420:Iie,headTitles:Mie,headTitles960:Lie,headTitles420:Rie,headTitles540:Oie,headTitles460:Die,headTitles620:jie,position:Wie,position420:vie,player:Uie,player420:Gie,containerRightType1:Hie,containerRightTitles:Jie,containerRightTitles960:qie,block02Titles:Yie,block02Titles620:Zie,mon1Scouting:Kie,mon1Scouting960:Xie,mon1:Qie,mon1420:eoe,mon1620:toe,icnIcon:aoe,icnIcon960:ioe,icnIcon420:ooe,teamTitle:soe,positionTitle:loe,ageTitle:roe,partidos:noe,playedGamesTitle:doe,playedMinutesTitle:coe,block01Titles:poe,mon:moe,containesOptionsTitles:hoe,templateTablaProductividadType1:uoe,templateTablaProductividadType1400:foe,headTitlesType1:yoe,headTitlesType1420:goe,headTitlesType1400:_oe,headTitlesType1540:boe,headTitlesType1460:Soe,headTitlesType1680:Coe,headTitlesType1350:woe,positionType1:koe,positionType1400:Eoe,teamType1:Voe,teamType1400:Toe,frecuenciaType1:Noe,frecuenciaType1540:xoe,containerLeftTitlesType1:Boe,frecuenciaWrapperType1:Foe,frecuenciaWrapperType1680:Poe,promedioPartidoType1:zoe,promedioEstePartidoType1:$oe,promedioEstePartidoType1960:Aoe,promedioEstePartidoWrapperType1:Ioe,promedioEstePartidoWrapperType11200:Moe,promedioEstePartidoWrapperType11090:Loe,promedioEstePartidoWrapperType11086:Roe,promedioPartidosType1:Ooe,promedioPartidosWrapperType1:Doe,promedioPartidosWrapperType1960:joe,promedioPartidosWrapperType11086:Woe,partidosJugadosType1:voe,partidosJugadosType1960:Uoe,partidosJugadosWrapperType1:Goe,partidosJugadosWrapperType11200:Hoe,partidosJugadosWrapperType11180:Joe,partidosJugadosWrapperType11170:qoe,partidosJugadosWrapperType11140:Yoe,partidosJugadosWrapperType11086:Zoe,partidosJugadosWrapperType1960:Koe,partidosJugadosWrapperType1880:Xoe,partidosJugadosWrapperType1860:Qoe,partidosJugadosWrapperType1830:ese,partidosJugadosWrapperType1790:tse,partidosJugadosWrapperType1930:ase,partidosJugadosWrapperType1770:ise,block01TitlesType1:ose,monType1:sse,monType1960:lse,monType1680:rse,videosType1:nse,videosType1680:dse,videosType1600:cse,videosType1540:pse,videosType1420:mse,videosType1400:hse,containesOptionsTitlesType1:use,containesOptionsTitlesType1768:fse,containesOptionsTitlesType1730:yse,containesOptionsTitlesType1690:gse,icnIconType1:_se,icnIconType1420:bse,icnIconType1400:Sse,block02TitlesType1:Cse,block02TitlesType1680:wse,block02TitlesType1350:kse,containerRightTitlesType1:Ese,containerRightTitlesType1420:Vse},Ks={components:{},computed:{icnIconType1Class(){const t=this.elementSize.width;return t<=400?this.$style.icnIconType1400:t<=420?this.$style.icnIconType1420:this.$style.icnIconType1},videosType1Class(){const t=this.elementSize.width;return t<=400?this.$style.videosType1400:t<=420?this.$style.videosType1420:t<=540?this.$style.videosType1540:t<=600?this.$style.videosType1600:t<=680?this.$style.videosType1680:this.$style.videosType1},monType1Class(){const t=this.elementSize.width;return t<=680?this.$style.monType1680:t<=960?this.$style.monType1960:this.$style.monType1},block02TitlesType1Class(){const t=this.elementSize.width;return t<=350?this.$style.block02TitlesType1350:t<=680?this.$style.block02TitlesType1680:this.$style.block02TitlesType1},containesOptionsTitlesType1Class(){const t=this.elementSize.width;return t<=400?this.$style.containesOptionsTitlesType1400:t<=690?this.$style.containesOptionsTitlesType1690:t<=730?this.$style.containesOptionsTitlesType1730:t<=768?this.$style.containesOptionsTitlesType1768:this.$style.containesOptionsTitlesType1},partidosJugadosWrapperType1Class(){const t=this.elementSize.width;return t<=770?this.$style.promedioPartidosWrapperType1770:t<=790?this.$style.partidosJugadosWrapperType1790:t<=830?this.$style.partidosJugadosWrapperType1830:t<=860?this.$style.partidosJugadosWrapperType1860:t<=880?this.$style.partidosJugadosWrapperType1880:t<=930?this.$style.partidosJugadosWrapperType1930:t<=960?this.$style.partidosJugadosWrapperType1960:t<=1086?this.$style.partidosJugadosWrapperType11086:t<=1140?this.$style.partidosJugadosWrapperType11140:t<=1170?this.$style.partidosJugadosWrapperType11170:t<=1180?this.$style.partidosJugadosWrapperType11180:t<=1200?this.$style.partidosJugadosWrapperType11200:this.$style.partidosJugadosWrapperType1},promedioPartidosWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.promedioPartidosWrapperType1960:t<=1086?this.$style.promedioPartidosWrapperType11086:this.$style.promedioPartidosWrapperType1},partidosJugadosType1Class(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960:this.$style.partidosJugadosType1},templateTablaProductividadType1Class(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400:this.$style.templateTablaProductividadType1},promedioEstePartidoType1Class(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960:this.$style.promedioEstePartidoType1},headTitlesType1Class(){const t=this.elementSize.width;return t<=350?this.$style.headTitlesType1350:t<=400?this.$style.headTitlesType1400:t<=420?this.$style.headTitlesType1420:t<=460?this.$style.headTitlesType1460:t<=540?this.$style.headTitlesType1540:t<=680?this.$style.headTitlesType1680:this.$style.headTitlesType1},headTitlesClass(){const t=this.elementSize.width;return t<=420?this.$style.headTitles420:t<=460?this.$style.headTitles460:t<=540?this.$style.headTitles540:t<=620?this.$style.headTitles620:t<=960?this.$style.headTitles960:this.$style.headTitles},containerLeftTitlesClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitles420:t<=620?this.$style.containerLeftTitles620:this.$style.containerLeftTitles},containerLeftTitlesClassTeam(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitlesTeam420:t<=620?this.$style.containerLeftTitlesTeam620:t<=680?this.$style.containerLeftTitlesTeam680:t<=768?this.$style.containerLeftTitlesTeam768:t<=860?this.$style.containerLeftTitlesTeam860:t<=960?this.$style.containerLeftTitlesTeam960:t<=1090?this.$style.containerLeftTitlesTeam1090:t<=1180?this.$style.containerLeftTitlesTeam1180:this.$style.containerLeftTitlesTeam},icnIconClass(){const t=this.elementSize.width;return t<=420?this.$style.icnIcon420:t<=960?this.$style.icnIcon960:this.$style.icnIcon},mon1Class(){const t=this.elementSize.width;return t<=420?this.$style.mon1420:t<=620?this.$style.mon1620:this.$style.mon1},mon1ScoutingClass(){const t=this.elementSize.width;return t<=420?this.$style.mon1420:t<=960?this.$style.mon1Scouting960:this.$style.mon1Scouting},promedioEstePartidoWrapperType1Class(){const t=this.elementSize.width;return t<=1086?this.$style.promedioEstePartidoWrapperType11086:t<=1090?this.$style.promedioEstePartidoWrapperType11090:t<=1200?this.$style.promedioEstePartidoWrapperType11200:this.$style.promedioEstePartidoWrapperType1},frecuenciaWrapperType1Class(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680:this.$style.frecuenciaWrapperType1},frecuenciaType1Class(){return this.elementSize.width<=540?this.$style.frecuenciaType1540:this.$style.frecuenciaType1},positionType1Class(){return this.elementSize.width<=400?this.$style.positionType1400:this.$style.positionType1},containerRightType1Class(){return this.elementSize.width<=420?this.$style.containerRightType1420:this.$style.containerRightType1},containerRightTitlesType1Class(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420:this.$style.containerRightTitlesType1},teamType1Class(){return this.elementSize.width<=400?this.$style.teamType1400:this.$style.teamType1},playerClass(){return this.elementSize.width<=420?this.$style.player420:this.$style.player},positionClass(){return this.elementSize.width<=420?this.$style.position420:this.$style.position},containerRightTitlesClass(){return this.elementSize.width<=960?this.$style.containerRightTitles960:this.$style.containerRightTitles},block02TitlesClass(){return this.elementSize.width<=620?this.$style.block02Titles960:this.$style.block02Titles}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Oe(t);return{myDivRef:t,elementSize:i}},props:{type:{type:Number,default:0},isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"total"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},rp=()=>{e.useCssVars(t=>({c6ba93f8:t.background,f7de6606:t.height,"0d833f46":t.fontSize,bbf48e84:t.fontColor,b9ea052e:t.fontFamily,"44dfbcfa":t.heightTeam}))},np=Ks.setup;Ks.setup=np?(t,i)=>(rp(),np(t,i)):rp;const Nse={ref:"myDivRef"},xse=e.createElementVNode("br",null,null,-1),Bse=e.createElementVNode("br",null,null,-1),Fse=e.createElementVNode("br",null,null,-1);function Pse(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",Nse,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.headTitlesClass),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClass)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClass)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClass),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01Titles)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitle)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitle)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitle)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitle)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitles)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.mon)},[a.typeStats==="total"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Total")],64)):e.createCommentVNode("",!0),a.typeStats==="average"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("PPP")],64)):e.createCommentVNode("",!0),a.typeStats==="every90"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Cada "),xse,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.mon1Class)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.templateTablaProductividadType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.headTitlesType1Class),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassTeam),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionType1Class)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.teamType1Class)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.frecuenciaWrapperType1Class)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.frecuenciaType1Class)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.promedioEstePartidoWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.promedioEstePartidoType1Class)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},"Promedio partido",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},"este Torneo",2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.promedioPartidosWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},[e.createTextVNode("Promedio partido"),Bse,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.partidosJugadosWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},[e.createTextVNode("Partidos "),Fse,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containesOptionsTitlesType1Class)},[o.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.monType1Class)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.videosType1Class)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.headTitlesClass),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClass)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClass)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClass),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01Titles)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitle)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitle)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitle)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitle)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Liga",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitles)},[e.createElementVNode("div",{class:e.normalizeClass(l.mon1ScoutingClass)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const zse={$style:Tse},$se=Ce(Ks,[["render",Pse],["__cssModules",zse]]),Ase="_equipo_p9s6t_75",Ise="_atlasSeleccin_p9s6t_85",Mse="_equipoAtlasSeleccinMexi_p9s6t_93",Lse="_aos_p9s6t_101",Rse="_span12_p9s6t_109",Ose="_nacionalidadMex_p9s6t_115",Dse="_manchesterUnited_p9s6t_121",jse="_manchesterUnited12_p9s6t_135",Wse="_containerInfo_p9s6t_155",vse="_verPerfil12_p9s6t_173",Use="_btnProfile_p9s6t_191",Gse="_containerButton_p9s6t_223",Hse="_containerButton2_p9s6t_237",Jse="_dataContainer_p9s6t_249",qse="_expandedInfoPlayer_p9s6t_269",Yse="_containerDataBg_p9s6t_449",Zse="_containerDataSm_p9s6t_471",Kse="_span_p9s6t_109",Xse="_manchesterUnited14_p9s6t_493",Qse="_filter_p9s6t_503",ele="_verPerfil_p9s6t_173",tle="_manchesterUnited8_p9s6t_545",ale="_manchesterUnitedParent1_p9s6t_557",ile="_manchesterUnited1_p9s6t_135",ole="_manchesterUnitedParent_p9s6t_557",sle="_frameDiv_p9s6t_601",lle="_infoExpanded_p9s6t_617",rle="_countryFlag_p9s6t_923",nle={equipo:Ase,atlasSeleccin:Ise,equipoAtlasSeleccinMexi:Mse,aos:Lse,span12:Rse,nacionalidadMex:Ose,manchesterUnited:Dse,manchesterUnited12:jse,containerInfo:Wse,verPerfil12:vse,btnProfile:Use,containerButton:Gse,containerButton2:Hse,dataContainer:Jse,expandedInfoPlayer:qse,containerDataBg:Yse,containerDataSm:Zse,span:Kse,manchesterUnited14:Xse,filter:Qse,verPerfil:ele,manchesterUnited8:tle,manchesterUnitedParent1:ale,manchesterUnited1:ile,manchesterUnitedParent:ole,frameDiv:sle,infoExpanded:lle,countryFlag:rle},Xs={components:{GSCButton:bd},props:{isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"totals"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Oe(t);return{myDivRef:t,elementSize:i}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},dp=()=>{e.useCssVars(t=>({"4ca071ce":t.fontFamily,"656da3b9":t.fontColor,"5d3a6938":t.fontColorValue,"3b76ee2a":t.fontSize,"46382a69":t.background}))},cp=Xs.setup;Xs.setup=cp?(t,i)=>(dp(),cp(t,i)):dp;const Ie=t=>(e.pushScopeId("data-v-07f6ca5e"),t=t(),e.popScopeId(),t),dle={ref:"myDivRef"},cle=["src"],ple=Ie(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),mle=Ie(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),hle=Ie(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),ule=Ie(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),fle=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),yle=Ie(()=>e.createElementVNode("span",null,"xG: ",-1)),gle=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),_le=Ie(()=>e.createElementVNode("span",null,"xG: ",-1)),ble=Ie(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Sle=Ie(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Cle=Ie(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),wle=Ie(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),kle=Ie(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Ele=Ie(()=>e.createElementVNode("span",null,"xG: ",-1));function Vle(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",dle,[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,cle)],2)],2)],2)):e.createCommentVNode("",!0),a.viewPosition?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Posición: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.isFemale?a.data.position.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):a.data.position),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited12)},[a.viewGames?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"partidos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.games),3)],2)):e.createCommentVNode("",!0),a.viewMin?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Minutos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.min),3)],2)):e.createCommentVNode("",!0),a.viewGoals?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},e.toDisplayString(a.data.category)+": ",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.goals),3)],2)):e.createCommentVNode("",!0),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Efectividad de pases: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[0]||(i[0]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:1,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/add-list-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Agregar","font-size":"10px",onClick:i[1]||(i[1]=n=>l.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Ver grafica","font-size":"10px",onClick:i[2]||(i[2]=n=>l.showGraph(a.data))},null,8,["style"])):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.infoExpanded)},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerDataBg,a.additionalClass])},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[ple,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)},[mle,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)},[hle,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)},[ule,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)},[fle,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)},[yle,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)},[gle,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)},[_le,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)},[ble,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)},[Sle,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)},[Cle,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)},[wle,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)},[kle,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)},[Ele,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2)],2)],2),a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[3]||(i[3]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const Qs={components:{GSCCarousel:Vd,GSCLeaders:$ee,GSCRowTable:kie,GSCTableHeader:$se,GSCExpandedInfo:Ce(Xs,[["render",Vle],["__cssModules",{$style:nle}],["__scopeId","data-v-07f6ca5e"]])},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Oe(t);return{myDivRef:t,elementSize:i}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,i){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(i)||this.sonConjuntosDistintos(t.setNationalitiesIds,i.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,i){t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},i={},a=[],o=[],s=[];return this.formatFilterStats.map(l=>{t[l.team_id]?(t[l.team_id].total+=l.total,t[l.team_id].uniqueGames.has(l.game_id)||t[l.team_id].uniqueGames.add(l.game_id)):this.teamInfo[l.team_id]&&(t[l.team_id]=this.initializeTeamData(l,this.teamInfo[l.team_id])),l.player_id!==0&&l.player_id!==62117&&(i[l.player_id]?(i[l.player_id].total+=l.total,i[l.player_id].uniqueGames.has(l.game_id)||i[l.player_id].uniqueGames.add(l.game_id)):i[l.player_id]=this.initializePlayerData(l,this.playersInfo[l.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,i),a=this.processTeamData(t),o=this.processPlayerData(i),this.filterTeam!==0&&!this.isTeam&&(s=o.filter(l=>l.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:o)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,i){return t.total>i.total?-1:t.total<i.total?1:t.minutes<i.minutes?-1:t.minutes>i.minutes?1:0},sonConjuntosDistintos(t,i){const a=Array.from(t),o=Array.from(i);if(a.length!==o.length)return!0;for(let s=0;s<a.length;s++)if(!i.has(a[s]))return!0;return!1},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,i){return t.total<i.total?-1:t.total>i.total?1:t.name<i.name?-1:t.name>i.name?1:0},sortAndSlice(t,i){return t.sort((a,o)=>(a.name<o.name?1:-1)&&(a.total<o.total?1:-1)).slice(0,i)},getCategoryName(t){let i="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(i=this.categories[a].name);return i},translateTopCategories(t){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[t]||[]},getCoordinatePointPerCategory(t){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[t]||0},emitEventMedia(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p,h=t.player_id;let d=[],f=this.isTeam?t.id:this.filterTeam;h?this.isTeam?f=h:(d=[h],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?f=t.id:(d=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:d,goalkeeperIds:[],categoryIds:this.translateTopCategories(i),teamId:f||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",u)},emitEventMediaFullTable(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p;let h=[],d=this.isTeam?t.id:this.filterTeam;this.isTeam?d=t.id:(h=[t.id],n=n.filter(u=>!u.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:h,goalkeeperIds:[],categoryIds:n,teamId:d||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",f)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,i){this.$emit("clickprofile",{id:t,teamId:i,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let i=[],a={},o={};this.arePlaysEmpty=!1;const s=await ue.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){i=s.data.data.map(r=>this.formatStatsData(r)),s.data.teams.forEach(r=>{a[r[0]]={},a[r[0]].id=r[0],a[r[0]].name=r[1],a[r[0]].abrv=r[2],a[r[0]].img=r[3],a[r[0]].effectiveness=r[4],a[r[0]].games_played=r[5],a[r[0]].games_played_lastseason=r[6],a[r[0]].positiontable=r[7],a[r[0]].goals=r[8],a[r[0]].goalsrecived=r[9],a[r[0]].xg=r[10],a[r[0]].frecuency=r[11],a[r[0]].game_avg=r[12],a[r[0]].game_avg_last_season=r[13]});const l=new Set;s.data.players.forEach(r=>{const n=this.getObjectPlayer(r);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,p=n.teamName[0].acronym,y=a[n.teamName[0].team_id].name,m=n.teamName[0].team_id,h=this.positions[n.numberPositionId-1].fullname,d=this.positions[n.numberPositionId-1].name,f=n.countryId[0].nationality_id,u=n.effectiveness,g=n.min,C=n.games,w=n.date;n.arrayNationalities.forEach(v=>{l.add(v.numberId)}),o[r[0]]={id:r[0],name:r[1],img:r[2],age:c,team:p,teamname:y,teamid:m,position:h,positionfull:d,effectiveness:u,country:f,games_played:C,minutes_played:g,nationalityId:g,date:w,nationality:r[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=l,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(i){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(i)}}},filterRecords(t){if(!this.formatStats.length)return[];const i={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!i.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),i.setNationalitiesIds=!0),!Object.values(i).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),o=new Set(t.setPositionsIds),[s,l]=t.arrayAgeRange||[0,100],r=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(!c||i.playingAs&&!t.playingAs.includes(n.playing_as)||i.matchResult&&!t.matchResult.includes(n.match_result)||i.sections&&!t.sections.includes(n.section)||i.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||i.setNationalitiesIds&&!c.arrayNationalitiesIds.some(p=>a.has(p))||i.setPositionsIds&&!o.has(c.numberPositionId))return!1;if(i.arrayAgeRange){const p=c.numberAge;if(p<s||p>l)return!1}return!(i.setYear&&c.date<r||i.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const i={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return i.hasFilters=this.checkActiveFilters(i),Object.freeze(i)},checkActiveFilters(t){const{basic:i,player:a}=t;return i.playingAs.size>0||i.matchResult.size>0||i.sections.size>0||i.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,i){return t.filter(a=>!(!this.passesBasicFilters(a,i.basic)||i.player&&!this.passesPlayerFilters(a,i.player)))},passesBasicFilters(t,i){const{playingAs:a,matchResult:o,sections:s,zone:l,typeZone:r}=i;if(a.size&&!a.has(t.playing_as)||o.size&&!o.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(l.size){const n=r===1?t.origen:t.destino;if(!l.has(n))return!1}return!0},passesPlayerFilters(t,i){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(i.nationalTeams.enabled){if(i.nationalTeams.players.size&&!i.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(l=>i.nationalities.has(l)))return!1;const{ageRange:o,yearLimit:s}=i;if(a.numberAge<o[0]||a.numberAge>o[1]||a.date<s||!i.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const i={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,o)=>{i[a]=t[o]}),i},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},formatArrayPaginate(t){const i=Math.ceil(t.length/this.numRows);return Array.from({length:i},(a,o)=>{const s=o*this.numRows,l=s+this.numRows;return t.slice(s,l)})},initializeTeamData(t,i){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:i.id,name:i.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:i.effectiveness,frecuency:i.frecuency,game_avg:i.game_avg,game_avg_last_season:i.game_avg_last_season,games_played:i.games_played,games_played_lastseason:i.games_played_lastseason,positiontable:i.positiontable,goals:i.goals,goalsrecived:i.goalsrecived,xg:i.xg};return this.typeStats==="every90"&&(a.minutes=i.minutes||0),a},initializePlayerData(t,i){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return i?Object.assign(a,{name:i.name,name_short:this.getnameshort(i.name),img:i.img,id:i.id,age:i.age,team:i.team,teamname:i.teamname,teamid:i.teamid,position:i.position,positionId:i.positionId,positionfull:i.positionfull,country:i.country,effectiveness:i.effectiveness,minutes:i.minutes_played,games:i.games_played,date:i.date,nationality:i.nationality,player_country_flag:i.player_country_flag,categoryName:this.categoryName,goals:i.goals||0,goalsrecived:i.goalsrecived||0,xg:i.xg||0,positiontable:i.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,i){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(i).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(i).forEach(a=>{i[a].minutes<90&&delete i[a]})},processTeamData(t){return Object.values(t).sort((i,a)=>a.total-i.total).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},HandlerAddplayer(t){this.$emit("add-player",t)},HandlerShowGraph(t){this.$emit("show-graph",t)}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},pp=()=>{e.useCssVars(t=>({"62195a99":t.borderRadius,"4bac3a42":t.borderWidth,"4dda3708":t.borderColor}))},mp=Qs.setup;Qs.setup=mp?(t,i)=>(pp(),mp(t,i)):pp;const Mi=t=>(e.pushScopeId("data-v-a6a3a58b"),t=t(),e.popScopeId(),t),Tle={ref:"myDivRef"},Nle={class:"text"},xle={class:"groupsLeague"},Ble={class:"row-table-carrousel"},Fle={key:1,class:"container-no-search-result"},Ple={key:0,class:"overlay-loading-top"},zle=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),$le=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),Ale=[zle,$le],Ile=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Mle=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1));function Lle(t,i,a,o,s,l){const r=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Tle,[l.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:i[0]||(i[0]=m=>l.clickMore(a.category))},[e.createElementVNode("div",Nle,[e.createElementVNode("div",xle,e.toDisplayString(a.categoryName)+"  → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.displayData.length>0?(e.openBlock(),e.createBlock(p,{key:0,items:l.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:e.withCtx(({item:m})=>[e.createElementVNode("div",Ble,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(h,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[h.top==="01"?(e.openBlock(),e.createBlock(r,{key:0,onAddPlayer:l.HandlerAddplayer,onMediadata:i[1]||(i[1]=f=>l.emitEventMedia(f,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==h.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:h.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",name:h.name,player_short:h.name_short,player_id:h.id,categoryId:a.category,total:h.total}:{top:"01",logo:h.img,total:h.total,name_team:h.name,player_id:h.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?o.elementSize.width>360?"210px":"130px":o.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["onAddPlayer","type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==h.id&&t.expand,onAddPlayer:l.HandlerAddplayer,onMediadata:i[2]||(i[2]=f=>l.emitEventMedia(f,a.category,a.categoryName)),data:a.typeTable==0?{position:h.top,player_name:h.name,player_short:h.name_short,player_photo:h.img,total:h.total,id:h.id,player_age:h.age,team_abrev:h.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",player_position:h.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+h.country+".jpg",player_games:h.minutes,player_min:h.games,league_name:"          Liga MX          "}:{position:h.top,team_logo:h.img,team_abrev:h.name,frequency:h.frecuency,promthistournament:h.game_avg,promlasttournament:h.game_avg_last_season,teams_games:"-",category:a.category,total:h.total,id:h.id},height:"71px",background:d%2===0?a.backgroundEven:a.backgroundOdd,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==h.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":h.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:h.teamname,age:h.age,dataofbirth:h.date,nationality:h.nationality,countryFlag:h.player_country_flag,position:h.position,games:h.games,min:h.minutes,goals:h.originalTotal||h.total,effectiveness:h.effectiveness,category:a.categoryName,id:h.id}:{position:h.position,goals:h.goals,goals_received:h.goalsrecived,games_played:h.games_played,category:a.categoryName,effectiveness:h.effectiveness,xg:h.xg,total:h.originalTotal||h.total,attendance:"-",id:h.id},onViewprofile:f=>l.viewprofile(f,h.teamid),background:d%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(e.openBlock(),e.createElementBlock("div",Fle,[t.isloading?(e.openBlock(),e.createElementBlock("div",Ple,Ale)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Ile,Mle],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(y,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.displayData,(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==d.id&&t.expand,onMediadata:i[3]||(i[3]=u=>l.emitEventMediaFullTable(u,a.category,a.categoryName)),onAddPlayer:l.HandlerAddplayer,data:a.typeTable==0?{position:d.top,player_name:d.name,player_short:d.name_short,player_photo:d.img,total:d.total,id:d.id,player_age:d.age,team_abrev:d.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.teamid+".png",player_position:d.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+d.country+".jpg",player_games:d.games,player_min:d.minutes,league_name:"          Liga MX          "}:{position:d.positiontable,team_logo:d.img,team_abrev:d.name,frequency:d.frecuency,promthistournament:d.game_avg,promlasttournament:d.game_avg_last_season,category:a.category,team_games:d.games_played,total:d.total,id:d.id},height:"71px",background:((h+1)*5+f)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==d.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":d.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:d.teamname,age:d.age,dataofbirth:d.date,nationality:d.nationality,countryFlag:d.player_country_flag,position:d.position,positionfull:d.positionfull,games:d.games,min:d.minutes,goals:d.originalTotal||d.total,effectiveness:d.effectiveness,category:l.getCategoryName(a.category),id:d.id}:{position:d.positiontable,goals:d.goals,goals_received:d.goalsrecived,games_played:d.games_played,category:a.categoryName,effectiveness:d.effectiveness,xg:d.xg,total:d.originalTotal||d.total,category:l.getCategoryName(a.category),attendance:"-",id:d.id},onViewprofile:u=>l.viewprofile(u,d.teamid),background:f%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const Rle=Ce(Qs,[["render",Lle],["__scopeId","data-v-a6a3a58b"]]),Ole="_filtersContainer_b9wc6_1",Dle="_filtersContainer1232_b9wc6_1",jle="_closeFiltersPc_b9wc6_1",Wle="_textleyemdmultipleleagues_b9wc6_1",vle="_textleyemdmultipleleagues380_b9wc6_1",Ule="_filtersContainer760_b9wc6_1",Gle="_filtersContainer460_b9wc6_1",Hle="_containerSectionPlay_b9wc6_1",Jle="_containerSectionPlay1232_b9wc6_1",qle="_containerSectionPlay960_b9wc6_1",Yle="_containerSectionPlay320_b9wc6_1",Zle="_containerSectionPlay350_b9wc6_1",Kle="_containerSection_b9wc6_1",Xle="_containerSection1232_b9wc6_1",Qle="_containerSection960_b9wc6_1",ere="_containerSection320_b9wc6_1",tre="_containerSection350_b9wc6_1",are="_templateLosMejores_b9wc6_1",ire="_templateLosMejores1232_b9wc6_1",ore="_templateLosMejores960_b9wc6_1",sre="_templateLosMejores420_b9wc6_1",lre="_templateLosMejores320_b9wc6_1",rre="_templateLosMejores540_b9wc6_1",nre="_templateLosMejores350_b9wc6_1",dre="_topFiltersParent_b9wc6_1",cre="_topFiltersParent1232_b9wc6_1",pre="_topFiltersParent960_b9wc6_1",mre="_topFiltersParent460_b9wc6_1",hre="_topFiltersParent420_b9wc6_1",ure="_containerTheBest_b9wc6_1",fre="_containerTheBest1232_b9wc6_1",yre="_containerTheBest960_b9wc6_1",gre="_containerTheBest320_b9wc6_1",_re="_titleSection_b9wc6_1",bre="_titleSection540_b9wc6_1",Sre="_containerTables_b9wc6_1",Cre="_containerTables960_b9wc6_1",wre="_containerTables760_b9wc6_1",kre="_containerTables320_b9wc6_1",Ere="_toniKroosWrapper_b9wc6_1",Vre="_toniKroosWrapper1080_b9wc6_1",Tre="_toniKroosWrapper975_b9wc6_1",Nre="_toniKroosWrapper760_b9wc6_1",xre="_toniKroosWrapper420_b9wc6_1",Bre="_toniKroosWrapper320_b9wc6_1",Fre="_frameChild_b9wc6_1",Pre="_filtros_b9wc6_1",zre="_groupParent_b9wc6_1",$re="_shapeIcon_b9wc6_1",Are="_btnFilters_b9wc6_1",Ire="_btnFiltersPC_b9wc6_1",Mre="_quitarFiltros_b9wc6_1",Lre="_quitarFiltros730_b9wc6_1",Rre="_quitarFiltros480_b9wc6_1",Ore="_quitarFiltros380_b9wc6_1",Dre="_btnCloseFilters_b9wc6_1",jre="_mejoresJugadores_b9wc6_1",Wre="_mejoresJugadores730_b9wc6_1",vre="_mejoresJugadores480_b9wc6_1",Ure="_mejoresJugadoresSM_b9wc6_1",Gre="_toniKroos_b9wc6_1",Hre="_teamBar_b9wc6_1",Jre="_menuSection_b9wc6_1",qre="_menuSection960_b9wc6_1",Yre="_menuSectionPlay_b9wc6_1",Zre="_menuSectionPlay960_b9wc6_1",Kre="_containerMenu_b9wc6_1",Xre="_containerMenu760_b9wc6_1",Qre="_containerFilters_b9wc6_1",ene="_teamBarParent_b9wc6_1",tne="_topFilters_b9wc6_1",ane="_topFilters1232_b9wc6_1",ine="_topFilters420_b9wc6_1",one="_topFilters460_b9wc6_1",sne="_losMejores_b9wc6_1",lne="_losMejores380_b9wc6_1",rne="_losMejores530_b9wc6_1",nne="_losMejores730_b9wc6_1",dne="_menuSectionHeader_b9wc6_1",cne="_menuSectionHeader1232_b9wc6_1",pne="_menuSectionHeader960_b9wc6_1",mne="_menuSectionHeader730_b9wc6_1",hne="_dropdown_b9wc6_1",une="_dropdown730_b9wc6_1",fne="_dropdown1_b9wc6_1",yne="_dropdown1730_b9wc6_1",gne="_dropdownParent_b9wc6_1",_ne="_dropdownParent730_b9wc6_1",bne="_menuSectionParentHeader_b9wc6_1",Sne="_menuSectionParentHeader1232_b9wc6_1",Cne="_menuSectionParentHeader960_b9wc6_1",wne="_menuSectionParentHeader730_b9wc6_1",kne="_menuSectionParentHeader430_b9wc6_1",Ene="_descubreVideos_b9wc6_1",Vne="_descubreVideos1232_b9wc6_1",Tne="_descubreVideos960_b9wc6_1",Nne="_allCategories_b9wc6_1",xne="_containerScountingBtn_b9wc6_3",Bne="_btnDeleteAplica_b9wc6_13",Fne="_SearchBtnBar_b9wc6_33",Pne="_btnLeyendTxt_b9wc6_52",zne="_BtnSearchScounting_b9wc6_61",$ne="_containerPredefined_b9wc6_85",Ane="_containerPredefinedScounting_b9wc6_92",Ine="_titleContainerPredefined_b9wc6_100",Mne="_subtitleContainerPredefined_b9wc6_111",Lne={filtersContainer:Ole,filtersContainer1232:Dle,closeFiltersPc:jle,textleyemdmultipleleagues:Wle,textleyemdmultipleleagues380:vle,filtersContainer760:Ule,filtersContainer460:Gle,containerSectionPlay:Hle,containerSectionPlay1232:Jle,containerSectionPlay960:qle,containerSectionPlay320:Yle,containerSectionPlay350:Zle,containerSection:Kle,containerSection1232:Xle,containerSection960:Qle,containerSection320:ere,containerSection350:tre,templateLosMejores:are,templateLosMejores1232:ire,templateLosMejores960:ore,templateLosMejores420:sre,templateLosMejores320:lre,templateLosMejores540:rre,templateLosMejores350:nre,topFiltersParent:dre,topFiltersParent1232:cre,topFiltersParent960:pre,topFiltersParent460:mre,topFiltersParent420:hre,containerTheBest:ure,containerTheBest1232:fre,containerTheBest960:yre,containerTheBest320:gre,titleSection:_re,titleSection540:bre,containerTables:Sre,containerTables960:Cre,containerTables760:wre,containerTables320:kre,toniKroosWrapper:Ere,toniKroosWrapper1080:Vre,toniKroosWrapper975:Tre,toniKroosWrapper760:Nre,toniKroosWrapper420:xre,toniKroosWrapper320:Bre,frameChild:Fre,filtros:Pre,groupParent:zre,shapeIcon:$re,btnFilters:Are,btnFiltersPC:Ire,quitarFiltros:Mre,quitarFiltros730:Lre,quitarFiltros480:Rre,quitarFiltros380:Ore,btnCloseFilters:Dre,mejoresJugadores:jre,mejoresJugadores730:Wre,mejoresJugadores480:vre,mejoresJugadoresSM:Ure,toniKroos:Gre,teamBar:Hre,menuSection:Jre,menuSection960:qre,menuSectionPlay:Yre,menuSectionPlay960:Zre,containerMenu:Kre,containerMenu760:Xre,containerFilters:Qre,teamBarParent:ene,topFilters:tne,topFilters1232:ane,topFilters420:ine,topFilters460:one,losMejores:sne,losMejores380:lne,losMejores530:rne,losMejores730:nne,menuSectionHeader:dne,menuSectionHeader1232:cne,menuSectionHeader960:pne,menuSectionHeader730:mne,dropdown:hne,dropdown730:une,dropdown1:fne,dropdown1730:yne,dropdownParent:gne,dropdownParent730:_ne,menuSectionParentHeader:bne,menuSectionParentHeader1232:Sne,menuSectionParentHeader960:Cne,menuSectionParentHeader730:wne,menuSectionParentHeader430:kne,descubreVideos:Ene,descubreVideos1232:Vne,descubreVideos960:Tne,allCategories:Nne,containerScountingBtn:xne,btnDeleteAplica:Bne,SearchBtnBar:Fne,btnLeyendTxt:Pne,BtnSearchScounting:zne,containerPredefined:$ne,containerPredefinedScounting:Ane,titleContainerPredefined:Ine,subtitleContainerPredefined:Mne},Rne=e.ref(Gs()),One=e.ref(Nq()),Dne=e.ref(Zc()),jne={components:{GSCTableHeader:Qo,GscSwitchComponent:us,GSCFilterperteam:ud,DropdownYears:Yc,GSCFilters:Us,DropdownPositions:qc,GSCExpandedInfo:ns,GSCLabel:xd,GSCSeasonSelect:ed,GSCTopCategory:Rle,GSCTournamentSelect:id,GSCRowTable:as},computed:{...Kn.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},i=JSON.stringify(t);if(JSON.stringify(this.filters)!=i)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...Rne.value}},filterButtonPropsAux(){return{...One.value}},filterButtonPropsTournaments(){return{...Dne.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!0},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Oe(t);return{myDivRefTopsFull:t,elementSize:i}},data(){return{cachedPlayersMap:[],dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},isAvanced:!1,elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],fvTypeStats:"totals",seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,seasonsArray:[{id:1933,tournament:1}],updateTablesfull:0,teamselect:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:B,personalDataFilters:Yt,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{onChangeYear(t){this.personalDataFilters.selectedYear=t},onChangePositions(){},async fillPersonalDataFilters(){try{this.personalDataFilters=await OD(this.seasonsArray,this.tokenFree)}catch(t){console.error("error",t)}},toggleAdvancedView(){this.isAvanced=!this.isAvanced},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(oe.All),i.clearFilters(oe.AGE_RANGE),i.clearFilters(oe.YEAR),i.clearFilters(oe.NATIONALITY),i.clearFilters(oe.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},HandlerShowGraph(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id);if(o){const s={id:t.id,player_name:o.stringFullName,position:t.position,is_female:(o==null?void 0:o.is_female)||0,team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,nationality:o.stringNationalityName,photo:o.stringImageUrl,countryFlag:o.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id||t.player_id);if(o){const s={player_id:o.numberId,name:o.stringFullName,position:o.numberPositionId,is_female:(o==null?void 0:o.is_female)||0,dob:"",team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:o.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY)),t=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.POSITION)),t=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(oe.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(oe.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(oe.YEAR),this.FVYear=1981,this.personalDataFilters.selectedYear=1981,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(i!=-1?this.arrayFiltersPlays[i].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(oe.All),a.clearFilters(oe.AGE_RANGE),a.clearFilters(oe.YEAR),a.clearFilters(oe.NATIONALITY),a.clearFilters(oe.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange?(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let h=0;h<t.nationalities.length;h++)t.nationalities[h].isSelected&&this.fVnationalities.add(t.nationalities[h].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;for(let h=0;h<t.positions.length;h++)t.positions[h].isSelected&&this.fVsetPositionsIds.push(t.positions[h].id);if(t.hasOwnProperty("nationalities"))var l=t.nationalities.filter(h=>h.isSelected===!0);var r=t.positions.filter(h=>h.isSelected===!0);if(r.length==1&&(o=r[0].name),t.hasOwnProperty("nationalities")&&l.length==1&&(s=l[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var c=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersPosition");c!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[c].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(c,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");p!=-1?this.arrayFiltersPlays[p].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.hasOwnProperty("ageLimits")&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");y!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[y].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var y=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersAge");y!=-1&&this.arrayFiltersPlays.splice(y,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var m=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");m!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[m].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.categoriesPlaysTypes={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},this.detailsObject={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},this.detailsObjectSelection={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(oe.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=ue.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=ue.create({headers:{Authorization:`${this.token}`}}),{data:a}=await i.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var i="";t.id==1?i=this.urlFilter:i=this.urlFilter;const a=ue.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=o[0].match_lapse_combinations[m]}),Object.keys(o[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=o[0].playing_as_combinations[m]}),Object.keys(o[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=o[0].field_sections_combinations[m]}),o[0]){for(let m=0;m<o[0].filter_records.length;m++){var s=o[0].description;if(o[0].filter_records[m].field_sections!==void 0){const d=o[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[d]||this.predefinedFiltersSections[d]=="")&&(this.predefinedFiltersSections[d]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[d]):s=s.replace("{field_sections}",this.predefinedFiltersSections[d]))}if(o[0].filter_records[m].match_lapse!==void 0){const d=o[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[d]||this.predefinedFiltersMatchLapse[d]=="")&&(this.predefinedFiltersMatchLapse[d]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[d]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[d]))}if(o[0].filter_records[m].playing_as!==void 0){const d=o[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[d]))}o[0].filter_records[m].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[m].match_result,playingAs:o[0].filter_records[m].playing_as,sections:o[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var n=0,c=new Set,p={},y=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;h++)c.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[h]);p.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),p.setNationalitiesIds=c;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,r.push({id:m+1,name:y,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((y,m)=>y-m).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=c.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let y=1;y<=p.length;y++)y%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=o,t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const c=a.get(r[0])||{};return{id:c.id,name:c.name,img:c.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var c,p,y,m,h,d,f,u,g,C;const w=o.get(r[0])||{};return{age:w.numberAge,categoryName:s.name,country:(p=(c=w.countryId)==null?void 0:c[0])==null?void 0:p.nationality_id,date:w.date,effectiveness:w.effectiveness||0,games:w.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:w.min,name:w.stringFullName,name_short:w.stringFullName,nationality:w.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(m=(y=w.countryId)==null?void 0:y[0])==null?void 0:m.nationality_id}.jpg`,position:w.position_short,positionId:w.numberPositionId,positionfull:this.positions[w.numberPositionId-1],team:((d=(h=w.teamName)==null?void 0:h[0])==null?void 0:d.acronym)||"",teamid:((u=(f=w.teamName)==null?void 0:f[0])==null?void 0:u.team_id)||"",teamname:((C=(g=w.teamName)==null?void 0:g[0])==null?void 0:C.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=ue.create({headers:{Authorization:`${this.token}`}}),i=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=ue.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${i}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),i=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(i.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadPreloadedTops();const t=await ue.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)}}},Wne={ref:"myDivRefTopsFull",class:"play-tops"},vne={key:0,class:"overlay-loading"},Une=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),Gne=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),Hne=[Une,Gne],Jne=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),qne=[Jne],Yne={key:0},Zne={style:{display:"contents"}},Kne={style:{display:"contents"}},Xne={key:0,class:"cont-leyemd-multipleleagues"},Qne=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),ede={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},tde={key:0,style:{"margin-left":"10px"}},ade=e.createElementVNode("span",null,"Todas las categorías",-1),ide=[ade],ode=e.createElementVNode("span",null,"Tipo de Jugada",-1),sde=e.createElementVNode("span",null,"Filtro GolStats",-1),lde={key:3,style:{width:"100%",height:"295px"}};function rde(t,i,a,o,s,l){var r,n,c;const p=e.resolveComponent("GSCTournamentSelect"),y=e.resolveComponent("GSCSeasonSelect"),m=e.resolveComponent("GscSwitchComponent"),h=e.resolveComponent("GSCFilterperteam"),d=e.resolveComponent("GSCFilters"),f=e.resolveComponent("DropdownPositions"),u=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),C=e.resolveComponent("GSCTopCategory"),w=e.resolveComponent("GSCTableHeader"),v=e.resolveComponent("GSCRowTable"),q=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",Wne,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",vne,Hne)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(y,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(m,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(y,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(h,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...A)=>l.clickOpenFilters&&l.clickOpenFilters(...A))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...A)=>l.clickCloseFilters&&l.clickCloseFilters(...A))},qne,2)):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...A)=>l.openMenuFilters&&l.openMenuFilters(...A))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:Kc},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...A)=>l.openMenuFilters&&l.openMenuFilters(...A))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(o.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:i[4]||(i[4]=(...A)=>l.toggleAdvancedView&&l.toggleAdvancedView(...A))},[s.isAvanced?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ocultar avanzado")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ver avanzado")],64))],2),s.isAvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Yne,"Liga: ")),e.createElementVNode("div",{style:e.normalizeStyle(s.isAvanced?"width: auto;":o.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,"button-filter-props":s.isAvanced?l.filterButtonPropsTournaments:l.filterButtonProps,width:"100%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",Zne,[e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 61px;"))},"Posición: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(f,{"dropdown-props":s.dropdownProps,positions:(r=s.personalDataFilters)==null?void 0:r.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(u,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(c=s.personalDataFilters)==null?void 0:c.selectedYear,onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",Kne,[e.withDirectives(e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(d,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonPropsTournaments,filters:s.personalDataFilters},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","filters","filter-type","season","token","onUpdate:filters"]),[[e.vShow,s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"]])],512),[[e.vShow,s.isAvanced]])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[5]||(i[5]=(...A)=>l.getScoutingData&&l.getScoutingData(...A))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(d,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",Xne,[Qne,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(h,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",ede," 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",tde,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(A,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":A.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:A.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(A=>A.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[6]||(i[6]=(...A)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...A))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},ide,2))],64)):e.createCommentVNode("",!0)],2),s.seasonActive!=0||a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.containerTablesClass),id:"container-tables",style:e.normalizeStyle(s.showFullTable?"gap: 0px!important;":"")},[s.optionSelected!=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelectedSubmenu=="Todas las jugadas"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.categoriesDefault,(A,G)=>(e.openBlock(),e.createElementBlock("div",{key:G,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(A.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(C,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[A.id],"border-radius":"12px","filters-prop":l.filterChange,category:A.id,"type-table":s.typeTable,categoryName:A.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded","onShowGraph","onAddPlayer"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(A.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(C,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":!1,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(C,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ode,e.createTextVNode(" y un "),sde,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(w,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(A,G)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:G},[s.teamselectrec==0||s.teamselectrec==A.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(v,{type:2,"is-expanded":s.playerexpand==A.id&&s.expand,onMediadata:l.setMediaData,data:{position:A.position,player_name:A.player_name,player_photo:A.player_photo,total:A.total,id:A.id,player_age:A.player_age,team_abrev:A.team_abrev,team_logo:A.team_logo,player_position:s.positions[A.player_position-1].fullname,player_country_flag:A.player_country_flag,player_games:A.player_games,player_min:A.player_min,league_name:A.league_name,seasons:A.seasons,season_id:A.season_id},height:"71px",background:G%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==A.id?(e.openBlock(),e.createBlock(q,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:A.team_name,age:A.player_age,dataofbirth:A.date,nationality:A.nationality_name,countryFlag:A.player_country_flag,position:s.positions[A.player_position-1].name,games:A.player_games,min:A.player_min,goals:A.total,effectiveness:"-",category:"total",id:A.id},onViewprofile:Y=>l.viewprofile(Y,A.season_id,A.team_id),background:G%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[7]||(i[7]=(...A)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...A))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[8]||(i[8]=(...A)=>l.getScoutingData&&l.getScoutingData(...A))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",lde)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const nde={$style:Lne},dde=Ce(jne,[["render",rde],["__cssModules",nde]]),cde=e.ref(Gs()),pde=e.ref(Zc()),mde={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0},templates:{type:Array,default:()=>[]}},components:{GscSwitchComponent:us,GSCRadioToggle:XZ,ModalAddPlayList:FK,DropdownTemplates:Tq,GSCTableScrollable:bQ,GSCFilters:Us,ModalAddLista:vK,DropdownYears:Yc,DropdownPositions:qc,PlayTops:dde},computed:{filterButtonProps(){return{...cde.value}},filterButtonPropsTournamentsAdvanced(){return{...pde.value}},sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"90px":t<=330?"95px":t<=340||t<=350?"110px":t<=360?"120px":t<=470?"122px":"130px"},advancedText(){return this.showAdvanced?"Ocultar avanzado":"Ver avanzado"}},data(){return{MobileFilterDesing:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},showtableType:!0,formattedPlayers:[],totalNationalities:0,defaultFiltersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},visibleModalAddPlaylist:!1,showCreatePlaylistModal:!1,filtersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},positions:[{id:1,name:"Portero",fullname:"POR"},{id:2,name:"Defensa central",fullname:"DFC"},{id:3,name:"Lateral por izquierda",fullname:"LI"},{id:4,name:"Lateral por derecha",fullname:"LD"},{id:5,name:"Volante por izquierda",fullname:"VI"},{id:6,name:"Volante por derecha",fullname:"VD"},{id:7,name:"Volante defensivo",fullname:"VDF"},{id:8,name:"Volante ofensivo",fullname:"VO"},{id:9,name:"Delantero",fullname:"DEL"},{id:10,name:"Desconocida",fullname:"Desc"}],tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],filtersTypes:B,personalDataFilters:Yt,personalDataSubFiltersTypes:oe,tournamentsToFilter:UK,tournamentsToFilterVariables:GK,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"Poppins-Regular"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},optionSelected:"Los mejores",showVariables:!0,selectedRadioOption:"Variables propias",showAdvanced:!1,isSearchActive:!1,lastSearchFilters:null,seasonsArray:[],activeFilters:[],isLoading:!1,selectedPlayerToAdd:null}},setup(){const t=e.ref("myDivRefTopsBestPlay"),i=e.ref(null),a=e.ref(null),{elementSize:o}=Oe(t),{elementSize:s}=Oe(i),{elementSize:l}=Oe(a);return{myDivRefTopsBestPlay:t,midLayoutRef:i,filterBoxRef:a,elementSize:o,midLayoutSize:s,filterBoxSize:l}},created(){},async mounted(){try{await this.fillPersonalDataFilters(),this.isSearchActive=!0,this.hasTemplates?await new Promise(t=>{const i=()=>{this.filtersObject.template_id?t(!0):setTimeout(i,100)};i()}):(this.selectedRadioOption="Info general",delete this.filtersObject.template_id,this.showVariables=!1,this.checkSearchButton()),await this.toggleSearch()}catch(t){console.error("Error durante la inicialización:",t)}},methods:{onViewProfile(t){this.$emit("open-profile-player",t)},onAddToList(t){this.selectedPlayerToAdd={player_id:t.objeto_player.player_id,name:t.objeto_player.name,position:t.objeto_player.position_id,is_female:t.objeto_player.is_female||0,dob:t.objeto_player.dob,team_id:t.objeto_player.teams[0].team_id,jersey:t.objeto_player.jersey||0,nationality:t.objeto_player.nationality},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",t)},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),i=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==i},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(i=>i.isSelected).map(i=>i.id),this.seasonsArray=t.filter(i=>i.isSelected).map(i=>({id:i.seasons[0].id,tournamentId:i.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[o,s],this.filtersObject.age_or_year=1}else t.hasOwnProperty("year")?(this.filtersObject.year=t.year,this.filtersObject.age_or_year=0,this.filtersObject.range_age=[]):this.filtersObject.year=0;var i=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=i,this.checkSearchButton(),this.updateActiveFilters()},onFiltersField(t){this.checkSearchButton()},onFiltersUniverse(t){this.filtersObject.minutes_played=Number(t.minutesPlayed),this.filtersObject.last_months=Number(t.lastMonths),this.filtersObject.minutes_played_avg=Number(t.percentMinutesPlayed),this.filtersObject.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1,this.checkSearchButton()},onFiltersProductivity(t){var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filtersObject.categories=i,this.filtersObject.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filtersObject.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filtersObject.red_cards=t.offensesConditions.areRedCardsSelected,this.checkSearchButton()},onChangePositions(t){this.filtersObject.positions=t.filter(i=>i.isSelected&&i.id!==0).map(i=>i.id),this.checkSearchButton()},onChangeYear(t){this.filtersObject.year=t,this.personalDataFilters.selectedYear=t,this.checkSearchButton()},async toggleSearch(){if(this.isSearchActive)try{this.isLoading=!0;const t=await(await fetch("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...this.filtersObject,year:this.filtersObject.year==="Sin límite"?this.personalDataFilters.availableYears[this.personalDataFilters.availableYears.length-1]:this.filtersObject.year})})).json();this.showtableType=!this.filtersObject.template_id,this.formattedPlayers=t.map(i=>({objeto_player:i,player_photo:i.photo,player_name:i.acronym,player_age:this.calculateAge(i.dob),team_abrev:i.teams[0].acronym,jersey:i.jersey||"",nationality:i.nationality,team_name:i.team_name,is_female:i.is_female||0,position_name:this.positions[i.position_id-1].fullname,player_position:this.positions[i.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${i.nationality_id}.jpg`,player_games:i.games_played,player_min:i.minutes_played,nationality_name:ct[i.nationality_id],league_name:i.tournament_name,seasons:i.seasons,season_id:i.seasons[0],stats:i.stats?i.stats.map(a=>({category_id:a[4]||null,custom_category_id:a[0]||null,name:a[1]||"",total:a[2]||0,seasons:a[3]||null})):[]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(t){console.error("Error al realizar la búsqueda:",t)}finally{this.isLoading=!1}},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},resetFilters(){this.filtersObject=JSON.parse(JSON.stringify(this.defaultFiltersObject)),this.lastSearchFilters=null,this.checkSearchButton()},async fillPersonalDataFilters(){this.seasonsArray,this.tokenFree},async changeTabsGeneral(t){this.optionSelected=t},closeModalAddPlaylist(){this.visibleModalAddPlaylist=!1},ChangeRadio(t){if(!this.hasTemplates){this.selectedRadioOption="Info general";return}typeof t=="string"?(this.selectedRadioOption=t,this.showVariables=t==="Variables propias",t==="Info general"&&delete this.filtersObject.template_id,this.checkSearchButton()):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t&&(this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton())},updateActiveFilters(){const t=[];if(this.filtersObject.tournaments.length>0&&this.filtersObject.tournaments.length!=6)if(this.filtersObject.tournaments.length>1)t.push(`Ligas ${this.filtersObject.tournaments.length}`);else{const i=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));i&&t.push(i.name)}else t.push("Todas las ligas");if(this.filtersObject.nationalities.length>0&&this.filtersObject.nationalities.length!==this.totalNationalities&&this.filtersObject.nationalities.length!==231){const i=this.filtersObject.nationalities.length;i===1?t.push("Nacionalidad "+ct[this.filtersObject.nationalities[0]]):t.push(`${i} nacionalidades`)}if(this.filtersObject.elegibles&&this.filtersObject.elegibles.length>0&&t.push("Nacionalidad Mexicana"),this.filtersObject.positions.length>0&&this.filtersObject.positions.length!==9)if(this.filtersObject.positions.length===1){const i=this.positions.find(a=>a.id===this.filtersObject.positions[0]);i&&t.push(i.name)}else t.push(`${this.filtersObject.positions.length} posiciones de juego`);if(this.filtersObject.year>0&&t.push(`A partir del ${this.filtersObject.year}`),this.filtersObject.range_age.length===2&&t.push(`${this.filtersObject.range_age[0]}-${this.filtersObject.range_age[1]} años`),this.filtersObject.last_months&&this.filtersObject.last_months!==12&&t.push(`Últimos ${this.filtersObject.last_months} meses`),this.filtersObject.minutes_played>0&&t.push(`Min. ${this.filtersObject.minutes_played} min`),this.filtersObject.minutes_played_avg>0&&t.push(`Min. ${this.filtersObject.minutes_played_avg}% min`),this.filtersObject.type_stats!==1){const i=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(i)}this.activeFilters=t},handleCreateList(){this.showCreatePlaylistModal=!0,this.visibleModalAddPlaylist=!1},closeCreatePlaylistModal(){this.showCreatePlaylistModal=!1},changeSeasonId(t){this.$emit("change-season-id",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},topsLoaded(t){this.$emit("tops-loaded",t)},handleCompareClick(){this.formattedPlayers.length>0&&this.$emit("compare-players",this.formattedPlayers)}}},st=t=>(e.pushScopeId("data-v-3f35161d"),t=t(),e.popScopeId(),t),hde={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},ude={class:"overlay-loading"},fde=st(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),yde=st(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),gde=[fde,yde],_de={class:"strip-menu"},bde={class:"strip-options-vars"},Sde={key:0,class:"desktop-layout"},Cde={class:"left-containers"},wde={class:"filter-container filter-container-variables container-372"},kde={key:0,class:"filter-container filter-container-variables container-291"},Ede=st(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),Vde={class:"variables-indicator"},Tde=st(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),Nde={class:"filter-container-box"},xde=st(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),Bde={class:"filter-container-box-2"},Fde=st(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),Pde={class:"filter-container-box-3"},zde={class:"advanced-row-top"},$de=st(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),Ade={class:"stats-section"},Ide={class:"filters-applied"},Mde=st(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),Lde={class:"filters-tags-wrapper"},Rde={class:"filters-tags"},Ode=st(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),Dde={key:0,class:"no-results"},jde={key:1,class:"content-container"};function Wde(t,i,a,o,s,l){const r=e.resolveComponent("ModalAddPlayList"),n=e.resolveComponent("ModalAddLista"),c=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCRadioToggle"),y=e.resolveComponent("DropdownTemplates"),m=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),d=e.resolveComponent("DropdownYears"),f=e.resolveComponent("GSCTableScrollable"),u=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock("div",hde,[e.createVNode(r,{isVisible:s.visibleModalAddPlaylist,onClose:l.closeModalAddPlaylist,"user-id":a.userId,onCreateList:l.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(n,{isVisible:s.showCreatePlaylistModal,onClose:l.closeCreatePlaylistModal,"user-id":a.userId,player:s.selectedPlayerToAdd,templates:a.templates.data},null,8,["isVisible","onClose","user-id","player","templates"]),e.withDirectives(e.createElementVNode("div",ude,gde,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",_de,[e.createVNode(c,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":l.sizeTabsFontMP,width:l.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",bde,[o.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",Sde,[e.createElementVNode("div",Cde,[e.createElementVNode("div",wde,[a.hasTemplates?(e.openBlock(),e.createBlock(p,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",kde,[Ede,e.createElementVNode("div",Vde,[e.createVNode(y,{"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:i[0]||(i[0]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":o.elementSize.width<=480,"mid-layout":o.elementSize.width<=780&&o.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":o.elementSize.width<=780&&o.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":o.elementSize.width<=480}])},[a.hasTemplates?(e.openBlock(),e.createBlock(p,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),o.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[1]||(i[1]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container container-291",{"mobile-container":o.elementSize.width<=480,"mid-container":o.elementSize.width<=780&&o.elementSize.width>480,"container-292":o.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":o.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":o.elementSize.width<=480}])},[e.createVNode(y,{"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["team-id","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),o.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[2]||(i[2]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var g,C;return[s.showAdvanced?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":o.elementSize.width<=890,"layout-480":o.elementSize.width<=480}])},[e.createElementVNode("div",zde,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({width:"99.7%","button-filter-props":l.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":l.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":""},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":l.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-75",{"equal-width":o.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[4]||(i[4]=(...w)=>l.toggleSearch&&l.toggleSearch(...w))},"Buscar",2)],2)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":o.elementSize.width<=780,"gap-reduced-850":o.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-tournament":o.elementSize.width<=1e3}])},[Tde,e.createElementVNode("div",Nde,[e.createVNode(m,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.selectedRadioOption!="Variables propias"?s.tournamentsToFilter:s.tournamentsToFilterVariables,"onUpdate:filters":l.onUpdateTournaments},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-2",{"filter-half-position":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-position":o.elementSize.width<=1e3}])},[xde,e.createElementVNode("div",Bde,[e.createVNode(h,{"dropdown-props":s.dropdownProps,positions:(g=s.personalDataFilters)==null?void 0:g.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced":o.elementSize.width<=1e3}])},[Fde,e.createElementVNode("div",Pde,[e.createVNode(d,{"dropdown-props":s.dropdownProps,years:(C=s.personalDataFilters)==null?void 0:C.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[3]||(i[3]=(...w)=>l.toggleSearch&&l.toggleSearch(...w))},"Buscar",2)],2)],2)],2))]}),_:1}),$de,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":o.elementSize.width<=780}])},[e.createElementVNode("div",Ade,[e.createElementVNode("div",Ide,[Mde,e.createElementVNode("div",Lde,[e.createElementVNode("div",Rde,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(g,C)=>(e.openBlock(),e.createElementBlock("span",{key:C,class:"filter-tag"},e.toDisplayString(g),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":o.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:i[5]||(i[5]=(...g)=>l.handleCompareClick&&l.handleCompareClick(...g))},[e.createTextVNode(" Comparar jugadores "),Ode])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",Dde," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",jde,[e.createVNode(f,{players:s.formattedPlayers,"is-general":s.showtableType,onViewProfile:l.onViewProfile,onAddToList:l.onAddToList,onShowGraph:l.onShowGraph,onOpenMedia:l.onOpenMedia},null,8,["players","is-general","onViewProfile","onAddToList","onShowGraph","onOpenMedia"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(u,{key:1,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded,onShowGraph:l.onShowGraph,onAddPlayer:l.onAddPlayer},null,8,["onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)}const vde=Ce(mde,[["render",Wde],["__scopeId","data-v-3f35161d"]]),Ude={name:"SwitchTopsType",components:{TopsFull:JZ,TopsBestAndPlay:vde},data(){return{templates:[],hasTemplates:!1,isTemplatesLoaded:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},created(){this.fetchTemplates()},props:{type:{type:Number,default:1},userId:{type:String,required:!0},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1}},methods:{async fetchTemplates(){var t;try{const i=await ue.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${this.teamId}/templates`);(t=i.data)!=null&&t.data&&Array.isArray(i.data.data)&&i.data.data.length>0?(this.templates=i.data.data,this.hasTemplates=!0):(this.templates=[],this.hasTemplates=!1)}catch(i){console.error("Error al obtener templates:",i),this.templates=[],this.hasTemplates=!1}finally{this.isTemplatesLoaded=!0}},topsLoaded(t){this.$emit("tops-loaded",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},changeSeasonId(t){this.$emit("change-season-id",t)},comparePlayers(t){this.$emit("compare-players",t)},onOpenMedia(t){this.$emit("open-media",t)},onShowGraph(t){this.$emit("show-graph",t)},onOpenProfilePlayer(t){this.$emit("open-profile-player",t)},onAddToList(t){this.$emit("add-to-list",t)}}};function Gde(t,i,a,o,s,l){const r=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(r,{key:0,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,"team-id":a.teamId,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded},null,8,["onChangeSeasonId","onOpenmedia","team-id","current-season-id","is-selection","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded"])):s.isTemplatesLoaded?(e.openBlock(),e.createBlock(n,{key:1,"team-id":a.teamId,"has-templates":s.hasTemplates,templates:s.templates,onOpenMedia:l.onOpenMedia,onShowGraph:l.onShowGraph,onComparePlayers:l.comparePlayers,onOpenProfilePlayer:l.onOpenProfilePlayer,onAddToList:l.onAddToList,onChangeSeasonId:l.changeSeasonId,onOpenProfileTeam:l.openProfileTeam,onTopsLoaded:l.topsLoaded,"user-id":a.userId},null,8,["team-id","has-templates","templates","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id"])):e.createCommentVNode("",!0)])}const Hde=Ce(Ude,[["render",Gde]]),Jde={class:"elegibles"},hp=Qt(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=t,o=y=>{i("openmedia",y)},s=y=>{i("open-profile-team",y)},l=y=>{i("open-profile-player",y)};function r(y){i("showGraph",y)}function n(y){i("change-season-id",y)}function c(y){i("tops-loaded",y)}function p(y){i("comparePlayers",y)}return(y,m)=>(e.openBlock(),e.createElementBlock("div",Jde,[e.createVNode(e.unref(Hde),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores",onOpenmedia:o,onComparePlayers:p,onOpenMedia:o,onOpenProfileTeam:s,onOpenProfilePlayer:l,onShowGraph:r,onChangeSeasonId:n,onTopsLoaded:c},null,8,["user-id","team-id"])]))}}),[["__scopeId","data-v-f4842a4e"]]),qde=(t=>(e.pushScopeId("data-v-7ac090ed"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),Yde={class:""},Zde={class:"tabs"},Kde=Qt({__name:"PlayersTrackingMain",props:{tournamentsApiUrl:{type:String,default:""},tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},isSeleccionUser:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},userId:{type:Number,default:24254,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:i}){const a=t,o={fontFamily:"Poppins-Light",logosUrl:"https://golstatsimages.blob.core.windows.net/todoelfut/",logoFileType:"png",height:"40px",width:"179px",borderRadius:8,arrowHeight:24,arrowWidth:24,borderType:"solid",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#0d1d29",color:"white",arrowColor:"#CBEE6B"},s=["Detección de jugadores","Lista de seguimientos","Última convocatoria"],l=e.ref("Detección de jugadores"),r=e.ref({width:0}),n=e.ref(null),c=e.ref(0),p=e.ref(0),y=e.ref([]),m=e.ref([]),h=e.ref(!1),d=e.ref(!1),f=e.ref({}),u=e.ref([]),g=e.ref({});e.ref([]),e.watch(()=>a.tournamentId,$=>{$&&v()},{immediate:!0}),e.watch(()=>a.teamId,async $=>{$&&(await w(),await v())},{immediate:!0});const C=$=>{l.value=$};async function w(){try{const $=[fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/last-call/teams/${a.teamId}/seasons`,{method:"GET",headers:{Authorization:a.token}}),fetch("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",{method:"GET",headers:{Authorization:a.token}})],[U,D]=await Promise.all($),_=await U.json(),b=await D.json();_.forEach(k=>{k.seasonsIds=new Set(k.seasons.map(j=>j.id)),k.availableTournaments=k.seasonsIds?b.reduce((j,K)=>{if(K.seasons.some(je=>k.seasonsIds.has(je.id))){const je=K.seasons.filter(Oi=>k.seasonsIds.has(Oi.id));j.push({...K.tournament,seasonsIds:k.seasonsIds,seasons:je,teamId:k.team_id})}return j},[]):[]}),u.value=_,g.value=_[0]}catch($){console.error($)}}async function v(){try{if(c.value!==a.tournamentId||p.value!==a.teamId){const $=[A()];c.value=a.tournamentId,p.value=a.teamId;const[U]=await Promise.all($);m.value=U}}catch($){console.error("Error filling data",$)}}function q(){G().then($=>{y.value=$})}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($){console.error("Error fetching in followed",$)}}async function G(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${f.value.id}/teams/${f.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch($){console.error("Error fetching last called",$)}}const Y=()=>{n.value&&(r.value.width=n.value.offsetWidth,h.value=r.value.width<700,d.value=r.value.width<420)};e.onMounted(()=>{Y();const $=new ResizeObserver(Y);n.value&&$.observe(n.value)});const J=e.computed(()=>{const $=r.value.width;return $<=560?"170px":($<=650||$<=768,"225px")}),V=e.computed(()=>{const $=r.value.width;return $<=460?"12px":$<=650?"13px":$<=768?"14px":"16px"});e.computed(()=>r.value.width<=380?"18px":"22px");const x=e.computed(()=>{switch(l.value){case"Detección de jugadores":return hp;case"Lista de seguimientos":return r7;case"Última convocatoria":return Gm;default:return hp}}),S=e.computed(()=>d.value||h.value?"100%":"179px"),P=$=>{i("openmedia",$)},z=$=>{i("showGraph",$)},H=$=>{i("open-profile-team",$)},Z=$=>{i("open-profile-player",$)},ce=$=>{i("open-profile-player",$)},Q=$=>{i("comparePlayers",$)};function E($){i("change-season-id",$)}function T($){i("tops-loaded",$)}const O=$=>{f.value=$,q()};function N($){g.value=$}function W($){g.value=$}return($,U)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":h.value}])},[qde,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":h.value}])},[t.isSeleccionUser&&l.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[e.createVNode(e.unref(Ip),e.mergeProps(o,{"model-value":g.value,items:u.value,onInput:N,"onUpdate:modelValue":W}),{default:e.withCtx(({selectedItem:D})=>[e.createElementVNode("div",Yde,e.toDisplayString(D.team_name),1)]),availableItem:e.withCtx(({item:D})=>[e.createElementVNode("div",null,e.toDisplayString(D.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(rm),{key:0,items:g.value.availableTournaments,width:S.value,onInput:O},null,8,["items","width"])):e.createCommentVNode("",!0)],2)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",Zde,[e.createVNode(e.unref(Bm),{type:2,buttons:s,"font-family":"Poppins-Medium","selected-option":l.value,"font-size":V.value,width:J.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:C},null,8,["selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":l.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.value),{"parent-width":r.value.width,"user-id":a.userId,"team-id":a.teamId,"user-team-id":a.userTeamId,"last-called-players":y.value,"in-followed-players":m.value,onShowGraph:z,onShowProfile:ce,onOpenmedia:P,onOpenMedia:P,onOpenProfileTeam:H,onOpenProfilePlayer:Z,onChangeSeasonId:E,onTopsLoaded:T,onComparePlayers:Q},null,40,["parent-width","user-id","team-id","user-team-id","last-called-players","in-followed-players"]))],2)],512))}},[["__scopeId","data-v-7ac090ed"]]),Xde={class:"subcategory-group"},Qde={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Xde,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(le),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},ece=ne(Qde,[["__scopeId","data-v-ae6f3d72"]]),tce={class:"filter-subcategories"},ace=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",tce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"filter-subcategories__group"},[e.createVNode(ece,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Li=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),ice={class:"details__header"},oce=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),sce={class:"details__header__checkbox"},lce={class:"details__body"},rce={class:"details__body__playing-as"},nce=["onClick"],dce={class:"details__header"},cce=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),pce={class:"details__header__checkbox"},mce={class:"details__body"},hce=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),uce={class:"details__body__game-section"},fce=["onClick"],yce={class:"details__body"},gce=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),_ce={class:"details__body__game-section"},bce=["onClick"],Sce=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const i=t;e.useCssVars(y=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>i.playingAs.every(y=>y.isSelected)),o=e.computed(()=>i.gameSections.every(y=>y.isSelected)),s=e.computed(()=>i.gameSections.reduce((y,m)=>(m.value<=3?y.firstHalf.push(m):y.secondHalf.push(m),y),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(y){y?i.playingAs.forEach(m=>{m.isSelected=!0}):i.playingAs.forEach((m,h)=>{m.isSelected=h===0})}function n(y){i.playingAs.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){i.gameSections.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?i.gameSections.forEach(m=>{m.isSelected=!0}):i.gameSections.forEach((m,h)=>{m.isSelected=h===0})}return(y,m)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",ice,[oce,e.createElementVNode("div",sce,[e.createVNode(e.unref(le),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",lce,[e.createElementVNode("div",rce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>n(h)},e.toDisplayString(h.name),11,nce))),128))])]),e.createElementVNode("div",dce,[cce,e.createElementVNode("div",pce,[e.createVNode(e.unref(le),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",mce,[hce,e.createElementVNode("div",uce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,fce))),128))])]),e.createElementVNode("div",yce,[gce,e.createElementVNode("div",_ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,bce))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Cce={class:"filter-field"},wce=Object.freeze(Object.defineProperty({__proto__:null,default:ne({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Cce,[e.createVNode(e.unref(_r),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),kce={class:"subcategory-group"},Ece={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",kce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(se),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Vce=re(Ece,[["__scopeId","data-v-ae6f3d72"]]),Tce={class:"filter-subcategories"},Nce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Tce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"filter-subcategories__group"},[e.createVNode(Vce,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Ri=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),xce={class:"details__header"},Bce=Ri(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Fce={class:"details__header__checkbox"},Pce={class:"details__body"},zce={class:"details__body__playing-as"},$ce=["onClick"],Ace={class:"details__header"},Ice=Ri(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Mce={class:"details__header__checkbox"},Lce={class:"details__body"},Rce=Ri(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Oce={class:"details__body__game-section"},Dce=["onClick"],jce={class:"details__body"},Wce=Ri(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),vce={class:"details__body__game-section"},Uce=["onClick"],Gce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const i=t;e.useCssVars(y=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>i.playingAs.every(y=>y.isSelected)),o=e.computed(()=>i.gameSections.every(y=>y.isSelected)),s=e.computed(()=>i.gameSections.reduce((y,m)=>(m.value<=3?y.firstHalf.push(m):y.secondHalf.push(m),y),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(y){y?i.playingAs.forEach(m=>{m.isSelected=!0}):i.playingAs.forEach((m,h)=>{m.isSelected=h===0})}function n(y){i.playingAs.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){i.gameSections.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?i.gameSections.forEach(m=>{m.isSelected=!0}):i.gameSections.forEach((m,h)=>{m.isSelected=h===0})}return(y,m)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",xce,[Bce,e.createElementVNode("div",Fce,[e.createVNode(e.unref(se),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",Pce,[e.createElementVNode("div",zce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>n(h)},e.toDisplayString(h.name),11,$ce))),128))])]),e.createElementVNode("div",Ace,[Ice,e.createElementVNode("div",Mce,[e.createVNode(e.unref(se),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",Lce,[Rce,e.createElementVNode("div",Oce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,Dce))),128))])]),e.createElementVNode("div",jce,[Wce,e.createElementVNode("div",vce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,Uce))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Hce={class:"filter-field"},Jce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Hce,[e.createVNode(e.unref(Kd),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));yt.GSCPlayersTracking=Kde,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"})});