@golstats/gsc-players-tracking 1.0.72 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-3d93eab5-30b3b74d-ChBLiEsj.js → FilterConditions-3d93eab5-247cc8e8-C37ZOGNN.js} +1 -1
- package/dist/{FilterConditions-99cc2b67-CxpU9dUs-DxEk-S1i.js → FilterConditions-99cc2b67-CxpU9dUs-D4KRlEn5.js} +1 -1
- package/dist/{FilterConditions-cd420512-DCSDH7YW-B8jHT8XQ-C7wBwmZ2.js → FilterConditions-cd420512-DCSDH7YW-B8jHT8XQ-D8uaRZpL.js} +1 -1
- package/dist/{FilterField-1e367942-ece93ed7-Bd0z1Z6Y.js → FilterField-1e367942-47353f89-CXYKHHbZ.js} +1 -1
- package/dist/{FilterField-8a93d757-u_-hP-2A-CN1J4F4W.js → FilterField-8a93d757-u_-hP-2A-Cm5XIqLJ.js} +1 -1
- package/dist/{FilterField-a29b1541-CU71K4BQ-BkW7jQ6c-Dcir5hfe.js → FilterField-a29b1541-CU71K4BQ-BkW7jQ6c-C-pQ_GXE.js} +1 -1
- package/dist/{FilterSubcategories-107c6930-76e3bfab-B60vla8Q.js → FilterSubcategories-107c6930-92e89256-DyPEZ4Dz.js} +1 -1
- package/dist/{FilterSubcategories-1f65c851-CWnk_SkS-DUUkFcIv-pyCaPJ_N.js → FilterSubcategories-1f65c851-CWnk_SkS-DUUkFcIv-CAqqLmR4.js} +1 -1
- package/dist/{FilterSubcategories-a1b6596a-BCGSg5P1-CBl0SH9J.js → FilterSubcategories-a1b6596a-BCGSg5P1-D-S0NL9p.js} +1 -1
- package/dist/gsc-players-tracking.es.js +1 -1
- package/dist/gsc-players-tracking.umd.js +2 -2
- package/dist/{index-BsB6iwGw.js → index-DNc1W2jL.js} +17 -17
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const a=new this(t);return o.forEach(i=>a.set(i)),a}static accessor(t){const o=(this[L3]=this[L3]={accessors:{}}).accessors,a=this.prototype;function i(s){const r=Es(s);o[r]||(OSe(a,s),o[r]=!0)}return re.isArray(t)?t.forEach(i):i(t),this}};Yl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),re.reduceDescriptors(Yl.prototype,({value:t},o)=>{let a=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(i){this[a]=i}}}),re.freezeMethods(Yl);const ra=Yl;function im(t,o){const a=this||am,i=o||a,s=ra.from(i.headers);let r=i.data;return re.forEach(t,function(l){r=l.call(a,r,s.normalize(),o?o.status:void 0)}),s.normalize(),r}function D3(t){return!!(t&&t.__CANCEL__)}function Si(t,o,a){xe.call(this,t??"canceled",xe.ERR_CANCELED,o,a),this.name="CanceledError"}re.inherits(Si,xe,{__CANCEL__:!0});function v3(t,o,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?t(a):o(new xe("Request failed with status code "+a.status,[xe.ERR_BAD_REQUEST,xe.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function RSe(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function LSe(t,o){t=t||10;const a=new Array(t),i=new Array(t);let s=0,r=0,l;return o=o!==void 0?o:1e3,function(n){const c=Date.now(),d=i[r];l||(l=c),a[s]=n,i[s]=c;let u=r,p=0;for(;u!==s;)p+=a[u++],u=u%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),c-l<o)return;const y=d&&c-d;return y?Math.round(p*1e3/y):void 0}}function DSe(t,o){let a=0,i=1e3/o,s,r;const l=(n,c=Date.now())=>{a=c,s=null,r&&(clearTimeout(r),r=null),t.apply(null,n)};return[(...n)=>{const c=Date.now(),d=c-a;d>=i?l(n,c):(s=n,r||(r=setTimeout(()=>{r=null,l(s)},i-d)))},()=>s&&l(s)]}const Kl=(t,o,a=3)=>{let i=0;const s=LSe(50,250);return DSe(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,c=l-i,d=s(c),u=l<=n;i=l;const p={loaded:l,total:n,progress:n?l/n:void 0,bytes:c,rate:d||void 0,estimated:d&&n&&u?(n-l)/d:void 0,event:r,lengthComputable:n!=null,[o?"download":"upload"]:!0};t(p)},a)},j3=(t,o)=>{const a=t!=null;return[i=>o[0]({lengthComputable:a,total:t,loaded:i}),o[1]]},U3=t=>(...o)=>re.asap(()=>t(...o)),vSe=yt.hasStandardBrowserEnv?((t,o)=>a=>(a=new URL(a,yt.origin),t.protocol===a.protocol&&t.host===a.host&&(o||t.port===a.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,jSe=yt.hasStandardBrowserEnv?{write(t,o,a,i,s,r){const l=[t+"="+encodeURIComponent(o)];re.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),re.isString(i)&&l.push("path="+i),re.isString(s)&&l.push("domain="+s),r===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function USe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function WSe(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function W3(t,o,a){let i=!USe(o);return t&&(i||a==!1)?WSe(t,o):o}const H3=t=>t instanceof ra?{...t}:t;function Bo(t,o){o=o||{};const a={};function i(d,u,p,y){return re.isPlainObject(d)&&re.isPlainObject(u)?re.merge.call({caseless:y},d,u):re.isPlainObject(u)?re.merge({},u):re.isArray(u)?u.slice():u}function s(d,u,p,y){if(re.isUndefined(u)){if(!re.isUndefined(d))return i(void 0,d,p,y)}else return i(d,u,p,y)}function r(d,u){if(!re.isUndefined(u))return i(void 0,u)}function l(d,u){if(re.isUndefined(u)){if(!re.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function n(d,u,p){if(p in o)return i(d,u);if(p in t)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(d,u,p)=>s(H3(d),H3(u),p,!0)};return re.forEach(Object.keys(Object.assign({},t,o)),function(d){const u=c[d]||s,p=u(t[d],o[d],d);re.isUndefined(p)&&u!==n||(a[d]=p)}),a}const G3=t=>{const o=Bo({},t);let{data:a,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=o;o.headers=l=ra.from(l),o.url=z3(W3(o.baseURL,o.url,o.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let c;if(re.isFormData(a)){if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...u]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...u].join("; "))}}if(yt.hasStandardBrowserEnv&&(i&&re.isFunction(i)&&(i=i(o)),i||i!==!1&&vSe(o.url))){const d=s&&r&&jSe.read(r);d&&l.set(s,d)}return o},HSe=typeof XMLHttpRequest<"u",GSe=HSe&&function(t){return new Promise(function(o,a){const i=G3(t);let s=i.data;const r=ra.from(i.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:c}=i,d,u,p,y,m;function h(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function g(){if(!f)return;const S=ra.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),F={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:t,request:f};v3(function(v){o(v),h()},function(v){a(v),h()},F),f=null}"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(a(new xe("Request aborted",xe.ECONNABORTED,t,f)),f=null)},f.onerror=function(){a(new xe("Network Error",xe.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const F=i.transitional||O3;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),a(new xe(S,F.clarifyTimeoutError?xe.ETIMEDOUT:xe.ECONNABORTED,t,f)),f=null},s===void 0&&r.setContentType(null),"setRequestHeader"in f&&re.forEach(r.toJSON(),function(S,F){f.setRequestHeader(F,S)}),re.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),l&&l!=="json"&&(f.responseType=i.responseType),c&&([p,m]=Kl(c,!0),f.addEventListener("progress",p)),n&&f.upload&&([u,y]=Kl(n),f.upload.addEventListener("progress",u),f.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=S=>{f&&(a(!S||S.type?new Si(null,t,f):S),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const b=RSe(i.url);if(b&&yt.protocols.indexOf(b)===-1){a(new xe("Unsupported protocol "+b+":",xe.ERR_BAD_REQUEST,t));return}f.send(s||null)})},qSe=(t,o)=>{const{length:a}=t=t?t.filter(Boolean):[];if(o||a){let i=new AbortController,s;const r=function(d){if(!s){s=!0,n();const u=d instanceof Error?d:this.reason;i.abort(u instanceof xe?u:new Si(u instanceof Error?u.message:u))}};let l=o&&setTimeout(()=>{l=null,r(new xe(`timeout ${o} of ms exceeded`,xe.ETIMEDOUT))},o);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),t=null)};t.forEach(d=>d.addEventListener("abort",r));const{signal:c}=i;return c.unsubscribe=()=>re.asap(n),c}},JSe=qSe,ZSe=function*(t,o){let a=t.byteLength;if(a<o){yield t;return}let i=0,s;for(;i<a;)s=i+o,yield t.slice(i,s),i=s},YSe=async function*(t,o){for await(const a of KSe(t))yield*ZSe(a,o)},KSe=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const o=t.getReader();try{for(;;){const{done:a,value:i}=await o.read();if(a)break;yield i}}finally{await o.cancel()}},q3=(t,o,a,i)=>{const s=YSe(t,o);let r=0,l,n=c=>{l||(l=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await s.next();if(d){n(),c.close();return}let p=u.byteLength;if(a){let y=r+=p;a(y)}c.enqueue(new Uint8Array(u))}catch(d){throw n(d),d}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},Xl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",J3=Xl&&typeof ReadableStream=="function",XSe=Xl&&(typeof TextEncoder=="function"?(t=>o=>t.encode(o))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Z3=(t,...o)=>{try{return!!t(...o)}catch{return!1}},QSe=J3&&Z3(()=>{let t=!1;const o=new Request(yt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!o}),Y3=64*1024,sm=J3&&Z3(()=>re.isReadableStream(new Response("").body)),Ql={stream:sm&&(t=>t.body)};Xl&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!Ql[o]&&(Ql[o]=re.isFunction(t[o])?a=>a[o]():(a,i)=>{throw new xe(`Response type '${o}' is not supported`,xe.ERR_NOT_SUPPORT,i)})})})(new Response);const e_e=async t=>{if(t==null)return 0;if(re.isBlob(t))return t.size;if(re.isSpecCompliantForm(t))return(await new Request(yt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(re.isArrayBufferView(t)||re.isArrayBuffer(t))return t.byteLength;if(re.isURLSearchParams(t)&&(t=t+""),re.isString(t))return(await XSe(t)).byteLength},t_e=async(t,o)=>re.toFiniteNumber(t.getContentLength())??e_e(o),a_e=Xl&&(async t=>{let{url:o,method:a,data:i,signal:s,cancelToken:r,timeout:l,onDownloadProgress:n,onUploadProgress:c,responseType:d,headers:u,withCredentials:p="same-origin",fetchOptions:y}=G3(t);d=d?(d+"").toLowerCase():"text";let m=JSe([s,r&&r.toAbortSignal()],l),h;const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(c&&QSe&&a!=="get"&&a!=="head"&&(g=await t_e(u,i))!==0){let T=new Request(o,{method:"POST",body:i,duplex:"half"}),M;if(re.isFormData(i)&&(M=T.headers.get("content-type"))&&u.setContentType(M),T.body){const[D,P]=j3(g,Kl(U3(c)));i=q3(T.body,Y3,D,P)}}re.isString(p)||(p=p?"include":"omit");const b="credentials"in Request.prototype;h=new Request(o,{...y,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:b?p:void 0});let S=await fetch(h);const F=sm&&(d==="stream"||d==="response");if(sm&&(n||F&&f)){const T={};["status","statusText","headers"].forEach(Q=>{T[Q]=S[Q]});const M=re.toFiniteNumber(S.headers.get("content-length")),[D,P]=n&&j3(M,Kl(U3(n),!0))||[];S=new Response(q3(S.body,Y3,D,()=>{P&&P(),f&&f()}),T)}d=d||"text";let v=await Ql[re.findKey(Ql,d)||"text"](S,t);return!F&&f&&f(),await new Promise((T,M)=>{v3(T,M,{data:v,headers:ra.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:h})})}catch(b){throw f&&f(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new xe("Network Error",xe.ERR_NETWORK,t,h),{cause:b.cause||b}):xe.from(b,b&&b.code,t,h)}}),rm={http:ySe,xhr:GSe,fetch:a_e};re.forEach(rm,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const K3=t=>`- ${t}`,o_e=t=>re.isFunction(t)||t===null||t===!1,X3={getAdapter:t=>{t=re.isArray(t)?t:[t];const{length:o}=t;let a,i;const s={};for(let r=0;r<o;r++){a=t[r];let l;if(i=a,!o_e(a)&&(i=rm[(l=String(a)).toLowerCase()],i===void 0))throw new xe(`Unknown adapter '${l}'`);if(i)break;s[l||"#"+r]=i}if(!i){const r=Object.entries(s).map(([n,c])=>`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=o?r.length>1?`since :
|
|
52
52
|
`+r.map(K3).join(`
|
|
53
53
|
`):" "+K3(r[0]):"as no adapter specified";throw new xe("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:rm};function lm(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Si(null,t)}function Q3(t){return lm(t),t.headers=ra.from(t.headers),t.data=im.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),X3.getAdapter(t.adapter||am.adapter)(t).then(function(o){return lm(t),o.data=im.call(t,t.transformResponse,o),o.headers=ra.from(o.headers),o},function(o){return D3(o)||(lm(t),o&&o.response&&(o.response.data=im.call(t,t.transformResponse,o.response),o.response.headers=ra.from(o.response.headers))),Promise.reject(o)})}const eb="1.9.0",en={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{en[t]=function(a){return typeof a===t||"a"+(o<1?"n ":" ")+t}});const tb={};en.transitional=function(t,o,a){function i(s,r){return"[Axios v"+eb+"] Transitional option '"+s+"'"+r+(a?". "+a:"")}return(s,r,l)=>{if(t===!1)throw new xe(i(r," has been removed"+(o?" in "+o:"")),xe.ERR_DEPRECATED);return o&&!tb[r]&&(tb[r]=!0,console.warn(i(r," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(s,r,l):!0}},en.spelling=function(t){return(o,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function i_e(t,o,a){if(typeof t!="object")throw new xe("options must be an object",xe.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const r=i[s],l=o[r];if(l){const n=t[r],c=n===void 0||l(n,r,t);if(c!==!0)throw new xe("option "+r+" must be "+c,xe.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new xe("Unknown option "+r,xe.ERR_BAD_OPTION)}}const tn={assertOptions:i_e,validators:en},Ca=tn.validators;let an=class{constructor(t){this.defaults=t||{},this.interceptors={request:new M3,response:new M3}}async request(t,o){try{return await this._request(t,o)}catch(a){if(a instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
54
|
-
`+s):a.stack=s}catch{}}throw a}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=Bo(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:s}=o;a!==void 0&&tn.assertOptions(a,{silentJSONParsing:Ca.transitional(Ca.boolean),forcedJSONParsing:Ca.transitional(Ca.boolean),clarifyTimeoutError:Ca.transitional(Ca.boolean)},!1),i!=null&&(re.isFunction(i)?o.paramsSerializer={serialize:i}:tn.assertOptions(i,{encode:Ca.function,serialize:Ca.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),tn.assertOptions(o,{baseUrl:Ca.spelling("baseURL"),withXsrfToken:Ca.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=s&&re.merge(s.common,s[o.method]);s&&re.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),o.headers=ra.concat(r,s);const l=[];let n=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(o)===!1||(n=n&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,u=0,p;if(!n){const m=[Q3.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,c),p=m.length,d=Promise.resolve(o);u<p;)d=d.then(m[u++],m[u++]);return d}p=l.length;let y=o;for(u=0;u<p;){const m=l[u++],h=l[u++];try{y=m(y)}catch(f){h.call(this,f);break}}try{d=Q3.call(this,y)}catch(m){return Promise.reject(m)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=Bo(this.defaults,t);const o=W3(t.baseURL,t.url,t.allowAbsoluteUrls);return z3(o,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){an.prototype[t]=function(o,a){return this.request(Bo(a||{},{method:t,url:o,data:(a||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function o(a){return function(i,s,r){return this.request(Bo(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}an.prototype[t]=o(),an.prototype[t+"Form"]=o(!0)});const on=an,s_e=class S4{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{i.subscribe(n),r=n}).then(s);return l.cancel=function(){i.unsubscribe(r)},l},o(function(s,r,l){i.reason||(i.reason=new Si(s,r,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const o=new AbortController,a=i=>{o.abort(i)};return this.subscribe(a),o.signal.unsubscribe=()=>this.unsubscribe(a),o.signal}static source(){let o;return{token:new S4(function(a){o=a}),cancel:o}}};function r_e(t){return function(o){return t.apply(null,o)}}function l_e(t){return re.isObject(t)&&t.isAxiosError===!0}const nm={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(nm).forEach(([t,o])=>{nm[o]=t});const n_e=nm;function ab(t){const o=new on(t),a=_3(on.prototype.request,o);return re.extend(a,on.prototype,o,{allOwnKeys:!0}),re.extend(a,o,null,{allOwnKeys:!0}),a.create=function(i){return ab(Bo(t,i))},a}const at=ab(am);at.Axios=on,at.CanceledError=Si,at.CancelToken=s_e,at.isCancel=D3,at.VERSION=eb,at.toFormData=Jl,at.AxiosError=xe,at.Cancel=at.CanceledError,at.all=function(t){return Promise.all(t)},at.spread=r_e,at.isAxiosError=l_e,at.mergeConfig=Bo,at.AxiosHeaders=ra,at.formToJSON=t=>R3(re.isHTMLForm(t)?new FormData(t):t),at.getAdapter=X3.getAdapter,at.HttpStatusCode=n_e,at.default=at;const Fo=at,_i={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,o)=>1981+o).sort((t,o)=>o-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"}]},ob={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"},ib={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 sn(t){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},sn(t)}function Ta(t){if(t===null||t===!0||t===!1)return NaN;var o=Number(t);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function Ke(t,o){if(o.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+o.length+" present")}function Ue(t){Ke(1,arguments);var o=Object.prototype.toString.call(t);return t instanceof Date||sn(t)==="object"&&o==="[object Date]"?new Date(t.getTime()):typeof t=="number"||o==="[object Number]"?new Date(t):((typeof t=="string"||o==="[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 d_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ta(o);return isNaN(i)?new Date(NaN):(i&&a.setDate(a.getDate()+i),a)}function c_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ta(o);if(isNaN(i))return new Date(NaN);if(!i)return a;var s=a.getDate(),r=new Date(a.getTime());r.setMonth(a.getMonth()+i+1,0);var l=r.getDate();return s>=l?r:(a.setFullYear(r.getFullYear(),r.getMonth(),s),a)}function Vs(t,o){if(Ke(2,arguments),!o||sn(o)!=="object")return new Date(NaN);var a=o.years?Ta(o.years):0,i=o.months?Ta(o.months):0,s=o.weeks?Ta(o.weeks):0,r=o.days?Ta(o.days):0,l=o.hours?Ta(o.hours):0,n=o.minutes?Ta(o.minutes):0,c=o.seconds?Ta(o.seconds):0,d=Ue(t),u=i||a?c_e(d,i+a*12):d,p=r||s?d_e(u,r+s*7):u,y=n+l*60,m=c+y*60,h=m*1e3,f=new Date(p.getTime()+h);return f}function sb(t){var o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),t.getTime()-o.getTime()}function rb(t){Ke(1,arguments);var o=Ue(t);return o.setHours(0,0,0,0),o}var p_e=864e5;function m_e(t,o){Ke(2,arguments);var a=rb(t),i=rb(o),s=a.getTime()-sb(a),r=i.getTime()-sb(i);return Math.round((s-r)/p_e)}function Ci(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=a.getTime()-i.getTime();return s<0?-1:s>0?1:s}var u_e=6e4,f_e=36e5;function h_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=a.getFullYear()-i.getFullYear(),r=a.getMonth()-i.getMonth();return s*12+r}function y_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o);return a.getFullYear()-i.getFullYear()}function lb(t,o){var a=t.getFullYear()-o.getFullYear()||t.getMonth()-o.getMonth()||t.getDate()-o.getDate()||t.getHours()-o.getHours()||t.getMinutes()-o.getMinutes()||t.getSeconds()-o.getSeconds()||t.getMilliseconds()-o.getMilliseconds();return a<0?-1:a>0?1:a}function g_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=lb(a,i),r=Math.abs(m_e(a,i));a.setDate(a.getDate()-s*r);var l=+(lb(a,i)===-s),n=s*(r-l);return n===0?0:n}function dm(t,o){return Ke(2,arguments),Ue(t).getTime()-Ue(o).getTime()}var b_e={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},S_e="trunc";function cm(t){return b_e[S_e]}function __e(t,o,a){Ke(2,arguments);var i=dm(t,o)/f_e;return cm()(i)}function C_e(t,o,a){Ke(2,arguments);var i=dm(t,o)/u_e;return cm()(i)}function w_e(t){Ke(1,arguments);var o=Ue(t);return o.setHours(23,59,59,999),o}function k_e(t){Ke(1,arguments);var o=Ue(t),a=o.getMonth();return o.setFullYear(o.getFullYear(),a+1,0),o.setHours(23,59,59,999),o}function E_e(t){Ke(1,arguments);var o=Ue(t);return w_e(o).getTime()===k_e(o).getTime()}function V_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=Ci(a,i),r=Math.abs(h_e(a,i)),l;if(r<1)l=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*r);var n=Ci(a,i)===-s;E_e(Ue(t))&&r===1&&Ci(t,i)===1&&(n=!1),l=s*(r-Number(n))}return l===0?0:l}function x_e(t,o,a){Ke(2,arguments);var i=dm(t,o)/1e3;return cm()(i)}function N_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=Ci(a,i),r=Math.abs(y_e(a,i));a.setFullYear(1584),i.setFullYear(1584);var l=Ci(a,i)===-s,n=s*(r-Number(l));return n===0?0:n}function nb(t){return Ke(1,arguments),Ue(t).getFullYear()}function db(t){Ke(1,arguments);var o=Ue(t.start),a=Ue(t.end);if(isNaN(o.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(N_e(a,o));var s=Ci(a,o),r=Vs(o,{years:s*i.years});i.months=Math.abs(V_e(a,r));var l=Vs(r,{months:s*i.months});i.days=Math.abs(g_e(a,l));var n=Vs(l,{days:s*i.days});i.hours=Math.abs(__e(a,n));var c=Vs(n,{hours:s*i.hours});i.minutes=Math.abs(C_e(a,c));var d=Vs(c,{minutes:s*i.minutes});return i.seconds=Math.abs(x_e(a,d)),i}const T_e="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",B_e="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Po={..._i},cb=new Set([1]);async function F_e(t,o=""){try{const a={Authorization:o||T_e},i={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:B_e,s=await Fo.get(i+t.id,{headers:a});return s.data?s.data.players:[]}catch(a){return Promise.reject(a)}}async function P_e(t=[],o=""){try{const a=t.map(i=>F_e(i,o));if(a.length){const i=new Set,s=new Date,r=[],l=new Map,n=new Map,c=await Promise.all(a);for(const d of c)for(const u of d){const p=new Date(u.dob),y=nb(p),m=db({start:p,end:s});l.has(u.nationality_id)||l.set(u.nationality_id,{id:u.nationality_id,isSelected:!0,name:ob[`${u.nationality_id}`]}),n.has(u.position_id)||n.set(u.position_id,{id:u.position_id,isSelected:!0,name:ib[`${u.position_id}`]}),i.add(y),r.push(m.years)}return Po.minAge=Math.min(...r),Po.maxAge=Math.max(...r),Po.availableYears=[...i].sort((d,u)=>u-d),Po.nationalities=[...l.values()],Po.positions=[...n.values()],Po.isEligibilitySwitchVisible=t.some(d=>cb.has(d.tournamentId)),Po}else return null}catch(a){return Promise.reject(a)}}const $_e={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,i=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){i.value&&(i.value.checked=a.modelValue)}function r(l){o("update:modelValue",l.target.checked)}return e.onMounted(()=>{s()}),(l,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:i,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:r},null,544))}},xs=Ae($_e,[["__scopeId","data-v-e3a6ae4e"]]),$o=t=>(e.pushScopeId("data-v-cfc8bb98"),t=t(),e.popScopeId(),t),A_e={class:"personal-data"},I_e={class:"personal-data__age"},z_e={class:"personal-data__age__toggle"},M_e={class:"personal-data__age__range"},O_e={class:"personal-data__age__dropdown"},R_e=$o(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),L_e={class:"selected-item"},D_e=$o(()=>e.createElementVNode("div",{class:"separator"},null,-1)),v_e={class:"personal-data__nationality-position"},j_e={key:0,class:"personal-data__nationality-position__switch"},U_e=$o(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),W_e=$o(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),H_e={class:"personal-data__nationality-position__nationality"},G_e=$o(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),q_e={class:"selected-item"},J_e=$o(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Z_e={class:"selected-item"},Y_e={class:"personal-data__nationality-position__position"},K_e=$o(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),X_e={class:"selected-item"},Q_e="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",e8e={__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},isEligibilityVisible:{type:Boolean,default:!0},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:o,emit:a}){const i=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},r={id:0,name:"Todas las posiciones",isSelected:!1},l=e.ref({..._i}),n=e.ref(["Por edad","Por año"]),c=e.ref(0),d=e.ref({min:_i.minAge,max:_i.maxAge}),u=e.ref(ja),p=e.ref(""),y=e.ref(""),m=e.ref(l.value.availableYears[l.value.availableYears.length-1]),h=e.ref(0),f=e.computed(()=>{const k=l.value.nationalities?[...l.value.nationalities]:[];i.isSeleccion&&k.forEach(V=>{V.isSelected=V.id===138});const E=k[0];return(!E||E.id!==0)&&k.unshift(s),k}),g=e.computed(()=>{let k=(i.filter&&i.filter.positions?i.filter.positions:l.value.positions)?[...l.value.positions]:[];const E=k[0];return(!E||E.id!==0)&&k.unshift(r),k.sort((V,N)=>V.id-N.id),k}),b=e.computed(()=>i.isEligibilityVisible?i.season&&i.season.tournamentId&&cb.has(i.season.tournamentId)||i.filters&&i.filters.isEligibilitySwitchVisible:!1);e.watch(f,k=>{const E=k.reduce((V,N,Y)=>(Y!==0&&N.isSelected&&V++,V),0);E===f.value.length-1&&(k[0].isSelected=!0),k[0]&&k[0].isSelected?p.value="Todas las nacionalidades":p.value=`${E} seleccionadas`,P()},{immediate:!0,deep:!0}),e.watch(g,k=>{const E=k.reduce((V,N,Y)=>(Y!==0&&N.isSelected&&V++,V),0);E===g.value.length-1&&(k[0].isSelected=!0),k[0]&&k[0].isSelected?y.value="Todas las posiciones":y.value=`${E} seleccionadas`,P()},{immediate:!0,deep:!0}),e.watch(()=>i.filters,k=>{if(k&&k.availableYears){const E=!Number.isNaN(Number(k.selectedYear));l.value=k,c.value=l.value.selectedYear&&E?1:0,m.value=E?l.value.selectedYear:l.value.availableYears[0],d.value.min=l.value.minAge,d.value.max=l.value.maxAge,r.isSelected=k.positions.every(V=>V.isSelected),P()}},{immediate:!0,deep:!0}),e.watch(()=>l.value.isEligibilitySelected,()=>{P()}),e.watch(()=>i.season,k=>{k&&k.id!==h.value&&!i.awaitForFilters&&(h.value=k.id,S(k))},{immediate:!0,deep:!1});async function S(k){try{if(k&&k.id){const E=new Set,V=await v(k.id),N=new Date,Y=[],de=new Map,ue=new Map;V.forEach(C=>{const I=new Date(C.dob),U=nb(I),z=db({start:I,end:N});de.has(C.nationality_id)||de.set(C.nationality_id,{id:C.nationality_id,isSelected:!0,name:ob[`${C.nationality_id}`]}),ue.has(C.position_id)||ue.set(C.position_id,{id:C.position_id,isSelected:!0,name:ib[`${C.position_id}`]}),E.add(U),Y.push(z.years)}),l.value.minAge=Math.min(...Y),l.value.maxAge=Math.max(...Y),l.value.availableYears=[...E].sort((C,I)=>I-C),m.value=l.value.availableYears[0],l.value.nationalities=[...de.values()],l.value.positions=[...ue.values()],d.value.min=l.value.minAge,d.value.max=l.value.maxAge}}catch(E){throw new Error(E)}}function F(k=null){const E=!k||k===$e.All;(E||k===$e.NATIONALITY)&&f.value.forEach(V=>{V.isSelected=!0}),(E||k===$e.ELIGIBILITY)&&(l.value.isEligibilitySelected=!1),(E||k===$e.POSITION)&&g.value.forEach(V=>{V.isSelected=!0}),(E||k===$e.AGE_RANGE)&&(d.value.min=l.value.minAge,d.value.max=l.value.maxAge,c.value=0),(E||k===$e.YEAR)&&(m.value=i.isScouting?l.value.availableYears[l.value.availableYears.length-1]:l.value.availableYears[0],c.value=0),P()}async function v(k){try{const E={Authorization:localStorage.getItem("user_token")||i.token},V={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:Q_e,N=await Fo.get(V+k,{headers:E});return N.data?N.data.players:[]}catch(E){return Promise.reject(E)}}function T(k){c.value=k.index,i.filters&&i.filters.availableYears&&k.index===0&&(i.filters.selectedYear="Sin límite")}function M(k){d.value.min=k.minValue,d.value.max=k.maxValue,P()}function D(k,E){E.id===0?f.value.forEach(V=>{V.isSelected=k}):(E.isSelected=k,f.value[0].isSelected=f.value.every((V,N)=>N===0?!0:V.isSelected))}function P(){const k=c.value===0,E={};k?(E.ageByRange=d.value,E.ageLimits={min:l.value.minAge,max:l.value.maxAge}):E.year=m.value,l.value.isEligibilitySelected?E.eligibility=[...l.value.eligibility]:E.nationalities=f.value.reduce((V,N,Y)=>(Y!==0&&V.push({...N}),V),[]),E.positions=g.value.reduce((V,N,Y)=>(Y!==0&&V.push({...N}),V),[]),a("update:filters",E)}function Q(k,E){E.id===0?g.value.forEach(V=>{V.isSelected=k}):(E.isSelected=k,g.value[0].isSelected=g.value.every((V,N)=>N===0?!0:V.isSelected))}function O(k){m.value=k,i.filters&&(i.filters.selectedYear=k),P()}return o({onClearFilters:F}),(k,E)=>(e.openBlock(),e.createElementBlock("div",A_e,[e.createElementVNode("div",I_e,[e.createElementVNode("div",z_e,[e.createVNode(F6e,{"selected-button-index":c.value,buttons:n.value,width:"220px",onChange:T},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",M_e,[e.createVNode(e.unref(m3),{"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":l.value.minAge,"max-limit":l.value.maxAge,"min-value":d.value.min,"max-value":d.value.max,onInput:M},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",O_e,[R_e,e.createVNode(e.unref(ia),e.mergeProps({"model-value":m.value},u.value,{items:l.value.availableYears,onInput:O}),{default:e.withCtx(({selectedItem:V})=>[e.createElementVNode("div",L_e,e.toDisplayString(V),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,e.toDisplayString(V),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),D_e,e.createElementVNode("div",v_e,[b.value?(e.openBlock(),e.createElementBlock("div",j_e,[U_e,e.createVNode(xs,{modelValue:l.value.isEligibilitySelected,"onUpdate:modelValue":E[0]||(E[0]=V=>l.value.isEligibilitySelected=V)},null,8,["modelValue"]),W_e])):e.createCommentVNode("",!0),e.createElementVNode("div",H_e,[l.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[J_e,e.createVNode(e.unref(ia),e.mergeProps(u.value,{"is-multiple-option":"",items:l.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:V})=>[e.createElementVNode("div",Z_e,e.toDisplayString(V.name),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Fe),{"model-value":V.isSelected,label:V.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},[G_e,e.createVNode(e.unref(ia),e.mergeProps(u.value,{"is-multiple-option":"",items:f.value}),{default:e.withCtx(()=>[e.createElementVNode("div",q_e,e.toDisplayString(p.value),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Fe),{"model-value":V.isSelected,label:V.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":N=>D(N,V)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",Y_e,[K_e,e.createVNode(e.unref(ia),e.mergeProps(u.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",X_e,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(y.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(y.value),1)],64))])]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Fe),{"model-value":V.isSelected,label:t.isFemale?V.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):V.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":N=>Q(N,V)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},t8e=Ae(e8e,[["__scopeId","data-v-cfc8bb98"]]),a8e={class:"plays"},o8e={class:"plays__body__offensive"},i8e={class:"plays__body__title"},s8e={class:"number-of-categories"},r8e={class:"plays__body__categories"},l8e={class:"plays__body__defensive-possession-offenses"},n8e={class:"plays__body__title"},d8e={class:"number-of-categories"},c8e={class:"plays__body__categories"},p8e={class:"plays__body__title"},m8e={class:"number-of-categories"},u8e={class:"plays__body__categories"},f8e={class:"plays__body__title"},h8e={class:"number-of-categories"},y8e={class:"plays__body__categories"},g8e={__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 o=t,a=e.ref(!1),i=e.ref(!1),s=e.ref(!1),r=e.ref(!1),l=e.computed(()=>({"--template-columns":o.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>o.playsCategories.offensive.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),c=e.computed(()=>o.playsCategories.defensive.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),d=e.computed(()=>o.playsCategories.possession.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),u=e.computed(()=>o.playsCategories.offenses.categories.reduce((m,h)=>(h.isSelected&&m++,m),0));function p(m,h){h.isSelected=m}function y(m){m==="offensive"?a.value=!a.value:m==="defensive"?i.value=!i.value:m==="possession"?s.value=!s.value:m==="offenses"&&(r.value=!r.value)}return(m,h)=>(e.openBlock(),e.createElementBlock("div",a8e,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",o8e,[e.createElementVNode("div",i8e,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[0]||(h[0]=f=>y("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",s8e,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[1]||(h[1]=f=>y("offensive"))},[e.withDirectives(e.createVNode(xo,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",r8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Fe),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",l8e,[e.createElementVNode("div",n8e,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[2]||(h[2]=f=>y("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",d8e,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[3]||(h[3]=f=>y("defensive"))},[e.withDirectives(e.createVNode(xo,{"is-expanded":i.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",c8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Fe),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||i.value]]),e.createElementVNode("div",p8e,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[4]||(h[4]=f=>y("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",m8e,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[5]||(h[5]=f=>y("possession"))},[e.withDirectives(e.createVNode(xo,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",u8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Fe),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",f8e,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[6]||(h[6]=f=>y("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",h8e,"("+e.toDisplayString(u.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[7]||(h[7]=f=>y("offenses"))},[e.withDirectives(e.createVNode(xo,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",y8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Fe),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]])])],4)]))}},b8e=Ae(g8e,[["__scopeId","data-v-364e6cae"]]),S8e={class:"template-results"},_8e={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:o}){const a=t,i=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{o("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,r)=>(e.openBlock(),e.createElementBlock("div",S8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(l,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(Fe),{modelValue:l.isSelected,"onUpdate:modelValue":c=>l.isSelected=c,label:l.name,"avoid-interaction":i.value===1&&l.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},C8e=Ae(_8e,[["__scopeId","data-v-453e89c2"]]),w8e={__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:o}){const a=t,i=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(){o("click")}return(r,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(i.value),onClick:s},e.toDisplayString(t.text),7))}},Ns=Ae(w8e,[["__scopeId","data-v-9688933e"]]),k8e={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},pb={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},E8e={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},V8e={4:"OF",5:"Cf",6:"S",7:"F"};function pm(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const x8e={class:"dropdown"},N8e={class:"selected-item"},T8e={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",x8e,[e.createVNode(e.unref(ia),e.mergeProps(e.unref(ja),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",N8e,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),_:1},16,["is-list-same-width","items"])]))}},Ot=Ae(T8e,[["__scopeId","data-v-064d5f86"]]),B8e={class:"dropdown"},F8e={class:"game-item"},P8e={key:0,class:"item-game"},$8e={class:"match-day"},A8e={class:"team-logo"},I8e=["src"],z8e={class:"text"},M8e={class:"text score"},O8e={class:"text"},R8e={class:"team-logo"},L8e=["src"],D8e={class:"item-game"},v8e={class:"team-logo"},j8e=["src"],U8e={class:"text"},W8e={class:"text score"},H8e={class:"text"},G8e={class:"team-logo"},q8e=["src"],J8e={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",B8e,[e.createVNode(e.unref(ia),e.mergeProps(e.unref(ja),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",F8e,[r.homeTeam?(e.openBlock(),e.createElementBlock("div",P8e,[e.createElementVNode("div",$8e,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",A8e,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,I8e)]),e.createElementVNode("div",z8e,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",M8e,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",O8e,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",R8e,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,L8e)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",D8e,[e.createElementVNode("div",null,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",v8e,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,j8e)]),e.createElementVNode("div",U8e,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",W8e,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",H8e,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",G8e,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,q8e)])])]),_:1},16,["items"])]))}},rn=Ae(J8e,[["__scopeId","data-v-7883a91e"]]),ln=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),Z8e={class:"container"},Y8e={class:"container__row"},K8e={class:"container__row__wrapper"},X8e=ln(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Q8e={class:"container__row__wrapper__input"},e9e={class:"container__row two-items"},t9e={class:"container__row__wrapper"},a9e=ln(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),o9e={key:0,class:"container__row__wrapper__input"},i9e={class:"container__row__wrapper"},s9e=ln(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),r9e={key:0,class:"container__row__wrapper__input"},l9e={class:"container__row"},n9e={class:"container__row__wrapper"},d9e=ln(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),c9e={key:0,class:"container__row__wrapper__input"},p9e={class:"container__action"},m9e={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:o}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},i=e.ref(null),s=e.ref(null),r=e.ref(null),l=e.ref(null);function n(p){i.value=p,o("update:tournament",p)}function c(p){s.value=p,o("update:season",p)}function d(p){r.value=p}function u(p){l.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Z8e,[e.createElementVNode("div",Y8e,[e.createElementVNode("div",K8e,[X8e,e.createElementVNode("div",Q8e,[e.createVNode(Ot,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",e9e,[e.createElementVNode("div",t9e,[a9e,i.value&&i.value.seasons?(e.openBlock(),e.createElementBlock("div",o9e,[e.createVNode(Ot,{items:i.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",i9e,[s9e,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",r9e,[e.createVNode(Ot,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",l9e,[e.createElementVNode("div",n9e,[d9e,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",c9e,[e.createVNode(rn,{items:r.value.arrayGames,onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",p9e,[e.createVNode(Ns,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},u9e=Ae(m9e,[["__scopeId","data-v-b63e9c84"]]),f9e={class:"dropdown"},h9e={class:"item-team"},y9e={class:"team-logo"},g9e=["src"],b9e={class:"team-acronym"},S9e={class:"item-team"},_9e={class:"team-logo"},C9e=["src"],w9e={class:"team-acronym"},k9e={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",f9e,[e.createVNode(e.unref(ia),e.mergeProps(e.unref(ja),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",h9e,[e.createElementVNode("div",y9e,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,g9e)]),e.createElementVNode("div",b9e,e.toDisplayString(r.acronym),1)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",S9e,[e.createElementVNode("div",_9e,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,C9e)]),e.createElementVNode("div",w9e,e.toDisplayString(r.acronym),1)])]),_:1},16,["items"])]))}},mb=Ae(k9e,[["__scopeId","data-v-afd2bee8"]]),E9e={class:"advanced-filters"},V9e={class:"advanced-filters__buttons"},x9e=["onClick"],N9e={class:"advanced-filters__filters"},T9e={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const o=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>bqe)),i=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Mqe)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Rqe)),r=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:i}],l=e.ref(r[0]),n=e.computed(()=>o.selectedCategory?o.selectedCategory.subcategoryGroups||[]:[]);function c(d){l.value=d}return(d,u)=>(e.openBlock(),e.createElementBlock("div",E9e,[e.createElementVNode("div",V9e,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,p=>e.createElementVNode("div",{key:p.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:l.value.name===p.name}]),onClick:y=>c(p)},e.toDisplayString(p.name),11,x9e)),64))]),e.createElementVNode("div",N9e,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},mm=Ae(T9e,[["__scopeId","data-v-c62c5b9c"]]),Ao=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),B9e={class:"container"},F9e={class:"container__row"},P9e={class:"container__row__wrapper"},$9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),A9e={class:"container__row__wrapper__input"},I9e={class:"container__row two-items"},z9e={class:"container__row__wrapper"},M9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),O9e={key:0,class:"container__row__wrapper__input"},R9e={class:"container__row__wrapper"},L9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),D9e={key:0,class:"container__row__wrapper__input"},v9e={class:"container__row"},j9e={class:"container__row__wrapper"},U9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),W9e={key:0,class:"container__row__wrapper__input"},H9e={class:"container__row"},G9e={class:"container__row__wrapper"},q9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),J9e={key:0,class:"container__row__wrapper__input"},Z9e={class:"container__row type-and-advanced"},Y9e={class:"container__row__wrapper"},K9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),X9e={class:"container__row__wrapper__input"},Q9e={class:"container__row__wrapper center"},eCe=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),tCe={class:"container__row__wrapper__input"},aCe={class:"container__row"},oCe={class:"container__action"},iCe={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(null),u=e.ref(!0),p=e.computed(()=>c.value?c.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function y(S){s.value=S,o("update:tournament",S)}function m(S){r.value=S,o("update:season",S)}function h(S){n.value=S,o("update:team",S)}function f(S){c.value=S}function g(S){l.value=S}function b(S){d.value=S}return(S,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",B9e,[e.createElementVNode("div",F9e,[e.createElementVNode("div",P9e,[$9e,e.createElementVNode("div",A9e,[e.createVNode(Ot,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",I9e,[e.createElementVNode("div",z9e,[M9e,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",O9e,[e.createVNode(Ot,{items:s.value.seasons,itemTextKey:"name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",R9e,[L9e,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",D9e,[e.createVNode(mb,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",v9e,[e.createElementVNode("div",j9e,[U9e,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",W9e,[e.createVNode(Ot,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",H9e,[e.createElementVNode("div",G9e,[q9e,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",J9e,[e.createVNode(rn,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Z9e,[e.createElementVNode("div",Y9e,[K9e,e.createElementVNode("div",X9e,[e.createVNode(Ot,{items:p.value,itemTextKey:"name","is-list-same-width":!1,onInput:b},null,8,["items"])])]),e.createElementVNode("div",Q9e,[eCe,e.createElementVNode("div",tCe,[e.createVNode(xs,{modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=v=>u.value=v)},null,8,["modelValue"])])])]),e.createElementVNode("div",aCe,[e.createVNode(mm,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",oCe,[e.createVNode(Ns,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},sCe=Ae(iCe,[["__scopeId","data-v-575b26b5"]]),wi=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),rCe={class:"container"},lCe={class:"container__row"},nCe={class:"container__row__wrapper"},dCe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),cCe={class:"container__row__wrapper__input"},pCe={class:"container__row two-items"},mCe={class:"container__row__wrapper"},uCe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),fCe={key:0,class:"container__row__wrapper__input"},hCe={class:"container__row__wrapper"},yCe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),gCe={key:0,class:"container__row__wrapper__input"},bCe={class:"container__row"},SCe={class:"container__row__wrapper"},_Ce=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),CCe={key:0,class:"container__row__wrapper__input"},wCe={class:"container__row type-and-advanced"},kCe={class:"container__row__wrapper"},ECe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),VCe={class:"container__row__wrapper__input"},xCe={class:"container__row__wrapper center"},NCe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),TCe={class:"container__row__wrapper__input"},BCe={class:"container__row"},FCe={class:"container__action"},PCe={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.computed(()=>a.advancedFilterCategories.team);function p(g){s.value=g,o("update:tournament",g)}function y(g){r.value=g,o("update:season",g)}function m(g){n.value=g,o("update:team",g)}function h(g){l.value=g}function f(g){c.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",rCe,[e.createElementVNode("div",lCe,[e.createElementVNode("div",nCe,[dCe,e.createElementVNode("div",cCe,[e.createVNode(Ot,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",pCe,[e.createElementVNode("div",mCe,[uCe,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",fCe,[e.createVNode(Ot,{items:s.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",hCe,[yCe,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",gCe,[e.createVNode(mb,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",bCe,[e.createElementVNode("div",SCe,[_Ce,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",CCe,[e.createVNode(rn,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wCe,[e.createElementVNode("div",kCe,[ECe,e.createElementVNode("div",VCe,[e.createVNode(Ot,{items:u.value,itemTextKey:"name","is-list-same-width":!1,onInput:f},null,8,["items"])])]),e.createElementVNode("div",xCe,[NCe,e.createElementVNode("div",TCe,[e.createVNode(xs,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=S=>d.value=S)},null,8,["modelValue"])])])]),e.createElementVNode("div",BCe,[e.createVNode(mm,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",FCe,[e.createVNode(Ns,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},$Ce=Ae(PCe,[["__scopeId","data-v-6d73d5e6"]]),ki=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),ACe={class:"container"},ICe={class:"container__row"},zCe={class:"container__row__wrapper"},MCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),OCe={class:"container__row__wrapper__input"},RCe={class:"container__row two-items"},LCe={class:"container__row__wrapper"},DCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),vCe={key:0,class:"container__row__wrapper__input"},jCe={class:"container__row__wrapper"},UCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),WCe={key:0,class:"container__row__wrapper__input"},HCe={class:"container__row"},GCe={class:"container__row__wrapper"},qCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),JCe={key:0,class:"container__row__wrapper__input"},ZCe={class:"container__row type-and-advanced"},YCe={class:"container__row__wrapper"},KCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),XCe={class:"container__row__wrapper__input"},QCe={class:"container__row__wrapper center"},e7e=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),t7e={class:"container__row__wrapper__input",style:{width:"fit-content"}},a7e={class:"container__row"},o7e={class:"container__action"},i7e={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null),l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.computed(()=>a.advancedFilterCategories.games);function p(g){s.value=g,o("update:tournament",g)}function y(g){r.value=g,o("update:season",g)}function m(g){l.value=g}function h(g){n.value=g}function f(g){c.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ACe,[e.createElementVNode("div",ICe,[e.createElementVNode("div",zCe,[MCe,e.createElementVNode("div",OCe,[e.createVNode(Ot,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",RCe,[e.createElementVNode("div",LCe,[DCe,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",vCe,[e.createVNode(Ot,{items:s.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",jCe,[UCe,r.value&&r.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",WCe,[e.createVNode(Ot,{items:r.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",HCe,[e.createElementVNode("div",GCe,[qCe,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",JCe,[e.createVNode(rn,{items:l.value.arrayGames,onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ZCe,[e.createElementVNode("div",YCe,[KCe,e.createElementVNode("div",XCe,[e.createVNode(Ot,{items:u.value,itemTextKey:"name","is-list-same-width":!1,onInput:f},null,8,["items"])])]),e.createElementVNode("div",QCe,[e7e,e.createElementVNode("div",t7e,[e.createVNode(xs,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=S=>d.value=S)},null,8,["modelValue"])])])]),e.createElementVNode("div",a7e,[e.createVNode(mm,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",o7e,[e.createVNode(Ns,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},s7e=Ae(i7e,[["__scopeId","data-v-6e904db8"]]),r7e={class:"template-videos"},l7e={class:"template-videos__header"},n7e={class:"template-videos__body"},d7e=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:u9e,VideosPlayer:sCe,VideosTeam:$Ce,VideosGame:s7e}}),c7e=Object.assign(d7e,{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:o}){const a=t,i={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],r=["g-23","g-24","g-25"],l={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),d=e.ref([]),u=e.ref(c.value[0]),p=e.ref({}),y=e.ref({}),m=e.ref({}),h=e.ref({}),f=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const b=e.ref(null);e.watch(p,C=>{y.value.numberSeasonSelectedIndex=y.value.seasons.findIndex(I=>I.id===C.id),C.arrayMatchDays?(h.value=C.arrayMatchDays[0]||{},m.value=C.arrayTeams[0]||{}):(M(C),D(C))}),e.watch(m,()=>{setTimeout(()=>{p.value.mapPlayersByTeam&&(!m.value.arrayPlayers||!m.value.arrayPlayers.length)&&(m.value.arrayPlayers=p.value.mapPlayersByTeam.get(m.value.team_id))},700)});async function S(){try{d.value=await F()}catch(C){throw new Error(C)}}async function F(){try{const C={Authorization:pm()||a.token},I={}.API_TOURNAMENTS||a.tournamentsUrl,U=await Fo.get(I,{headers:C});return U.data?U.data.map(z=>({...z.tournament,seasons:z.seasons})):[]}catch(C){return Promise.reject(C)}}async function v(C,I,U=""){o("loading-data");let z=U;try{z||(z={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,C.forEach((H,w)=>{z+=`${w===0?"":"&"}seasons=${H}`}));const W={Authorization:pm()||a.token},{data:{data:ce,teams:j}}=await Fo.get(z,{headers:W});return{seasonsAndGames:ce,seasonsAndTeams:j}}catch(W){if(I>0)return v(C,I-1,z);throw new Error(W)}finally{o("loading-data")}}async function T(C){try{const I={Authorization:pm()||a.token},U=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${C.seasonId}`,z=await Fo.get(U,{headers:I});return z.data?z.data.players:[]}catch(I){return Promise.reject(I)}}async function M(C){try{const{seasonsAndGames:I,seasonsAndTeams:U}=await v([C.id,...C.related_seasons.map(j=>j.id)],3),z=U.find(j=>j._id===C.id);p.value.arrayTeams=[],p.value.mapTeams=new Map;const W=z.teams.reduce((j,H)=>(p.value.arrayTeams.push(H),p.value.mapTeams.set(H.team_id,{name:H.colloquial_name,acronym:H.acronym,logo:H.logo,id:H.team_id}),j.set(H.team_id,H),j),new Map);m.value=p.value.arrayTeams[0],p.value.mapGames=new Map,p.value.mapGamesByTeam=new Map;const ce=Array.from(I.reduce((j,H)=>(H.games.forEach(w=>{if(w.game_status===1&&w.has_video){(!p.value.maxGameId||w.game_id>p.value.maxGameId)&&(p.value.maxGameId=w.game_id);let G=w.matchday_abbreviation.replace("M","J"),$=w.matchday_abbreviation.replace("M","Jornada ");const J=w.matchday_abbreviation.replace("M","");H.season_type===0?y.value.tournament_type===1&&(w.seasonId===881?(G=V8e[J]||G,$=E8e[J]||$):(G=pb[w.matchday_abbreviation]?w.matchday_abbreviation:G,$=pb[w.matchday_abbreviation]||$,G==="FINAL"&&(G="F"))):H.season_type===1?(G=k8e[w.matchday_abbreviation],$=G):(G=w.matchday_abbreviation.replace("PO","R"),$="Repechaje"),w.roundAbbreviation=G,w.roundName=$,p.value.mapGames.set(w.game_id,{id:w.game_id,date:w.date,dateTimeMillis:new Date(w.date_time_utc).valueOf(),homeTeam:p.value.mapTeams.get(w.home_team),awayTeam:p.value.mapTeams.get(w.visiting_team),roundAbbreviation:w.roundAbbreviation,roundName:w.roundName,score:w.score,gameResult:w.score[0]>w.score[1]?1:w.score[0]<w.score[1]?2:3,seasonId:H.season_id});const fe=j.get(w.roundAbbreviation);w.numberDateTimeMillis=new Date(w.date_time_utc).getTime(),w.homeTeam=W.get(w.home_team),w.awayTeam=W.get(w.visiting_team);const ye=p.value.mapGamesByTeam.get(w.home_team),ge=p.value.mapGamesByTeam.get(w.visiting_team);ye?ye.push(w):p.value.mapGamesByTeam.set(w.home_team,[w]),ge?ge.push(w):p.value.mapGamesByTeam.set(w.visiting_team,[w]),fe?fe.arrayGames.push(w):j.set(w.roundAbbreviation,{stringMatchDayAbbreviation:w.roundAbbreviation,stringMatchDayName:w.roundName,arrayGames:[w]})}}),j),new Map).values());ce.reverse(),ce.forEach(j=>{j.arrayGames.sort((H,w)=>H.numberDateTimeMillis-w.numberDateTimeMillis)}),p.value.arrayMatchDays=ce,h.value=ce[0]||{}}catch(I){throw new Error(I)}}async function D(C){try{const I=await E(C.id);p.value.mapPlayers=new Map,p.value.mapPlayersByTeam=I.reduce((U,z)=>{p.value.mapPlayers.set(z.player_id,{id:z.player_id,name:z.player_name,shortName:z.shortName,photo:z.player_photo,teamId:z.team_id,positionId:z.position_id});const W=U.get(z.team_id);return W?W.push(z):U.set(z.team_id,[z]),U},new Map)}catch(I){throw new Error(I)}}async function P(){try{let C=[];f.value.isEmpty?(C=await V(),g.value={...C}):C=g.value;const I=[];if(C&&C.length){f.value=C.reduce((H,w)=>{if(w.group_id!=="g-55"){const G={idAux:w.group_id,ids:[...w.ids?w.ids:[],...w.rival_Ids?w.rival_Ids:[]],type:w.type,name:w.name,coordinatePoint:w.coordinate_point,requiresRivalTransform:r.includes(w.group_id)};G.idsAux=[...G.ids],G.subcategoryGroups=w.group_id==="g-12"?[]:Q(w,0,new Map,!1,{},G.idsAux),I.push(G),G.type.includes(n.player)&&H.player.push(G),G.type.includes(n.team)&&(G.idAux!=="g-2"&&H.games.push(G),H.team.push(G)),G.type.includes(n.goalkeeper)&&H.goalkeeper.push(G)}return H},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const U=new Map,z="Resumen",W="Todas sus jugadas",ce=f.value.player.reduce((H,w)=>{const G=O(w);return G.forEach($=>{U.set($,w.name)}),H.push(...G),H},[]),j=f.value.goalkeeper.reduce((H,w)=>{const G=O(w);return G.forEach($=>{U.set($,w.name)}),H.push(...G),H},[]);f.value.games.unshift({name:z,arrayCategoriesIds:l.games,booleanIsBestPlays:!0}),f.value.team.unshift({name:z,arrayCategoriesIds:l.team,booleanIsBestPlays:!0}),f.value.player.unshift({name:z,arrayCategoriesIds:l.player.regular,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:ce,booleanIsMinutesPlayed:!0}),f.value.goalkeeper.unshift({name:z,arrayCategoriesIds:l.player.goalkeeper,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:j,booleanIsMinutesPlayed:!0})}}catch(C){throw new Error(C)}}function Q(C,I=0,U=new Map,z=!1,W={},ce=[]){if(!C.group_id)return;let j=U.get(I);const H=z?`${C.id_category}_r`:C.id_category;C.id_category&&ce.push(C.id_category);let w={ids:[H],groupId:C.group_id,level:I,name:C.name,isSelected:!0,fatherCategories:I>0?[W]:[],idsByFatherCategory:{[C.category_father]:[H]}};if(I>0&&I===1&&(w.id=C.id_category),j&&I!==0){const G=C.group_id.charAt(C.group_id.length-1),$=j.find(J=>J.groupId.endsWith(G));$&&!s.includes(w.groupId)?(w=$,$.ids.push(H),$.fatherCategories.push(W),$.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(fe=>fe.groupId===w.groupId)||J.childCategories.push(w):J.childCategories=[w]}),$.idsByFatherCategory[C.category_father]?$.idsByFatherCategory[C.category_father].push(H):$.idsByFatherCategory[C.category_father]=[H]):(w.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(fe=>fe.groupId===w.groupId)||J.childCategories.push(w):J.childCategories=[w]}),j.push(w))}else I!==0&&(W.childCategories?W.childCategories.push(w):W.childCategories=[w],j=[w],U.set(I,j));if(C.categories&&C.categories.length?C.categories.forEach(G=>{Q(G,I+1,U,z,w,ce)}):C.rival_categories&&C.rival_categories.length&&C.rival_categories.forEach(G=>{Q(G,I+1,U,!0,w,ce)}),I===0)return Array.from(U.values())}function O(C){const I=C||C;if(I.booleanIsBestPlays)return I.arrayCategoriesIds;const U={total:[],toRemove:[]};if(I.subcategoryGroups&&I.subcategoryGroups.length?I.subcategoryGroups[0].forEach(z=>{k(z,null,U)}):(I.ids&&U.total.push(...I.ids),I.rival_ids&&I.rival_ids.forEach(z=>{U.total.push(`${z}_r`)})),U.total=U.total.reduce((z,W)=>(U.toRemove.includes(W)||z.push(W),z),[]),!C){const z=I.name.toLowerCase().includes("recibid");b.value.isRivalSubject=z,b.value.avoidCategorySingleName=z,b.value.coordinatePoint=I.coordinatePoint,b.value.requiresRivalTransform=I.requiresRivalTransform}return U.total}function k(C,I=[],U={total:[],toRemove:[]}){C.isSelected?C.childCategories?C.childCategories.forEach(z=>{const W=I?Object.entries(C.idsByFatherCategory).reduce((ce,[j,H])=>(I.includes(Number(j))&&H.forEach(w=>{typeof w=="string"&&w.endsWith("_r")?ce.push(Number(w.split("_")[0])):ce.push(w)}),ce),[]):[C.id];k(z,W,U)}):I?Object.entries(C.idsByFatherCategory).forEach(([z,W])=>{I.includes(Number(z))&&W.forEach(ce=>{U.total.push(ce)})}):C.level===1?Object.entries(C.idsByFatherCategory).forEach(([z,W])=>{W.forEach(ce=>{U.total.push(ce)})}):U.total.push(C.id):C.childCategories||C.ids.forEach(z=>{U.toRemove.push(z)})}async function E(C){try{const I=await T({seasonId:C});return I.forEach(U=>{const[z,W]=U.player_name.split(","),ce=z.split(" ");let j="";for(const H of ce)if(j+=` ${H}`,H.length>3)break;U.shortName=W&&z?`${W.trim().charAt(0)}.${j}`:""}),I}catch(I){return Promise.reject(I)}}async function V(){try{const C={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Fo.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:C})).data||[]}catch(C){return Promise.reject(C)}}function N(C){u.value=C}function Y(C){y.value=C,p.value=C.seasons[0]}function de(C){p.value=C}function ue(C){m.value=C}return S(),P(),(C,I)=>(e.openBlock(),e.createElementBlock("div",r7e,[e.createElementVNode("div",l7e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,U=>(e.openBlock(),e.createBlock(Ns,e.mergeProps({key:U.name},i,{text:U.name,"is-active":u.value.componentName===U.componentName,tournaments:d.value,onClick:z=>N(U)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",n7e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value.componentName),{tournaments:d.value,"advanced-filter-categories":f.value,"onUpdate:tournament":Y,"onUpdate:season":de,"onUpdate:team":ue},null,40,["tournaments","advanced-filter-categories"]))])]))}}),p7e=Ae(c7e,[["__scopeId","data-v-d6f7aec8"]]),ub=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"]]),m7e={class:"template-taken-corners"},u7e={class:"template-taken-corners__header"},f7e={class:"template-taken-corners__header__all"},h7e={class:"template-taken-corners__body"},y7e={class:"template-taken-corners__body__players"},g7e={class:"template-taken-corners__body__players__player__jersey"},b7e={class:"template-taken-corners__body__players__player__photo"},S7e={class:"template-taken-corners__body__players__player__photo__img"},_7e=["src"],C7e={class:"template-taken-corners__body__players__player__info"},w7e={class:"template-taken-corners__body__players__player__info__name"},k7e={class:"template-taken-corners__body__players__player__info__position"},E7e={class:"template-taken-corners__body__players__player__info__position__nationality"},V7e=["src"],x7e={class:"template-taken-corners__body__players__player__info__position__name"},N7e={class:"template-taken-corners__body__players__player__checkbox"},T7e={__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:o,emit:a}){const i=t,s=e.ref(!1),r=e.ref([]),l=e.computed(()=>i.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>r.value.reduce((f,g)=>g.isSelected?f+1:f,0));e.watch(()=>i.takenCornersFilters,f=>{r.value=f.map(g=>{const b={...g};return(g.isSelected===void 0||g.isSelected===null)&&(b.isSelected=!0),b})},{immediate:!0,deep:!0}),e.watch(n,f=>{s.value=f===r.value.length,a("change-filters-selected",f),a("update:filters",r.value)},{immediate:!0});function c(f){return`https://golstatsimages.blob.core.windows.net/flags/${f}.jpg`}function d(f){return`https://golstatsimages.blob.core.windows.net/players-profile/${f}.png`}function u(f){let g=!1;return f.split(" ").reduce((b,S)=>(g||(S.length>3?(b=S,g=!0):b+=`${S} `),b),"").trim()}function p(f){return`${u(f.last_name)}, ${f.first_name.trim()}`}function y(f){return i.isFemale?ub.get(f.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):ub.get(f.positions[0])}function m(f){f?r.value.forEach(g=>{g.isSelected=!0}):r.value.forEach((g,b)=>{g.isSelected=b===0})}function h(){r.value.forEach(f=>{f.isSelected=!0})}return o({clearFilters:h}),(f,g)=>(e.openBlock(),e.createElementBlock("div",m7e,[e.createElementVNode("div",u7e,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(l.value),5),e.createElementVNode("div",f7e,[e.createVNode(e.unref(Fe),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":m},null,8,["model-value"])])]),e.createElementVNode("div",h7e,[e.createElementVNode("div",y7e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,b=>(e.openBlock(),e.createElementBlock("div",{key:b.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",g7e,e.toDisplayString(b.jersey),1),e.createElementVNode("div",b7e,[e.createElementVNode("div",S7e,[e.createElementVNode("img",{src:d(b.player_id),alt:"player photo",width:"36",height:"36"},null,8,_7e)])]),e.createElementVNode("div",C7e,[e.createElementVNode("div",w7e,e.toDisplayString(p(b)),1),e.createElementVNode("div",k7e,[e.createElementVNode("div",E7e,[e.createElementVNode("img",{src:c(b.nationality_id),alt:"country flag"},null,8,V7e)]),e.createElementVNode("div",x7e,e.toDisplayString(y(b)),1)])]),e.createElementVNode("div",N7e,[e.createVNode(e.unref(Fe),{modelValue:b.isSelected,"onUpdate:modelValue":S=>b.isSelected=S,"avoid-interaction":n.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},B7e=Ae(T7e,[["__scopeId","data-v-763fcc54"]]),um={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]}]},fm=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),F7e={class:"template-how-was-corner"},P7e={class:"template-how-was-corner__header"},$7e=fm(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),A7e={class:"template-how-was-corner__header__radio-input"},I7e={class:"template-how-was-corner__header__radio-input__radio"},z7e=fm(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),M7e={class:"template-how-was-corner__header__radio-input"},O7e={class:"template-how-was-corner__header__radio-input__radio"},R7e=fm(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),L7e=["onClick"],D7e={class:"template-how-was-corner__content__corner-type__img"},v7e=["src","alt"],j7e={class:"template-how-was-corner__content__corner-type__info"},U7e={class:"template-how-was-corner__content__corner-type__info__title"},W7e={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>um},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:o}){const a=t,i=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),r=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>i.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{o("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((c,d)=>d.isSelected?c+1:c,0)),i.value=n.cornerType,o("update:filters",n)},{deep:!0,immediate:!0});function l(n){n.isSelected&&r.value===1||(n.isSelected=!n.isSelected)}return(n,c)=>(e.openBlock(),e.createElementBlock("div",F7e,[e.createElementVNode("div",P7e,[$7e,e.createElementVNode("div",A7e,[e.createElementVNode("div",I7e,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d)},null,512),[[e.vModelRadio,i.value]]),z7e])]),e.createElementVNode("div",M7e,[e.createElementVNode("div",O7e,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=d=>i.value=d)},null,512),[[e.vModelRadio,i.value]]),R7e])])]),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,(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":d.isSelected}]),onClick:p=>l(d)},[e.createElementVNode("div",D7e,[e.createElementVNode("img",{src:d.imgSrc,alt:d.title},null,8,v7e)]),e.createElementVNode("div",j7e,[e.createElementVNode("div",U7e,e.toDisplayString(d.title),1)])],10,L7e))),128))],2)]))}},H7e=Ae(W7e,[["__scopeId","data-v-b7e3b8e0"]]),Ts=[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],Ua=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),G7e={class:"template-zone"},q7e={class:"controls-zone-container"},J7e={class:"controls-zone-container-title-checkcon"},Z7e={class:"controls-zone-container-title-checkcon-check"},Y7e={class:"gsc-field-img-container"},K7e={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X7e=["fill"],Q7e=["fill"],ewe=["fill"],twe=["fill"],awe=["fill"],owe=["fill"],iwe=["fill"],swe=["fill"],rwe=["fill"],lwe=["fill"],nwe=["fill"],dwe=["fill"],cwe=["fill"],pwe=["fill"],mwe=["fill"],uwe=["fill"],fwe=["fill"],hwe=["fill"],ywe=["fill"],gwe=["fill"],bwe=["fill"],Swe=["fill"],_we=["fill"],Cwe=["fill"],wwe=["fill"],kwe=["fill"],Ewe=["fill"],Vwe=["fill"],xwe=["fill"],Nwe=["fill"],Twe=["fill"],Bwe=["fill"],Fwe=["fill"],Pwe=["fill"],$we=["fill"],Awe=Ua(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),Iwe=Ua(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),zwe=["id"],Mwe=Ua(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),Owe=[Mwe],Rwe=["mask"],Lwe=Ua(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),Dwe=[Lwe],vwe=Ua(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),jwe=Ua(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),Uwe={class:"template-zone__total-corners"},Wwe=Ua(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),Hwe=Ua(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),Gwe=[Wwe,Hwe],qwe={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ts]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(!0),r=e.ref([]),l=e.computed(()=>new Date().getTime());e.watch(r,u=>{s.value=u.length===35}),e.watch(()=>i.zoneFilters,u=>{r.value=u},{immediate:!0,deep:!0}),e.watch(()=>r.value,u=>{a("update:filters",u),a("change-filters-selected",u.length)},{deep:!0});function n(u){u?(r.value=Ts,s.value=!0):(r.value=[],s.value=!1)}function c(u){r.value.includes(u)?r.value=r.value.filter(p=>p!==u):r.value.push(u),s.value=r.value.length===35}function d(){r.value=[...Ts]}return o({clearFilters:d}),(u,p)=>(e.openBlock(),e.createElementBlock("div",G7e,[e.createElementVNode("div",q7e,[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",J7e,[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",Z7e,[e.createVNode(e.unref(Fe),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",Y7e,[(e.openBlock(),e.createElementBlock("svg",K7e,[e.createElementVNode("rect",{onClick:p[0]||(p[0]=y=>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:r.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,X7e),e.createElementVNode("rect",{onClick:p[1]||(p[1]=y=>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:r.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,Q7e),e.createElementVNode("rect",{onClick:p[2]||(p[2]=y=>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:r.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,ewe),e.createElementVNode("rect",{onClick:p[3]||(p[3]=y=>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:r.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,twe),e.createElementVNode("rect",{onClick:p[4]||(p[4]=y=>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:r.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,awe),e.createElementVNode("rect",{onClick:p[5]||(p[5]=y=>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:r.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,owe),e.createElementVNode("rect",{onClick:p[6]||(p[6]=y=>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:r.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,iwe),e.createElementVNode("rect",{onClick:p[7]||(p[7]=y=>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:r.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,swe),e.createElementVNode("rect",{onClick:p[8]||(p[8]=y=>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:r.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,rwe),e.createElementVNode("rect",{onClick:p[9]||(p[9]=y=>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:r.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,lwe),e.createElementVNode("rect",{onClick:p[10]||(p[10]=y=>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:r.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,nwe),e.createElementVNode("rect",{onClick:p[11]||(p[11]=y=>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:r.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,dwe),e.createElementVNode("rect",{onClick:p[12]||(p[12]=y=>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:r.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,cwe),e.createElementVNode("rect",{onClick:p[13]||(p[13]=y=>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:r.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,pwe),e.createElementVNode("rect",{onClick:p[14]||(p[14]=y=>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:r.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,mwe),e.createElementVNode("rect",{onClick:p[15]||(p[15]=y=>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:r.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,uwe),e.createElementVNode("rect",{onClick:p[16]||(p[16]=y=>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:r.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,fwe),e.createElementVNode("rect",{onClick:p[17]||(p[17]=y=>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:r.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,hwe),e.createElementVNode("rect",{onClick:p[18]||(p[18]=y=>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:r.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,ywe),e.createElementVNode("rect",{onClick:p[19]||(p[19]=y=>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:r.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,gwe),e.createElementVNode("rect",{onClick:p[20]||(p[20]=y=>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:r.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,bwe),e.createElementVNode("rect",{onClick:p[21]||(p[21]=y=>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:r.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,Swe),e.createElementVNode("rect",{onClick:p[22]||(p[22]=y=>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:r.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,_we),e.createElementVNode("rect",{onClick:p[23]||(p[23]=y=>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:r.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,Cwe),e.createElementVNode("rect",{onClick:p[24]||(p[24]=y=>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:r.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,wwe),e.createElementVNode("rect",{onClick:p[25]||(p[25]=y=>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:r.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,kwe),e.createElementVNode("rect",{onClick:p[26]||(p[26]=y=>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:r.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,Ewe),e.createElementVNode("rect",{onClick:p[27]||(p[27]=y=>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:r.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,Vwe),e.createElementVNode("rect",{onClick:p[28]||(p[28]=y=>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:r.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,xwe),e.createElementVNode("rect",{onClick:p[29]||(p[29]=y=>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:r.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,Nwe),e.createElementVNode("rect",{onClick:p[30]||(p[30]=y=>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:r.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,Twe),e.createElementVNode("rect",{onClick:p[31]||(p[31]=y=>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:r.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,Bwe),e.createElementVNode("rect",{onClick:p[32]||(p[32]=y=>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:r.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,Fwe),e.createElementVNode("rect",{onClick:p[33]||(p[33]=y=>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:r.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,Pwe),e.createElementVNode("rect",{onClick:p[34]||(p[34]=y=>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:r.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,$we),Awe,Iwe,e.createElementVNode("mask",{id:l.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},Owe,8,zwe),e.createElementVNode("g",{mask:`url(#${l.value})`},Dwe,8,Rwe),vwe,jwe]))]),e.withDirectives(e.createElementVNode("div",Uwe,Gwe,512),[[e.vShow,!1]])]))}},Jwe=Ae(qwe,[["__scopeId","data-v-378bf7e2"]]),hm=[{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]}],Zwe={class:"what-happened"},Ywe={class:"what-happened__all"},Kwe={class:"what-happened__filters"},Xwe={key:0,class:"what-happened__filters__filter__composed"},Qwe={class:"what-happened__filters__filter__composed__main"},eke={key:1,class:"what-happened__filters__filter__single"},tke={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...hm]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t,s=e.computed(()=>i.whatHappenedFilters.reduce((m,h)=>(h.child?h.child.forEach(f=>{f.isSelected&&m++}):h.isSelected&&m++,m),0)),r=e.computed(()=>i.whatHappenedFilters.reduce((m,h)=>(h.child?m+=h.child.length:m++,m),0)),l=e.computed(()=>s.value===r.value),n=e.computed(()=>s.value===1);e.watch(()=>i.whatHappenedFilters,m=>{a("change-filters-selected",s.value),a("update:filters",m)},{deep:!0,immediate:!0});function c(m){i.whatHappenedFilters.forEach(h=>{m?(h.isSelected=m,h.child&&h.child.forEach(f=>{f.isSelected=m})):h.child?(h.isSelected=!0,h.child.forEach(f=>{f.isSelected=!0})):h.isSelected=!1})}function d(m,h){h.isSelected=m,h.child.forEach(f=>{f.isSelected=m})}function u(m,h,f){f.isSelected=m,h.isSelected=h.child.every(g=>g.isSelected)}function p(m,h){h.isSelected=m}function y(){i.whatHappenedFilters.forEach(m=>{m.child?m.child.forEach(h=>{h.isSelected=!0}):m.isSelected=!0})}return o({onResetFilters:y}),(m,h)=>(e.openBlock(),e.createElementBlock("div",Zwe,[e.createElementVNode("div",Ywe,[e.createVNode(e.unref(Fe),{label:"Todos","model-value":l.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",Kwe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(f,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[f.child?(e.openBlock(),e.createElementBlock("div",Xwe,[e.createElementVNode("div",Qwe,[e.createVNode(e.unref(Fe),{"model-value":f.isSelected,label:t.isFemale?f.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):f.text,"avoid-interaction":n.value&&f.isSelected,"onUpdate:modelValue":b=>d(b,f)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.child,(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`c${S}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(Fe),{"model-value":b.isSelected,label:t.isFemale?b.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):b.text,"avoid-interaction":n.value&&b.isSelected,"onUpdate:modelValue":F=>u(F,f,b)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",eke,[e.createVNode(e.unref(Fe),{"model-value":f.isSelected,label:t.isFemale?f.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):f.text,"avoid-interaction":n.value&&f.isSelected,"onUpdate:modelValue":b=>p(b,f)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},ake=Ae(tke,[["__scopeId","data-v-8f375a1a"]]),ym={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}]}},fb=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),oke={class:"template-results"},ike={class:"template-results__type-switch"},ske=fb(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),rke=fb(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),lke={class:"template-results__info"},nke={key:0,class:"template-results__group"},dke={key:1,class:"template-results__group"},cke={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...ym})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(null),r=e.computed(()=>{const c=s.value.isMoment?s.value.results.moment.filter(d=>d.isSelected).length:s.value.results.final.filter(d=>d.isSelected).length;return a("change-filters-selected",c),c}),l=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>i.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 o({removeFilters:n}),(c,d)=>(e.openBlock(),e.createElementBlock("div",oke,[e.withDirectives(e.createElementVNode("div",ike,[ske,e.createVNode(xs,{modelValue:s.value.isMoment,"onUpdate:modelValue":d[0]||(d[0]=u=>s.value.isMoment=u)},null,8,["modelValue"]),rke],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",lke,e.toDisplayString(l.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",nke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Fe),{modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name,"avoid-interaction":r.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",dke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Fe),{modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name,"avoid-interaction":r.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},pke=Ae(cke,[["__scopeId","data-v-ee3b28d3"]]),mke={class:"years"},uke=["onClick"],fke={__name:"TemplateYears",props:{years:{type:Array,default:()=>[]}},emits:["change-year"],setup(t,{emit:o}){function a(i){o("change-year",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",mke,[e.createVNode(gi,{height:"200px"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"item",style:{padding:"5px 10px"},onClick:s[0]||(s[0]=r=>a(0))},"Sin límite"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.years,(r,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"item",style:{padding:"5px 10px"},onClick:n=>a(r)},e.toDisplayString(r),9,uke))),128))]),_:1})]))}},hke=Ae(fke,[["__scopeId","data-v-90979ff5"]]),yke={class:"positions"},gke={__name:"TemplatePositions",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"}]},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-positions"],setup(t,{emit:o}){const a=t,i={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),r=e.computed(()=>{let n=a.positions&&a.positions.length?[...a.positions]:[];const c=n[0];return(!c||c.id!==0)&&n.unshift(i),n.sort((d,u)=>d.id-u.id),n});e.watch(r,n=>{const c=n.filter(d=>d.isSelected);c.length===r.value.length-1&&(n[0].isSelected=!0),n[0]&&n[0].isSelected?s.value="Todas las posiciones":c.length===1?s.value=c[0].name:s.value=`${c.length} seleccionadas`,o("change-positions",n)},{immediate:!0,deep:!0});function l(n,c){c.id===0?r.value.forEach(d=>{d.isSelected=n}):(c.isSelected=n,r.value[0].isSelected=r.value.every((d,u)=>u===0?!0:d.isSelected))}return(n,c)=>(e.openBlock(),e.createElementBlock("div",yke,[e.createVNode(gi,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,style:{padding:"5px 0"}},[e.createVNode(e.unref(Fe),{"model-value":d.isSelected,label:t.isFemale?d.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):d.name,"font-family":t.fontFamily,width:"100%","onUpdate:modelValue":p=>l(p,d)},null,8,["model-value","label","font-family","onUpdate:modelValue"])]))),128))]),_:1})]))}},bke={class:"nationalities"},Ske={__name:"TemplateNationalities",props:{nationalities:{type:Array,default:()=>[{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"}]},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-nationalities"],setup(t,{emit:o}){const a=t,i={id:0,name:"Todas las nacionalidades",isSelected:!1},s=e.ref(""),r=e.computed(()=>{let n=a.nationalities&&a.nationalities.length?[...a.nationalities]:[],c=[];const d=n.find(y=>y.id===138),u=n.find(y=>y.id===0),p=n.filter(y=>y.id!==138);return p.sort((y,m)=>y.name.localeCompare(m.name)),d&&(c=[d,...p]),u||(c=[i,...c]),c});e.watch(r,n=>{const c=n.filter(u=>u.isSelected);c.length===r.value.length-1&&(n[0].isSelected=!0),n[0]&&n[0].isSelected?s.value="Todas las posiciones":c.length===1?s.value=c[0].name:s.value=`${c.length} seleccionadas`;const d=n.filter(u=>u.id!==0&&u.isSelected);o("change-nationality",d)},{immediate:!0,deep:!0});function l(n,c){c.id===0?r.value.forEach(d=>{n?d.isSelected=n:d.isSelected=d.id===138}):(c.isSelected=n,r.value[0].isSelected=r.value.every((d,u)=>u===0?!0:d.isSelected))}return(n,c)=>(e.openBlock(),e.createElementBlock("div",bke,[e.createVNode(gi,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,style:{padding:"5px 0"}},[e.createVNode(e.unref(Fe),{"model-value":d.isSelected,label:d.name,"font-family":t.fontFamily,width:"100%","onUpdate:modelValue":p=>l(p,d)},null,8,["model-value","label","font-family","onUpdate:modelValue"])]))),128))]),_:1})]))}},_ke=t=>(e.pushScopeId("data-v-ed1a65e4"),t=t(),e.popScopeId(),t),Cke={class:"teams"},wke=_ke(()=>e.createElementVNode("div",{class:"teams__header"},[e.createTextVNode(" No considerar partidos jugados vs "),e.createElementVNode("div",{class:"vertical-separator"})],-1)),kke={class:"team-logo"},Eke=["src","alt"],Vke={class:"team-name"},xke={__name:"TemplateTeams",props:{seasonsIds:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t;e.ref(!1);const s=e.ref([]);e.computed(()=>s.value.filter(d=>d.isSelected).length),e.watch(()=>i.seasonsIds,async d=>{if(d)try{await r()}catch(u){console.error("Error fetching teams:",u)}},{immediate:!0}),e.watch(()=>s.value,d=>{const u=d.filter(p=>p.isSelected);a("change-filters-selected",u.length),a("update:filters",u)},{immediate:!0,deep:!0});async function r(){const d=new Set,u=[],p=i.seasonsIds.map(y=>l({seasonId:y}));(await Promise.all(p)).forEach(y=>{y.teams.forEach(m=>{d.has(m.id||m.team_id)||(d.add(m.id||m.team_id),u.push({...m,isSelected:!1}))})}),s.value=u}async function l({seasonId:d}){try{const u=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${d}`;return(await fetch(u,{headers:{Authorization:i.token}})).json()}catch(u){return Promise.reject(u)}}function n(d,u){u.isSelected=d}function c(){s.value.forEach(d=>{d.isSelected=!1})}return o({clearSelectedTeams:c}),(d,u)=>(e.openBlock(),e.createElementBlock("div",Cke,[wke,e.createVNode(gi,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id||p.team_id,class:"teams__team"},[e.createVNode(e.unref(Fe),{"model-value":p.isSelected,fontFamily:t.fontFamily,width:"fit-content","onUpdate:modelValue":y=>n(y,p)},null,8,["model-value","fontFamily","onUpdate:modelValue"]),e.createElementVNode("div",kke,[e.createElementVNode("img",{src:p.logo,alt:p.colloquial_name,width:"24",height:"24"},null,8,Eke)]),e.createElementVNode("div",Vke,e.toDisplayString(p.colloquial_name),1)]))),128))]),_:1})]))}},Nke=Ae(xke,[["__scopeId","data-v-ed1a65e4"]]),Tke={key:0,class:"productivity__header__text"},Bke={key:0},Fke={key:1},Pke={key:2},$ke={key:3},Ake={key:1,class:"productivity__header__checkbox"},Ike={class:"templates__body"},zke={key:0,class:"templates-plays"},Mke={key:1,class:"templates-productivity"},Oke={key:2,class:"template-field"},Rke={key:3,class:"template-details"},Lke={key:4,class:"template-personal-data"},Dke={key:5,class:"template-leagues"},vke={key:6,class:"template-teams"},jke={key:7,class:"template-plays"},Uke={key:8,class:"template-plays"},Wke={key:9,class:"template-universe"},Hke={key:10,class:"template-distance"},Gke={key:11,class:"template-results"},qke={key:12,class:"template-results-by-type"},Jke={key:13,class:"template-games"},Zke={key:14,class:"template-taken-corners"},Yke={key:15,class:"template-videos"},Kke={key:16,class:"template-how-was-corner"},Xke={key:17,class:"template-zone"},Qke={key:18,class:"template-what-happened"},eEe={key:19,class:"template-position"},tEe={key:20,class:"template-year"},aEe={key:21,class:"template-nationalities"},oEe={key:1,class:"templates__footer"},iEe={class:"templates__footer__button"},sEe={class:"templates__footer__button"},rEe={__name:"GSC-FilterTemplates",props:{universeDefaultMonthIndex:{type:Number,default:5},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},tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+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},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},isEligibilityVisible:{type:Boolean,default:!0},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"}]},years:{type:Array,default:()=>Array.from({length:30},(t,o)=>1981+o).sort((t,o)=>o-t)},nationalities:{type:Array,default:()=>[{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"}]},seasonsIds:{type:Array,default:()=>[]}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters","click-parameters"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(null),r=e.ref(null),l=e.ref(!1),n=e.ref({playingAs:i.playingAs,gameSections:i.gameSections,statisticType:i.statisticType}),c=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),d=e.ref(null),u=e.ref(null),p=e.ref(null),y=e.ref(null),m=e.ref(null),h=e.computed(()=>({"--width":i.width,"--max-width":i.maxWidth,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.borderColor,"--border-width":i.borderWidth,"--box-shadow":i.boxShadow,"--padding":i.filterType!==R.VIDEOS?i.isExpansionMode?"10px 0":i.padding:"0","--footer-border-color":i.footerBorderColor,"--footer-border-width":i.footerBorderWidth,"--text-color":i.textColor})),f=e.computed(()=>{const x=[];return Array.isArray(i.productivityCategories)?i.productivityCategories.forEach(_=>{x.push(_)}):i.productivityCategories&&Object.values(i.productivityCategories).forEach(_=>{_.categories&&_.categories.forEach(B=>{x.push(B)})}),x}),g=e.computed(()=>{const x=[];return i.playsCategories&&Object.values(i.playsCategories).forEach(_=>{_.categories&&_.categories.forEach(B=>{x.push(B)})}),x}),b=e.computed(()=>{const x=f.value.filter(_=>_.isSelected);return T(x),i.filterType===R.PRODUCTIVITY&&a("change-categories-selected",x.length),x.length}),S=e.computed(()=>!i.isForTemplateForm&&b.value>=i.productivityMaxCategories),F=e.computed(()=>!i.isForTemplateForm&&b.value<=i.productivityMinCategories),v=e.computed(()=>i.isPlayingAsHidden?i.gameSections:i.playingAs.concat(i.gameSections));e.watch(n,x=>{i.filterType===R.DETAILS&&a("update:filters",x)},{immediate:!0,deep:!0}),e.watch(()=>v.value,x=>{if(i.filterType===R.DETAILS){const _=x.filter(B=>B.isSelected);a("change-filters-selected",_.length)}},{immediate:!0,deep:!0}),e.watch(()=>i.playsGolstatsCategories,x=>{if(i.filterType===R.PLAYS_TYPES||i.filterType===R.GOLSTATS){const _=x.filter(B=>B.isSelected);a("change-filters-selected",_.length)}},{immediate:!0}),e.watch(()=>i.fieldAreas,x=>{i.filterType===R.FIELD&&a("change-filters-selected",x.length)}),e.watch(g,()=>{i.filterType===R.PLAYS&&V()},{immediate:!0,deep:!0}),e.watch(f,()=>{i.filterType===R.PRODUCTIVITY&&N()},{immediate:!0,deep:!0}),e.watch(()=>i.resultsFilters,x=>{i.filterType===R.RESULTS&&a("change-filters-selected",x.results.filter(_=>_.isSelected).length)},{immediate:!0,deep:!0});function T(x){setTimeout(()=>{x.sort((_,B)=>_.priority-B.priority),x.forEach((_,B)=>{_.priority=B+1})},10)}function M(x=null){D(x)}function D(x=null){i.filterType===R.PRODUCTIVITY?f.value.forEach(_=>{_.isSelected=_.isDefault||!1}):i.filterType===R.PLAYS?(g.value.forEach(_=>{_.isSelected=!0}),l.value=!0):i.filterType===R.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):i.filterType===R.DETAILS?(i.playingAs.forEach(_=>{_.isSelected=!0}),i.gameSections.forEach(_=>{_.isSelected=!0})):i.filterType===R.TOURNAMENTS?(i.tournaments.forEach((_,B)=>{i.isOneTournamentOnly?_.isSelected=B===0:_.isSelected=!0}),a("change-filters-selected",0)):i.filterType===R.PLAYS_TYPES?i.playsGolstatsCategories.forEach(_=>{_.isSelected=!0}):i.filterType===R.GOLSTATS?i.playsGolstatsCategories.forEach(_=>{_.isSelected=!1}):i.filterType===R.UNIVERSE?d.value&&d.value.resetFilters():i.filterType===R.PERSONAL_DATA?(r.value&&r.value.onClearFilters(x||$e.All),a("change-personal-data-filters",{})):i.filterType===R.DISTANCE?a("update:filters",{minValue:i.distanceFilters.minLimit,maxValue:i.distanceFilters.maxLimit}):i.filterType===R.RESULTS?a("update:filters",{results:i.resultsFilters.results.map(_=>(_.isSelected=!0,_))}):i.filterType===R.RESULTS_BY_TIME?m.value&&m.value.removeFilters():i.filterType===R.GAMES?i.gamesFilters.forEach(_=>{_.isSelected=!0}):i.filterType===R.TAKEN_CORNERS?u.value.clearFilters():i.filterType===R.HOW_WAS_CORNER?(i.howWasCornerFilters.left.forEach(_=>{_.isSelected=!0}),i.howWasCornerFilters.right.forEach(_=>{_.isSelected=!0})):i.filterType===R.ZONE?p.value&&p.value.clearFilters():i.filterType===R.WHAT_HAPPENED?y.value&&y.value.onResetFilters():i.filterType===R.NATIONALITIES?i.nationalities.forEach(_=>{_.isSelected=!0}):i.filterType===R.TEAMS&&s.value&&s.value.clearSelectedTeams()}function P(x){i.filterType===R.UNIVERSE&&a("change-universe-filters",x)}function Q(x){i.filterType===R.FIELD&&a("change-field-areas",x)}function O(x){i.filterType===R.GOLSTATS&&a("change-filters-selected",x)}function k(x){a("change-filters-selected",x)}function E(x){i.filterType===R.PRODUCTIVITY?f.value.forEach(_=>{_.isSelected=x}):(l.value=x,i.playsCategories.offensive.categories.forEach(_=>{_.isSelected=x}),i.playsCategories.defensive.categories.forEach(_=>{_.isSelected=x}),i.playsCategories.possession.categories.forEach(_=>{_.isSelected=x}),i.playsCategories.offenses.categories.forEach(_=>{_.isSelected=x}))}function V(){let x=0;const _={playsCategories:g.value.filter(B=>B.isSelected)};l.value=_.playsCategories.length===g.value.length,x=_.playsCategories.length,Object.values(c.value).forEach(B=>{B&&x++}),a("change-filters-selected",x),a("update:filters",_)}function N(){let x=0;const _={productivityFilters:f.value.filter(B=>B.isSelected),offensesConditions:c.value};x=_.productivityFilters.length,Object.values(c.value).forEach(B=>{B&&x++}),a("change-filters-selected",x),a("update:filters",_)}function Y(x){a("click-parameters",x)}function de(){a("apply")}function ue(){(i.filterType===R.PLAYS_TYPES||i.filterType===R.GOLSTATS)&&i.playsGolstatsCategories&&i.playsGolstatsCategories.forEach(x=>{x.isSelected=!1}),i.filterType===R.PRODUCTIVITY&&f.value.forEach(x=>{x.isSelected=!1}),a("apply")}function C(x){a("update:filters",x)}function I(x){i.filterType===R.POSITIONS&&a("update:filters",x)}function U(x){i.filterType===R.YEARS&&a("update:filters",x)}function z(x){i.filterType===R.NATIONALITIES&&a("update:filters",x)}function W(x){i.filterType===R.PERSONAL_DATA&&a("update:filters",x)}function ce(x){i.filterType===R.TOURNAMENTS&&a("change-filters-selected",x)}function j(x){i.filterType===R.TOURNAMENTS&&a("update:filters",x)}function H(x){i.filterType===R.TEAMS&&a("change-filters-selected",x)}function w(x){i.filterType===R.TEAMS&&a("update:filters",x)}function G(x){(i.filterType===R.PLAYS_TYPES||i.filterType===R.GOLSTATS)&&a("update:filters",x)}function $(x){i.filterType===R.PRODUCTIVITY&&(c.value=x,N())}function J(x){i.filterType===R.DISTANCE&&a("update:filters",x)}function fe(x){i.filterType===R.RESULTS&&a("update:filters",x)}function ye(x){i.filterType===R.GAMES&&(a("update:filters",x),a("change-filters-selected",x.filter(_=>_.isSelected).length))}function ge(x){n.value.statisticType=x}const Z=e.computed(()=>i.filterType===R.PLAYS?g.value.length:i.filterType===R.PRODUCTIVITY?f.value.length:i.filterType===R.FIELD?16:i.filterType===R.UNIVERSE?6:i.filterType===R.DETAILS?8:i.filterType===R.RESULTS||i.filterType===R.RESULTS_BY_TIME?3:i.filterType===R.GAMES?i.gamesFilters.length:0);return a("total-filters",Z),o({clearFilters:M}),(x,_)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(h.value)},[t.filterType===e.unref(R).PRODUCTIVITY||t.filterType===e.unref(R).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(R).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Tke,[t.productivityText?(e.openBlock(),e.createElementBlock("div",Bke,e.toDisplayString(t.productivityText),1)):t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",Fke,[e.createTextVNode(" Elige tipo de jugadas: "),e.createElementVNode("span",null,"mínimo "+e.toDisplayString(t.productivityMinCategories)+" categorías y máximo "+e.toDisplayString(t.productivityMaxCategories),1)])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",Pke,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",$ke,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(R).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",Ake,[e.createVNode(e.unref(Fe),{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":E},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Ike,[t.filterType===e.unref(R).PLAYS?(e.openBlock(),e.createElementBlock("div",zke,[e.createVNode(b8e,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Mke,[e.createVNode(cbe,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":b.value,"are-max-categories-reached":S.value,"are-min-categories-reached":F.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"onUpdate:offensesConditions":$,onClickParameters:Y},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","are-productivity-buttons-visible","are-offenses-conditions-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).FIELD?(e.openBlock(),e.createElementBlock("div",Oke,[e.createVNode(e.unref(S3),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":Q}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).DETAILS?(e.openBlock(),e.createElementBlock("div",Rke,[e.createVNode(vbe,{"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:ge},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(R).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",Lke,[e.createVNode(t8e,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:r,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"is-eligibility-visible":t.isEligibilityVisible,"onUpdate:filters":W},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters","is-eligibility-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",Dke,[e.createVNode(qbe,{"tournaments-url":t.tournamentsUrl,token:t.token,tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:ce,"onUpdate:filters":j},null,8,["tournaments-url","token","tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).TEAMS?(e.openBlock(),e.createElementBlock("div",vke,[e.createVNode(Nke,{ref_key:"templateTeams",ref:s,"seasons-ids":t.seasonsIds,onChangeFiltersSelected:H,"onUpdate:filters":w},null,8,["seasons-ids"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",jke,[e.createVNode(i3,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":G},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).GOLSTATS?(e.openBlock(),e.createElementBlock("div",Uke,[e.createVNode(i3,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:O,"onUpdate:filters":G},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).UNIVERSE?(e.openBlock(),e.createElementBlock("div",Wke,[e.createVNode(H5e,{ref_key:"templateUniverse",ref:d,"universe-filters":t.universeFilters,"default-month-index":t.universeDefaultMonthIndex,"onUpdate:universeFilters":P},null,8,["universe-filters","default-month-index"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).DISTANCE?(e.openBlock(),e.createElementBlock("div",Hke,[e.createVNode(m4e,{distance:t.distanceFilters,"onUpdate:distanceFilters":J},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).RESULTS?(e.openBlock(),e.createElementBlock("div",Gke,[e.createVNode(C8e,{ref_key:"templateResults",ref:m,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":fe},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",qke,[e.createVNode(pke,{ref_key:"templateResults",ref:m,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).GAMES?(e.openBlock(),e.createElementBlock("div",Jke,[e.createVNode(S4e,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":ye},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",Zke,[e.createVNode(B7e,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:u,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).VIDEOS?(e.openBlock(),e.createElementBlock("div",Yke,[e.createVNode(p7e,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",Kke,[e.createVNode(H7e,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).ZONE?(e.openBlock(),e.createElementBlock("div",Xke,[e.createVNode(Jwe,{ref_key:"templateZone",ref:p,"zone-filters":t.zoneFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",Qke,[e.createVNode(ake,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:y,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).POSITIONS?(e.openBlock(),e.createElementBlock("div",eEe,[e.createVNode(gke,{positions:t.positions,onChangePositions:I},null,8,["positions"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).YEARS?(e.openBlock(),e.createElementBlock("div",tEe,[e.createVNode(hke,{years:t.years,onChangeYear:U},null,8,["years"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).NATIONALITIES?(e.openBlock(),e.createElementBlock("div",aEe,[e.createVNode(Ske,{nationalities:t.nationalities,onChangeNationality:z},null,8,["nationalities"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",oEe,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(jl),{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:ue})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",iEe,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(jl),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:ue})):(e.openBlock(),e.createBlock(e.unref(jl),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:D}))]),e.createElementVNode("div",sEe,[e.createVNode(e.unref(jl),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:de})])],64))])):e.createCommentVNode("",!0)],4))}},hb=Ae(rEe,[["__scopeId","data-v-efc03862"]]),lEe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},nEe={__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:o}){const a=t;e.useCssVars(m=>({"6263632b":t.width,"252e289a":c.value,d3c8b2e8:t.menuWidth}));const i=e.ref(null),s=e.ref(!1),r=e.ref(null),l=e.ref({}),n=e.ref({top:"0px",left:a.leftMenu,width:a.menuWidth}),c=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,m=>{m!==s.value&&(s.value=m)},{immediate:!0}),e.watch(s,async m=>{var h;if(m){await e.nextTick();const f=(h=r.value)==null?void 0:h.getBoundingClientRect();f&&setTimeout(()=>{d({boundingClientRect:f})},1e3)}else setTimeout(()=>{l.value["--translate-x"]="0px"},500)});function d(m){const h=window.innerWidth,f=m.boundingClientRect.x,g=m.boundingClientRect.x+m.boundingClientRect.width,b=f<=0?Math.abs(f)+10:g>=h?h-(g+30):0;if(l.value["--translate-x"]=`${b}px`,i.value){const S=i.value.getBoundingClientRect();n.value.top=`${S.height+a.menuMarginTop}px`}}function u(){new IntersectionObserver(m=>{m[0].intersectionRatio>0&&d(m[0])}).observe(r.value)}function p(){s.value=!s.value,o("update:modelValue",s.value)}function y(){s.value=!1,o("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{u()})}),(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:y})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:i,class:"menu-container__trigger",onClick:p},[e.renderSlot(m.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:r,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(m.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},dEe=lEe(nEe,[["__scopeId","data-v-419c8567"]]),Io=t=>(e.pushScopeId("data-v-d5ddc1ae"),t=t(),e.popScopeId(),t),cEe={key:0,class:"button__icon"},pEe={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mEe=["stroke"],uEe=["stroke"],fEe=["stroke"],hEe={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yEe=["stroke"],gEe=["stroke"],bEe=["fill"],SEe={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_Ee=["fill"],CEe={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wEe=["stroke"],kEe=["stroke"],EEe=["stroke"],VEe=["stroke"],xEe=["stroke"],NEe={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TEe=Io(()=>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)),BEe=[TEe],FEe={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PEe=Io(()=>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)),$Ee=[PEe],AEe={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},IEe=Io(()=>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)),zEe=[IEe],MEe={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OEe=Io(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),REe=Io(()=>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)),LEe=Io(()=>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)),DEe=Io(()=>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)),vEe=[OEe,REe,LEe,DEe],jEe={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},UEe=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-d5ddc1ae><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-d5ddc1ae></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-d5ddc1ae></path></g><defs data-v-d5ddc1ae><clipPath id="gpdeo9cu3a" data-v-d5ddc1ae><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-d5ddc1ae></path></clipPath></defs>',2),WEe=[UEe],HEe={class:"button__text"},GEe={key:0,class:"info-container"},qEe={key:1,style:{width:"20px"}},JEe={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZEe=["fill"],YEe={__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 o=t,a=e.computed(()=>({"--height":o.height,"--width":o.width,"--text-font-family":o.textFontFamily,"--text-font-size":o.textFontSize,"--background-color":o.backgroundColor,"--border-radius":o.borderRadius,"--border-color":o.isActive?o.borderColorActive:o.borderColor,"--border-width":o.borderWidth,"--padding":o.padding,"--font-color":o.fontColor})),i=e.computed(()=>({"--info-background-color":o.infoValue?o.infoBackgroundColor:"transparent","--info-border-color":o.infoValue?o.infoBorderColor:"transparent","--info-border-radius":o.infoBorderRadius,"--info-font-family":o.infoFontFamily,"--info-font-size":o.infoFontSize,"--info-font-color":o.infoFontColor,"--info-height":o.infoHeight,"--info-width":o.infoWidth})),s=e.computed(()=>[R.PLAYS_TYPES,R.GOLSTATS,R.TOURNAMENTS,R.PLAYS,R.RESULTS,R.RESULTS_BY_TIME].includes(o.iconType)),r=e.computed(()=>[R.FIELD,R.GAMES].includes(o.iconType)),l=e.computed(()=>[R.DETAILS,R.UNIVERSE].includes(o.iconType)),n=e.computed(()=>[R.PERSONAL_DATA].includes(o.iconType)),c=e.computed(()=>[R.PRODUCTIVITY].includes(o.iconType)),d=e.computed(()=>[R.HOW_WAS_CORNER].includes(o.iconType)),u=e.computed(()=>[R.TAKEN_CORNERS].includes(o.iconType)),p=e.computed(()=>[R.ZONE].includes(o.iconType)),y=e.computed(()=>[R.WHAT_HAPPENED].includes(o.iconType));return(m,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",cEe,[n.value?(e.openBlock(),e.createElementBlock("svg",pEe,[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,mEe),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,uEe),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,fEe)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",hEe,[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,yEe),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,gEe),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,bEe)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",SEe,[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,_Ee)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",CEe,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,wEe),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,kEe),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,EEe),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,VEe),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,xEe)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",NEe,BEe)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("svg",FEe,$Ee)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",AEe,zEe)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",MEe,vEe)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",jEe,WEe)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",HEe,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",GEe,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(i.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(i.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",qEe)):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",JEe,[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,ZEe)]))],2)],4))}},KEe=Ae(YEe,[["__scopeId","data-v-d5ddc1ae"]]),XEe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},QEe=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),eVe={class:"panel__activator__icon"},tVe=["src"],aVe={class:"panel__activator__text"},oVe=["height","width"],iVe=["stroke"],sVe={class:"panel__content"},rVe=QEe(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),lVe={class:"panel__content__slot"},nVe={__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:o}){const a=t,i=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,l=>{i.value=l},{immediate:!0});function r(){i.value=!i.value,o("update:modelValue",i.value)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:r},[e.createElementVNode("div",eVe,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,tVe)):e.createCommentVNode("",!0)]),e.createElementVNode("div",aVe,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":i.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,iVe)],8,oVe))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",sVe,[rVe,e.createElementVNode("div",lVe,[e.renderSlot(l.$slots,"content",{},void 0,!0)])],512),[[e.vShow,i.value]])]),_:3})],4))}},dVe=XEe(nVe,[["__scopeId","data-v-0ca35abc"]]),wa={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},cVe={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}},pVe={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}]}},mVe={minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"},uVe=[{name:"Sub-20",logo:null,isSelected:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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}]}],fVe=[{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}],hVe=[{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}],yVe={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},yb={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},gVe={class:"filters"},bVe={key:0,class:"filters__expansion"},SVe={class:"content"},_Ve={key:1,class:"filters__menus"},CVe={__name:"GSC-Filters",props:{universeDefaultMonthIndex:{type:Number,default:5},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},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},showUniverseTime:{type:Boolean,default:!1},isEligibilityVisible:{type:Boolean,default:!0},tournamentsUrl:{type:String,default:""},dropdownProps:{type:Object,default:()=>null},selectedYear:{type:[Number,String],default:0}},emits:["update:filters","apply","close","click-parameters"],setup(t,{expose:o,emit:a}){const i=t;e.useCssVars(Z=>({f37314ea:t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.PRODUCTIVITY,isFooterVisible:!0},r={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.PLAYS,isFooterVisible:!0},l={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.TOURNAMENTS,isFooterVisible:!0},d={width:"fit-content",maxWidth:"fit-content",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.TOURNAMENTS,isFooterVisible:!0},u={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.POSITIONS,isFooterVisible:!0},p={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.YEARS,isFooterVisible:!0},y={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.NATIONALITIES,isFooterVisible:!0},m={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.PERSONAL_DATA,isFooterVisible:!0},h={width:"310px",modalHeight:i.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},f={width:"380px",modalHeight:i.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},g={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.UNIVERSE,isFooterVisible:!0},b={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.DISTANCE,isFooterVisible:!0},S={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.RESULTS,padding:"0",isFooterVisible:!0},F={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},v={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.VIDEOS,isFooterVisible:!1},T={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.GAMES,isFooterVisible:!0},M={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.TAKEN_CORNERS,isFooterVisible:!0},D={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.HOW_WAS_CORNER,isFooterVisible:!0},P={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.ZONE,isFooterVisible:!0},Q={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.WHAT_HAPPENED,isFooterVisible:!0},O=e.ref(!1),k=e.ref(!1),E=e.ref(0),V=e.ref(0),N=e.ref({}),Y=e.ref(null),de=e.ref(null),ue=e.ref("Universo"),C=e.ref(""),I=e.ref(""),U=e.computed(()=>i.isForTemplateForm?"0":"unset"),z=e.computed(()=>i.isFromTemplates?R.RESULTS:i.filterType),W=e.ref(null);e.watch(()=>i.filterType,Z=>{if(Z===R.PRODUCTIVITY)N.value={...s,...i.templateProps,productivityCategories:i.filters||cVe};else if(Z===R.PLAYS)N.value={...r,...i.templateProps,fontFamily:i.buttonFilterProps?i.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:i.filters||pVe};else if(Z===R.FIELD)N.value={...l,...i.templateProps,fieldComponentProps:i.fieldComponentProps,fieldAreas:i.filters||[]};else if(Z===R.DETAILS)N.value={...n,...i.templateProps,isPlayingAsHidden:i.filters?i.filters.isPlayingAsHidden:wa.isPlayingAsHidden,playingAs:i.filters&&i.filters.playingAs||wa.playingAs,gameSections:i.filters&&i.filters.gameSections||wa.gameSections,statisticType:i.filters?i.filters.statisticType:wa.statisticType,isStatisticTypeVisible:i.filters?i.filters.isStatisticTypeVisible:wa.isStatisticTypeVisible};else if(Z===R.TOURNAMENTS){const x=i.filters||uVe;i.isOneTournamentOnly&&x.forEach(_=>{_.isSelected=_.id===i.defaultTournamentId}),N.value={...c,...i.templateProps,tournaments:x}}else Z===R.TEAMS?N.value={...d,...i.templateProps,seasonsIds:i.filters||[]}:Z===R.PERSONAL_DATA?N.value={...m,...i.templateProps,token:i.token,awaitForFilters:i.awaitForFilters,personalDataFilters:i.filters}:Z===R.PLAYS_TYPES?N.value={...h,...i.templateProps,playsGolstatsCategories:i.filters||fVe}:Z===R.GOLSTATS?N.value={...f,...i.templateProps,playsGolstatsCategories:i.filters||hVe}:Z===R.UNIVERSE?N.value={...g,...i.templateProps,universeFilters:i.filters||mVe}:Z===R.DISTANCE?N.value={...b,...i.templateProps,distanceFilters:i.filters||yVe}:Z===R.RESULTS?N.value={...S,...i.templateProps,resultsFilters:i.filters||yb}:Z===R.RESULTS_BY_TIME?N.value={...F,...i.templateProps,resultsByTimeFilters:i.filters||ym}:Z===R.GAMES?N.value={...T,...i.templateProps,gamesFilters:i.filters||[]}:Z===R.VIDEOS?N.value={...v,...i.templateProps,token:i.token}:Z===R.TAKEN_CORNERS?N.value={...M,...i.templateProps,takenCornersFilters:i.filters||[]}:Z===R.HOW_WAS_CORNER?N.value={...D,...i.templateProps,howWasCornerFilters:i.filters||um}:Z===R.ZONE?N.value={...P,...i.templateProps,zoneFilters:i.filters||[...Ts]}:Z===R.WHAT_HAPPENED?N.value={...Q,...i.templateProps,whatHappenedFilters:i.filters||[...hm]}:Z===R.POSITIONS?N.value={...u,...i.templateProps,positions:i.filters||[{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"}]}:Z===R.YEARS?N.value={...p,...i.templateProps,years:i.filters||Array.from({length:30},(x,_)=>1981+_).sort((x,_)=>_-x)}:Z===R.NATIONALITIES&&(N.value={...y,...i.templateProps,nationalities:i.filters||[{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"}]});N.value.isExpansionMode=i.isExpansionPanel,i.isExpansionPanel&&(N.value.width="100%",N.value.maxWidth="100%"),ce()},{immediate:!0}),e.watch(()=>i.filters,()=>{if(i.filterType===R.PRODUCTIVITY)N.value={...s,...i.templateProps,productivityCategories:i.filters};else if(i.filterType===R.PLAYS)N.value={...r,...i.templateProps,playsCategories:i.filters};else if(i.filterType===R.FIELD)N.value={...l,...i.templateProps,fieldComponentProps:i.fieldComponentProps,fieldAreas:i.filters};else if(i.filterType===R.DETAILS)N.value={...n,...i.templateProps,isPlayingAsHidden:i.filters?i.filters.isPlayingAsHidden:wa.isPlayingAsHidden,playingAs:i.filters?i.filters.playingAs:wa.playingAs,gameSections:i.filters?i.filters.gameSections:wa.gameSections,statisticType:i.filters?i.filters.statisticType:wa.statisticType,isStatisticVisible:i.filters?i.filters.isStatisticVisible:wa.isStatisticVisible};else if(i.filterType===R.TOURNAMENTS){const Z=i.filters;i.isOneTournamentOnly&&Z.forEach(x=>{x.isSelected=x.id===i.defaultTournamentId}),N.value={...c,...i.templateProps,tournaments:Z}}else i.filterType===R.TEAMS?N.value={...d,...i.templateProps,seasonsIds:i.filters||[]}:i.filterType===R.PERSONAL_DATA?N.value={...m,...i.templateProps,token:i.token,awaitForFilters:i.awaitForFilters,personalDataFilters:i.filters}:i.filterType===R.PLAYS_TYPES?N.value={...h,...i.templateProps,playsGolstatsCategories:i.filters}:i.filterType===R.GOLSTATS?N.value={...f,...i.templateProps,playsGolstatsCategories:i.filters}:i.filterType===R.UNIVERSE?N.value={...g,...i.templateProps,universeFilters:i.filters}:i.filterType===R.DISTANCE?N.value={...b,...i.templateProps,distanceFilters:i.filters}:i.filterType===R.RESULTS?N.value={...S,...i.templateProps,resultsFilters:i.filters||yb}:i.filterType===R.RESULTS_BY_TIME?N.value={...F,...i.templateProps,resultsByTimeFilters:i.filters||ym}:i.filterType===R.GAMES?N.value={...T,...i.templateProps,gamesFilters:i.filters}:i.filterType===R.VIDEOS?N.value={...v,...i.templateProps,token:i.token}:i.filterType===R.TAKEN_CORNERS?N.value={...M,...i.templateProps,takenCornersFilters:i.filters||[]}:i.filterType===R.HOW_WAS_CORNER?N.value={...D,...i.templateProps,howWasCornerFilters:i.filters||um}:i.filterType===R.ZONE?N.value={...P,...i.templateProps,zoneFilters:i.filters||[...Ts]}:i.filterType===R.WHAT_HAPPENED?N.value={...Q,...i.templateProps,whatHappenedFilters:i.filters||[...hm]}:i.filterType===R.POSITIONS?N.value={...u,...i.templateProps,positions:i.filters||[{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"}]}:i.filterType===R.YEARS?N.value={...p,...i.templateProps,years:i.filters||Array.from({length:30},(Z,x)=>1981+x).sort((Z,x)=>x-Z)}:i.filterType===R.NATIONALITIES&&(N.value={...y,...i.templateProps,nationalities:i.filters||[{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"}]});N.value.isExpansionMode=i.isExpansionPanel,i.isExpansionPanel&&(N.value.width="100%",N.value.maxWidth="100%")}),e.watch(O,Z=>{Z||a("close",W.value)}),e.watch(k,Z=>{Z||a("close",W.value)});function ce(){C.value=i.filterType===R.UNIVERSE&&i.showUniverseTime?ue.value:i.buttonFilterProps&&i.buttonFilterProps.text?i.buttonFilterProps.text:i.menuButtonText||w(),I.value=i.expansionPanelText||w()}function j(Z){E.value=Z}function H(){i.isExpansionPanel?k.value=!1:O.value=!1,a("apply",W.value)}function w(){if(i.filterType===R.PRODUCTIVITY)return i.isFromTemplates?"Tipos de jugadas":"Características de juego";if(i.filterType===R.PLAYS)return"Jugada(s)";if(i.filterType===R.FIELD)return"Zona de cancha";if(i.filterType===R.DETAILS)return"Detalles";if(i.filterType===R.TEAMS)return"Equipos";if(i.filterType===R.TOURNAMENTS)return"Ligas";if(i.filterType===R.PERSONAL_DATA)return"Datos personales";if(i.filterType===R.PLAYS_TYPES)return"Tipos de jugada";if(i.filterType===R.GOLSTATS)return"Filtros Golstats";if(i.filterType===R.UNIVERSE)return`Estadísticas ${W.value&&W.value.statisticsRadios==="total"?"totales":"cada 90 min"}`;if(i.filterType===R.DISTANCE)return"Distancia";if([R.RESULTS,R.RESULTS_BY_TIME].includes(i.filterType))return"Resultados";if(i.filterType===R.GAMES)return"Partidos";if(i.filterType===R.VIDEOS)return"Videos";if(i.filterType===R.TAKEN_CORNERS)return"¿Quién cobró?";if(i.filterType===R.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(i.filterType===R.ZONE)return"Zona";if(i.filterType===R.WHAT_HAPPENED)return"¿Qué sucedió?";if(i.filterType===R.POSITIONS){const Z=W.value?W.value.find(_=>_.id===0):null;if(Z&&Z.isSelected)return Z.name;const x=W.value?W.value.filter(_=>_.isSelected&&_.id!==0):[];return x.length===1?x[0].name:`${x.length} nacionalidades`}else{if(i.filterType===R.YEARS)return`Año ${W.value||i.selectedYear}`;if(i.filterType===R.NATIONALITIES){const Z=W.value?W.value.length:i.filters.length;return i.filters.length===Z?"Todas las nacionalidades":Z===1?W.value[0].name:`${Z} nacionalidades`}}}function G(Z){a("click-parameters",Z)}function $(Z){N.value.fieldAreas=Z,E.value=Z.length,fe(Z)}function J(Z){let x=0;Z.value&&Z.value.statistics&&(Z.value.minutesPlayed&&x++,Z.value.percentMinutesPlayed&&x++,Z.value.lastMonths&&x++,Z.value.statistics.totals&&x++,Z.value.statistics.averagePerGame&&x++,Z.value.statistics.averagePerMinute&&x++),i.showUniverseTime&&(ue.value=`Durante los últimos ${Z.value.lastMonths} meses`),N.value.universe=Z.value,E.value=x,fe(Z.value)}function fe(Z){W.value=Z,ce(),a("update:filters",Z)}function ye(Z){V.value=Z}function ge(Z=null){Y.value&&Y.value.clearFilters(Z),de.value&&de.value.clearFilters(Z)}return o({clearFilters:ge}),(Z,x)=>(e.openBlock(),e.createElementBlock("div",gVe,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",bVe,[e.createVNode(e.unref(dVe),e.mergeProps(t.expansionPanelProps,{modelValue:k.value,"onUpdate:modelValue":x[0]||(x[0]=_=>k.value=_),text:I.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+i.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",SVe,[e.createVNode(hb,e.mergeProps(N.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,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"is-eligibility-visible":t.isEligibilityVisible,"tournaments-url":t.tournamentsUrl,"dropdown-props":t.dropdownProps,"filter-type":t.filterType,ref_key:"filterTemplateExpansionPanel",ref:de,onChangeFieldAreas:$,onChangeCategoriesSelected:j,onChangeFiltersSelected:j,onChangeUniverseFilters:J,onApply:H,"onUpdate:filters":fe,onTotalFilters:ye,onClickParameters:G}),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","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible","is-eligibility-visible","tournaments-url","dropdown-props","filter-type"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",_Ve,[e.createVNode(e.unref(dEe),{modelValue:O.value,"onUpdate:modelValue":x[1]||(x[1]=_=>O.value=_),width:t.width,"left-menu":U.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(KEe,e.mergeProps(t.buttonFilterProps,{text:C.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":E.value,"filters-total":V.value.value,"is-active":O.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(hb,e.mergeProps(N.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,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"is-eligibility-visible":t.isEligibilityVisible,"tournaments-url":t.tournamentsUrl,"dropdown-props":t.dropdownProps,"filter-type":t.filterType,ref_key:"filterTemplateMenu",ref:Y,onChangeFieldAreas:$,onChangeCategoriesSelected:j,onChangeFiltersSelected:j,onChangeUniverseFilters:J,"onUpdate:filters":fe,onTotalFilters:ye,onApply:H,onClickParameters:G}),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","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible","is-eligibility-visible","tournaments-url","dropdown-props","filter-type"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},gm=Ae(CVe,[["__scopeId","data-v-44274796"]]),wVe={class:"dropdown__position"},kVe={key:0,class:"label"},EVe={class:"selected-position"},VVe={__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:o}){const a=t,i={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),r=e.computed(()=>{const c={...ja};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(d=>{c[d]=a.dropdownProps[d]}),c}),l=e.computed(()=>{let c=a.positions&&a.positions.length?[...a.positions]:[];const d=c[0];return(!d||d.id!==0)&&c.unshift(i),c.sort((u,p)=>u.id-p.id),c});e.watch(l,c=>{const d=c.filter(u=>u.isSelected);d.length===l.value.length-1&&(c[0].isSelected=!0),c[0]&&c[0].isSelected?s.value="Todas las posiciones":d.length===1?s.value=d[0].name:s.value=`${d.length} seleccionadas`,o("change-positions",c)},{immediate:!0,deep:!0});function n(c,d){d.id===0?l.value.forEach(u=>{u.isSelected=c}):(d.isSelected=c,l.value[0].isSelected=l.value.every((u,p)=>p===0?!0:u.isSelected))}return(c,d)=>(e.openBlock(),e.createElementBlock("div",wVe,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",kVe,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(ia),e.mergeProps(r.value,{"is-multiple-option":"",items:l.value}),{default:e.withCtx(()=>[e.createElementVNode("div",EVe,[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:u})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Fe),{"model-value":u.isSelected,label:t.isFemale?u.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):u.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":p=>n(p,u)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},gb=Ae(VVe,[["__scopeId","data-v-c810bd0a"]]);ka(2,bm()),ka(2,bm()),ka(1,Wa(1)),ka(1,Wa(1)),ka(1,Wa(2)),ka(1,Wa(2)),ka(1,Wa(3)),ka(1,Wa(3)),ka(1,Wa(4)),ka(1,Wa(4));function bm(){return[[337,1],[338,2],[339,3],[340,4],[341,5],[342,6],[343,7],[344,8],[345,9],[346,10],[347,11],[348,12],[349,13],[350,14],[351,15],[352,16],[353,17],[354,18],[355,19],[356,20],[357,21]]}function bb(){return Array.from({length:16},(t,o)=>o+1)}function Wa(t){switch(t){case 1:return[1,2,3,4];case 2:return[5,6,7,8];case 3:return[9,10,11,12];case 4:return[13,14,15,16]}}function ka(t=1,o=null){return{origin_zones:t===1?bb():bm(),destiny_zones:o||bb(),minimum_distance_x:0,maximum_distance_x:105,minimum_distance_y:0,maximum_distance_y:68,minimum_total_distance:0,maximum_total_distance:125,zone_type:t}}const xVe={class:"dropdown-years"},NVe={key:0,class:"label"},TVe={class:"selected-year"},BVe={__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},selectedItemPrefix:{type:String,default:""}},emits:["change-year"],setup(t,{emit:o}){const a=t,i=e.computed(()=>{const l={...ja};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(n=>{l[n]=a.dropdownProps[n]}),l}),s=e.computed(()=>a.hasNoLimitOption?["Sin límite",...a.years]:a.years);function r(l){o("change-year",l)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",xVe,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",NVe,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(ia),e.mergeProps({"model-value":t.selectedYear},i.value,{items:s.value,"onUpdate:modelValue":r}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",TVe,e.toDisplayString(Number.isNaN(Number(c))?c:`${t.selectedItemPrefix} ${c}`),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c),1)]),_:1},16,["model-value","items"])]))}},Sb=Ae(BVe,[["__scopeId","data-v-77be2ab3"]]),FVe=t=>(e.pushScopeId("data-v-0caa40b6"),t=t(),e.popScopeId(),t),PVe={class:"dropdown-templates"},$Ve={key:0,class:"label"},AVe={class:"selected-item"},IVe={class:"item"},zVe={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MVe=FVe(()=>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)),OVe=[MVe],RVe={__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},templatesUrl:{type:String,default:""}},emits:["change-template"],setup(t,{emit:o}){const a=t,i=e.ref([]),s=e.ref(null),r=e.computed(()=>{const c={...ja};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(d=>{c[d]=a.dropdownProps[d]}),c});e.watch(()=>a.teamId,c=>{c&&n()},{immediate:!0});function l(c){s.value=c,o("change-template",c)}async function n(){try{const c=await Fo.get(a.templatesUrl||`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${a.teamId}/templates`,{headers:{Authorization:a.token}});i.value=c.data&&c.data.data?c.data.data:[]}catch(c){console.error("Error filling templates: ",c)}}return n(),(c,d)=>(e.openBlock(),e.createElementBlock("div",PVe,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",$Ve,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(ia),e.mergeProps({"model-value":t.selectedTemplate},r.value,{items:i.value,"arrow-width":"10",onInput:l}),{default:e.withCtx(({selectedItem:u})=>[e.createElementVNode("div",AVe,e.toDisplayString(u.name),1)]),availableItem:e.withCtx(({item:u})=>[e.createElementVNode("div",IVe,[e.createElementVNode("div",null,e.toDisplayString(u.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",zVe,OVe,512)),[[e.vShow,s.value.name===u.name]])])]),_:1},16,["model-value","items"])]))}},LVe=Ae(RVe,[["__scopeId","data-v-0caa40b6"]]);function _b(){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 DVe(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 8px 0 10px",textFontFamily:"'Poppins-Regular'",showIcon:!0}}function Cb(){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 vVe(){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 nn="/group-427321501.svg",wb="/shape.svg",jVe="_filtersContainer_b9wc6_1",UVe="_filtersContainer1232_b9wc6_1",WVe="_closeFiltersPc_b9wc6_1",HVe="_textleyemdmultipleleagues_b9wc6_1",GVe="_textleyemdmultipleleagues380_b9wc6_1",qVe="_filtersContainer760_b9wc6_1",JVe="_filtersContainer460_b9wc6_1",ZVe="_containerSectionPlay_b9wc6_1",YVe="_containerSectionPlay1232_b9wc6_1",KVe="_containerSectionPlay960_b9wc6_1",XVe="_containerSectionPlay320_b9wc6_1",QVe="_containerSectionPlay350_b9wc6_1",exe="_containerSection_b9wc6_1",txe="_containerSection1232_b9wc6_1",axe="_containerSection960_b9wc6_1",oxe="_containerSection320_b9wc6_1",ixe="_containerSection350_b9wc6_1",sxe="_templateLosMejores_b9wc6_1",rxe="_templateLosMejores1232_b9wc6_1",lxe="_templateLosMejores960_b9wc6_1",nxe="_templateLosMejores420_b9wc6_1",dxe="_templateLosMejores320_b9wc6_1",cxe="_templateLosMejores540_b9wc6_1",pxe="_templateLosMejores350_b9wc6_1",mxe="_topFiltersParent_b9wc6_1",uxe="_topFiltersParent1232_b9wc6_1",fxe="_topFiltersParent960_b9wc6_1",hxe="_topFiltersParent460_b9wc6_1",yxe="_topFiltersParent420_b9wc6_1",gxe="_containerTheBest_b9wc6_1",bxe="_containerTheBest1232_b9wc6_1",Sxe="_containerTheBest960_b9wc6_1",_xe="_containerTheBest320_b9wc6_1",Cxe="_titleSection_b9wc6_1",wxe="_titleSection540_b9wc6_1",kxe="_containerTables_b9wc6_1",Exe="_containerTables960_b9wc6_1",Vxe="_containerTables760_b9wc6_1",xxe="_containerTables320_b9wc6_1",Nxe="_toniKroosWrapper_b9wc6_1",Txe="_toniKroosWrapper1080_b9wc6_1",Bxe="_toniKroosWrapper975_b9wc6_1",Fxe="_toniKroosWrapper760_b9wc6_1",Pxe="_toniKroosWrapper420_b9wc6_1",$xe="_toniKroosWrapper320_b9wc6_1",Axe="_frameChild_b9wc6_1",Ixe="_filtros_b9wc6_1",zxe="_groupParent_b9wc6_1",Mxe="_shapeIcon_b9wc6_1",Oxe="_btnFilters_b9wc6_1",Rxe="_btnFiltersPC_b9wc6_1",Lxe="_quitarFiltros_b9wc6_1",Dxe="_quitarFiltros730_b9wc6_1",vxe="_quitarFiltros480_b9wc6_1",jxe="_quitarFiltros380_b9wc6_1",Uxe="_btnCloseFilters_b9wc6_1",Wxe="_mejoresJugadores_b9wc6_1",Hxe="_mejoresJugadores730_b9wc6_1",Gxe="_mejoresJugadores480_b9wc6_1",qxe="_mejoresJugadoresSM_b9wc6_1",Jxe="_toniKroos_b9wc6_1",Zxe="_teamBar_b9wc6_1",Yxe="_menuSection_b9wc6_1",Kxe="_menuSection960_b9wc6_1",Xxe="_menuSectionPlay_b9wc6_1",Qxe="_menuSectionPlay960_b9wc6_1",eNe="_containerMenu_b9wc6_1",tNe="_containerMenu760_b9wc6_1",aNe="_containerFilters_b9wc6_1",oNe="_teamBarParent_b9wc6_1",iNe="_topFilters_b9wc6_1",sNe="_topFilters1232_b9wc6_1",rNe="_topFilters420_b9wc6_1",lNe="_topFilters460_b9wc6_1",nNe="_losMejores_b9wc6_1",dNe="_losMejores380_b9wc6_1",cNe="_losMejores530_b9wc6_1",pNe="_losMejores730_b9wc6_1",mNe="_menuSectionHeader_b9wc6_1",uNe="_menuSectionHeader1232_b9wc6_1",fNe="_menuSectionHeader960_b9wc6_1",hNe="_menuSectionHeader730_b9wc6_1",yNe="_dropdown_b9wc6_1",gNe="_dropdown730_b9wc6_1",bNe="_dropdown1_b9wc6_1",SNe="_dropdown1730_b9wc6_1",_Ne="_dropdownParent_b9wc6_1",CNe="_dropdownParent730_b9wc6_1",wNe="_menuSectionParentHeader_b9wc6_1",kNe="_menuSectionParentHeader1232_b9wc6_1",ENe="_menuSectionParentHeader960_b9wc6_1",VNe="_menuSectionParentHeader730_b9wc6_1",xNe="_menuSectionParentHeader430_b9wc6_1",NNe="_descubreVideos_b9wc6_1",TNe="_descubreVideos1232_b9wc6_1",BNe="_descubreVideos960_b9wc6_1",FNe="_allCategories_b9wc6_1",PNe="_containerScountingBtn_b9wc6_3",$Ne="_btnDeleteAplica_b9wc6_13",ANe="_SearchBtnBar_b9wc6_33",INe="_btnLeyendTxt_b9wc6_52",zNe="_BtnSearchScounting_b9wc6_61",MNe="_containerPredefined_b9wc6_85",ONe="_containerPredefinedScounting_b9wc6_92",RNe="_titleContainerPredefined_b9wc6_100",LNe="_subtitleContainerPredefined_b9wc6_111",DNe={filtersContainer:jVe,filtersContainer1232:UVe,closeFiltersPc:WVe,textleyemdmultipleleagues:HVe,textleyemdmultipleleagues380:GVe,filtersContainer760:qVe,filtersContainer460:JVe,containerSectionPlay:ZVe,containerSectionPlay1232:YVe,containerSectionPlay960:KVe,containerSectionPlay320:XVe,containerSectionPlay350:QVe,containerSection:exe,containerSection1232:txe,containerSection960:axe,containerSection320:oxe,containerSection350:ixe,templateLosMejores:sxe,templateLosMejores1232:rxe,templateLosMejores960:lxe,templateLosMejores420:nxe,templateLosMejores320:dxe,templateLosMejores540:cxe,templateLosMejores350:pxe,topFiltersParent:mxe,topFiltersParent1232:uxe,topFiltersParent960:fxe,topFiltersParent460:hxe,topFiltersParent420:yxe,containerTheBest:gxe,containerTheBest1232:bxe,containerTheBest960:Sxe,containerTheBest320:_xe,titleSection:Cxe,titleSection540:wxe,containerTables:kxe,containerTables960:Exe,containerTables760:Vxe,containerTables320:xxe,toniKroosWrapper:Nxe,toniKroosWrapper1080:Txe,toniKroosWrapper975:Bxe,toniKroosWrapper760:Fxe,toniKroosWrapper420:Pxe,toniKroosWrapper320:$xe,frameChild:Axe,filtros:Ixe,groupParent:zxe,shapeIcon:Mxe,btnFilters:Oxe,btnFiltersPC:Rxe,quitarFiltros:Lxe,quitarFiltros730:Dxe,quitarFiltros480:vxe,quitarFiltros380:jxe,btnCloseFilters:Uxe,mejoresJugadores:Wxe,mejoresJugadores730:Hxe,mejoresJugadores480:Gxe,mejoresJugadoresSM:qxe,toniKroos:Jxe,teamBar:Zxe,menuSection:Yxe,menuSection960:Kxe,menuSectionPlay:Xxe,menuSectionPlay960:Qxe,containerMenu:eNe,containerMenu760:tNe,containerFilters:aNe,teamBarParent:oNe,topFilters:iNe,topFilters1232:sNe,topFilters420:rNe,topFilters460:lNe,losMejores:nNe,losMejores380:dNe,losMejores530:cNe,losMejores730:pNe,menuSectionHeader:mNe,menuSectionHeader1232:uNe,menuSectionHeader960:fNe,menuSectionHeader730:hNe,dropdown:yNe,dropdown730:gNe,dropdown1:bNe,dropdown1730:SNe,dropdownParent:_Ne,dropdownParent730:CNe,menuSectionParentHeader:wNe,menuSectionParentHeader1232:kNe,menuSectionParentHeader960:ENe,menuSectionParentHeader730:VNe,menuSectionParentHeader430:xNe,descubreVideos:NNe,descubreVideos1232:TNe,descubreVideos960:BNe,allCategories:FNe,containerScountingBtn:PNe,btnDeleteAplica:$Ne,SearchBtnBar:ANe,btnLeyendTxt:INe,BtnSearchScounting:zNe,containerPredefined:MNe,containerPredefinedScounting:ONe,titleContainerPredefined:RNe,subtitleContainerPredefined:LNe},vNe=e.ref(DVe()),jNe={components:{GSCTableHeader:Np,GscSwitchComponent:jp,GSCFilterperteam:L2,GSCFilters:gm,GSCExpandedInfo:Mp,GSCLabel:Q2,GSCSeasonSelect:V2,GSCTopCategory:W2e,GSCTournamentSelect:T2,GSCRowTable:Fp,SwitchCustom:wye},computed:{...wpe.computed,style(){return{"--flex-direction-controls":this.isScout&&this.elementSize.width<=730?"column-reverse":"column","--gap-controls":!this.isScout&&this.elementSize.width<=730?"30px":"0","--margin-top-scouting-title-switch":this.isScout&&this.elementSize.width<=730?"20px":"0px","--width-scouting-title-switch":this.isScout&&this.elementSize.width<=730?"100%":"auto"}},tournamentsApiUrlLocal(){const t="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/scouting/tournaments";return this.isScout?this.isFemaleScouting?`${t}?is_female=1`:`${t}?is_female=0`:this.tournamentsApiUrl},filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},o=JSON.stringify(t);if(JSON.stringify(this.filters)!=o)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...vNe.value}},showfiltersPcComputed(){return this.isScout?!0:this.showfiltersPc},openMenuMobilComputed(){return this.isScout?!0:this.openMenuMobil},submenuButtons(){return this.isScout?["Todas las jugadas","Más filtros"]:["Todas las jugadas","Predeterminados"]},filteredCategoriesPlaysTypes(){const t=JSON.parse(JSON.stringify(this.categoriesPlaysTypes));return this.optionSelected==="Equipos"&&(t.offensive.categories=t.offensive.categories.filter(o=>o.name!=="Participaciones en gol")),t},totalCategoriesCount(){return this.optionSelected==="Equipos"?22:23}},props:{currentSeasonId:{type:Number,default:0},userType:{type:String,required:!0},isSelection:{type:Boolean,default:!1},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},isScout:{type:Boolean,default:!1},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let o=0;o<t.teams.length;o++)this.teams.push({id:t.teams[o].team_id,team:t.teams[o].colloquial_name,logo:t.teams[o].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:o}=Wt(t);return{myDivRefTopsFull:t,elementSize:o}},data(){return{isFemaleScouting:!1,elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:6,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-21",logo:null,isSelected:!0,id:1169,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2025",related_seasons:[],id:2019,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}]}],tournamentsToFilterLillini:[{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 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-21",logo:null,isSelected:!0,id:1169,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2025",related_seasons:[],id:2019,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:[],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,teamselect:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",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:R,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:{onUpdateIsFemaleScouting(t){this.isFemaleScouting=t},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},setUpTournamentsToFilter(){this.userType=="selecciones menores"||this.userType=="lillini"?this.tournamentsToFilterLillini.forEach(t=>{const o=t.id===this.selectedTournament.id;t.isSelected=o,t.isDefaultTournament=o}):this.tournamentsToFilter.forEach(t=>{const o=t.id===this.selectedTournament.id;t.isSelected=o,t.isDefaultTournament=o})},async onClickDeleteFilterAux(){this.resetPredefinedTeamAll()},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados"||this.optionSelectedSubmenu=="Más filtros")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let i=0;i<this.detaildProductivityCategories.offensive.categories.length;i++)this.detaildProductivityCategories.offensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.defensive.categories.length;i++)this.detaildProductivityCategories.defensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.possession.categories.length;i++)this.detaildProductivityCategories.possession.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.offensesConditions.length;i++)this.detaildProductivityCategories.offensesConditions[i]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters($e.All),o.clearFilters($e.AGE_RANGE),o.clearFilters($e.YEAR),o.clearFilters($e.NATIONALITY),o.clearFilters($e.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(i,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let i=0;i<a.teams.length;i++)this.teamsscouting.push({id:a.teams[i].team_id,team:a.teams[i].colloquial_name,logo:a.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},setMediaData(t){let o=[t.id],a=t.team_id;const i={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",i)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,o,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:o||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=We.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<o.length;s++){o[s];let r=o[s].dob.split("T")[0].split("-");var i={position:s+1,player_name:this.abrevName(o[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[s].player_id+".png",total:o[s].total.toFixed(0),id:o[s].player_id,player_age:this.calcularEdad(o[s].dob),team_abrev:o[s].teams[0].acronym,team_name:o[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o[s].teams[0].team_id+".png",player_position:o[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[s].nationality_id+".jpg",date:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:o[s].team_id,nationality_name:La[o[s].nationality_id],player_games:o[s].games_played,player_min:o[s].minutes_played,league_name:o[s].tournament_name,seasons:o[s].seasons,season_id:o[s].seasons[0]};this.rowScoutingData.push(i)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let r=0;r<s.teams.length;r++)this.teamsscouting.push({id:s.teams[r].team_id,team:s.teams[r].colloquial_name,logo:s.teams[r].logo})}this.loadingActive=!1},abrevName(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},calcularEdad(t){var o=new Date(t),a=new Date,i=a-o,s=Math.floor(i/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var o;const a=t.find(n=>n.isSelected),i=a?a.id:null,s=a?a.name:null,r=((o=a==null?void 0:a.seasons[0])==null?void 0:o.id)||null;var l=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");l!==-1?this.arrayFiltersPlays[l].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),i!==null&&r!==null&&(this.seasonActive=r,this.selectedTournament=i,this.tournamentSelectedObj={propName:"id",value:i,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",r),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.length;a++)t[a].isSelected&&o.push(t[a].id);if(o.length==0&&(o=[1]),o.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[i,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var o=[];if(t.hasOwnProperty("nationalities")){for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=o},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filterScounting.categories=o,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(a!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,elegible:this.FVeligible,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,o){return Math.floor(Math.random()*(o-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=this.totalCategoriesCount?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(t){var o=this.arrayFiltersPlays.findIndex(i=>i.type===t);if(o!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,r)=>r+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<i.teams.length;s++)this.teamsscouting.push({id:i.teams[s].team_id,team:i.teams[s].colloquial_name,logo:i.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.categoriesPlaysTypes.offensive.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.categoriesPlaysTypes.defensive.categories[i].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.categoriesPlaysTypes.possession.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.categoriesPlaysTypes.offenses.categories[i].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.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($e.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($e.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($e.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters($e.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters($e.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(o,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let l=0;l<t.playingAs.length;l++)if(t.playingAs[l].isSelected){const n=t.playingAs[l].name=="Local"?1:2;o.push(n)}for(let l=0;l<t.gameSections.length;l++)t.gameSections[l].isSelected&&a.push(t.gameSections[l].value);this.fVsections=a,this.fVplayingAs=o,this.fvTypeStats=t.statisticType;var i=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?i!=-1&&this.arrayFiltersPlays.splice(i,1):i!=-1?this.arrayFiltersPlays[i].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTime"),r="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(r+=", 0-15"),this.fVsections.includes(2)&&(r+=", 15-30"),this.fVsections.includes(3)&&(r+=", 30-45"),this.fVsections.includes(4)&&(r+=", 45-60"),this.fVsections.includes(5)&&(r+=", 60-75"),this.fVsections.includes(6)&&(r+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=r:this.arrayFiltersPlays.push({name:r,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,i)=>i+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters($e.All),a.clearFilters($e.AGE_RANGE),a.clearFilters($e.YEAR),a.clearFilters($e.NATIONALITY),a.clearFilters($e.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo})},onFiltersData(t){var o=0,a=0;t.ageByRange&&(t.ageByRange.min==0?o=1:o=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[o,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let i="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y]);var r=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");r!==-1&&this.arrayFiltersPlays.splice(r,1)}else if(this.FVeligible=!1,t.hasOwnProperty("nationalities")){let y=0;this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let m=0;m<t.nationalities.length;m++)t.nationalities[m].isSelected&&(this.fVnationalities.add(t.nationalities[m].id),y++);if(y===t.nationalities.length){var r=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");r!==-1&&this.arrayFiltersPlays.splice(r,1)}}if(t.hasOwnProperty("nationalities")&&!this.FVeligible&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var r=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersNationality");r!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[r].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(r,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 y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y])}else this.FVeligible=!1;if(t.hasOwnProperty("positions")){let y=0;for(let m=0;m<t.positions.length;m++)t.positions[m].isSelected&&(this.fVsetPositionsIds.push(t.positions[m].id),y++);if(y===t.positions.length){var l=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersPosition");l!==-1&&this.arrayFiltersPlays.splice(l,1)}}if(t.hasOwnProperty("nationalities"))var n=t.nationalities.filter(y=>y.isSelected===!0);var c=t.positions.filter(y=>y.isSelected===!0);if(c.length==1&&(i=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 d=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");d!=-1?this.arrayFiltersPlays[d].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var d=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersElegibility");d!=-1&&this.arrayFiltersPlays.splice(d,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var l=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersPosition");l!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[l].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var u=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");u!=-1?this.arrayFiltersPlays[u].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.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 p=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");p!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[p].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(p,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var p=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersAge");p!=-1&&this.arrayFiltersPlays.splice(p,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var r=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersNationality");r!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[r].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(r,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($e.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.loadingActive=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo});this.resetFilterTeamAndPlayers(),this.getScoutingData(),setTimeout(()=>{this.modifidFiltersFlag=!1},200)}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(o){console.error("Error changing tabs:",o),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(o!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.fetchTournamentsForSelection()},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 o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}else this.optionSelected="Jugadores",this.typeTable=0,this.isTeam=!1,this.resetFilterTeamAndPlayers(),this.resetScouting(),await this.loadPreloadedTops();this.optionSelectedSubmenu=t}else t!="Predeterminados"&&t!="Más filtros}"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournamentsForSelection(){try{const{data:t}=await We.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",{headers:{Authorization:this.token}}),o=new Set([1,43,44,1001,1071,1143,1153,1155,1169]);this.tournamentsToFilterSelection=t.filter(a=>o.has(a.tournament.id)).map(a=>({...a.tournament,seasons:a.seasons,isSelected:a.tournament.id===1}))}catch(t){console.error("fetchTournamentsForSelection error",t)}},async fetchTeams(){const t=We.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(t){const o=We.create({headers:{Authorization:`${this.token}`}}),{data:a}=await o.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";t.id==1?o=this.urlFilter:o=this.urlFilter;const a=We.create({headers:{Authorization:`${this.token}`}}),{data:i}=await a.get(o+t.id);if(Object.keys(i[0].match_lapse_combinations).forEach(p=>{this.predefinedFiltersMatchLapse[p.toString()]=i[0].match_lapse_combinations[p]}),Object.keys(i[0].playing_as_combinations).forEach(p=>{this.predefinedFiltersPlayingAs[p.toString()]=i[0].playing_as_combinations[p]}),Object.keys(i[0].field_sections_combinations).forEach(p=>{this.predefinedFiltersSections[p.toString()]=i[0].field_sections_combinations[p]}),i[0]){for(let p=0;p<i[0].filter_records.length;p++){var s=i[0].description;if(i[0].filter_records[p].field_sections!==void 0){const m=i[0].filter_records[p].field_sections.toString();(this.predefinedFiltersSections[m]||this.predefinedFiltersSections[m]=="")&&(this.predefinedFiltersSections[m]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[m]):s=s.replace("{field_sections}",this.predefinedFiltersSections[m]))}if(i[0].filter_records[p].match_lapse!==void 0){const m=i[0].filter_records[p].match_lapse.toString();(this.predefinedFiltersMatchLapse[m]||this.predefinedFiltersMatchLapse[m]=="")&&(this.predefinedFiltersMatchLapse[m]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[m]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[m]))}if(i[0].filter_records[p].playing_as!==void 0){const m=i[0].filter_records[p].playing_as.toString();(this.predefinedFiltersPlayingAs[m]||this.predefinedFiltersPlayingAs[m]=="")&&(this.predefinedFiltersPlayingAs[m]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[m]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[m]))}i[0].filter_records[p].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",i[0].category_name);const y=s.split(": ");var r=y[1];r.length>129&&this.windowWidth>1358&&(r=r.substring(0,129),r=r+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||i[0].filter_records[p].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:p,category_name:t.name,id_category:i[0].id,title:y[0]+":",text:y[1],textOrigin:i[0].description,titledots:r,filtersPredefined:{matchResult:i[0].filter_records[p].match_result,playingAs:i[0].filter_records[p].playing_as,sections:i[0].filter_records[p].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[p].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let p=0;p<this.arrayPredefinedFilters.length;p++){var n=0,c=new Set,d={},u=this.arrayPredefinedFilters[p].text.replace(/\*.*?\*/,"");if(u=u.replace(/\*/g,""),u=u.replace(/ +/g," "),this.arrayPredefinedFilters[p].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[p].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[p].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,this.arrayPredefinedFilters[p].filtersPredefined.end_age]:this.arrayPredefinedFilters[p].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[p].filtersPredefined.end_age],this.arrayPredefinedFilters[p].filtersPredefined.matchResult.length!=3&&(n+=1),d.matchResult=this.arrayPredefinedFilters[p].filtersPredefined.matchResult,this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length;y++)c.add(this.arrayPredefinedFilters[p].filtersPredefined.nationalities[y]);d.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),d.setNationalitiesIds=c;this.arrayPredefinedFilters[p].filtersPredefined.playingAs.length!=2&&(n+=1),d.playingAs=this.arrayPredefinedFilters[p].filtersPredefined.playingAs,this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[p].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[p].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[p].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[p].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[p].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[p].filtersPredefined.typeZone,this.optionSelected=="Equipos"&&(this.tournamentSelectedObj.is_female?u=u.replace(/Jugadoras/g,"Equipos"):u=u.replace(/Jugadores/g,"Equipos")),d.setNationalitiesIds=[],l.push({id:p+1,name:u,isSelected:!1,value:n,filters:d})}this.FVfilterGolstats=l,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((u,p)=>u-p).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[i]||this.predefinedFiltersMatchLapse[i]=="")this.predefinedFiltersMatchLapse[i]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";i.includes(1)&&(s=s+"0-15, "),i.includes(2)&&(s=s+"16-30, "),i.includes(3)&&(s=s+"31-45, "),i.includes(4)&&(s=s+"46-60, "),i.includes(5)&&(s=s+"61-75, "),i.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[r]||this.predefinedFiltersPlayingAs[r]=="")&&(this.predefinedFiltersPlayingAs[r]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[r]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[r])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const l=t.split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),c=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const d=c.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let u=1;u<=d.length;u++)u%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:La[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},processPreloadedTops(t){const o={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),i=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return t.tops.forEach(s=>{const r=s.category;o[r]||(o[r]={teams:[],players:[]}),s.teams&&(o[r].teams=s.teams.map((l,n)=>{const c=a.get(l[0])||{};return{id:c.id,name:c.name,img:c.logo,total:l[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(o[r].players=s.players.map((l,n)=>{var c,d,u,p,y,m,h,f,g,b;const S=i.get(l[0])||{};return{age:S.numberAge,categoryName:s.name,country:(d=(c=S.countryId)==null?void 0:c[0])==null?void 0:d.nationality_id,date:S.date,effectiveness:S.effectiveness||0,games:S.games,id:l[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${l[0]}.png`,minutes:S.min,name:S.stringFullName,name_short:S.stringFullName,nationality:S.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(p=(u=S.countryId)==null?void 0:u[0])==null?void 0:p.nationality_id}.jpg`,position:S.position_short,positionId:S.numberPositionId,positionfull:this.positions[S.numberPositionId-1],team:((m=(y=S.teamName)==null?void 0:y[0])==null?void 0:m.acronym)||"",teamid:((f=(h=S.teamName)==null?void 0:h[0])==null?void 0:f.team_id)||"",teamname:((b=(g=S.teamName)==null?void 0:g[0])==null?void 0:b.acronym)||"",top:String(n+1).padStart(2,"0"),total:l[1]}}))}),o},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=We.create({headers:{Authorization:`${this.token}`}}),o=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(o);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,o){return`${t}-${o}`},async getTopData(t,o){const a=this.getCacheKey(t,o);if(this.topsCache.has(a))return this.topsCache.get(a);const i=We.create({headers:{Authorization:`${this.token}`}}),{data:s}=await i.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${o}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),o=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(o.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.fetchTournamentsForSelection(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadPreloadedTops();const t=await We.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(t){throw new Error(t)}}},UNe={key:0,class:"overlay-loading"},WNe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),HNe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),GNe=[WNe,HNe],qNe={class:"container-section__controls"},JNe={key:0,class:"scouting-title-switch"},ZNe={key:0,class:"title",id:"title-section",style:{"font-size":"22px !important"}},YNe={class:"female-scouting-switch"},KNe={class:"female-scouting__switch"},XNe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),QNe=[XNe],eTe={key:0,class:"cont-leyemd-multipleleagues"},tTe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),aTe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},oTe={key:0,style:{"margin-left":"10px"}},iTe=e.createElementVNode("span",null,"Todas las categorías",-1),sTe=[iTe],rTe=e.createElementVNode("span",null,"Tipo de Jugada",-1),lTe=e.createElementVNode("span",null,"Filtro GolStats",-1),nTe={key:3,style:{width:"100%",height:"295px"}};function dTe(t,o,a,i,s,r){const l=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),c=e.resolveComponent("SwitchCustom"),d=e.resolveComponent("GscSwitchComponent"),u=e.resolveComponent("GSCFilterperteam"),p=e.resolveComponent("GSCFilters"),y=e.resolveComponent("GSCLabel"),m=e.resolveComponent("GSCTopCategory"),h=e.resolveComponent("GSCTableHeader"),f=e.resolveComponent("GSCRowTable"),g=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",{ref:"myDivRefTopsFull",style:e.normalizeStyle(r.style)},[s.loadingActive?(e.openBlock(),e.createElementBlock("div",UNe,GNe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionClass),id:"container-section"},[e.createElementVNode("div",qNe,[i.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[!a.isScout&&i.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass({dropdownClass:t.dropdownClass,select:a.isScout})},[e.createVNode(l,{width:"100%","list-height":"370px","current-season-id":a.currentSeasonId,"api-url":r.tournamentsApiUrlLocal,"are-female-visible":a.areFemaleTournamentsVisible,"is-clubes-active":a.isClubes,"is-female-mode":a.isFemaleMode,token:a.token,onInput:r.changeTournament},null,8,["current-season-id","api-url","are-female-visible","is-clubes-active","is-female-mode","token","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({dropdown1Class:t.dropdown1Class,select:a.isScout})},[e.createVNode(n,{width:"100%","list-height":"370px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[i.elementSize.width>730&&!a.isScout?(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)},[a.isScout?(e.openBlock(),e.createElementBlock("div",JNe,[a.isScout||i.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",ZNe,[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))])):e.createCommentVNode("",!0),e.createElementVNode("div",YNe,[e.createElementVNode("div",{class:e.normalizeClass(["label",{"label-selected":!s.isFemaleScouting}])},"Varonil",2),e.createElementVNode("div",KNe,[e.createVNode(c,{"model-value":s.isFemaleScouting,"onUpdate:modelValue":r.onUpdateIsFemaleScouting},null,8,["model-value","onUpdate:modelValue"])]),e.createElementVNode("div",{class:e.normalizeClass(["label",{"label-selected":s.isFemaleScouting}])},"Femenil",2)])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(d,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2)),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdownParentClass)},[i.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(l,{width:"147px","list-height":"370px","current-season-id":a.currentSeasonId,"api-url":r.tournamentsApiUrlLocal,"are-female-visible":a.areFemaleTournamentsVisible,"is-clubes-active":a.isClubes,"is-female-mode":a.isFemaleMode,token:a.token,onInput:r.changeTournament},null,8,["current-season-id","api-url","are-female-visible","is-clubes-active","is-female-mode","token","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","list-height":"370px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2))]),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(u,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(r.showfiltersPcComputed?"display: none;":""),onClick:o[0]||(o[0]=(...b)=>r.clickOpenFilters&&r.clickOpenFilters(...b))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:nn},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(r.showfiltersPcComputed||a.isSelection?"":i.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 15px;":"")},[i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection&&!a.isScout?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...b)=>r.clickCloseFilters&&r.clickCloseFilters(...b))},QNe,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(d,{key:1,type:2,buttons:r.submenuButtons,"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:r.changeTabsSubmenu},null,8,["buttons","selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(d,{key:2,type:2,buttons:["Todas las jugadas","Más productivos"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:r.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0)],6),!a.isSelection&&!a.isScout?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:o[2]||(o[2]=(...b)=>r.openMenuFilters&&r.openMenuFilters(...b))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:nn},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(r.openMenuMobilComputed?"":"transform: rotate(180deg)"),alt:"",src:wb},null,6)],2)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:o[3]||(o[3]=(...b)=>r.openMenuFilters&&r.openMenuFilters(...b))},null,6),[[e.vShow,i.elementSize.width<760&&r.openMenuMobilComputed]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isSelection?(e.openBlock(),e.createBlock(p,e.mergeProps({key:0,"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:a.userType=="selecciones menores"||a.userType=="lillini"?s.tournamentsToFilterLillini:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":r.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersPlays,filters:r.filteredCategoriesPlaysTypes,onApply:r.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersDetails,filters: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(p,e.mergeProps({key:1,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:a.token,"onUpdate:filters":r.onFiltersData}),null,16,["is-female","button-filter-props","is-seleccion","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:a.userType=="selecciones menores"||a.userType=="lillini"?s.tournamentsToFilterLillini:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":r.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":r.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:o[4]||(o[4]=(...b)=>r.getScoutingData&&r.getScoutingData(...b))},"Buscar",2)],64)):e.createCommentVNode("",!0),(s.optionSelectedSubmenu=="Predeterminados"||s.optionSelectedSubmenu=="Más filtros")&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":r.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(p,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":r.onFiltersGolStats,filters:r.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,i.elementSize.width>760||r.openMenuMobilComputed||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",eTe,[tTe,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(u,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:r.clickTeamScouting,onClickAll:r.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",aTe," 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"&&s.optionSelectedSubmenu!="Más filtros"?(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"&&s.optionSelectedSubmenu!="Más filtros"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.showFullTable?(e.openBlock(),e.createElementBlock("div",oTe,[e.createVNode(y,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,style:{"margin-left":"10px"}},[e.createVNode(y,{"text-value":b.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteLabelFilter,id:b.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:i.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||(s.optionSelectedSubmenu=="Predeterminados"||s.optionSelectedSubmenu=="Más filtros")&&s.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:o[5]||(o[5]=(...b)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...b))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.optionSelectedSubmenu!="Más filtros"&&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)},sTe,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,(b,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:S},[s.optionSelected==="Equipos"&&b.name==="Participaciones en gol"?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(b.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(m,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:r.onShowFullTable,"border-width":0,preload:s.preloadedTops[b.id],"border-radius":"12px","filters-prop":r.filterChange,category:b.id,"type-table":s.typeTable,categoryName:b.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onComponentLoaded:t.onComponentLoaded},null,8,["is-female","is-team","type-stats","is-selection","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(b.id)&&!s.showFullTable]])],4))],64))),128)),s.showFullTable?(e.openBlock(),e.createBlock(m,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":a.isSelection,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":r.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(m,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":r.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[rTe,e.createTextVNode(" y un "),lTe,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(h,{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,(b,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:S},[s.teamselectrec==0||s.teamselectrec==b.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{type:2,"is-expanded":s.playerexpand==b.id&&s.expand,onMediadata:r.setMediaData,data:{position:b.position,player_name:b.player_name,player_photo:b.player_photo,total:b.total,id:b.id,player_age:b.player_age,team_abrev:b.team_abrev,team_logo:b.team_logo,player_position:s.positions[b.player_position-1].fullname,player_country_flag:b.player_country_flag,player_games:b.player_games,player_min:b.player_min,league_name:b.league_name,seasons:b.seasons,season_id:b.season_id},height:"71px",background:S%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==b.id?(e.openBlock(),e.createBlock(g,{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:b.team_name,age:b.player_age,dataofbirth:b.date,nationality:b.nationality_name,countryFlag:b.player_country_flag,position:s.positions[b.player_position-1].name,games:b.player_games,min:b.player_min,goals:b.total,effectiveness:"-",category:"total",id:b.id},onViewprofile:F=>r.viewprofile(F,b.season_id,b.team_id),background:S%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:o[6]||(o[6]=(...b)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...b))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:o[7]||(o[7]=(...b)=>r.getScoutingData&&r.getScoutingData(...b))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",nTe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],4)}const cTe={$style:DNe},pTe=it(jNe,[["render",dTe],["__cssModules",cTe]]),Sm={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(o){throw new Error(o)}}}},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)}}},kb=()=>{e.useCssVars(t=>({"39b08ebc":t.backgroundColor,"5bd2cafa":t.widthCircle,"73104bac":t.heightCircle}))},Eb=Sm.setup;Sm.setup=Eb?(t,o)=>(kb(),Eb(t,o)):kb;const mTe=["width","src"],uTe=["checked"],fTe=["width","src"];function hTe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(r.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,mTe)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:o[0]||(o[0]=(...l)=>r.handleSwitchChange&&r.handleSwitchChange(...l)),checked:s.OptionDefault},null,40,uTe),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([r.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,fTe)):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 yTe=it(Sm,[["render",hTe],["__scopeId","data-v-a583325d"]]),gTe={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:o}){const a=e.ref(null),i=e.ref(new Set),s=e.ref(""),r=e.ref([]),l=e.ref(!1),n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=e.ref(null),d=f=>{document.body.style.overflow=f?"hidden":"auto"},u=()=>{i.value.clear(),s.value="",c.value=null,r.value=[]},p=()=>{u(),o("close")},y=()=>{s.value=""},m=async()=>{if(t.userId){l.value=!0;try{const f=await We.create({headers:{Authorization:`${n}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`);r.value=f.data.data}catch(f){console.error("Error al obtener las listas:",f)}finally{l.value=!1}}};e.watch(()=>t.isVisible,f=>{d(f),f&&t.userId&&m()}),e.watch(()=>t.userId,f=>{f&&t.isVisible&&m()}),e.onMounted(()=>{t.isVisible&&d(!0)}),e.onUnmounted(()=>{d(!1)});const h=e.computed(()=>{if(!s.value)return r.value.map(g=>{var b;return{...g,isDisabled:((b=g.players)==null?void 0:b.some(S=>S.player_id===t.player.player_id))||!1}});const f=s.value.toLowerCase();return r.value.filter(g=>g.name.toLowerCase().includes(f)).map(g=>{var b;return{...g,isDisabled:((b=g.players)==null?void 0:b.some(S=>S.player_id===t.player.player_id))||!1}})});return{modalContent:a,selectedPlayers:i,searchQuery:s,closeModal:p,clearSearch:y,playlists:r,isLoading:l,filteredPlaylists:h,selectedPlaylist:c,handlePlaylistSelection:(f,g)=>{g||(c.value=f)},handleCreatePlaylist:async()=>{if(c.value)try{const f=We.create({headers:{Authorization:`${n}`}}),g={user_id:t.userId,id:c.value,players:[t.player]};await f.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${c.value}/players`,g),p()}catch(f){console.error("Error al guardar el jugador en la lista:",f)}},handleCreateListClick:()=>{o("create-list"),u()}}}},Ha=t=>(e.pushScopeId("data-v-67caccaa"),t=t(),e.popScopeId(),t),bTe={class:"modal-header"},STe=Ha(()=>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)),_Te=Ha(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),CTe=[_Te],wTe={class:"modal-body"},kTe={class:"search-section"},ETe={class:"search-container"},VTe={class:"search-input"},xTe=Ha(()=>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)),NTe=Ha(()=>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)),TTe=[NTe],BTe=Ha(()=>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)),FTe={class:"players-table-container"},PTe={class:"players-table"},$Te={key:0,class:"loading-message"},ATe={key:1,class:"empty-message"},ITe={class:"checkbox-container"},zTe=["id","checked","onChange"],MTe={key:1,class:"checkbox-placeholder"},OTe=Ha(()=>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)),RTe={class:"list-content"},LTe={class:"title"},DTe={class:"subtitle"},vTe={class:"modal-footer"},jTe={class:"buttons-container buttons-container-step2"},UTe=Ha(()=>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)),WTe=Ha(()=>e.createElementVNode("span",null,"Crear nueva lista",-1)),HTe=[UTe,WTe],GTe={class:"right-buttons"},qTe=["disabled"];function JTe(t,o,a,i,s,r){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:o[8]||(o[8]=(...l)=>i.closeModal&&i.closeModal(...l))},[e.createElementVNode("div",{class:"modal-content",onClick:o[7]||(o[7]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",bTe,[STe,e.createElementVNode("button",{class:"close-button",onClick:o[0]||(o[0]=(...l)=>i.closeModal&&i.closeModal(...l))},CTe)]),e.createElementVNode("div",wTe,[e.createElementVNode("div",kTe,[e.createElementVNode("div",ETe,[e.createElementVNode("div",VTe,[xTe,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=l=>i.searchQuery=l),type:"text",placeholder:"Buscar lista..."},null,512),[[e.vModelText,i.searchQuery]]),i.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:o[2]||(o[2]=(...l)=>i.clearSearch&&i.clearSearch(...l))},TTe)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"crear-playlist",onClick:o[3]||(o[3]=(...l)=>i.handleCreateListClick&&i.handleCreateListClick(...l))},[BTe,e.createTextVNode(" Crear nueva lista ")])])]),e.createElementVNode("div",FTe,[e.createElementVNode("div",PTe,[i.isLoading?(e.openBlock(),e.createElementBlock("div",$Te," Cargando listas... ")):i.filteredPlaylists.length===0?(e.openBlock(),e.createElementBlock("div",ATe," No hay listas disponibles ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(i.filteredPlaylists,l=>{var n;return e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["list-item",{disabled:l.isDisabled}])},[e.createElementVNode("div",ITe,[l.isDisabled?(e.openBlock(),e.createElementBlock("div",MTe)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"checkbox",id:l.id,checked:i.selectedPlaylist===l.id,onChange:c=>i.handlePlaylistSelection(l.id,l.isDisabled)},null,40,zTe))]),OTe,e.createElementVNode("div",RTe,[e.createElementVNode("div",LTe,e.toDisplayString(l==null?void 0:l.name),1),e.createElementVNode("div",DTe,e.toDisplayString((n=l==null?void 0:l.template)==null?void 0:n.name),1)])],2)}),128))])])]),e.createElementVNode("div",vTe,[e.createElementVNode("div",jTe,[e.createElementVNode("button",{class:"create-list-link",onClick:o[4]||(o[4]=(...l)=>i.handleCreateListClick&&i.handleCreateListClick(...l))},HTe),e.createElementVNode("div",GTe,[e.createElementVNode("button",{class:"cancelar",onClick:o[5]||(o[5]=(...l)=>i.closeModal&&i.closeModal(...l))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:o[6]||(o[6]=(...l)=>i.handleCreatePlaylist&&i.handleCreatePlaylist(...l)),disabled:!i.selectedPlaylist}," Guardar ",8,qTe)])])])],512)])):e.createCommentVNode("",!0)]),_:1})}const ZTe=it(gTe,[["render",JTe],["__scopeId","data-v-67caccaa"]]),YTe={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:o}){const a=e.ref(null),i=e.ref({title:"",templateId:""}),s=e.ref(0),r=()=>{a.value&&(s.value=a.value.offsetWidth)},l=p=>{document.body.style.overflow=p?"hidden":"auto"},n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=()=>{r(),t.isVisible&&l(!0)},d=()=>{i.value={title:"",templateId:""},o("close")},u=async()=>{if(!(!i.value.title||!i.value.templateId))try{const p=t.templates.find(h=>h.id===i.value.templateId),y={user_id:t.userId,name:i.value.title,template:p,players:[t.player]},m=await We.create({headers:{Authorization:`${n}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,y);d()}catch(p){console.error("Error al crear la lista:",p)}};return e.onMounted(()=>{window.addEventListener("resize",c)}),e.onUnmounted(()=>{window.removeEventListener("resize",c),l(!1)}),e.watch(()=>t.isVisible,p=>{p?(setTimeout(r,0),l(!0)):l(!1)}),e.watch(()=>t.listData,p=>{p&&(p.name&&(i.value.title=p.name),p.template&&(i.value.templateId=Number(p.template)))},{immediate:!0}),{modalContent:a,playlistData:i,modalWidth:s,closeModal:d,handleNext:u}}},_m=t=>(e.pushScopeId("data-v-0dd449b4"),t=t(),e.popScopeId(),t),KTe={class:"modal-header"},XTe=_m(()=>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)),QTe=_m(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),eBe=[QTe],tBe={class:"modal-body"},aBe=_m(()=>e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una plantilla",-1)),oBe=["value"],iBe={class:"modal-footer"},sBe={class:"buttons-container buttons-container-step1"},rBe=["disabled"];function lBe(t,o,a,i,s,r){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:o[6]||(o[6]=(...l)=>i.closeModal&&i.closeModal(...l))},[e.createElementVNode("div",{class:"modal-content",onClick:o[5]||(o[5]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",KTe,[XTe,e.createElementVNode("button",{class:"close-button",onClick:o[0]||(o[0]=(...l)=>i.closeModal&&i.closeModal(...l))},eBe)]),e.createElementVNode("div",tBe,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=l=>i.playlistData.title=l),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,i.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":o[2]||(o[2]=l=>i.playlistData.templateId=l),class:"select-position"},[aBe,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.templates,l=>(e.openBlock(),e.createElementBlock("option",{key:l.id,value:l.id},e.toDisplayString(l.name),9,oBe))),128))],512),[[e.vModelSelect,i.playlistData.templateId]])]),e.createElementVNode("div",iBe,[e.createElementVNode("div",sBe,[e.createElementVNode("button",{class:"cancelar",onClick:o[3]||(o[3]=(...l)=>i.closeModal&&i.closeModal(...l))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:o[4]||(o[4]=(...l)=>i.handleNext&&i.handleNext(...l)),disabled:!i.playlistData.title||!i.playlistData.templateId}," Guardar ",8,rBe)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const nBe=it(YTe,[["render",lBe],["__scopeId","data-v-0dd449b4"]]),dBe=[{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}]}],cBe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},pBe={key:1},mBe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uBe=["fill"],fBe={key:0,class:"checkbox__teams"},hBe={class:"checkbox__teams__logo"},yBe=["src"],gBe={class:"checkbox__teams__logo"},bBe=["src"],SBe={__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:o}){const a=t;e.useCssVars(d=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const i=e.ref(!1),s=e.computed(()=>{const d={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 i.value?(d["background-color"]=a.boxBackgroundColor,d.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):d.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,d}),r=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),l=e.computed(()=>{const d={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")&&(d[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),d});e.watch(()=>a.modelValue,d=>{d!==i.value&&(i.value=d)},{immediate:!0});function n(){a.avoidInteraction||!i.value&&a.avoidToCheck||(i.value=!i.value,o("update:modelValue",i.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${d}.png`}return(d,u)=>(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)},[i.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(r.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",pBe,[(e.openBlock(),e.createElementBlock("svg",mBe,[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,uBe)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",fBe,[e.createElementVNode("div",hBe,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,yBe)]),e.createElementVNode("div",gBe,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,bBe)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(l.value)},e.toDisplayString(t.label),5)],2))}},_Be=cBe(SBe,[["__scopeId","data-v-b6f124d8"]]),CBe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},Cm={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))}}},Vb=()=>{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}))},xb=Cm.setup;Cm.setup=xb?(t,o)=>(Vb(),xb(t,o)):Vb;const wBe=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),kBe=["src"],EBe={key:1,class:"text"},VBe=["src"],xBe={class:"stats"},NBe=wBe(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),TBe={class:"numstats"},BBe={class:"leyend"};function FBe(t,o,a,i,s,r){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([r.customStyle,s.status&&a.typeOnOff&&r.customActive]),onClick:o[0]||(o[0]=(...l)=>r.btnClick&&r.btnClick(...l))},[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,kBe)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",EBe,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,VBe)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...l)=>r.btnClick&&r.btnClick(...l))},[e.createElementVNode("div",xBe,[NBe,e.createElementVNode("div",TBe,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",BBe,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const PBe=CBe(Cm,[["render",FBe],["__scopeId","data-v-f3ee6b2b"]]),Nb=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},wm=t=>(e.pushScopeId("data-v-764bd788"),t=t(),e.popScopeId(),t),$Be={key:0,class:"overlay"},ABe=["onClick"],IBe=wm(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),zBe=[IBe],MBe=["onClick"],OBe=wm(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),RBe=[OBe],LBe=wm(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),DBe=["onClick"],vBe={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1}},emits:["expand","open-media","click-parameters","sort"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(null),r=e.ref(null),l=e.ref(0);e.ref(!1);const n=e.computed(()=>{const h=i.availablePlayers[0];return h?h.stats:[]}),c=e.computed(()=>{const h=`repeat(${n.value.length}, max-content) 36px`;let f="";return l.value>0&&document.querySelectorAll(".column-title-2").forEach(g=>{f+=`${g.offsetWidth}px `}),{"--grid-template-columns":h,"--grid-template-columns-totals":f||h}});function d(){s.value=new ResizeObserver(h=>{for(const f of h){const{width:g}=f.contentRect;l.value=g}}),s.value.observe(r.value)}function u(h,f){const g=document.querySelectorAll(".scrollable-row-totals")[h+1];g&&(g.style.marginTop=`${f}px`)}function p({player:h,stat:f}){!f.total||f==="0%"||!f.seasons||!f.seasons.length||a("open-media",{...h,stat:f})}function y(h){!h||h==="no"||a("click-parameters",h)}function m(h){a("sort",h)}return e.onMounted(()=>{d()}),o({setMarginTopDetails:u}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(c.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",$Be)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:r,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${b}`,class:"column-title-2"},[g.parameters&&g.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:S=>y(g.parameters)},zBe,8,ABe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"name",style:e.normalizeStyle(t.isMobile?"font-size: 10px;":"")},e.toDisplayString(g.name),5),(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:S=>m(g)},RBe,8,MBe))]))),128)),LBe],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${g.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.stats,S=>(e.openBlock(),e.createElementBlock("div",{key:S.category_id,class:e.normalizeClass(["row data-info",{odd:b%2!==0,underline:!!S.total&&S.total!=="0%"&&S.seasons&&S.seasons.length}])},[e.createElementVNode("span",{onClick:F=>p({player:g,stat:S})},e.toDisplayString(S.total),9,DBe)],2))),128))]))),128))],4))}},jBe=Nb(vBe,[["__scopeId","data-v-764bd788"]]);function Tb(t,o){return function(){return t.apply(o,arguments)}}const{toString:UBe}=Object.prototype,{getPrototypeOf:km}=Object,{iterator:dn,toStringTag:Bb}=Symbol,cn=(t=>o=>{const a=UBe.call(o);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),la=t=>(t=t.toLowerCase(),o=>cn(o)===t),pn=t=>o=>typeof o===t,{isArray:Ei}=Array,Bs=pn("undefined");function WBe(t){return t!==null&&!Bs(t)&&t.constructor!==null&&!Bs(t.constructor)&&Rt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Fb=la("ArrayBuffer");function HBe(t){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(t):o=t&&t.buffer&&Fb(t.buffer),o}const GBe=pn("string"),Rt=pn("function"),Pb=pn("number"),mn=t=>t!==null&&typeof t=="object",qBe=t=>t===!0||t===!1,un=t=>{if(cn(t)!=="object")return!1;const o=km(t);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Bb in t)&&!(dn in t)},JBe=la("Date"),ZBe=la("File"),YBe=la("Blob"),KBe=la("FileList"),XBe=t=>mn(t)&&Rt(t.pipe),QBe=t=>{let o;return t&&(typeof FormData=="function"&&t instanceof FormData||Rt(t.append)&&((o=cn(t))==="formdata"||o==="object"&&Rt(t.toString)&&t.toString()==="[object FormData]"))},eFe=la("URLSearchParams"),[tFe,aFe,oFe,iFe]=["ReadableStream","Request","Response","Headers"].map(la),sFe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(t,o,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Ei(t))for(i=0,s=t.length;i<s;i++)o.call(null,t[i],i,t);else{const r=a?Object.getOwnPropertyNames(t):Object.keys(t),l=r.length;let n;for(i=0;i<l;i++)n=r[i],o.call(null,t[n],n,t)}}function $b(t,o){o=o.toLowerCase();const a=Object.keys(t);let i=a.length,s;for(;i-- >0;)if(s=a[i],o===s.toLowerCase())return s;return null}const zo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ab=t=>!Bs(t)&&t!==zo;function Em(){const{caseless:t}=Ab(this)&&this||{},o={},a=(i,s)=>{const r=t&&$b(o,s)||s;un(o[r])&&un(i)?o[r]=Em(o[r],i):un(i)?o[r]=Em({},i):Ei(i)?o[r]=i.slice():o[r]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Fs(arguments[i],a);return o}const rFe=(t,o,a,{allOwnKeys:i}={})=>(Fs(o,(s,r)=>{a&&Rt(s)?t[r]=Tb(s,a):t[r]=s},{allOwnKeys:i}),t),lFe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),nFe=(t,o,a,i)=>{t.prototype=Object.create(o.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:o.prototype}),a&&Object.assign(t.prototype,a)},dFe=(t,o,a,i)=>{let s,r,l;const n={};if(o=o||{},t==null)return o;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)l=s[r],(!i||i(l,t,o))&&!n[l]&&(o[l]=t[l],n[l]=!0);t=a!==!1&&km(t)}while(t&&(!a||a(t,o))&&t!==Object.prototype);return o},cFe=(t,o,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=o.length;const i=t.indexOf(o,a);return i!==-1&&i===a},pFe=t=>{if(!t)return null;if(Ei(t))return t;let o=t.length;if(!Pb(o))return null;const a=new Array(o);for(;o-- >0;)a[o]=t[o];return a},mFe=(t=>o=>t&&o instanceof t)(typeof Uint8Array<"u"&&km(Uint8Array)),uFe=(t,o)=>{const a=(t&&t[dn]).call(t);let i;for(;(i=a.next())&&!i.done;){const s=i.value;o.call(t,s[0],s[1])}},fFe=(t,o)=>{let a;const i=[];for(;(a=t.exec(o))!==null;)i.push(a);return i},hFe=la("HTMLFormElement"),yFe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,i){return a.toUpperCase()+i}),Ib=(({hasOwnProperty:t})=>(o,a)=>t.call(o,a))(Object.prototype),gFe=la("RegExp"),zb=(t,o)=>{const a=Object.getOwnPropertyDescriptors(t),i={};Fs(a,(s,r)=>{let l;(l=o(s,r,t))!==!1&&(i[r]=l||s)}),Object.defineProperties(t,i)},bFe=t=>{zb(t,(o,a)=>{if(Rt(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const i=t[a];if(Rt(i)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},SFe=(t,o)=>{const a={},i=s=>{s.forEach(r=>{a[r]=!0})};return Ei(t)?i(t):i(String(t).split(o)),a},_Fe=()=>{},CFe=(t,o)=>t!=null&&Number.isFinite(t=+t)?t:o;function wFe(t){return!!(t&&Rt(t.append)&&t[Bb]==="FormData"&&t[dn])}const kFe=t=>{const o=new Array(10),a=(i,s)=>{if(mn(i)){if(o.indexOf(i)>=0)return;if(!("toJSON"in i)){o[s]=i;const r=Ei(i)?[]:{};return Fs(i,(l,n)=>{const c=a(l,s+1);!Bs(c)&&(r[n]=c)}),o[s]=void 0,r}}return i};return a(t,0)},EFe=la("AsyncFunction"),VFe=t=>t&&(mn(t)||Rt(t))&&Rt(t.then)&&Rt(t.catch),Mb=((t,o)=>t?setImmediate:o?((a,i)=>(zo.addEventListener("message",({source:s,data:r})=>{s===zo&&r===a&&i.length&&i.shift()()},!1),s=>{i.push(s),zo.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Rt(zo.postMessage)),xFe=typeof queueMicrotask<"u"?queueMicrotask.bind(zo):typeof process<"u"&&process.nextTick||Mb,NFe=t=>t!=null&&Rt(t[dn]),le={isArray:Ei,isArrayBuffer:Fb,isBuffer:WBe,isFormData:QBe,isArrayBufferView:HBe,isString:GBe,isNumber:Pb,isBoolean:qBe,isObject:mn,isPlainObject:un,isReadableStream:tFe,isRequest:aFe,isResponse:oFe,isHeaders:iFe,isUndefined:Bs,isDate:JBe,isFile:ZBe,isBlob:YBe,isRegExp:gFe,isFunction:Rt,isStream:XBe,isURLSearchParams:eFe,isTypedArray:mFe,isFileList:KBe,forEach:Fs,merge:Em,extend:rFe,trim:sFe,stripBOM:lFe,inherits:nFe,toFlatObject:dFe,kindOf:cn,kindOfTest:la,endsWith:cFe,toArray:pFe,forEachEntry:uFe,matchAll:fFe,isHTMLForm:hFe,hasOwnProperty:Ib,hasOwnProp:Ib,reduceDescriptors:zb,freezeMethods:bFe,toObjectSet:SFe,toCamelCase:yFe,noop:_Fe,toFiniteNumber:CFe,findKey:$b,global:zo,isContextDefined:Ab,isSpecCompliantForm:wFe,toJSONObject:kFe,isAsyncFn:EFe,isThenable:VFe,setImmediate:Mb,asap:xFe,isIterable:NFe};function Ne(t,o,a,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",o&&(this.code=o),a&&(this.config=a),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}le.inherits(Ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:le.toJSONObject(this.config),code:this.code,status:this.status}}});const Ob=Ne.prototype,Rb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Rb[t]={value:t}}),Object.defineProperties(Ne,Rb),Object.defineProperty(Ob,"isAxiosError",{value:!0}),Ne.from=(t,o,a,i,s,r)=>{const l=Object.create(Ob);return le.toFlatObject(t,l,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Ne.call(l,t.message,o,a,i,s),l.cause=t,l.name=t.name,r&&Object.assign(l,r),l};const TFe=null;function Vm(t){return le.isPlainObject(t)||le.isArray(t)}function Lb(t){return le.endsWith(t,"[]")?t.slice(0,-2):t}function Db(t,o,a){return t?t.concat(o).map(function(i,s){return i=Lb(i),!a&&s?"["+i+"]":i}).join(a?".":""):o}function BFe(t){return le.isArray(t)&&!t.some(Vm)}const FFe=le.toFlatObject(le,{},null,function(t){return/^is[A-Z]/.test(t)});function fn(t,o,a){if(!le.isObject(t))throw new TypeError("target must be an object");o=o||new FormData,a=le.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!le.isUndefined(h[m])});const i=a.metaTokens,s=a.visitor||d,r=a.dots,l=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&le.isSpecCompliantForm(o);if(!le.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(le.isDate(m))return m.toISOString();if(!n&&le.isBlob(m))throw new Ne("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(m)||le.isTypedArray(m)?n&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,h,f){let g=m;if(m&&!f&&typeof m=="object"){if(le.endsWith(h,"{}"))h=i?h:h.slice(0,-2),m=JSON.stringify(m);else if(le.isArray(m)&&BFe(m)||(le.isFileList(m)||le.endsWith(h,"[]"))&&(g=le.toArray(m)))return h=Lb(h),g.forEach(function(b,S){!(le.isUndefined(b)||b===null)&&o.append(l===!0?Db([h],S,r):l===null?h:h+"[]",c(b))}),!1}return Vm(m)?!0:(o.append(Db(f,h,r),c(m)),!1)}const u=[],p=Object.assign(FFe,{defaultVisitor:d,convertValue:c,isVisitable:Vm});function y(m,h){if(!le.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(m),le.forEach(m,function(f,g){(!(le.isUndefined(f)||f===null)&&s.call(o,f,le.isString(g)?g.trim():g,h,p))===!0&&y(f,h?h.concat(g):[g])}),u.pop()}}if(!le.isObject(t))throw new TypeError("data must be an object");return y(t),o}function vb(t){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return o[a]})}function xm(t,o){this._pairs=[],t&&fn(t,this,o)}const jb=xm.prototype;jb.append=function(t,o){this._pairs.push([t,o])},jb.toString=function(t){const o=t?function(a){return t.call(this,a,vb)}:vb;return this._pairs.map(function(a){return o(a[0])+"="+o(a[1])},"").join("&")};function PFe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ub(t,o,a){if(!o)return t;const i=a&&a.encode||PFe;le.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let r;if(s?r=s(o,a):r=le.isURLSearchParams(o)?o.toString():new xm(o,a).toString(i),r){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}let Wb=class{constructor(){this.handlers=[]}use(t,o,a){return this.handlers.push({fulfilled:t,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){le.forEach(this.handlers,function(o){o!==null&&t(o)})}};const Hb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$Fe=typeof URLSearchParams<"u"?URLSearchParams:xm,AFe=typeof FormData<"u"?FormData:null,IFe=typeof Blob<"u"?Blob:null,zFe={isBrowser:!0,classes:{URLSearchParams:$Fe,FormData:AFe,Blob:IFe},protocols:["http","https","file","blob","url","data"]},Nm=typeof window<"u"&&typeof document<"u",Tm=typeof navigator=="object"&&navigator||void 0,MFe=Nm&&(!Tm||["ReactNative","NativeScript","NS"].indexOf(Tm.product)<0),OFe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",RFe=Nm&&window.location.href||"http://localhost",LFe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nm,hasStandardBrowserEnv:MFe,hasStandardBrowserWebWorkerEnv:OFe,navigator:Tm,origin:RFe},Symbol.toStringTag,{value:"Module"})),gt={...LFe,...zFe};function DFe(t,o){return fn(t,new gt.classes.URLSearchParams,Object.assign({visitor:function(a,i,s,r){return gt.isNode&&le.isBuffer(a)?(this.append(i,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},o))}function vFe(t){return le.matchAll(/\w+|\[(\w*)]/g,t).map(o=>o[0]==="[]"?"":o[1]||o[0])}function jFe(t){const o={},a=Object.keys(t);let i;const s=a.length;let r;for(i=0;i<s;i++)r=a[i],o[r]=t[r];return o}function Gb(t){function o(a,i,s,r){let l=a[r++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),c=r>=a.length;return l=!l&&le.isArray(s)?s.length:l,c?(le.hasOwnProp(s,l)?s[l]=[s[l],i]:s[l]=i,!n):((!s[l]||!le.isObject(s[l]))&&(s[l]=[]),o(a,i,s[l],r)&&le.isArray(s[l])&&(s[l]=jFe(s[l])),!n)}if(le.isFormData(t)&&le.isFunction(t.entries)){const a={};return le.forEachEntry(t,(i,s)=>{o(vFe(i),s,a,0)}),a}return null}function UFe(t,o,a){if(le.isString(t))try{return(o||JSON.parse)(t),le.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(a||JSON.stringify)(t)}const Ps={transitional:Hb,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const a=o.getContentType()||"",i=a.indexOf("application/json")>-1,s=le.isObject(t);if(s&&le.isHTMLForm(t)&&(t=new FormData(t)),le.isFormData(t))return i?JSON.stringify(Gb(t)):t;if(le.isArrayBuffer(t)||le.isBuffer(t)||le.isStream(t)||le.isFile(t)||le.isBlob(t)||le.isReadableStream(t))return t;if(le.isArrayBufferView(t))return t.buffer;if(le.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return DFe(t,this.formSerializer).toString();if((r=le.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fn(r?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(o.setContentType("application/json",!1),UFe(t)):t}],transformResponse:[function(t){const o=this.transitional||Ps.transitional,a=o&&o.forcedJSONParsing,i=this.responseType==="json";if(le.isResponse(t)||le.isReadableStream(t))return t;if(t&&le.isString(t)&&(a&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(r){if(s)throw r.name==="SyntaxError"?Ne.from(r,Ne.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],t=>{Ps.headers[t]={}});const WFe=le.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),HFe=t=>{const o={};let a,i,s;return t&&t.split(`
|
|
54
|
+
`+s):a.stack=s}catch{}}throw a}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=Bo(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:s}=o;a!==void 0&&tn.assertOptions(a,{silentJSONParsing:Ca.transitional(Ca.boolean),forcedJSONParsing:Ca.transitional(Ca.boolean),clarifyTimeoutError:Ca.transitional(Ca.boolean)},!1),i!=null&&(re.isFunction(i)?o.paramsSerializer={serialize:i}:tn.assertOptions(i,{encode:Ca.function,serialize:Ca.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),tn.assertOptions(o,{baseUrl:Ca.spelling("baseURL"),withXsrfToken:Ca.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=s&&re.merge(s.common,s[o.method]);s&&re.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),o.headers=ra.concat(r,s);const l=[];let n=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(o)===!1||(n=n&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,u=0,p;if(!n){const m=[Q3.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,c),p=m.length,d=Promise.resolve(o);u<p;)d=d.then(m[u++],m[u++]);return d}p=l.length;let y=o;for(u=0;u<p;){const m=l[u++],h=l[u++];try{y=m(y)}catch(f){h.call(this,f);break}}try{d=Q3.call(this,y)}catch(m){return Promise.reject(m)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=Bo(this.defaults,t);const o=W3(t.baseURL,t.url,t.allowAbsoluteUrls);return z3(o,t.params,t.paramsSerializer)}};re.forEach(["delete","get","head","options"],function(t){an.prototype[t]=function(o,a){return this.request(Bo(a||{},{method:t,url:o,data:(a||{}).data}))}}),re.forEach(["post","put","patch"],function(t){function o(a){return function(i,s,r){return this.request(Bo(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}an.prototype[t]=o(),an.prototype[t+"Form"]=o(!0)});const on=an,s_e=class S4{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{i.subscribe(n),r=n}).then(s);return l.cancel=function(){i.unsubscribe(r)},l},o(function(s,r,l){i.reason||(i.reason=new Si(s,r,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const o=new AbortController,a=i=>{o.abort(i)};return this.subscribe(a),o.signal.unsubscribe=()=>this.unsubscribe(a),o.signal}static source(){let o;return{token:new S4(function(a){o=a}),cancel:o}}};function r_e(t){return function(o){return t.apply(null,o)}}function l_e(t){return re.isObject(t)&&t.isAxiosError===!0}const nm={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(nm).forEach(([t,o])=>{nm[o]=t});const n_e=nm;function ab(t){const o=new on(t),a=_3(on.prototype.request,o);return re.extend(a,on.prototype,o,{allOwnKeys:!0}),re.extend(a,o,null,{allOwnKeys:!0}),a.create=function(i){return ab(Bo(t,i))},a}const at=ab(am);at.Axios=on,at.CanceledError=Si,at.CancelToken=s_e,at.isCancel=D3,at.VERSION=eb,at.toFormData=Jl,at.AxiosError=xe,at.Cancel=at.CanceledError,at.all=function(t){return Promise.all(t)},at.spread=r_e,at.isAxiosError=l_e,at.mergeConfig=Bo,at.AxiosHeaders=ra,at.formToJSON=t=>R3(re.isHTMLForm(t)?new FormData(t):t),at.getAdapter=X3.getAdapter,at.HttpStatusCode=n_e,at.default=at;const Fo=at,_i={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,o)=>1981+o).sort((t,o)=>o-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"}]},ob={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"},ib={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 sn(t){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},sn(t)}function Ta(t){if(t===null||t===!0||t===!1)return NaN;var o=Number(t);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function Ke(t,o){if(o.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+o.length+" present")}function Ue(t){Ke(1,arguments);var o=Object.prototype.toString.call(t);return t instanceof Date||sn(t)==="object"&&o==="[object Date]"?new Date(t.getTime()):typeof t=="number"||o==="[object Number]"?new Date(t):((typeof t=="string"||o==="[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 d_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ta(o);return isNaN(i)?new Date(NaN):(i&&a.setDate(a.getDate()+i),a)}function c_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ta(o);if(isNaN(i))return new Date(NaN);if(!i)return a;var s=a.getDate(),r=new Date(a.getTime());r.setMonth(a.getMonth()+i+1,0);var l=r.getDate();return s>=l?r:(a.setFullYear(r.getFullYear(),r.getMonth(),s),a)}function Vs(t,o){if(Ke(2,arguments),!o||sn(o)!=="object")return new Date(NaN);var a=o.years?Ta(o.years):0,i=o.months?Ta(o.months):0,s=o.weeks?Ta(o.weeks):0,r=o.days?Ta(o.days):0,l=o.hours?Ta(o.hours):0,n=o.minutes?Ta(o.minutes):0,c=o.seconds?Ta(o.seconds):0,d=Ue(t),u=i||a?c_e(d,i+a*12):d,p=r||s?d_e(u,r+s*7):u,y=n+l*60,m=c+y*60,h=m*1e3,f=new Date(p.getTime()+h);return f}function sb(t){var o=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return o.setUTCFullYear(t.getFullYear()),t.getTime()-o.getTime()}function rb(t){Ke(1,arguments);var o=Ue(t);return o.setHours(0,0,0,0),o}var p_e=864e5;function m_e(t,o){Ke(2,arguments);var a=rb(t),i=rb(o),s=a.getTime()-sb(a),r=i.getTime()-sb(i);return Math.round((s-r)/p_e)}function Ci(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=a.getTime()-i.getTime();return s<0?-1:s>0?1:s}var u_e=6e4,f_e=36e5;function h_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=a.getFullYear()-i.getFullYear(),r=a.getMonth()-i.getMonth();return s*12+r}function y_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o);return a.getFullYear()-i.getFullYear()}function lb(t,o){var a=t.getFullYear()-o.getFullYear()||t.getMonth()-o.getMonth()||t.getDate()-o.getDate()||t.getHours()-o.getHours()||t.getMinutes()-o.getMinutes()||t.getSeconds()-o.getSeconds()||t.getMilliseconds()-o.getMilliseconds();return a<0?-1:a>0?1:a}function g_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=lb(a,i),r=Math.abs(m_e(a,i));a.setDate(a.getDate()-s*r);var l=+(lb(a,i)===-s),n=s*(r-l);return n===0?0:n}function dm(t,o){return Ke(2,arguments),Ue(t).getTime()-Ue(o).getTime()}var b_e={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},S_e="trunc";function cm(t){return b_e[S_e]}function __e(t,o,a){Ke(2,arguments);var i=dm(t,o)/f_e;return cm()(i)}function C_e(t,o,a){Ke(2,arguments);var i=dm(t,o)/u_e;return cm()(i)}function w_e(t){Ke(1,arguments);var o=Ue(t);return o.setHours(23,59,59,999),o}function k_e(t){Ke(1,arguments);var o=Ue(t),a=o.getMonth();return o.setFullYear(o.getFullYear(),a+1,0),o.setHours(23,59,59,999),o}function E_e(t){Ke(1,arguments);var o=Ue(t);return w_e(o).getTime()===k_e(o).getTime()}function V_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=Ci(a,i),r=Math.abs(h_e(a,i)),l;if(r<1)l=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*r);var n=Ci(a,i)===-s;E_e(Ue(t))&&r===1&&Ci(t,i)===1&&(n=!1),l=s*(r-Number(n))}return l===0?0:l}function x_e(t,o,a){Ke(2,arguments);var i=dm(t,o)/1e3;return cm()(i)}function N_e(t,o){Ke(2,arguments);var a=Ue(t),i=Ue(o),s=Ci(a,i),r=Math.abs(y_e(a,i));a.setFullYear(1584),i.setFullYear(1584);var l=Ci(a,i)===-s,n=s*(r-Number(l));return n===0?0:n}function nb(t){return Ke(1,arguments),Ue(t).getFullYear()}function db(t){Ke(1,arguments);var o=Ue(t.start),a=Ue(t.end);if(isNaN(o.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var i={};i.years=Math.abs(N_e(a,o));var s=Ci(a,o),r=Vs(o,{years:s*i.years});i.months=Math.abs(V_e(a,r));var l=Vs(r,{months:s*i.months});i.days=Math.abs(g_e(a,l));var n=Vs(l,{days:s*i.days});i.hours=Math.abs(__e(a,n));var c=Vs(n,{hours:s*i.hours});i.minutes=Math.abs(C_e(a,c));var d=Vs(c,{minutes:s*i.minutes});return i.seconds=Math.abs(x_e(a,d)),i}const T_e="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",B_e="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",Po={..._i},cb=new Set([1]);async function F_e(t,o=""){try{const a={Authorization:o||T_e},i={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:B_e,s=await Fo.get(i+t.id,{headers:a});return s.data?s.data.players:[]}catch(a){return Promise.reject(a)}}async function P_e(t=[],o=""){try{const a=t.map(i=>F_e(i,o));if(a.length){const i=new Set,s=new Date,r=[],l=new Map,n=new Map,c=await Promise.all(a);for(const d of c)for(const u of d){const p=new Date(u.dob),y=nb(p),m=db({start:p,end:s});l.has(u.nationality_id)||l.set(u.nationality_id,{id:u.nationality_id,isSelected:!0,name:ob[`${u.nationality_id}`]}),n.has(u.position_id)||n.set(u.position_id,{id:u.position_id,isSelected:!0,name:ib[`${u.position_id}`]}),i.add(y),r.push(m.years)}return Po.minAge=Math.min(...r),Po.maxAge=Math.max(...r),Po.availableYears=[...i].sort((d,u)=>u-d),Po.nationalities=[...l.values()],Po.positions=[...n.values()],Po.isEligibilitySwitchVisible=t.some(d=>cb.has(d.tournamentId)),Po}else return null}catch(a){return Promise.reject(a)}}const $_e={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:o}){const a=t,i=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){i.value&&(i.value.checked=a.modelValue)}function r(l){o("update:modelValue",l.target.checked)}return e.onMounted(()=>{s()}),(l,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:i,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:r},null,544))}},xs=Ae($_e,[["__scopeId","data-v-e3a6ae4e"]]),$o=t=>(e.pushScopeId("data-v-cfc8bb98"),t=t(),e.popScopeId(),t),A_e={class:"personal-data"},I_e={class:"personal-data__age"},z_e={class:"personal-data__age__toggle"},M_e={class:"personal-data__age__range"},O_e={class:"personal-data__age__dropdown"},R_e=$o(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),L_e={class:"selected-item"},D_e=$o(()=>e.createElementVNode("div",{class:"separator"},null,-1)),v_e={class:"personal-data__nationality-position"},j_e={key:0,class:"personal-data__nationality-position__switch"},U_e=$o(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),W_e=$o(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),H_e={class:"personal-data__nationality-position__nationality"},G_e=$o(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),q_e={class:"selected-item"},J_e=$o(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),Z_e={class:"selected-item"},Y_e={class:"personal-data__nationality-position__position"},K_e=$o(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),X_e={class:"selected-item"},Q_e="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",e8e={__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},isEligibilityVisible:{type:Boolean,default:!0},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:o,emit:a}){const i=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},r={id:0,name:"Todas las posiciones",isSelected:!1},l=e.ref({..._i}),n=e.ref(["Por edad","Por año"]),c=e.ref(0),d=e.ref({min:_i.minAge,max:_i.maxAge}),u=e.ref(ja),p=e.ref(""),y=e.ref(""),m=e.ref(l.value.availableYears[l.value.availableYears.length-1]),h=e.ref(0),f=e.computed(()=>{const k=l.value.nationalities?[...l.value.nationalities]:[];i.isSeleccion&&k.forEach(V=>{V.isSelected=V.id===138});const E=k[0];return(!E||E.id!==0)&&k.unshift(s),k}),g=e.computed(()=>{let k=(i.filter&&i.filter.positions?i.filter.positions:l.value.positions)?[...l.value.positions]:[];const E=k[0];return(!E||E.id!==0)&&k.unshift(r),k.sort((V,N)=>V.id-N.id),k}),b=e.computed(()=>i.isEligibilityVisible?i.season&&i.season.tournamentId&&cb.has(i.season.tournamentId)||i.filters&&i.filters.isEligibilitySwitchVisible:!1);e.watch(f,k=>{const E=k.reduce((V,N,Y)=>(Y!==0&&N.isSelected&&V++,V),0);E===f.value.length-1&&(k[0].isSelected=!0),k[0]&&k[0].isSelected?p.value="Todas las nacionalidades":p.value=`${E} seleccionadas`,P()},{immediate:!0,deep:!0}),e.watch(g,k=>{const E=k.reduce((V,N,Y)=>(Y!==0&&N.isSelected&&V++,V),0);E===g.value.length-1&&(k[0].isSelected=!0),k[0]&&k[0].isSelected?y.value="Todas las posiciones":y.value=`${E} seleccionadas`,P()},{immediate:!0,deep:!0}),e.watch(()=>i.filters,k=>{if(k&&k.availableYears){const E=!Number.isNaN(Number(k.selectedYear));l.value=k,c.value=l.value.selectedYear&&E?1:0,m.value=E?l.value.selectedYear:l.value.availableYears[0],d.value.min=l.value.minAge,d.value.max=l.value.maxAge,r.isSelected=k.positions.every(V=>V.isSelected),P()}},{immediate:!0,deep:!0}),e.watch(()=>l.value.isEligibilitySelected,()=>{P()}),e.watch(()=>i.season,k=>{k&&k.id!==h.value&&!i.awaitForFilters&&(h.value=k.id,S(k))},{immediate:!0,deep:!1});async function S(k){try{if(k&&k.id){const E=new Set,V=await v(k.id),N=new Date,Y=[],de=new Map,ue=new Map;V.forEach(C=>{const I=new Date(C.dob),U=nb(I),z=db({start:I,end:N});de.has(C.nationality_id)||de.set(C.nationality_id,{id:C.nationality_id,isSelected:!0,name:ob[`${C.nationality_id}`]}),ue.has(C.position_id)||ue.set(C.position_id,{id:C.position_id,isSelected:!0,name:ib[`${C.position_id}`]}),E.add(U),Y.push(z.years)}),l.value.minAge=Math.min(...Y),l.value.maxAge=Math.max(...Y),l.value.availableYears=[...E].sort((C,I)=>I-C),m.value=l.value.availableYears[0],l.value.nationalities=[...de.values()],l.value.positions=[...ue.values()],d.value.min=l.value.minAge,d.value.max=l.value.maxAge}}catch(E){throw new Error(E)}}function F(k=null){const E=!k||k===$e.All;(E||k===$e.NATIONALITY)&&f.value.forEach(V=>{V.isSelected=!0}),(E||k===$e.ELIGIBILITY)&&(l.value.isEligibilitySelected=!1),(E||k===$e.POSITION)&&g.value.forEach(V=>{V.isSelected=!0}),(E||k===$e.AGE_RANGE)&&(d.value.min=l.value.minAge,d.value.max=l.value.maxAge,c.value=0),(E||k===$e.YEAR)&&(m.value=i.isScouting?l.value.availableYears[l.value.availableYears.length-1]:l.value.availableYears[0],c.value=0),P()}async function v(k){try{const E={Authorization:localStorage.getItem("user_token")||i.token},V={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:Q_e,N=await Fo.get(V+k,{headers:E});return N.data?N.data.players:[]}catch(E){return Promise.reject(E)}}function T(k){c.value=k.index,i.filters&&i.filters.availableYears&&k.index===0&&(i.filters.selectedYear="Sin límite")}function M(k){d.value.min=k.minValue,d.value.max=k.maxValue,P()}function D(k,E){E.id===0?f.value.forEach(V=>{V.isSelected=k}):(E.isSelected=k,f.value[0].isSelected=f.value.every((V,N)=>N===0?!0:V.isSelected))}function P(){const k=c.value===0,E={};k?(E.ageByRange=d.value,E.ageLimits={min:l.value.minAge,max:l.value.maxAge}):E.year=m.value,l.value.isEligibilitySelected?E.eligibility=[...l.value.eligibility]:E.nationalities=f.value.reduce((V,N,Y)=>(Y!==0&&V.push({...N}),V),[]),E.positions=g.value.reduce((V,N,Y)=>(Y!==0&&V.push({...N}),V),[]),a("update:filters",E)}function Q(k,E){E.id===0?g.value.forEach(V=>{V.isSelected=k}):(E.isSelected=k,g.value[0].isSelected=g.value.every((V,N)=>N===0?!0:V.isSelected))}function O(k){m.value=k,i.filters&&(i.filters.selectedYear=k),P()}return o({onClearFilters:F}),(k,E)=>(e.openBlock(),e.createElementBlock("div",A_e,[e.createElementVNode("div",I_e,[e.createElementVNode("div",z_e,[e.createVNode(F6e,{"selected-button-index":c.value,buttons:n.value,width:"220px",onChange:T},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",M_e,[e.createVNode(e.unref(m3),{"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":l.value.minAge,"max-limit":l.value.maxAge,"min-value":d.value.min,"max-value":d.value.max,onInput:M},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",O_e,[R_e,e.createVNode(e.unref(ia),e.mergeProps({"model-value":m.value},u.value,{items:l.value.availableYears,onInput:O}),{default:e.withCtx(({selectedItem:V})=>[e.createElementVNode("div",L_e,e.toDisplayString(V),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,e.toDisplayString(V),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),D_e,e.createElementVNode("div",v_e,[b.value?(e.openBlock(),e.createElementBlock("div",j_e,[U_e,e.createVNode(xs,{modelValue:l.value.isEligibilitySelected,"onUpdate:modelValue":E[0]||(E[0]=V=>l.value.isEligibilitySelected=V)},null,8,["modelValue"]),W_e])):e.createCommentVNode("",!0),e.createElementVNode("div",H_e,[l.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[J_e,e.createVNode(e.unref(ia),e.mergeProps(u.value,{"is-multiple-option":"",items:l.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:V})=>[e.createElementVNode("div",Z_e,e.toDisplayString(V.name),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Fe),{"model-value":V.isSelected,label:V.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},[G_e,e.createVNode(e.unref(ia),e.mergeProps(u.value,{"is-multiple-option":"",items:f.value}),{default:e.withCtx(()=>[e.createElementVNode("div",q_e,e.toDisplayString(p.value),1)]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Fe),{"model-value":V.isSelected,label:V.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":N=>D(N,V)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",Y_e,[K_e,e.createVNode(e.unref(ia),e.mergeProps(u.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",X_e,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(y.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(y.value),1)],64))])]),availableItem:e.withCtx(({item:V})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Fe),{"model-value":V.isSelected,label:t.isFemale?V.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):V.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":N=>Q(N,V)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},t8e=Ae(e8e,[["__scopeId","data-v-cfc8bb98"]]),a8e={class:"plays"},o8e={class:"plays__body__offensive"},i8e={class:"plays__body__title"},s8e={class:"number-of-categories"},r8e={class:"plays__body__categories"},l8e={class:"plays__body__defensive-possession-offenses"},n8e={class:"plays__body__title"},d8e={class:"number-of-categories"},c8e={class:"plays__body__categories"},p8e={class:"plays__body__title"},m8e={class:"number-of-categories"},u8e={class:"plays__body__categories"},f8e={class:"plays__body__title"},h8e={class:"number-of-categories"},y8e={class:"plays__body__categories"},g8e={__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 o=t,a=e.ref(!1),i=e.ref(!1),s=e.ref(!1),r=e.ref(!1),l=e.computed(()=>({"--template-columns":o.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>o.playsCategories.offensive.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),c=e.computed(()=>o.playsCategories.defensive.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),d=e.computed(()=>o.playsCategories.possession.categories.reduce((m,h)=>(h.isSelected&&m++,m),0)),u=e.computed(()=>o.playsCategories.offenses.categories.reduce((m,h)=>(h.isSelected&&m++,m),0));function p(m,h){h.isSelected=m}function y(m){m==="offensive"?a.value=!a.value:m==="defensive"?i.value=!i.value:m==="possession"?s.value=!s.value:m==="offenses"&&(r.value=!r.value)}return(m,h)=>(e.openBlock(),e.createElementBlock("div",a8e,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",o8e,[e.createElementVNode("div",i8e,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[0]||(h[0]=f=>y("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",s8e,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[1]||(h[1]=f=>y("offensive"))},[e.withDirectives(e.createVNode(xo,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",r8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Fe),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",l8e,[e.createElementVNode("div",n8e,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[2]||(h[2]=f=>y("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",d8e,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[3]||(h[3]=f=>y("defensive"))},[e.withDirectives(e.createVNode(xo,{"is-expanded":i.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",c8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Fe),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||i.value]]),e.createElementVNode("div",p8e,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[4]||(h[4]=f=>y("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",m8e,"("+e.toDisplayString(d.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[5]||(h[5]=f=>y("possession"))},[e.withDirectives(e.createVNode(xo,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",u8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Fe),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",f8e,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[6]||(h[6]=f=>y("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",h8e,"("+e.toDisplayString(u.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[7]||(h[7]=f=>y("offenses"))},[e.withDirectives(e.createVNode(xo,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",y8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,f=>(e.openBlock(),e.createElementBlock("div",{key:f.id,class:"plays__checkbox"},[e.createVNode(e.unref(Fe),{label:f.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":f.isSelected,"box-value":f.priority||0,"onUpdate:modelValue":g=>p(g,f)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]])])],4)]))}},b8e=Ae(g8e,[["__scopeId","data-v-364e6cae"]]),S8e={class:"template-results"},_8e={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:o}){const a=t,i=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{o("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,r)=>(e.openBlock(),e.createElementBlock("div",S8e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(l,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(Fe),{modelValue:l.isSelected,"onUpdate:modelValue":c=>l.isSelected=c,label:l.name,"avoid-interaction":i.value===1&&l.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},C8e=Ae(_8e,[["__scopeId","data-v-453e89c2"]]),w8e={__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:o}){const a=t,i=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(){o("click")}return(r,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(i.value),onClick:s},e.toDisplayString(t.text),7))}},Ns=Ae(w8e,[["__scopeId","data-v-9688933e"]]),k8e={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},pb={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},E8e={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},V8e={4:"OF",5:"Cf",6:"S",7:"F"};function pm(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const x8e={class:"dropdown"},N8e={class:"selected-item"},T8e={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",x8e,[e.createVNode(e.unref(ia),e.mergeProps(e.unref(ja),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",N8e,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),_:1},16,["is-list-same-width","items"])]))}},Ot=Ae(T8e,[["__scopeId","data-v-064d5f86"]]),B8e={class:"dropdown"},F8e={class:"game-item"},P8e={key:0,class:"item-game"},$8e={class:"match-day"},A8e={class:"team-logo"},I8e=["src"],z8e={class:"text"},M8e={class:"text score"},O8e={class:"text"},R8e={class:"team-logo"},L8e=["src"],D8e={class:"item-game"},v8e={class:"team-logo"},j8e=["src"],U8e={class:"text"},W8e={class:"text score"},H8e={class:"text"},G8e={class:"team-logo"},q8e=["src"],J8e={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",B8e,[e.createVNode(e.unref(ia),e.mergeProps(e.unref(ja),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",F8e,[r.homeTeam?(e.openBlock(),e.createElementBlock("div",P8e,[e.createElementVNode("div",$8e,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",A8e,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,I8e)]),e.createElementVNode("div",z8e,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",M8e,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",O8e,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",R8e,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,L8e)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",D8e,[e.createElementVNode("div",null,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",v8e,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,j8e)]),e.createElementVNode("div",U8e,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",W8e,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",H8e,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",G8e,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,q8e)])])]),_:1},16,["items"])]))}},rn=Ae(J8e,[["__scopeId","data-v-7883a91e"]]),ln=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),Z8e={class:"container"},Y8e={class:"container__row"},K8e={class:"container__row__wrapper"},X8e=ln(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Q8e={class:"container__row__wrapper__input"},e9e={class:"container__row two-items"},t9e={class:"container__row__wrapper"},a9e=ln(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),o9e={key:0,class:"container__row__wrapper__input"},i9e={class:"container__row__wrapper"},s9e=ln(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),r9e={key:0,class:"container__row__wrapper__input"},l9e={class:"container__row"},n9e={class:"container__row__wrapper"},d9e=ln(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),c9e={key:0,class:"container__row__wrapper__input"},p9e={class:"container__action"},m9e={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:o}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},i=e.ref(null),s=e.ref(null),r=e.ref(null),l=e.ref(null);function n(p){i.value=p,o("update:tournament",p)}function c(p){s.value=p,o("update:season",p)}function d(p){r.value=p}function u(p){l.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Z8e,[e.createElementVNode("div",Y8e,[e.createElementVNode("div",K8e,[X8e,e.createElementVNode("div",Q8e,[e.createVNode(Ot,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",e9e,[e.createElementVNode("div",t9e,[a9e,i.value&&i.value.seasons?(e.openBlock(),e.createElementBlock("div",o9e,[e.createVNode(Ot,{items:i.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",i9e,[s9e,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",r9e,[e.createVNode(Ot,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",l9e,[e.createElementVNode("div",n9e,[d9e,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",c9e,[e.createVNode(rn,{items:r.value.arrayGames,onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",p9e,[e.createVNode(Ns,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},u9e=Ae(m9e,[["__scopeId","data-v-b63e9c84"]]),f9e={class:"dropdown"},h9e={class:"item-team"},y9e={class:"team-logo"},g9e=["src"],b9e={class:"team-acronym"},S9e={class:"item-team"},_9e={class:"team-logo"},C9e=["src"],w9e={class:"team-acronym"},k9e={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:o}){function a(i){o("input",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",f9e,[e.createVNode(e.unref(ia),e.mergeProps(e.unref(ja),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",h9e,[e.createElementVNode("div",y9e,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,g9e)]),e.createElementVNode("div",b9e,e.toDisplayString(r.acronym),1)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",S9e,[e.createElementVNode("div",_9e,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,C9e)]),e.createElementVNode("div",w9e,e.toDisplayString(r.acronym),1)])]),_:1},16,["items"])]))}},mb=Ae(k9e,[["__scopeId","data-v-afd2bee8"]]),E9e={class:"advanced-filters"},V9e={class:"advanced-filters__buttons"},x9e=["onClick"],N9e={class:"advanced-filters__filters"},T9e={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const o=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>bqe)),i=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Mqe)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Rqe)),r=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:i}],l=e.ref(r[0]),n=e.computed(()=>o.selectedCategory?o.selectedCategory.subcategoryGroups||[]:[]);function c(d){l.value=d}return(d,u)=>(e.openBlock(),e.createElementBlock("div",E9e,[e.createElementVNode("div",V9e,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,p=>e.createElementVNode("div",{key:p.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:l.value.name===p.name}]),onClick:y=>c(p)},e.toDisplayString(p.name),11,x9e)),64))]),e.createElementVNode("div",N9e,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},mm=Ae(T9e,[["__scopeId","data-v-c62c5b9c"]]),Ao=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),B9e={class:"container"},F9e={class:"container__row"},P9e={class:"container__row__wrapper"},$9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),A9e={class:"container__row__wrapper__input"},I9e={class:"container__row two-items"},z9e={class:"container__row__wrapper"},M9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),O9e={key:0,class:"container__row__wrapper__input"},R9e={class:"container__row__wrapper"},L9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),D9e={key:0,class:"container__row__wrapper__input"},v9e={class:"container__row"},j9e={class:"container__row__wrapper"},U9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),W9e={key:0,class:"container__row__wrapper__input"},H9e={class:"container__row"},G9e={class:"container__row__wrapper"},q9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),J9e={key:0,class:"container__row__wrapper__input"},Z9e={class:"container__row type-and-advanced"},Y9e={class:"container__row__wrapper"},K9e=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),X9e={class:"container__row__wrapper__input"},Q9e={class:"container__row__wrapper center"},eCe=Ao(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),tCe={class:"container__row__wrapper__input"},aCe={class:"container__row"},oCe={class:"container__action"},iCe={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(null),u=e.ref(!0),p=e.computed(()=>c.value?c.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function y(S){s.value=S,o("update:tournament",S)}function m(S){r.value=S,o("update:season",S)}function h(S){n.value=S,o("update:team",S)}function f(S){c.value=S}function g(S){l.value=S}function b(S){d.value=S}return(S,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",B9e,[e.createElementVNode("div",F9e,[e.createElementVNode("div",P9e,[$9e,e.createElementVNode("div",A9e,[e.createVNode(Ot,{items:t.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),e.createElementVNode("div",I9e,[e.createElementVNode("div",z9e,[M9e,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",O9e,[e.createVNode(Ot,{items:s.value.seasons,itemTextKey:"name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",R9e,[L9e,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",D9e,[e.createVNode(mb,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",v9e,[e.createElementVNode("div",j9e,[U9e,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",W9e,[e.createVNode(Ot,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",H9e,[e.createElementVNode("div",G9e,[q9e,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",J9e,[e.createVNode(rn,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Z9e,[e.createElementVNode("div",Y9e,[K9e,e.createElementVNode("div",X9e,[e.createVNode(Ot,{items:p.value,itemTextKey:"name","is-list-same-width":!1,onInput:b},null,8,["items"])])]),e.createElementVNode("div",Q9e,[eCe,e.createElementVNode("div",tCe,[e.createVNode(xs,{modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=v=>u.value=v)},null,8,["modelValue"])])])]),e.createElementVNode("div",aCe,[e.createVNode(mm,{"selected-category":d.value},null,8,["selected-category"])])]),e.createElementVNode("div",oCe,[e.createVNode(Ns,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},sCe=Ae(iCe,[["__scopeId","data-v-575b26b5"]]),wi=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),rCe={class:"container"},lCe={class:"container__row"},nCe={class:"container__row__wrapper"},dCe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),cCe={class:"container__row__wrapper__input"},pCe={class:"container__row two-items"},mCe={class:"container__row__wrapper"},uCe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),fCe={key:0,class:"container__row__wrapper__input"},hCe={class:"container__row__wrapper"},yCe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),gCe={key:0,class:"container__row__wrapper__input"},bCe={class:"container__row"},SCe={class:"container__row__wrapper"},_Ce=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),CCe={key:0,class:"container__row__wrapper__input"},wCe={class:"container__row type-and-advanced"},kCe={class:"container__row__wrapper"},ECe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),VCe={class:"container__row__wrapper__input"},xCe={class:"container__row__wrapper center"},NCe=wi(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),TCe={class:"container__row__wrapper__input"},BCe={class:"container__row"},FCe={class:"container__action"},PCe={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.computed(()=>a.advancedFilterCategories.team);function p(g){s.value=g,o("update:tournament",g)}function y(g){r.value=g,o("update:season",g)}function m(g){n.value=g,o("update:team",g)}function h(g){l.value=g}function f(g){c.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",rCe,[e.createElementVNode("div",lCe,[e.createElementVNode("div",nCe,[dCe,e.createElementVNode("div",cCe,[e.createVNode(Ot,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",pCe,[e.createElementVNode("div",mCe,[uCe,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",fCe,[e.createVNode(Ot,{items:s.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",hCe,[yCe,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",gCe,[e.createVNode(mb,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",bCe,[e.createElementVNode("div",SCe,[_Ce,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",CCe,[e.createVNode(rn,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wCe,[e.createElementVNode("div",kCe,[ECe,e.createElementVNode("div",VCe,[e.createVNode(Ot,{items:u.value,itemTextKey:"name","is-list-same-width":!1,onInput:f},null,8,["items"])])]),e.createElementVNode("div",xCe,[NCe,e.createElementVNode("div",TCe,[e.createVNode(xs,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=S=>d.value=S)},null,8,["modelValue"])])])]),e.createElementVNode("div",BCe,[e.createVNode(mm,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",FCe,[e.createVNode(Ns,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},$Ce=Ae(PCe,[["__scopeId","data-v-6d73d5e6"]]),ki=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),ACe={class:"container"},ICe={class:"container__row"},zCe={class:"container__row__wrapper"},MCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),OCe={class:"container__row__wrapper__input"},RCe={class:"container__row two-items"},LCe={class:"container__row__wrapper"},DCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),vCe={key:0,class:"container__row__wrapper__input"},jCe={class:"container__row__wrapper"},UCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),WCe={key:0,class:"container__row__wrapper__input"},HCe={class:"container__row"},GCe={class:"container__row__wrapper"},qCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),JCe={key:0,class:"container__row__wrapper__input"},ZCe={class:"container__row type-and-advanced"},YCe={class:"container__row__wrapper"},KCe=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),XCe={class:"container__row__wrapper__input"},QCe={class:"container__row__wrapper center"},e7e=ki(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),t7e={class:"container__row__wrapper__input",style:{width:"fit-content"}},a7e={class:"container__row"},o7e={class:"container__action"},i7e={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:o}){const a=t,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),r=e.ref(null),l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(!0),u=e.computed(()=>a.advancedFilterCategories.games);function p(g){s.value=g,o("update:tournament",g)}function y(g){r.value=g,o("update:season",g)}function m(g){l.value=g}function h(g){n.value=g}function f(g){c.value=g}return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ACe,[e.createElementVNode("div",ICe,[e.createElementVNode("div",zCe,[MCe,e.createElementVNode("div",OCe,[e.createVNode(Ot,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",RCe,[e.createElementVNode("div",LCe,[DCe,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",vCe,[e.createVNode(Ot,{items:s.value.seasons,itemTextKey:"name",onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",jCe,[UCe,r.value&&r.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",WCe,[e.createVNode(Ot,{items:r.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",HCe,[e.createElementVNode("div",GCe,[qCe,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",JCe,[e.createVNode(rn,{items:l.value.arrayGames,onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ZCe,[e.createElementVNode("div",YCe,[KCe,e.createElementVNode("div",XCe,[e.createVNode(Ot,{items:u.value,itemTextKey:"name","is-list-same-width":!1,onInput:f},null,8,["items"])])]),e.createElementVNode("div",QCe,[e7e,e.createElementVNode("div",t7e,[e.createVNode(xs,{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=S=>d.value=S)},null,8,["modelValue"])])])]),e.createElementVNode("div",a7e,[e.createVNode(mm,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",o7e,[e.createVNode(Ns,e.normalizeProps(e.guardReactiveProps(i)),null,16)])],64))}},s7e=Ae(i7e,[["__scopeId","data-v-6e904db8"]]),r7e={class:"template-videos"},l7e={class:"template-videos__header"},n7e={class:"template-videos__body"},d7e=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:u9e,VideosPlayer:sCe,VideosTeam:$Ce,VideosGame:s7e}}),c7e=Object.assign(d7e,{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:o}){const a=t,i={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],r=["g-23","g-24","g-25"],l={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),d=e.ref([]),u=e.ref(c.value[0]),p=e.ref({}),y=e.ref({}),m=e.ref({}),h=e.ref({}),f=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const b=e.ref(null);e.watch(p,C=>{y.value.numberSeasonSelectedIndex=y.value.seasons.findIndex(I=>I.id===C.id),C.arrayMatchDays?(h.value=C.arrayMatchDays[0]||{},m.value=C.arrayTeams[0]||{}):(M(C),D(C))}),e.watch(m,()=>{setTimeout(()=>{p.value.mapPlayersByTeam&&(!m.value.arrayPlayers||!m.value.arrayPlayers.length)&&(m.value.arrayPlayers=p.value.mapPlayersByTeam.get(m.value.team_id))},700)});async function S(){try{d.value=await F()}catch(C){throw new Error(C)}}async function F(){try{const C={Authorization:pm()||a.token},I={}.API_TOURNAMENTS||a.tournamentsUrl,U=await Fo.get(I,{headers:C});return U.data?U.data.map(z=>({...z.tournament,seasons:z.seasons})):[]}catch(C){return Promise.reject(C)}}async function v(C,I,U=""){o("loading-data");let z=U;try{z||(z={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,C.forEach((H,w)=>{z+=`${w===0?"":"&"}seasons=${H}`}));const W={Authorization:pm()||a.token},{data:{data:ce,teams:j}}=await Fo.get(z,{headers:W});return{seasonsAndGames:ce,seasonsAndTeams:j}}catch(W){if(I>0)return v(C,I-1,z);throw new Error(W)}finally{o("loading-data")}}async function T(C){try{const I={Authorization:pm()||a.token},U=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${C.seasonId}`,z=await Fo.get(U,{headers:I});return z.data?z.data.players:[]}catch(I){return Promise.reject(I)}}async function M(C){try{const{seasonsAndGames:I,seasonsAndTeams:U}=await v([C.id,...C.related_seasons.map(j=>j.id)],3),z=U.find(j=>j._id===C.id);p.value.arrayTeams=[],p.value.mapTeams=new Map;const W=z.teams.reduce((j,H)=>(p.value.arrayTeams.push(H),p.value.mapTeams.set(H.team_id,{name:H.colloquial_name,acronym:H.acronym,logo:H.logo,id:H.team_id}),j.set(H.team_id,H),j),new Map);m.value=p.value.arrayTeams[0],p.value.mapGames=new Map,p.value.mapGamesByTeam=new Map;const ce=Array.from(I.reduce((j,H)=>(H.games.forEach(w=>{if(w.game_status===1&&w.has_video){(!p.value.maxGameId||w.game_id>p.value.maxGameId)&&(p.value.maxGameId=w.game_id);let G=w.matchday_abbreviation.replace("M","J"),$=w.matchday_abbreviation.replace("M","Jornada ");const J=w.matchday_abbreviation.replace("M","");H.season_type===0?y.value.tournament_type===1&&(w.seasonId===881?(G=V8e[J]||G,$=E8e[J]||$):(G=pb[w.matchday_abbreviation]?w.matchday_abbreviation:G,$=pb[w.matchday_abbreviation]||$,G==="FINAL"&&(G="F"))):H.season_type===1?(G=k8e[w.matchday_abbreviation],$=G):(G=w.matchday_abbreviation.replace("PO","R"),$="Repechaje"),w.roundAbbreviation=G,w.roundName=$,p.value.mapGames.set(w.game_id,{id:w.game_id,date:w.date,dateTimeMillis:new Date(w.date_time_utc).valueOf(),homeTeam:p.value.mapTeams.get(w.home_team),awayTeam:p.value.mapTeams.get(w.visiting_team),roundAbbreviation:w.roundAbbreviation,roundName:w.roundName,score:w.score,gameResult:w.score[0]>w.score[1]?1:w.score[0]<w.score[1]?2:3,seasonId:H.season_id});const fe=j.get(w.roundAbbreviation);w.numberDateTimeMillis=new Date(w.date_time_utc).getTime(),w.homeTeam=W.get(w.home_team),w.awayTeam=W.get(w.visiting_team);const ye=p.value.mapGamesByTeam.get(w.home_team),ge=p.value.mapGamesByTeam.get(w.visiting_team);ye?ye.push(w):p.value.mapGamesByTeam.set(w.home_team,[w]),ge?ge.push(w):p.value.mapGamesByTeam.set(w.visiting_team,[w]),fe?fe.arrayGames.push(w):j.set(w.roundAbbreviation,{stringMatchDayAbbreviation:w.roundAbbreviation,stringMatchDayName:w.roundName,arrayGames:[w]})}}),j),new Map).values());ce.reverse(),ce.forEach(j=>{j.arrayGames.sort((H,w)=>H.numberDateTimeMillis-w.numberDateTimeMillis)}),p.value.arrayMatchDays=ce,h.value=ce[0]||{}}catch(I){throw new Error(I)}}async function D(C){try{const I=await E(C.id);p.value.mapPlayers=new Map,p.value.mapPlayersByTeam=I.reduce((U,z)=>{p.value.mapPlayers.set(z.player_id,{id:z.player_id,name:z.player_name,shortName:z.shortName,photo:z.player_photo,teamId:z.team_id,positionId:z.position_id});const W=U.get(z.team_id);return W?W.push(z):U.set(z.team_id,[z]),U},new Map)}catch(I){throw new Error(I)}}async function P(){try{let C=[];f.value.isEmpty?(C=await V(),g.value={...C}):C=g.value;const I=[];if(C&&C.length){f.value=C.reduce((H,w)=>{if(w.group_id!=="g-55"){const G={idAux:w.group_id,ids:[...w.ids?w.ids:[],...w.rival_Ids?w.rival_Ids:[]],type:w.type,name:w.name,coordinatePoint:w.coordinate_point,requiresRivalTransform:r.includes(w.group_id)};G.idsAux=[...G.ids],G.subcategoryGroups=w.group_id==="g-12"?[]:Q(w,0,new Map,!1,{},G.idsAux),I.push(G),G.type.includes(n.player)&&H.player.push(G),G.type.includes(n.team)&&(G.idAux!=="g-2"&&H.games.push(G),H.team.push(G)),G.type.includes(n.goalkeeper)&&H.goalkeeper.push(G)}return H},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const U=new Map,z="Resumen",W="Todas sus jugadas",ce=f.value.player.reduce((H,w)=>{const G=O(w);return G.forEach($=>{U.set($,w.name)}),H.push(...G),H},[]),j=f.value.goalkeeper.reduce((H,w)=>{const G=O(w);return G.forEach($=>{U.set($,w.name)}),H.push(...G),H},[]);f.value.games.unshift({name:z,arrayCategoriesIds:l.games,booleanIsBestPlays:!0}),f.value.team.unshift({name:z,arrayCategoriesIds:l.team,booleanIsBestPlays:!0}),f.value.player.unshift({name:z,arrayCategoriesIds:l.player.regular,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:ce,booleanIsMinutesPlayed:!0}),f.value.goalkeeper.unshift({name:z,arrayCategoriesIds:l.player.goalkeeper,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:j,booleanIsMinutesPlayed:!0})}}catch(C){throw new Error(C)}}function Q(C,I=0,U=new Map,z=!1,W={},ce=[]){if(!C.group_id)return;let j=U.get(I);const H=z?`${C.id_category}_r`:C.id_category;C.id_category&&ce.push(C.id_category);let w={ids:[H],groupId:C.group_id,level:I,name:C.name,isSelected:!0,fatherCategories:I>0?[W]:[],idsByFatherCategory:{[C.category_father]:[H]}};if(I>0&&I===1&&(w.id=C.id_category),j&&I!==0){const G=C.group_id.charAt(C.group_id.length-1),$=j.find(J=>J.groupId.endsWith(G));$&&!s.includes(w.groupId)?(w=$,$.ids.push(H),$.fatherCategories.push(W),$.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(fe=>fe.groupId===w.groupId)||J.childCategories.push(w):J.childCategories=[w]}),$.idsByFatherCategory[C.category_father]?$.idsByFatherCategory[C.category_father].push(H):$.idsByFatherCategory[C.category_father]=[H]):(w.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(fe=>fe.groupId===w.groupId)||J.childCategories.push(w):J.childCategories=[w]}),j.push(w))}else I!==0&&(W.childCategories?W.childCategories.push(w):W.childCategories=[w],j=[w],U.set(I,j));if(C.categories&&C.categories.length?C.categories.forEach(G=>{Q(G,I+1,U,z,w,ce)}):C.rival_categories&&C.rival_categories.length&&C.rival_categories.forEach(G=>{Q(G,I+1,U,!0,w,ce)}),I===0)return Array.from(U.values())}function O(C){const I=C||C;if(I.booleanIsBestPlays)return I.arrayCategoriesIds;const U={total:[],toRemove:[]};if(I.subcategoryGroups&&I.subcategoryGroups.length?I.subcategoryGroups[0].forEach(z=>{k(z,null,U)}):(I.ids&&U.total.push(...I.ids),I.rival_ids&&I.rival_ids.forEach(z=>{U.total.push(`${z}_r`)})),U.total=U.total.reduce((z,W)=>(U.toRemove.includes(W)||z.push(W),z),[]),!C){const z=I.name.toLowerCase().includes("recibid");b.value.isRivalSubject=z,b.value.avoidCategorySingleName=z,b.value.coordinatePoint=I.coordinatePoint,b.value.requiresRivalTransform=I.requiresRivalTransform}return U.total}function k(C,I=[],U={total:[],toRemove:[]}){C.isSelected?C.childCategories?C.childCategories.forEach(z=>{const W=I?Object.entries(C.idsByFatherCategory).reduce((ce,[j,H])=>(I.includes(Number(j))&&H.forEach(w=>{typeof w=="string"&&w.endsWith("_r")?ce.push(Number(w.split("_")[0])):ce.push(w)}),ce),[]):[C.id];k(z,W,U)}):I?Object.entries(C.idsByFatherCategory).forEach(([z,W])=>{I.includes(Number(z))&&W.forEach(ce=>{U.total.push(ce)})}):C.level===1?Object.entries(C.idsByFatherCategory).forEach(([z,W])=>{W.forEach(ce=>{U.total.push(ce)})}):U.total.push(C.id):C.childCategories||C.ids.forEach(z=>{U.toRemove.push(z)})}async function E(C){try{const I=await T({seasonId:C});return I.forEach(U=>{const[z,W]=U.player_name.split(","),ce=z.split(" ");let j="";for(const H of ce)if(j+=` ${H}`,H.length>3)break;U.shortName=W&&z?`${W.trim().charAt(0)}.${j}`:""}),I}catch(I){return Promise.reject(I)}}async function V(){try{const C={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Fo.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:C})).data||[]}catch(C){return Promise.reject(C)}}function N(C){u.value=C}function Y(C){y.value=C,p.value=C.seasons[0]}function de(C){p.value=C}function ue(C){m.value=C}return S(),P(),(C,I)=>(e.openBlock(),e.createElementBlock("div",r7e,[e.createElementVNode("div",l7e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,U=>(e.openBlock(),e.createBlock(Ns,e.mergeProps({key:U.name},i,{text:U.name,"is-active":u.value.componentName===U.componentName,tournaments:d.value,onClick:z=>N(U)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",n7e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value.componentName),{tournaments:d.value,"advanced-filter-categories":f.value,"onUpdate:tournament":Y,"onUpdate:season":de,"onUpdate:team":ue},null,40,["tournaments","advanced-filter-categories"]))])]))}}),p7e=Ae(c7e,[["__scopeId","data-v-d6f7aec8"]]),ub=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"]]),m7e={class:"template-taken-corners"},u7e={class:"template-taken-corners__header"},f7e={class:"template-taken-corners__header__all"},h7e={class:"template-taken-corners__body"},y7e={class:"template-taken-corners__body__players"},g7e={class:"template-taken-corners__body__players__player__jersey"},b7e={class:"template-taken-corners__body__players__player__photo"},S7e={class:"template-taken-corners__body__players__player__photo__img"},_7e=["src"],C7e={class:"template-taken-corners__body__players__player__info"},w7e={class:"template-taken-corners__body__players__player__info__name"},k7e={class:"template-taken-corners__body__players__player__info__position"},E7e={class:"template-taken-corners__body__players__player__info__position__nationality"},V7e=["src"],x7e={class:"template-taken-corners__body__players__player__info__position__name"},N7e={class:"template-taken-corners__body__players__player__checkbox"},T7e={__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:o,emit:a}){const i=t,s=e.ref(!1),r=e.ref([]),l=e.computed(()=>i.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>r.value.reduce((f,g)=>g.isSelected?f+1:f,0));e.watch(()=>i.takenCornersFilters,f=>{r.value=f.map(g=>{const b={...g};return(g.isSelected===void 0||g.isSelected===null)&&(b.isSelected=!0),b})},{immediate:!0,deep:!0}),e.watch(n,f=>{s.value=f===r.value.length,a("change-filters-selected",f),a("update:filters",r.value)},{immediate:!0});function c(f){return`https://golstatsimages.blob.core.windows.net/flags/${f}.jpg`}function d(f){return`https://golstatsimages.blob.core.windows.net/players-profile/${f}.png`}function u(f){let g=!1;return f.split(" ").reduce((b,S)=>(g||(S.length>3?(b=S,g=!0):b+=`${S} `),b),"").trim()}function p(f){return`${u(f.last_name)}, ${f.first_name.trim()}`}function y(f){return i.isFemale?ub.get(f.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):ub.get(f.positions[0])}function m(f){f?r.value.forEach(g=>{g.isSelected=!0}):r.value.forEach((g,b)=>{g.isSelected=b===0})}function h(){r.value.forEach(f=>{f.isSelected=!0})}return o({clearFilters:h}),(f,g)=>(e.openBlock(),e.createElementBlock("div",m7e,[e.createElementVNode("div",u7e,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(l.value),5),e.createElementVNode("div",f7e,[e.createVNode(e.unref(Fe),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":m},null,8,["model-value"])])]),e.createElementVNode("div",h7e,[e.createElementVNode("div",y7e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,b=>(e.openBlock(),e.createElementBlock("div",{key:b.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",g7e,e.toDisplayString(b.jersey),1),e.createElementVNode("div",b7e,[e.createElementVNode("div",S7e,[e.createElementVNode("img",{src:d(b.player_id),alt:"player photo",width:"36",height:"36"},null,8,_7e)])]),e.createElementVNode("div",C7e,[e.createElementVNode("div",w7e,e.toDisplayString(p(b)),1),e.createElementVNode("div",k7e,[e.createElementVNode("div",E7e,[e.createElementVNode("img",{src:c(b.nationality_id),alt:"country flag"},null,8,V7e)]),e.createElementVNode("div",x7e,e.toDisplayString(y(b)),1)])]),e.createElementVNode("div",N7e,[e.createVNode(e.unref(Fe),{modelValue:b.isSelected,"onUpdate:modelValue":S=>b.isSelected=S,"avoid-interaction":n.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},B7e=Ae(T7e,[["__scopeId","data-v-763fcc54"]]),um={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]}]},fm=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),F7e={class:"template-how-was-corner"},P7e={class:"template-how-was-corner__header"},$7e=fm(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),A7e={class:"template-how-was-corner__header__radio-input"},I7e={class:"template-how-was-corner__header__radio-input__radio"},z7e=fm(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),M7e={class:"template-how-was-corner__header__radio-input"},O7e={class:"template-how-was-corner__header__radio-input__radio"},R7e=fm(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),L7e=["onClick"],D7e={class:"template-how-was-corner__content__corner-type__img"},v7e=["src","alt"],j7e={class:"template-how-was-corner__content__corner-type__info"},U7e={class:"template-how-was-corner__content__corner-type__info__title"},W7e={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>um},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:o}){const a=t,i=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),r=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>i.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{o("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((c,d)=>d.isSelected?c+1:c,0)),i.value=n.cornerType,o("update:filters",n)},{deep:!0,immediate:!0});function l(n){n.isSelected&&r.value===1||(n.isSelected=!n.isSelected)}return(n,c)=>(e.openBlock(),e.createElementBlock("div",F7e,[e.createElementVNode("div",P7e,[$7e,e.createElementVNode("div",A7e,[e.createElementVNode("div",I7e,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d)},null,512),[[e.vModelRadio,i.value]]),z7e])]),e.createElementVNode("div",M7e,[e.createElementVNode("div",O7e,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=d=>i.value=d)},null,512),[[e.vModelRadio,i.value]]),R7e])])]),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,(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":d.isSelected}]),onClick:p=>l(d)},[e.createElementVNode("div",D7e,[e.createElementVNode("img",{src:d.imgSrc,alt:d.title},null,8,v7e)]),e.createElementVNode("div",j7e,[e.createElementVNode("div",U7e,e.toDisplayString(d.title),1)])],10,L7e))),128))],2)]))}},H7e=Ae(W7e,[["__scopeId","data-v-b7e3b8e0"]]),Ts=[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],Ua=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),G7e={class:"template-zone"},q7e={class:"controls-zone-container"},J7e={class:"controls-zone-container-title-checkcon"},Z7e={class:"controls-zone-container-title-checkcon-check"},Y7e={class:"gsc-field-img-container"},K7e={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X7e=["fill"],Q7e=["fill"],ewe=["fill"],twe=["fill"],awe=["fill"],owe=["fill"],iwe=["fill"],swe=["fill"],rwe=["fill"],lwe=["fill"],nwe=["fill"],dwe=["fill"],cwe=["fill"],pwe=["fill"],mwe=["fill"],uwe=["fill"],fwe=["fill"],hwe=["fill"],ywe=["fill"],gwe=["fill"],bwe=["fill"],Swe=["fill"],_we=["fill"],Cwe=["fill"],wwe=["fill"],kwe=["fill"],Ewe=["fill"],Vwe=["fill"],xwe=["fill"],Nwe=["fill"],Twe=["fill"],Bwe=["fill"],Fwe=["fill"],Pwe=["fill"],$we=["fill"],Awe=Ua(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),Iwe=Ua(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),zwe=["id"],Mwe=Ua(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),Owe=[Mwe],Rwe=["mask"],Lwe=Ua(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),Dwe=[Lwe],vwe=Ua(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),jwe=Ua(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),Uwe={class:"template-zone__total-corners"},Wwe=Ua(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),Hwe=Ua(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),Gwe=[Wwe,Hwe],qwe={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ts]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(!0),r=e.ref([]),l=e.computed(()=>new Date().getTime());e.watch(r,u=>{s.value=u.length===35}),e.watch(()=>i.zoneFilters,u=>{r.value=u},{immediate:!0,deep:!0}),e.watch(()=>r.value,u=>{a("update:filters",u),a("change-filters-selected",u.length)},{deep:!0});function n(u){u?(r.value=Ts,s.value=!0):(r.value=[],s.value=!1)}function c(u){r.value.includes(u)?r.value=r.value.filter(p=>p!==u):r.value.push(u),s.value=r.value.length===35}function d(){r.value=[...Ts]}return o({clearFilters:d}),(u,p)=>(e.openBlock(),e.createElementBlock("div",G7e,[e.createElementVNode("div",q7e,[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",J7e,[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",Z7e,[e.createVNode(e.unref(Fe),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",Y7e,[(e.openBlock(),e.createElementBlock("svg",K7e,[e.createElementVNode("rect",{onClick:p[0]||(p[0]=y=>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:r.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,X7e),e.createElementVNode("rect",{onClick:p[1]||(p[1]=y=>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:r.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,Q7e),e.createElementVNode("rect",{onClick:p[2]||(p[2]=y=>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:r.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,ewe),e.createElementVNode("rect",{onClick:p[3]||(p[3]=y=>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:r.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,twe),e.createElementVNode("rect",{onClick:p[4]||(p[4]=y=>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:r.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,awe),e.createElementVNode("rect",{onClick:p[5]||(p[5]=y=>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:r.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,owe),e.createElementVNode("rect",{onClick:p[6]||(p[6]=y=>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:r.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,iwe),e.createElementVNode("rect",{onClick:p[7]||(p[7]=y=>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:r.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,swe),e.createElementVNode("rect",{onClick:p[8]||(p[8]=y=>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:r.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,rwe),e.createElementVNode("rect",{onClick:p[9]||(p[9]=y=>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:r.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,lwe),e.createElementVNode("rect",{onClick:p[10]||(p[10]=y=>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:r.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,nwe),e.createElementVNode("rect",{onClick:p[11]||(p[11]=y=>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:r.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,dwe),e.createElementVNode("rect",{onClick:p[12]||(p[12]=y=>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:r.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,cwe),e.createElementVNode("rect",{onClick:p[13]||(p[13]=y=>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:r.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,pwe),e.createElementVNode("rect",{onClick:p[14]||(p[14]=y=>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:r.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,mwe),e.createElementVNode("rect",{onClick:p[15]||(p[15]=y=>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:r.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,uwe),e.createElementVNode("rect",{onClick:p[16]||(p[16]=y=>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:r.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,fwe),e.createElementVNode("rect",{onClick:p[17]||(p[17]=y=>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:r.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,hwe),e.createElementVNode("rect",{onClick:p[18]||(p[18]=y=>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:r.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,ywe),e.createElementVNode("rect",{onClick:p[19]||(p[19]=y=>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:r.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,gwe),e.createElementVNode("rect",{onClick:p[20]||(p[20]=y=>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:r.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,bwe),e.createElementVNode("rect",{onClick:p[21]||(p[21]=y=>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:r.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,Swe),e.createElementVNode("rect",{onClick:p[22]||(p[22]=y=>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:r.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,_we),e.createElementVNode("rect",{onClick:p[23]||(p[23]=y=>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:r.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,Cwe),e.createElementVNode("rect",{onClick:p[24]||(p[24]=y=>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:r.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,wwe),e.createElementVNode("rect",{onClick:p[25]||(p[25]=y=>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:r.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,kwe),e.createElementVNode("rect",{onClick:p[26]||(p[26]=y=>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:r.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,Ewe),e.createElementVNode("rect",{onClick:p[27]||(p[27]=y=>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:r.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,Vwe),e.createElementVNode("rect",{onClick:p[28]||(p[28]=y=>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:r.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,xwe),e.createElementVNode("rect",{onClick:p[29]||(p[29]=y=>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:r.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,Nwe),e.createElementVNode("rect",{onClick:p[30]||(p[30]=y=>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:r.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,Twe),e.createElementVNode("rect",{onClick:p[31]||(p[31]=y=>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:r.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,Bwe),e.createElementVNode("rect",{onClick:p[32]||(p[32]=y=>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:r.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,Fwe),e.createElementVNode("rect",{onClick:p[33]||(p[33]=y=>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:r.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,Pwe),e.createElementVNode("rect",{onClick:p[34]||(p[34]=y=>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:r.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,$we),Awe,Iwe,e.createElementVNode("mask",{id:l.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},Owe,8,zwe),e.createElementVNode("g",{mask:`url(#${l.value})`},Dwe,8,Rwe),vwe,jwe]))]),e.withDirectives(e.createElementVNode("div",Uwe,Gwe,512),[[e.vShow,!1]])]))}},Jwe=Ae(qwe,[["__scopeId","data-v-378bf7e2"]]),hm=[{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]}],Zwe={class:"what-happened"},Ywe={class:"what-happened__all"},Kwe={class:"what-happened__filters"},Xwe={key:0,class:"what-happened__filters__filter__composed"},Qwe={class:"what-happened__filters__filter__composed__main"},eke={key:1,class:"what-happened__filters__filter__single"},tke={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...hm]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t,s=e.computed(()=>i.whatHappenedFilters.reduce((m,h)=>(h.child?h.child.forEach(f=>{f.isSelected&&m++}):h.isSelected&&m++,m),0)),r=e.computed(()=>i.whatHappenedFilters.reduce((m,h)=>(h.child?m+=h.child.length:m++,m),0)),l=e.computed(()=>s.value===r.value),n=e.computed(()=>s.value===1);e.watch(()=>i.whatHappenedFilters,m=>{a("change-filters-selected",s.value),a("update:filters",m)},{deep:!0,immediate:!0});function c(m){i.whatHappenedFilters.forEach(h=>{m?(h.isSelected=m,h.child&&h.child.forEach(f=>{f.isSelected=m})):h.child?(h.isSelected=!0,h.child.forEach(f=>{f.isSelected=!0})):h.isSelected=!1})}function d(m,h){h.isSelected=m,h.child.forEach(f=>{f.isSelected=m})}function u(m,h,f){f.isSelected=m,h.isSelected=h.child.every(g=>g.isSelected)}function p(m,h){h.isSelected=m}function y(){i.whatHappenedFilters.forEach(m=>{m.child?m.child.forEach(h=>{h.isSelected=!0}):m.isSelected=!0})}return o({onResetFilters:y}),(m,h)=>(e.openBlock(),e.createElementBlock("div",Zwe,[e.createElementVNode("div",Ywe,[e.createVNode(e.unref(Fe),{label:"Todos","model-value":l.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",Kwe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(f,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[f.child?(e.openBlock(),e.createElementBlock("div",Xwe,[e.createElementVNode("div",Qwe,[e.createVNode(e.unref(Fe),{"model-value":f.isSelected,label:t.isFemale?f.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):f.text,"avoid-interaction":n.value&&f.isSelected,"onUpdate:modelValue":b=>d(b,f)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.child,(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:`c${S}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(Fe),{"model-value":b.isSelected,label:t.isFemale?b.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):b.text,"avoid-interaction":n.value&&b.isSelected,"onUpdate:modelValue":F=>u(F,f,b)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",eke,[e.createVNode(e.unref(Fe),{"model-value":f.isSelected,label:t.isFemale?f.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):f.text,"avoid-interaction":n.value&&f.isSelected,"onUpdate:modelValue":b=>p(b,f)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},ake=Ae(tke,[["__scopeId","data-v-8f375a1a"]]),ym={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}]}},fb=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),oke={class:"template-results"},ike={class:"template-results__type-switch"},ske=fb(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),rke=fb(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),lke={class:"template-results__info"},nke={key:0,class:"template-results__group"},dke={key:1,class:"template-results__group"},cke={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...ym})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(null),r=e.computed(()=>{const c=s.value.isMoment?s.value.results.moment.filter(d=>d.isSelected).length:s.value.results.final.filter(d=>d.isSelected).length;return a("change-filters-selected",c),c}),l=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>i.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 o({removeFilters:n}),(c,d)=>(e.openBlock(),e.createElementBlock("div",oke,[e.withDirectives(e.createElementVNode("div",ike,[ske,e.createVNode(xs,{modelValue:s.value.isMoment,"onUpdate:modelValue":d[0]||(d[0]=u=>s.value.isMoment=u)},null,8,["modelValue"]),rke],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",lke,e.toDisplayString(l.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",nke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Fe),{modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name,"avoid-interaction":r.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",dke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(Fe),{modelValue:u.isSelected,"onUpdate:modelValue":y=>u.isSelected=y,label:u.name,"avoid-interaction":r.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},pke=Ae(cke,[["__scopeId","data-v-ee3b28d3"]]),mke={class:"years"},uke=["onClick"],fke={__name:"TemplateYears",props:{years:{type:Array,default:()=>[]}},emits:["change-year"],setup(t,{emit:o}){function a(i){o("change-year",i)}return(i,s)=>(e.openBlock(),e.createElementBlock("div",mke,[e.createVNode(gi,{height:"200px"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"item",style:{padding:"5px 10px"},onClick:s[0]||(s[0]=r=>a(0))},"Sin límite"),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.years,(r,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"item",style:{padding:"5px 10px"},onClick:n=>a(r)},e.toDisplayString(r),9,uke))),128))]),_:1})]))}},hke=Ae(fke,[["__scopeId","data-v-90979ff5"]]),yke={class:"positions"},gke={__name:"TemplatePositions",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"}]},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-positions"],setup(t,{emit:o}){const a=t,i={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),r=e.computed(()=>{let n=a.positions&&a.positions.length?[...a.positions]:[];const c=n[0];return(!c||c.id!==0)&&n.unshift(i),n.sort((d,u)=>d.id-u.id),n});e.watch(r,n=>{const c=n.filter(d=>d.isSelected);c.length===r.value.length-1&&(n[0].isSelected=!0),n[0]&&n[0].isSelected?s.value="Todas las posiciones":c.length===1?s.value=c[0].name:s.value=`${c.length} seleccionadas`,o("change-positions",n)},{immediate:!0,deep:!0});function l(n,c){c.id===0?r.value.forEach(d=>{d.isSelected=n}):(c.isSelected=n,r.value[0].isSelected=r.value.every((d,u)=>u===0?!0:d.isSelected))}return(n,c)=>(e.openBlock(),e.createElementBlock("div",yke,[e.createVNode(gi,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,style:{padding:"5px 0"}},[e.createVNode(e.unref(Fe),{"model-value":d.isSelected,label:t.isFemale?d.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):d.name,"font-family":t.fontFamily,width:"100%","onUpdate:modelValue":p=>l(p,d)},null,8,["model-value","label","font-family","onUpdate:modelValue"])]))),128))]),_:1})]))}},bke={class:"nationalities"},Ske={__name:"TemplateNationalities",props:{nationalities:{type:Array,default:()=>[{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"}]},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-nationalities"],setup(t,{emit:o}){const a=t,i={id:0,name:"Todas las nacionalidades",isSelected:!1},s=e.ref(""),r=e.computed(()=>{let n=a.nationalities&&a.nationalities.length?[...a.nationalities]:[],c=[];const d=n.find(y=>y.id===138),u=n.find(y=>y.id===0),p=n.filter(y=>y.id!==138);return p.sort((y,m)=>y.name.localeCompare(m.name)),d&&(c=[d,...p]),u||(c=[i,...c]),c});e.watch(r,n=>{const c=n.filter(u=>u.isSelected);c.length===r.value.length-1&&(n[0].isSelected=!0),n[0]&&n[0].isSelected?s.value="Todas las posiciones":c.length===1?s.value=c[0].name:s.value=`${c.length} seleccionadas`;const d=n.filter(u=>u.id!==0&&u.isSelected);o("change-nationality",d)},{immediate:!0,deep:!0});function l(n,c){c.id===0?r.value.forEach(d=>{n?d.isSelected=n:d.isSelected=d.id===138}):(c.isSelected=n,r.value[0].isSelected=r.value.every((d,u)=>u===0?!0:d.isSelected))}return(n,c)=>(e.openBlock(),e.createElementBlock("div",bke,[e.createVNode(gi,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,style:{padding:"5px 0"}},[e.createVNode(e.unref(Fe),{"model-value":d.isSelected,label:d.name,"font-family":t.fontFamily,width:"100%","onUpdate:modelValue":p=>l(p,d)},null,8,["model-value","label","font-family","onUpdate:modelValue"])]))),128))]),_:1})]))}},_ke=t=>(e.pushScopeId("data-v-ed1a65e4"),t=t(),e.popScopeId(),t),Cke={class:"teams"},wke=_ke(()=>e.createElementVNode("div",{class:"teams__header"},[e.createTextVNode(" No considerar partidos jugados vs "),e.createElementVNode("div",{class:"vertical-separator"})],-1)),kke={class:"team-logo"},Eke=["src","alt"],Vke={class:"team-name"},xke={__name:"TemplateTeams",props:{seasonsIds:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["change-filters-selected","update:filters"],setup(t,{expose:o,emit:a}){const i=t;e.ref(!1);const s=e.ref([]);e.computed(()=>s.value.filter(d=>d.isSelected).length),e.watch(()=>i.seasonsIds,async d=>{if(d)try{await r()}catch(u){console.error("Error fetching teams:",u)}},{immediate:!0}),e.watch(()=>s.value,d=>{const u=d.filter(p=>p.isSelected);a("change-filters-selected",u.length),a("update:filters",u)},{immediate:!0,deep:!0});async function r(){const d=new Set,u=[],p=i.seasonsIds.map(y=>l({seasonId:y}));(await Promise.all(p)).forEach(y=>{y.teams.forEach(m=>{d.has(m.id||m.team_id)||(d.add(m.id||m.team_id),u.push({...m,isSelected:!1}))})}),s.value=u}async function l({seasonId:d}){try{const u=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${d}`;return(await fetch(u,{headers:{Authorization:i.token}})).json()}catch(u){return Promise.reject(u)}}function n(d,u){u.isSelected=d}function c(){s.value.forEach(d=>{d.isSelected=!1})}return o({clearSelectedTeams:c}),(d,u)=>(e.openBlock(),e.createElementBlock("div",Cke,[wke,e.createVNode(gi,{height:"200px"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id||p.team_id,class:"teams__team"},[e.createVNode(e.unref(Fe),{"model-value":p.isSelected,fontFamily:t.fontFamily,width:"fit-content","onUpdate:modelValue":y=>n(y,p)},null,8,["model-value","fontFamily","onUpdate:modelValue"]),e.createElementVNode("div",kke,[e.createElementVNode("img",{src:p.logo,alt:p.colloquial_name,width:"24",height:"24"},null,8,Eke)]),e.createElementVNode("div",Vke,e.toDisplayString(p.colloquial_name),1)]))),128))]),_:1})]))}},Nke=Ae(xke,[["__scopeId","data-v-ed1a65e4"]]),Tke={key:0,class:"productivity__header__text"},Bke={key:0},Fke={key:1},Pke={key:2},$ke={key:3},Ake={key:1,class:"productivity__header__checkbox"},Ike={class:"templates__body"},zke={key:0,class:"templates-plays"},Mke={key:1,class:"templates-productivity"},Oke={key:2,class:"template-field"},Rke={key:3,class:"template-details"},Lke={key:4,class:"template-personal-data"},Dke={key:5,class:"template-leagues"},vke={key:6,class:"template-teams"},jke={key:7,class:"template-plays"},Uke={key:8,class:"template-plays"},Wke={key:9,class:"template-universe"},Hke={key:10,class:"template-distance"},Gke={key:11,class:"template-results"},qke={key:12,class:"template-results-by-type"},Jke={key:13,class:"template-games"},Zke={key:14,class:"template-taken-corners"},Yke={key:15,class:"template-videos"},Kke={key:16,class:"template-how-was-corner"},Xke={key:17,class:"template-zone"},Qke={key:18,class:"template-what-happened"},eEe={key:19,class:"template-position"},tEe={key:20,class:"template-year"},aEe={key:21,class:"template-nationalities"},oEe={key:1,class:"templates__footer"},iEe={class:"templates__footer__button"},sEe={class:"templates__footer__button"},rEe={__name:"GSC-FilterTemplates",props:{universeDefaultMonthIndex:{type:Number,default:5},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},tournamentsUrl:{type:String,default:""},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+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},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},isEligibilityVisible:{type:Boolean,default:!0},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"}]},years:{type:Array,default:()=>Array.from({length:30},(t,o)=>1981+o).sort((t,o)=>o-t)},nationalities:{type:Array,default:()=>[{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"}]},seasonsIds:{type:Array,default:()=>[]}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters","click-parameters"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(null),r=e.ref(null),l=e.ref(!1),n=e.ref({playingAs:i.playingAs,gameSections:i.gameSections,statisticType:i.statisticType}),c=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),d=e.ref(null),u=e.ref(null),p=e.ref(null),y=e.ref(null),m=e.ref(null),h=e.computed(()=>({"--width":i.width,"--max-width":i.maxWidth,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.borderColor,"--border-width":i.borderWidth,"--box-shadow":i.boxShadow,"--padding":i.filterType!==R.VIDEOS?i.isExpansionMode?"10px 0":i.padding:"0","--footer-border-color":i.footerBorderColor,"--footer-border-width":i.footerBorderWidth,"--text-color":i.textColor})),f=e.computed(()=>{const x=[];return Array.isArray(i.productivityCategories)?i.productivityCategories.forEach(_=>{x.push(_)}):i.productivityCategories&&Object.values(i.productivityCategories).forEach(_=>{_.categories&&_.categories.forEach(B=>{x.push(B)})}),x}),g=e.computed(()=>{const x=[];return i.playsCategories&&Object.values(i.playsCategories).forEach(_=>{_.categories&&_.categories.forEach(B=>{x.push(B)})}),x}),b=e.computed(()=>{const x=f.value.filter(_=>_.isSelected);return T(x),i.filterType===R.PRODUCTIVITY&&a("change-categories-selected",x.length),x.length}),S=e.computed(()=>!i.isForTemplateForm&&b.value>=i.productivityMaxCategories),F=e.computed(()=>!i.isForTemplateForm&&b.value<=i.productivityMinCategories),v=e.computed(()=>i.isPlayingAsHidden?i.gameSections:i.playingAs.concat(i.gameSections));e.watch(n,x=>{i.filterType===R.DETAILS&&a("update:filters",x)},{immediate:!0,deep:!0}),e.watch(()=>v.value,x=>{if(i.filterType===R.DETAILS){const _=x.filter(B=>B.isSelected);a("change-filters-selected",_.length)}},{immediate:!0,deep:!0}),e.watch(()=>i.playsGolstatsCategories,x=>{if(i.filterType===R.PLAYS_TYPES||i.filterType===R.GOLSTATS){const _=x.filter(B=>B.isSelected);a("change-filters-selected",_.length)}},{immediate:!0}),e.watch(()=>i.fieldAreas,x=>{i.filterType===R.FIELD&&a("change-filters-selected",x.length)}),e.watch(g,()=>{i.filterType===R.PLAYS&&V()},{immediate:!0,deep:!0}),e.watch(f,()=>{i.filterType===R.PRODUCTIVITY&&N()},{immediate:!0,deep:!0}),e.watch(()=>i.resultsFilters,x=>{i.filterType===R.RESULTS&&a("change-filters-selected",x.results.filter(_=>_.isSelected).length)},{immediate:!0,deep:!0});function T(x){setTimeout(()=>{x.sort((_,B)=>_.priority-B.priority),x.forEach((_,B)=>{_.priority=B+1})},10)}function M(x=null){D(x)}function D(x=null){i.filterType===R.PRODUCTIVITY?f.value.forEach(_=>{_.isSelected=_.isDefault||!1}):i.filterType===R.PLAYS?(g.value.forEach(_=>{_.isSelected=!0}),l.value=!0):i.filterType===R.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):i.filterType===R.DETAILS?(i.playingAs.forEach(_=>{_.isSelected=!0}),i.gameSections.forEach(_=>{_.isSelected=!0})):i.filterType===R.TOURNAMENTS?(i.tournaments.forEach((_,B)=>{i.isOneTournamentOnly?_.isSelected=B===0:_.isSelected=!0}),a("change-filters-selected",0)):i.filterType===R.PLAYS_TYPES?i.playsGolstatsCategories.forEach(_=>{_.isSelected=!0}):i.filterType===R.GOLSTATS?i.playsGolstatsCategories.forEach(_=>{_.isSelected=!1}):i.filterType===R.UNIVERSE?d.value&&d.value.resetFilters():i.filterType===R.PERSONAL_DATA?(r.value&&r.value.onClearFilters(x||$e.All),a("change-personal-data-filters",{})):i.filterType===R.DISTANCE?a("update:filters",{minValue:i.distanceFilters.minLimit,maxValue:i.distanceFilters.maxLimit}):i.filterType===R.RESULTS?a("update:filters",{results:i.resultsFilters.results.map(_=>(_.isSelected=!0,_))}):i.filterType===R.RESULTS_BY_TIME?m.value&&m.value.removeFilters():i.filterType===R.GAMES?i.gamesFilters.forEach(_=>{_.isSelected=!0}):i.filterType===R.TAKEN_CORNERS?u.value.clearFilters():i.filterType===R.HOW_WAS_CORNER?(i.howWasCornerFilters.left.forEach(_=>{_.isSelected=!0}),i.howWasCornerFilters.right.forEach(_=>{_.isSelected=!0})):i.filterType===R.ZONE?p.value&&p.value.clearFilters():i.filterType===R.WHAT_HAPPENED?y.value&&y.value.onResetFilters():i.filterType===R.NATIONALITIES?i.nationalities.forEach(_=>{_.isSelected=!0}):i.filterType===R.TEAMS&&s.value&&s.value.clearSelectedTeams()}function P(x){i.filterType===R.UNIVERSE&&a("change-universe-filters",x)}function Q(x){i.filterType===R.FIELD&&a("change-field-areas",x)}function O(x){i.filterType===R.GOLSTATS&&a("change-filters-selected",x)}function k(x){a("change-filters-selected",x)}function E(x){i.filterType===R.PRODUCTIVITY?f.value.forEach(_=>{_.isSelected=x}):(l.value=x,i.playsCategories.offensive.categories.forEach(_=>{_.isSelected=x}),i.playsCategories.defensive.categories.forEach(_=>{_.isSelected=x}),i.playsCategories.possession.categories.forEach(_=>{_.isSelected=x}),i.playsCategories.offenses.categories.forEach(_=>{_.isSelected=x}))}function V(){let x=0;const _={playsCategories:g.value.filter(B=>B.isSelected)};l.value=_.playsCategories.length===g.value.length,x=_.playsCategories.length,Object.values(c.value).forEach(B=>{B&&x++}),a("change-filters-selected",x),a("update:filters",_)}function N(){let x=0;const _={productivityFilters:f.value.filter(B=>B.isSelected),offensesConditions:c.value};x=_.productivityFilters.length,Object.values(c.value).forEach(B=>{B&&x++}),a("change-filters-selected",x),a("update:filters",_)}function Y(x){a("click-parameters",x)}function de(){a("apply")}function ue(){(i.filterType===R.PLAYS_TYPES||i.filterType===R.GOLSTATS)&&i.playsGolstatsCategories&&i.playsGolstatsCategories.forEach(x=>{x.isSelected=!1}),i.filterType===R.PRODUCTIVITY&&f.value.forEach(x=>{x.isSelected=!1}),a("apply")}function C(x){a("update:filters",x)}function I(x){i.filterType===R.POSITIONS&&a("update:filters",x)}function U(x){i.filterType===R.YEARS&&a("update:filters",x)}function z(x){i.filterType===R.NATIONALITIES&&a("update:filters",x)}function W(x){i.filterType===R.PERSONAL_DATA&&a("update:filters",x)}function ce(x){i.filterType===R.TOURNAMENTS&&a("change-filters-selected",x)}function j(x){i.filterType===R.TOURNAMENTS&&a("update:filters",x)}function H(x){i.filterType===R.TEAMS&&a("change-filters-selected",x)}function w(x){i.filterType===R.TEAMS&&a("update:filters",x)}function G(x){(i.filterType===R.PLAYS_TYPES||i.filterType===R.GOLSTATS)&&a("update:filters",x)}function $(x){i.filterType===R.PRODUCTIVITY&&(c.value=x,N())}function J(x){i.filterType===R.DISTANCE&&a("update:filters",x)}function fe(x){i.filterType===R.RESULTS&&a("update:filters",x)}function ye(x){i.filterType===R.GAMES&&(a("update:filters",x),a("change-filters-selected",x.filter(_=>_.isSelected).length))}function ge(x){n.value.statisticType=x}const Z=e.computed(()=>i.filterType===R.PLAYS?g.value.length:i.filterType===R.PRODUCTIVITY?f.value.length:i.filterType===R.FIELD?16:i.filterType===R.UNIVERSE?6:i.filterType===R.DETAILS?8:i.filterType===R.RESULTS||i.filterType===R.RESULTS_BY_TIME?3:i.filterType===R.GAMES?i.gamesFilters.length:0);return a("total-filters",Z),o({clearFilters:M}),(x,_)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(h.value)},[t.filterType===e.unref(R).PRODUCTIVITY||t.filterType===e.unref(R).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(R).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Tke,[t.productivityText?(e.openBlock(),e.createElementBlock("div",Bke,e.toDisplayString(t.productivityText),1)):t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",Fke,[e.createTextVNode(" Elige tipo de jugadas: "),e.createElementVNode("span",null,"mínimo "+e.toDisplayString(t.productivityMinCategories)+" categorías y máximo "+e.toDisplayString(t.productivityMaxCategories),1)])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",Pke,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",$ke,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(R).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",Ake,[e.createVNode(e.unref(Fe),{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":E},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Ike,[t.filterType===e.unref(R).PLAYS?(e.openBlock(),e.createElementBlock("div",zke,[e.createVNode(b8e,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",Mke,[e.createVNode(cbe,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":b.value,"are-max-categories-reached":S.value,"are-min-categories-reached":F.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"onUpdate:offensesConditions":$,onClickParameters:Y},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","are-productivity-buttons-visible","are-offenses-conditions-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).FIELD?(e.openBlock(),e.createElementBlock("div",Oke,[e.createVNode(e.unref(S3),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":Q}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).DETAILS?(e.openBlock(),e.createElementBlock("div",Rke,[e.createVNode(vbe,{"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:ge},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(R).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",Lke,[e.createVNode(t8e,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:r,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"is-eligibility-visible":t.isEligibilityVisible,"onUpdate:filters":W},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters","is-eligibility-visible"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",Dke,[e.createVNode(qbe,{"tournaments-url":t.tournamentsUrl,token:t.token,tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:ce,"onUpdate:filters":j},null,8,["tournaments-url","token","tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).TEAMS?(e.openBlock(),e.createElementBlock("div",vke,[e.createVNode(Nke,{ref_key:"templateTeams",ref:s,"seasons-ids":t.seasonsIds,onChangeFiltersSelected:H,"onUpdate:filters":w},null,8,["seasons-ids"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",jke,[e.createVNode(i3,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":G},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).GOLSTATS?(e.openBlock(),e.createElementBlock("div",Uke,[e.createVNode(i3,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:O,"onUpdate:filters":G},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).UNIVERSE?(e.openBlock(),e.createElementBlock("div",Wke,[e.createVNode(H5e,{ref_key:"templateUniverse",ref:d,"universe-filters":t.universeFilters,"default-month-index":t.universeDefaultMonthIndex,"onUpdate:universeFilters":P},null,8,["universe-filters","default-month-index"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).DISTANCE?(e.openBlock(),e.createElementBlock("div",Hke,[e.createVNode(m4e,{distance:t.distanceFilters,"onUpdate:distanceFilters":J},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).RESULTS?(e.openBlock(),e.createElementBlock("div",Gke,[e.createVNode(C8e,{ref_key:"templateResults",ref:m,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":fe},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",qke,[e.createVNode(pke,{ref_key:"templateResults",ref:m,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).GAMES?(e.openBlock(),e.createElementBlock("div",Jke,[e.createVNode(S4e,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":ye},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",Zke,[e.createVNode(B7e,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:u,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).VIDEOS?(e.openBlock(),e.createElementBlock("div",Yke,[e.createVNode(p7e,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",Kke,[e.createVNode(H7e,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).ZONE?(e.openBlock(),e.createElementBlock("div",Xke,[e.createVNode(Jwe,{ref_key:"templateZone",ref:p,"zone-filters":t.zoneFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",Qke,[e.createVNode(ake,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:y,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:k,"onUpdate:filters":C},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).POSITIONS?(e.openBlock(),e.createElementBlock("div",eEe,[e.createVNode(gke,{positions:t.positions,onChangePositions:I},null,8,["positions"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).YEARS?(e.openBlock(),e.createElementBlock("div",tEe,[e.createVNode(hke,{years:t.years,onChangeYear:U},null,8,["years"])])):e.createCommentVNode("",!0),t.filterType===e.unref(R).NATIONALITIES?(e.openBlock(),e.createElementBlock("div",aEe,[e.createVNode(Ske,{nationalities:t.nationalities,onChangeNationality:z},null,8,["nationalities"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",oEe,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(jl),{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:ue})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",iEe,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(jl),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:ue})):(e.openBlock(),e.createBlock(e.unref(jl),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:D}))]),e.createElementVNode("div",sEe,[e.createVNode(e.unref(jl),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:de})])],64))])):e.createCommentVNode("",!0)],4))}},hb=Ae(rEe,[["__scopeId","data-v-efc03862"]]),lEe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},nEe={__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:o}){const a=t;e.useCssVars(m=>({"6263632b":t.width,"252e289a":c.value,d3c8b2e8:t.menuWidth}));const i=e.ref(null),s=e.ref(!1),r=e.ref(null),l=e.ref({}),n=e.ref({top:"0px",left:a.leftMenu,width:a.menuWidth}),c=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,m=>{m!==s.value&&(s.value=m)},{immediate:!0}),e.watch(s,async m=>{var h;if(m){await e.nextTick();const f=(h=r.value)==null?void 0:h.getBoundingClientRect();f&&setTimeout(()=>{d({boundingClientRect:f})},1e3)}else setTimeout(()=>{l.value["--translate-x"]="0px"},500)});function d(m){const h=window.innerWidth,f=m.boundingClientRect.x,g=m.boundingClientRect.x+m.boundingClientRect.width,b=f<=0?Math.abs(f)+10:g>=h?h-(g+30):0;if(l.value["--translate-x"]=`${b}px`,i.value){const S=i.value.getBoundingClientRect();n.value.top=`${S.height+a.menuMarginTop}px`}}function u(){new IntersectionObserver(m=>{m[0].intersectionRatio>0&&d(m[0])}).observe(r.value)}function p(){s.value=!s.value,o("update:modelValue",s.value)}function y(){s.value=!1,o("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{u()})}),(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:y})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:i,class:"menu-container__trigger",onClick:p},[e.renderSlot(m.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:r,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(m.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},dEe=lEe(nEe,[["__scopeId","data-v-419c8567"]]),Io=t=>(e.pushScopeId("data-v-d5ddc1ae"),t=t(),e.popScopeId(),t),cEe={key:0,class:"button__icon"},pEe={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mEe=["stroke"],uEe=["stroke"],fEe=["stroke"],hEe={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yEe=["stroke"],gEe=["stroke"],bEe=["fill"],SEe={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_Ee=["fill"],CEe={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wEe=["stroke"],kEe=["stroke"],EEe=["stroke"],VEe=["stroke"],xEe=["stroke"],NEe={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TEe=Io(()=>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)),BEe=[TEe],FEe={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PEe=Io(()=>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)),$Ee=[PEe],AEe={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},IEe=Io(()=>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)),zEe=[IEe],MEe={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OEe=Io(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),REe=Io(()=>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)),LEe=Io(()=>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)),DEe=Io(()=>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)),vEe=[OEe,REe,LEe,DEe],jEe={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},UEe=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-d5ddc1ae><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-d5ddc1ae></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-d5ddc1ae></path></g><defs data-v-d5ddc1ae><clipPath id="gpdeo9cu3a" data-v-d5ddc1ae><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-d5ddc1ae></path></clipPath></defs>',2),WEe=[UEe],HEe={class:"button__text"},GEe={key:0,class:"info-container"},qEe={key:1,style:{width:"20px"}},JEe={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZEe=["fill"],YEe={__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 o=t,a=e.computed(()=>({"--height":o.height,"--width":o.width,"--text-font-family":o.textFontFamily,"--text-font-size":o.textFontSize,"--background-color":o.backgroundColor,"--border-radius":o.borderRadius,"--border-color":o.isActive?o.borderColorActive:o.borderColor,"--border-width":o.borderWidth,"--padding":o.padding,"--font-color":o.fontColor})),i=e.computed(()=>({"--info-background-color":o.infoValue?o.infoBackgroundColor:"transparent","--info-border-color":o.infoValue?o.infoBorderColor:"transparent","--info-border-radius":o.infoBorderRadius,"--info-font-family":o.infoFontFamily,"--info-font-size":o.infoFontSize,"--info-font-color":o.infoFontColor,"--info-height":o.infoHeight,"--info-width":o.infoWidth})),s=e.computed(()=>[R.PLAYS_TYPES,R.GOLSTATS,R.TOURNAMENTS,R.PLAYS,R.RESULTS,R.RESULTS_BY_TIME].includes(o.iconType)),r=e.computed(()=>[R.FIELD,R.GAMES].includes(o.iconType)),l=e.computed(()=>[R.DETAILS,R.UNIVERSE].includes(o.iconType)),n=e.computed(()=>[R.PERSONAL_DATA].includes(o.iconType)),c=e.computed(()=>[R.PRODUCTIVITY].includes(o.iconType)),d=e.computed(()=>[R.HOW_WAS_CORNER].includes(o.iconType)),u=e.computed(()=>[R.TAKEN_CORNERS].includes(o.iconType)),p=e.computed(()=>[R.ZONE].includes(o.iconType)),y=e.computed(()=>[R.WHAT_HAPPENED].includes(o.iconType));return(m,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",cEe,[n.value?(e.openBlock(),e.createElementBlock("svg",pEe,[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,mEe),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,uEe),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,fEe)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",hEe,[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,yEe),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,gEe),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,bEe)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",SEe,[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,_Ee)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",CEe,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,wEe),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,kEe),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,EEe),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,VEe),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,xEe)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",NEe,BEe)):e.createCommentVNode("",!0),u.value?(e.openBlock(),e.createElementBlock("svg",FEe,$Ee)):e.createCommentVNode("",!0),d.value?(e.openBlock(),e.createElementBlock("svg",AEe,zEe)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",MEe,vEe)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",jEe,WEe)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",HEe,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",GEe,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(i.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(i.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",qEe)):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",JEe,[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,ZEe)]))],2)],4))}},KEe=Ae(YEe,[["__scopeId","data-v-d5ddc1ae"]]),XEe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},QEe=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),eVe={class:"panel__activator__icon"},tVe=["src"],aVe={class:"panel__activator__text"},oVe=["height","width"],iVe=["stroke"],sVe={class:"panel__content"},rVe=QEe(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),lVe={class:"panel__content__slot"},nVe={__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:o}){const a=t,i=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,l=>{i.value=l},{immediate:!0});function r(){i.value=!i.value,o("update:modelValue",i.value)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:r},[e.createElementVNode("div",eVe,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,tVe)):e.createCommentVNode("",!0)]),e.createElementVNode("div",aVe,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":i.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,iVe)],8,oVe))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",sVe,[rVe,e.createElementVNode("div",lVe,[e.renderSlot(l.$slots,"content",{},void 0,!0)])],512),[[e.vShow,i.value]])]),_:3})],4))}},dVe=XEe(nVe,[["__scopeId","data-v-0ca35abc"]]),wa={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},cVe={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}},pVe={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}]}},mVe={minutesPlayed:360,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"},uVe=[{name:"Sub-20",logo:null,isSelected:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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:!1,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}]}],fVe=[{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}],hVe=[{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}],yVe={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},yb={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},gVe={class:"filters"},bVe={key:0,class:"filters__expansion"},SVe={class:"content"},_Ve={key:1,class:"filters__menus"},CVe={__name:"GSC-Filters",props:{universeDefaultMonthIndex:{type:Number,default:5},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},areProductivityButtonsVisible:{type:Boolean,default:!0},productivityText:{type:String,default:""},areOffensesConditionsVisible:{type:Boolean,default:!0},showUniverseTime:{type:Boolean,default:!1},isEligibilityVisible:{type:Boolean,default:!0},tournamentsUrl:{type:String,default:""},dropdownProps:{type:Object,default:()=>null},selectedYear:{type:[Number,String],default:0}},emits:["update:filters","apply","close","click-parameters"],setup(t,{expose:o,emit:a}){const i=t;e.useCssVars(Z=>({f37314ea:t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.PRODUCTIVITY,isFooterVisible:!0},r={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.PLAYS,isFooterVisible:!0},l={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.TOURNAMENTS,isFooterVisible:!0},d={width:"fit-content",maxWidth:"fit-content",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.TOURNAMENTS,isFooterVisible:!0},u={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.POSITIONS,isFooterVisible:!0},p={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.YEARS,isFooterVisible:!0},y={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.NATIONALITIES,isFooterVisible:!0},m={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.PERSONAL_DATA,isFooterVisible:!0},h={width:"310px",modalHeight:i.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},f={width:"380px",modalHeight:i.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},g={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.UNIVERSE,isFooterVisible:!0},b={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.DISTANCE,isFooterVisible:!0},S={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.RESULTS,padding:"0",isFooterVisible:!0},F={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},v={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.VIDEOS,isFooterVisible:!1},T={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.GAMES,isFooterVisible:!0},M={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.TAKEN_CORNERS,isFooterVisible:!0},D={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.HOW_WAS_CORNER,isFooterVisible:!0},P={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.ZONE,isFooterVisible:!0},Q={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:R.WHAT_HAPPENED,isFooterVisible:!0},O=e.ref(!1),k=e.ref(!1),E=e.ref(0),V=e.ref(0),N=e.ref({}),Y=e.ref(null),de=e.ref(null),ue=e.ref("Universo"),C=e.ref(""),I=e.ref(""),U=e.computed(()=>i.isForTemplateForm?"0":"unset"),z=e.computed(()=>i.isFromTemplates?R.RESULTS:i.filterType),W=e.ref(null);e.watch(()=>i.filterType,Z=>{if(Z===R.PRODUCTIVITY)N.value={...s,...i.templateProps,productivityCategories:i.filters||cVe};else if(Z===R.PLAYS)N.value={...r,...i.templateProps,fontFamily:i.buttonFilterProps?i.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:i.filters||pVe};else if(Z===R.FIELD)N.value={...l,...i.templateProps,fieldComponentProps:i.fieldComponentProps,fieldAreas:i.filters||[]};else if(Z===R.DETAILS)N.value={...n,...i.templateProps,isPlayingAsHidden:i.filters?i.filters.isPlayingAsHidden:wa.isPlayingAsHidden,playingAs:i.filters&&i.filters.playingAs||wa.playingAs,gameSections:i.filters&&i.filters.gameSections||wa.gameSections,statisticType:i.filters?i.filters.statisticType:wa.statisticType,isStatisticTypeVisible:i.filters?i.filters.isStatisticTypeVisible:wa.isStatisticTypeVisible};else if(Z===R.TOURNAMENTS){const x=i.filters||uVe;i.isOneTournamentOnly&&x.forEach(_=>{_.isSelected=_.id===i.defaultTournamentId}),N.value={...c,...i.templateProps,tournaments:x}}else Z===R.TEAMS?N.value={...d,...i.templateProps,seasonsIds:i.filters||[]}:Z===R.PERSONAL_DATA?N.value={...m,...i.templateProps,token:i.token,awaitForFilters:i.awaitForFilters,personalDataFilters:i.filters}:Z===R.PLAYS_TYPES?N.value={...h,...i.templateProps,playsGolstatsCategories:i.filters||fVe}:Z===R.GOLSTATS?N.value={...f,...i.templateProps,playsGolstatsCategories:i.filters||hVe}:Z===R.UNIVERSE?N.value={...g,...i.templateProps,universeFilters:i.filters||mVe}:Z===R.DISTANCE?N.value={...b,...i.templateProps,distanceFilters:i.filters||yVe}:Z===R.RESULTS?N.value={...S,...i.templateProps,resultsFilters:i.filters||yb}:Z===R.RESULTS_BY_TIME?N.value={...F,...i.templateProps,resultsByTimeFilters:i.filters||ym}:Z===R.GAMES?N.value={...T,...i.templateProps,gamesFilters:i.filters||[]}:Z===R.VIDEOS?N.value={...v,...i.templateProps,token:i.token}:Z===R.TAKEN_CORNERS?N.value={...M,...i.templateProps,takenCornersFilters:i.filters||[]}:Z===R.HOW_WAS_CORNER?N.value={...D,...i.templateProps,howWasCornerFilters:i.filters||um}:Z===R.ZONE?N.value={...P,...i.templateProps,zoneFilters:i.filters||[...Ts]}:Z===R.WHAT_HAPPENED?N.value={...Q,...i.templateProps,whatHappenedFilters:i.filters||[...hm]}:Z===R.POSITIONS?N.value={...u,...i.templateProps,positions:i.filters||[{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"}]}:Z===R.YEARS?N.value={...p,...i.templateProps,years:i.filters||Array.from({length:30},(x,_)=>1981+_).sort((x,_)=>_-x)}:Z===R.NATIONALITIES&&(N.value={...y,...i.templateProps,nationalities:i.filters||[{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"}]});N.value.isExpansionMode=i.isExpansionPanel,i.isExpansionPanel&&(N.value.width="100%",N.value.maxWidth="100%"),ce()},{immediate:!0}),e.watch(()=>i.filters,()=>{if(i.filterType===R.PRODUCTIVITY)N.value={...s,...i.templateProps,productivityCategories:i.filters};else if(i.filterType===R.PLAYS)N.value={...r,...i.templateProps,playsCategories:i.filters};else if(i.filterType===R.FIELD)N.value={...l,...i.templateProps,fieldComponentProps:i.fieldComponentProps,fieldAreas:i.filters};else if(i.filterType===R.DETAILS)N.value={...n,...i.templateProps,isPlayingAsHidden:i.filters?i.filters.isPlayingAsHidden:wa.isPlayingAsHidden,playingAs:i.filters?i.filters.playingAs:wa.playingAs,gameSections:i.filters?i.filters.gameSections:wa.gameSections,statisticType:i.filters?i.filters.statisticType:wa.statisticType,isStatisticVisible:i.filters?i.filters.isStatisticVisible:wa.isStatisticVisible};else if(i.filterType===R.TOURNAMENTS){const Z=i.filters;i.isOneTournamentOnly&&Z.forEach(x=>{x.isSelected=x.id===i.defaultTournamentId}),N.value={...c,...i.templateProps,tournaments:Z}}else i.filterType===R.TEAMS?N.value={...d,...i.templateProps,seasonsIds:i.filters||[]}:i.filterType===R.PERSONAL_DATA?N.value={...m,...i.templateProps,token:i.token,awaitForFilters:i.awaitForFilters,personalDataFilters:i.filters}:i.filterType===R.PLAYS_TYPES?N.value={...h,...i.templateProps,playsGolstatsCategories:i.filters}:i.filterType===R.GOLSTATS?N.value={...f,...i.templateProps,playsGolstatsCategories:i.filters}:i.filterType===R.UNIVERSE?N.value={...g,...i.templateProps,universeFilters:i.filters}:i.filterType===R.DISTANCE?N.value={...b,...i.templateProps,distanceFilters:i.filters}:i.filterType===R.RESULTS?N.value={...S,...i.templateProps,resultsFilters:i.filters||yb}:i.filterType===R.RESULTS_BY_TIME?N.value={...F,...i.templateProps,resultsByTimeFilters:i.filters||ym}:i.filterType===R.GAMES?N.value={...T,...i.templateProps,gamesFilters:i.filters}:i.filterType===R.VIDEOS?N.value={...v,...i.templateProps,token:i.token}:i.filterType===R.TAKEN_CORNERS?N.value={...M,...i.templateProps,takenCornersFilters:i.filters||[]}:i.filterType===R.HOW_WAS_CORNER?N.value={...D,...i.templateProps,howWasCornerFilters:i.filters||um}:i.filterType===R.ZONE?N.value={...P,...i.templateProps,zoneFilters:i.filters||[...Ts]}:i.filterType===R.WHAT_HAPPENED?N.value={...Q,...i.templateProps,whatHappenedFilters:i.filters||[...hm]}:i.filterType===R.POSITIONS?N.value={...u,...i.templateProps,positions:i.filters||[{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"}]}:i.filterType===R.YEARS?N.value={...p,...i.templateProps,years:i.filters||Array.from({length:30},(Z,x)=>1981+x).sort((Z,x)=>x-Z)}:i.filterType===R.NATIONALITIES&&(N.value={...y,...i.templateProps,nationalities:i.filters||[{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"}]});N.value.isExpansionMode=i.isExpansionPanel,i.isExpansionPanel&&(N.value.width="100%",N.value.maxWidth="100%")}),e.watch(O,Z=>{Z||a("close",W.value)}),e.watch(k,Z=>{Z||a("close",W.value)});function ce(){C.value=i.filterType===R.UNIVERSE&&i.showUniverseTime?ue.value:i.buttonFilterProps&&i.buttonFilterProps.text?i.buttonFilterProps.text:i.menuButtonText||w(),I.value=i.expansionPanelText||w()}function j(Z){E.value=Z}function H(){i.isExpansionPanel?k.value=!1:O.value=!1,a("apply",W.value)}function w(){if(i.filterType===R.PRODUCTIVITY)return i.isFromTemplates?"Tipos de jugadas":"Características de juego";if(i.filterType===R.PLAYS)return"Jugada(s)";if(i.filterType===R.FIELD)return"Zona de cancha";if(i.filterType===R.DETAILS)return"Detalles";if(i.filterType===R.TEAMS)return"Equipos";if(i.filterType===R.TOURNAMENTS)return"Ligas";if(i.filterType===R.PERSONAL_DATA)return"Datos personales";if(i.filterType===R.PLAYS_TYPES)return"Tipos de jugada";if(i.filterType===R.GOLSTATS)return"Filtros Golstats";if(i.filterType===R.UNIVERSE)return`Estadísticas ${W.value&&W.value.statisticsRadios==="total"?"totales":"cada 90 min"}`;if(i.filterType===R.DISTANCE)return"Distancia";if([R.RESULTS,R.RESULTS_BY_TIME].includes(i.filterType))return"Resultados";if(i.filterType===R.GAMES)return"Partidos";if(i.filterType===R.VIDEOS)return"Videos";if(i.filterType===R.TAKEN_CORNERS)return"¿Quién cobró?";if(i.filterType===R.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(i.filterType===R.ZONE)return"Zona";if(i.filterType===R.WHAT_HAPPENED)return"¿Qué sucedió?";if(i.filterType===R.POSITIONS){const Z=W.value?W.value.find(_=>_.id===0):null;if(Z&&Z.isSelected)return Z.name;const x=W.value?W.value.filter(_=>_.isSelected&&_.id!==0):[];return x.length===1?x[0].name:`${x.length} nacionalidades`}else{if(i.filterType===R.YEARS)return`Año ${W.value||i.selectedYear}`;if(i.filterType===R.NATIONALITIES){const Z=W.value?W.value.length:i.filters.length;return i.filters.length===Z?"Todas las nacionalidades":Z===1?W.value[0].name:`${Z} nacionalidades`}}}function G(Z){a("click-parameters",Z)}function $(Z){N.value.fieldAreas=Z,E.value=Z.length,fe(Z)}function J(Z){let x=0;Z.value&&Z.value.statistics&&(Z.value.minutesPlayed&&x++,Z.value.percentMinutesPlayed&&x++,Z.value.lastMonths&&x++,Z.value.statistics.totals&&x++,Z.value.statistics.averagePerGame&&x++,Z.value.statistics.averagePerMinute&&x++),i.showUniverseTime&&(ue.value=`Durante los últimos ${Z.value.lastMonths} meses`),N.value.universe=Z.value,E.value=x,fe(Z.value)}function fe(Z){W.value=Z,ce(),a("update:filters",Z)}function ye(Z){V.value=Z}function ge(Z=null){Y.value&&Y.value.clearFilters(Z),de.value&&de.value.clearFilters(Z)}return o({clearFilters:ge}),(Z,x)=>(e.openBlock(),e.createElementBlock("div",gVe,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",bVe,[e.createVNode(e.unref(dVe),e.mergeProps(t.expansionPanelProps,{modelValue:k.value,"onUpdate:modelValue":x[0]||(x[0]=_=>k.value=_),text:I.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+i.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",SVe,[e.createVNode(hb,e.mergeProps(N.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,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"is-eligibility-visible":t.isEligibilityVisible,"tournaments-url":t.tournamentsUrl,"dropdown-props":t.dropdownProps,"filter-type":t.filterType,ref_key:"filterTemplateExpansionPanel",ref:de,onChangeFieldAreas:$,onChangeCategoriesSelected:j,onChangeFiltersSelected:j,onChangeUniverseFilters:J,onApply:H,"onUpdate:filters":fe,onTotalFilters:ye,onClickParameters:G}),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","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible","is-eligibility-visible","tournaments-url","dropdown-props","filter-type"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",_Ve,[e.createVNode(e.unref(dEe),{modelValue:O.value,"onUpdate:modelValue":x[1]||(x[1]=_=>O.value=_),width:t.width,"left-menu":U.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(KEe,e.mergeProps(t.buttonFilterProps,{text:C.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":E.value,"filters-total":V.value.value,"is-active":O.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(hb,e.mergeProps(N.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,"universe-default-month-index":t.universeDefaultMonthIndex,"are-productivity-buttons-visible":t.areProductivityButtonsVisible,"productivity-text":t.productivityText,"are-offenses-conditions-visible":t.areOffensesConditionsVisible,"is-eligibility-visible":t.isEligibilityVisible,"tournaments-url":t.tournamentsUrl,"dropdown-props":t.dropdownProps,"filter-type":t.filterType,ref_key:"filterTemplateMenu",ref:Y,onChangeFieldAreas:$,onChangeCategoriesSelected:j,onChangeFiltersSelected:j,onChangeUniverseFilters:J,"onUpdate:filters":fe,onTotalFilters:ye,onApply:H,onClickParameters:G}),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","universe-default-month-index","are-productivity-buttons-visible","productivity-text","are-offenses-conditions-visible","is-eligibility-visible","tournaments-url","dropdown-props","filter-type"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},gm=Ae(CVe,[["__scopeId","data-v-44274796"]]),wVe={class:"dropdown__position"},kVe={key:0,class:"label"},EVe={class:"selected-position"},VVe={__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:o}){const a=t,i={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),r=e.computed(()=>{const c={...ja};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(d=>{c[d]=a.dropdownProps[d]}),c}),l=e.computed(()=>{let c=a.positions&&a.positions.length?[...a.positions]:[];const d=c[0];return(!d||d.id!==0)&&c.unshift(i),c.sort((u,p)=>u.id-p.id),c});e.watch(l,c=>{const d=c.filter(u=>u.isSelected);d.length===l.value.length-1&&(c[0].isSelected=!0),c[0]&&c[0].isSelected?s.value="Todas las posiciones":d.length===1?s.value=d[0].name:s.value=`${d.length} seleccionadas`,o("change-positions",c)},{immediate:!0,deep:!0});function n(c,d){d.id===0?l.value.forEach(u=>{u.isSelected=c}):(d.isSelected=c,l.value[0].isSelected=l.value.every((u,p)=>p===0?!0:u.isSelected))}return(c,d)=>(e.openBlock(),e.createElementBlock("div",wVe,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",kVe,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(ia),e.mergeProps(r.value,{"is-multiple-option":"",items:l.value}),{default:e.withCtx(()=>[e.createElementVNode("div",EVe,[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:u})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(Fe),{"model-value":u.isSelected,label:t.isFemale?u.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):u.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":p=>n(p,u)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},gb=Ae(VVe,[["__scopeId","data-v-c810bd0a"]]);ka(2,bm()),ka(2,bm()),ka(1,Wa(1)),ka(1,Wa(1)),ka(1,Wa(2)),ka(1,Wa(2)),ka(1,Wa(3)),ka(1,Wa(3)),ka(1,Wa(4)),ka(1,Wa(4));function bm(){return[[337,1],[338,2],[339,3],[340,4],[341,5],[342,6],[343,7],[344,8],[345,9],[346,10],[347,11],[348,12],[349,13],[350,14],[351,15],[352,16],[353,17],[354,18],[355,19],[356,20],[357,21]]}function bb(){return Array.from({length:16},(t,o)=>o+1)}function Wa(t){switch(t){case 1:return[1,2,3,4];case 2:return[5,6,7,8];case 3:return[9,10,11,12];case 4:return[13,14,15,16]}}function ka(t=1,o=null){return{origin_zones:t===1?bb():bm(),destiny_zones:o||bb(),minimum_distance_x:0,maximum_distance_x:105,minimum_distance_y:0,maximum_distance_y:68,minimum_total_distance:0,maximum_total_distance:125,zone_type:t}}const xVe={class:"dropdown-years"},NVe={key:0,class:"label"},TVe={class:"selected-year"},BVe={__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},selectedItemPrefix:{type:String,default:""}},emits:["change-year"],setup(t,{emit:o}){const a=t,i=e.computed(()=>{const l={...ja};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(n=>{l[n]=a.dropdownProps[n]}),l}),s=e.computed(()=>a.hasNoLimitOption?["Sin límite",...a.years]:a.years);function r(l){o("change-year",l)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",xVe,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",NVe,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(ia),e.mergeProps({"model-value":t.selectedYear},i.value,{items:s.value,"onUpdate:modelValue":r}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",TVe,e.toDisplayString(Number.isNaN(Number(c))?c:`${t.selectedItemPrefix} ${c}`),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c),1)]),_:1},16,["model-value","items"])]))}},Sb=Ae(BVe,[["__scopeId","data-v-77be2ab3"]]),FVe=t=>(e.pushScopeId("data-v-0caa40b6"),t=t(),e.popScopeId(),t),PVe={class:"dropdown-templates"},$Ve={key:0,class:"label"},AVe={class:"selected-item"},IVe={class:"item"},zVe={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},MVe=FVe(()=>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)),OVe=[MVe],RVe={__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},templatesUrl:{type:String,default:""}},emits:["change-template"],setup(t,{emit:o}){const a=t,i=e.ref([]),s=e.ref(null),r=e.computed(()=>{const c={...ja};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(d=>{c[d]=a.dropdownProps[d]}),c});e.watch(()=>a.teamId,c=>{c&&n()},{immediate:!0});function l(c){s.value=c,o("change-template",c)}async function n(){try{const c=await Fo.get(a.templatesUrl||`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${a.teamId}/templates`,{headers:{Authorization:a.token}});i.value=c.data&&c.data.data?c.data.data:[]}catch(c){console.error("Error filling templates: ",c)}}return n(),(c,d)=>(e.openBlock(),e.createElementBlock("div",PVe,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",$Ve,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(ia),e.mergeProps({"model-value":t.selectedTemplate},r.value,{items:i.value,"arrow-width":"10",onInput:l}),{default:e.withCtx(({selectedItem:u})=>[e.createElementVNode("div",AVe,e.toDisplayString(u.name),1)]),availableItem:e.withCtx(({item:u})=>[e.createElementVNode("div",IVe,[e.createElementVNode("div",null,e.toDisplayString(u.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",zVe,OVe,512)),[[e.vShow,s.value.name===u.name]])])]),_:1},16,["model-value","items"])]))}},LVe=Ae(RVe,[["__scopeId","data-v-0caa40b6"]]);function _b(){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 DVe(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 8px 0 10px",textFontFamily:"'Poppins-Regular'",showIcon:!0}}function Cb(){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 vVe(){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 nn="/group-427321501.svg",wb="/shape.svg",jVe="_filtersContainer_b9wc6_1",UVe="_filtersContainer1232_b9wc6_1",WVe="_closeFiltersPc_b9wc6_1",HVe="_textleyemdmultipleleagues_b9wc6_1",GVe="_textleyemdmultipleleagues380_b9wc6_1",qVe="_filtersContainer760_b9wc6_1",JVe="_filtersContainer460_b9wc6_1",ZVe="_containerSectionPlay_b9wc6_1",YVe="_containerSectionPlay1232_b9wc6_1",KVe="_containerSectionPlay960_b9wc6_1",XVe="_containerSectionPlay320_b9wc6_1",QVe="_containerSectionPlay350_b9wc6_1",exe="_containerSection_b9wc6_1",txe="_containerSection1232_b9wc6_1",axe="_containerSection960_b9wc6_1",oxe="_containerSection320_b9wc6_1",ixe="_containerSection350_b9wc6_1",sxe="_templateLosMejores_b9wc6_1",rxe="_templateLosMejores1232_b9wc6_1",lxe="_templateLosMejores960_b9wc6_1",nxe="_templateLosMejores420_b9wc6_1",dxe="_templateLosMejores320_b9wc6_1",cxe="_templateLosMejores540_b9wc6_1",pxe="_templateLosMejores350_b9wc6_1",mxe="_topFiltersParent_b9wc6_1",uxe="_topFiltersParent1232_b9wc6_1",fxe="_topFiltersParent960_b9wc6_1",hxe="_topFiltersParent460_b9wc6_1",yxe="_topFiltersParent420_b9wc6_1",gxe="_containerTheBest_b9wc6_1",bxe="_containerTheBest1232_b9wc6_1",Sxe="_containerTheBest960_b9wc6_1",_xe="_containerTheBest320_b9wc6_1",Cxe="_titleSection_b9wc6_1",wxe="_titleSection540_b9wc6_1",kxe="_containerTables_b9wc6_1",Exe="_containerTables960_b9wc6_1",Vxe="_containerTables760_b9wc6_1",xxe="_containerTables320_b9wc6_1",Nxe="_toniKroosWrapper_b9wc6_1",Txe="_toniKroosWrapper1080_b9wc6_1",Bxe="_toniKroosWrapper975_b9wc6_1",Fxe="_toniKroosWrapper760_b9wc6_1",Pxe="_toniKroosWrapper420_b9wc6_1",$xe="_toniKroosWrapper320_b9wc6_1",Axe="_frameChild_b9wc6_1",Ixe="_filtros_b9wc6_1",zxe="_groupParent_b9wc6_1",Mxe="_shapeIcon_b9wc6_1",Oxe="_btnFilters_b9wc6_1",Rxe="_btnFiltersPC_b9wc6_1",Lxe="_quitarFiltros_b9wc6_1",Dxe="_quitarFiltros730_b9wc6_1",vxe="_quitarFiltros480_b9wc6_1",jxe="_quitarFiltros380_b9wc6_1",Uxe="_btnCloseFilters_b9wc6_1",Wxe="_mejoresJugadores_b9wc6_1",Hxe="_mejoresJugadores730_b9wc6_1",Gxe="_mejoresJugadores480_b9wc6_1",qxe="_mejoresJugadoresSM_b9wc6_1",Jxe="_toniKroos_b9wc6_1",Zxe="_teamBar_b9wc6_1",Yxe="_menuSection_b9wc6_1",Kxe="_menuSection960_b9wc6_1",Xxe="_menuSectionPlay_b9wc6_1",Qxe="_menuSectionPlay960_b9wc6_1",eNe="_containerMenu_b9wc6_1",tNe="_containerMenu760_b9wc6_1",aNe="_containerFilters_b9wc6_1",oNe="_teamBarParent_b9wc6_1",iNe="_topFilters_b9wc6_1",sNe="_topFilters1232_b9wc6_1",rNe="_topFilters420_b9wc6_1",lNe="_topFilters460_b9wc6_1",nNe="_losMejores_b9wc6_1",dNe="_losMejores380_b9wc6_1",cNe="_losMejores530_b9wc6_1",pNe="_losMejores730_b9wc6_1",mNe="_menuSectionHeader_b9wc6_1",uNe="_menuSectionHeader1232_b9wc6_1",fNe="_menuSectionHeader960_b9wc6_1",hNe="_menuSectionHeader730_b9wc6_1",yNe="_dropdown_b9wc6_1",gNe="_dropdown730_b9wc6_1",bNe="_dropdown1_b9wc6_1",SNe="_dropdown1730_b9wc6_1",_Ne="_dropdownParent_b9wc6_1",CNe="_dropdownParent730_b9wc6_1",wNe="_menuSectionParentHeader_b9wc6_1",kNe="_menuSectionParentHeader1232_b9wc6_1",ENe="_menuSectionParentHeader960_b9wc6_1",VNe="_menuSectionParentHeader730_b9wc6_1",xNe="_menuSectionParentHeader430_b9wc6_1",NNe="_descubreVideos_b9wc6_1",TNe="_descubreVideos1232_b9wc6_1",BNe="_descubreVideos960_b9wc6_1",FNe="_allCategories_b9wc6_1",PNe="_containerScountingBtn_b9wc6_3",$Ne="_btnDeleteAplica_b9wc6_13",ANe="_SearchBtnBar_b9wc6_33",INe="_btnLeyendTxt_b9wc6_52",zNe="_BtnSearchScounting_b9wc6_61",MNe="_containerPredefined_b9wc6_85",ONe="_containerPredefinedScounting_b9wc6_92",RNe="_titleContainerPredefined_b9wc6_100",LNe="_subtitleContainerPredefined_b9wc6_111",DNe={filtersContainer:jVe,filtersContainer1232:UVe,closeFiltersPc:WVe,textleyemdmultipleleagues:HVe,textleyemdmultipleleagues380:GVe,filtersContainer760:qVe,filtersContainer460:JVe,containerSectionPlay:ZVe,containerSectionPlay1232:YVe,containerSectionPlay960:KVe,containerSectionPlay320:XVe,containerSectionPlay350:QVe,containerSection:exe,containerSection1232:txe,containerSection960:axe,containerSection320:oxe,containerSection350:ixe,templateLosMejores:sxe,templateLosMejores1232:rxe,templateLosMejores960:lxe,templateLosMejores420:nxe,templateLosMejores320:dxe,templateLosMejores540:cxe,templateLosMejores350:pxe,topFiltersParent:mxe,topFiltersParent1232:uxe,topFiltersParent960:fxe,topFiltersParent460:hxe,topFiltersParent420:yxe,containerTheBest:gxe,containerTheBest1232:bxe,containerTheBest960:Sxe,containerTheBest320:_xe,titleSection:Cxe,titleSection540:wxe,containerTables:kxe,containerTables960:Exe,containerTables760:Vxe,containerTables320:xxe,toniKroosWrapper:Nxe,toniKroosWrapper1080:Txe,toniKroosWrapper975:Bxe,toniKroosWrapper760:Fxe,toniKroosWrapper420:Pxe,toniKroosWrapper320:$xe,frameChild:Axe,filtros:Ixe,groupParent:zxe,shapeIcon:Mxe,btnFilters:Oxe,btnFiltersPC:Rxe,quitarFiltros:Lxe,quitarFiltros730:Dxe,quitarFiltros480:vxe,quitarFiltros380:jxe,btnCloseFilters:Uxe,mejoresJugadores:Wxe,mejoresJugadores730:Hxe,mejoresJugadores480:Gxe,mejoresJugadoresSM:qxe,toniKroos:Jxe,teamBar:Zxe,menuSection:Yxe,menuSection960:Kxe,menuSectionPlay:Xxe,menuSectionPlay960:Qxe,containerMenu:eNe,containerMenu760:tNe,containerFilters:aNe,teamBarParent:oNe,topFilters:iNe,topFilters1232:sNe,topFilters420:rNe,topFilters460:lNe,losMejores:nNe,losMejores380:dNe,losMejores530:cNe,losMejores730:pNe,menuSectionHeader:mNe,menuSectionHeader1232:uNe,menuSectionHeader960:fNe,menuSectionHeader730:hNe,dropdown:yNe,dropdown730:gNe,dropdown1:bNe,dropdown1730:SNe,dropdownParent:_Ne,dropdownParent730:CNe,menuSectionParentHeader:wNe,menuSectionParentHeader1232:kNe,menuSectionParentHeader960:ENe,menuSectionParentHeader730:VNe,menuSectionParentHeader430:xNe,descubreVideos:NNe,descubreVideos1232:TNe,descubreVideos960:BNe,allCategories:FNe,containerScountingBtn:PNe,btnDeleteAplica:$Ne,SearchBtnBar:ANe,btnLeyendTxt:INe,BtnSearchScounting:zNe,containerPredefined:MNe,containerPredefinedScounting:ONe,titleContainerPredefined:RNe,subtitleContainerPredefined:LNe},vNe=e.ref(DVe()),jNe={components:{GSCTableHeader:Np,GscSwitchComponent:jp,GSCFilterperteam:L2,GSCFilters:gm,GSCExpandedInfo:Mp,GSCLabel:Q2,GSCSeasonSelect:V2,GSCTopCategory:W2e,GSCTournamentSelect:T2,GSCRowTable:Fp,SwitchCustom:wye},computed:{...wpe.computed,style(){return{"--flex-direction-controls":this.isScout&&this.elementSize.width<=730?"column-reverse":"column","--gap-controls":!this.isScout&&this.elementSize.width<=730?"30px":"0","--margin-top-scouting-title-switch":this.isScout&&this.elementSize.width<=730?"20px":"0px","--width-scouting-title-switch":this.isScout&&this.elementSize.width<=730?"100%":"auto"}},tournamentsApiUrlLocal(){const t="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/scouting/tournaments";return this.isScout?this.isFemaleScouting?`${t}?is_female=1`:`${t}?is_female=0`:this.tournamentsApiUrl},filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},o=JSON.stringify(t);if(JSON.stringify(this.filters)!=o)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...vNe.value}},showfiltersPcComputed(){return this.isScout?!0:this.showfiltersPc},openMenuMobilComputed(){return this.isScout?!0:this.openMenuMobil},submenuButtons(){return this.isScout?["Todas las jugadas","Más filtros"]:["Todas las jugadas","Predeterminados"]},filteredCategoriesPlaysTypes(){const t=JSON.parse(JSON.stringify(this.categoriesPlaysTypes));return this.optionSelected==="Equipos"&&(t.offensive.categories=t.offensive.categories.filter(o=>o.name!=="Participaciones en gol")),t},totalCategoriesCount(){return this.optionSelected==="Equipos"?22:23}},props:{currentSeasonId:{type:Number,default:0},userType:{type:String,required:!0},isSelection:{type:Boolean,default:!1},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},isScout:{type:Boolean,default:!1},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let o=0;o<t.teams.length;o++)this.teams.push({id:t.teams[o].team_id,team:t.teams[o].colloquial_name,logo:t.teams[o].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:o}=Wt(t);return{myDivRefTopsFull:t,elementSize:o}},data(){return{isFemaleScouting:!1,elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:6,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-21",logo:null,isSelected:!0,id:1169,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2025",related_seasons:[],id:2019,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}]}],tournamentsToFilterLillini:[{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 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-21",logo:null,isSelected:!0,id:1169,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2025",related_seasons:[],id:2019,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:[],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,teamselect:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",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:R,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:{onUpdateIsFemaleScouting(t){this.isFemaleScouting=t},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},setUpTournamentsToFilter(){this.userType=="selecciones menores"||this.userType=="lillini"?this.tournamentsToFilterLillini.forEach(t=>{const o=t.id===this.selectedTournament.id;t.isSelected=o,t.isDefaultTournament=o}):this.tournamentsToFilter.forEach(t=>{const o=t.id===this.selectedTournament.id;t.isSelected=o,t.isDefaultTournament=o})},async onClickDeleteFilterAux(){this.resetPredefinedTeamAll()},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados"||this.optionSelectedSubmenu=="Más filtros")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let i=0;i<this.detaildProductivityCategories.offensive.categories.length;i++)this.detaildProductivityCategories.offensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.defensive.categories.length;i++)this.detaildProductivityCategories.defensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.possession.categories.length;i++)this.detaildProductivityCategories.possession.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.offensesConditions.length;i++)this.detaildProductivityCategories.offensesConditions[i]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters($e.All),o.clearFilters($e.AGE_RANGE),o.clearFilters($e.YEAR),o.clearFilters($e.NATIONALITY),o.clearFilters($e.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(i,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let i=0;i<a.teams.length;i++)this.teamsscouting.push({id:a.teams[i].team_id,team:a.teams[i].colloquial_name,logo:a.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},setMediaData(t){let o=[t.id],a=t.team_id;const i={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",i)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,o,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:o||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=We.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<o.length;s++){o[s];let r=o[s].dob.split("T")[0].split("-");var i={position:s+1,player_name:this.abrevName(o[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[s].player_id+".png",total:o[s].total.toFixed(0),id:o[s].player_id,player_age:this.calcularEdad(o[s].dob),team_abrev:o[s].teams[0].acronym,team_name:o[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o[s].teams[0].team_id+".png",player_position:o[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[s].nationality_id+".jpg",date:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:o[s].team_id,nationality_name:La[o[s].nationality_id],player_games:o[s].games_played,player_min:o[s].minutes_played,league_name:o[s].tournament_name,seasons:o[s].seasons,season_id:o[s].seasons[0]};this.rowScoutingData.push(i)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let r=0;r<s.teams.length;r++)this.teamsscouting.push({id:s.teams[r].team_id,team:s.teams[r].colloquial_name,logo:s.teams[r].logo})}this.loadingActive=!1},abrevName(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},calcularEdad(t){var o=new Date(t),a=new Date,i=a-o,s=Math.floor(i/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var o;const a=t.find(n=>n.isSelected),i=a?a.id:null,s=a?a.name:null,r=((o=a==null?void 0:a.seasons[0])==null?void 0:o.id)||null;var l=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");l!==-1?this.arrayFiltersPlays[l].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),i!==null&&r!==null&&(this.seasonActive=r,this.selectedTournament=i,this.tournamentSelectedObj={propName:"id",value:i,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",r),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.length;a++)t[a].isSelected&&o.push(t[a].id);if(o.length==0&&(o=[1]),o.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[i,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var o=[];if(t.hasOwnProperty("nationalities")){for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=o},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filterScounting.categories=o,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(a!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,elegible:this.FVeligible,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,o){return Math.floor(Math.random()*(o-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=this.totalCategoriesCount?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(t){var o=this.arrayFiltersPlays.findIndex(i=>i.type===t);if(o!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,r)=>r+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<i.teams.length;s++)this.teamsscouting.push({id:i.teams[s].team_id,team:i.teams[s].colloquial_name,logo:i.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.categoriesPlaysTypes.offensive.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.categoriesPlaysTypes.defensive.categories[i].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.categoriesPlaysTypes.possession.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.categoriesPlaysTypes.offenses.categories[i].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.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($e.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($e.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($e.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters($e.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters($e.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(o,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let l=0;l<t.playingAs.length;l++)if(t.playingAs[l].isSelected){const n=t.playingAs[l].name=="Local"?1:2;o.push(n)}for(let l=0;l<t.gameSections.length;l++)t.gameSections[l].isSelected&&a.push(t.gameSections[l].value);this.fVsections=a,this.fVplayingAs=o,this.fvTypeStats=t.statisticType;var i=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?i!=-1&&this.arrayFiltersPlays.splice(i,1):i!=-1?this.arrayFiltersPlays[i].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTime"),r="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(r+=", 0-15"),this.fVsections.includes(2)&&(r+=", 15-30"),this.fVsections.includes(3)&&(r+=", 30-45"),this.fVsections.includes(4)&&(r+=", 45-60"),this.fVsections.includes(5)&&(r+=", 60-75"),this.fVsections.includes(6)&&(r+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=r:this.arrayFiltersPlays.push({name:r,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,i)=>i+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters($e.All),a.clearFilters($e.AGE_RANGE),a.clearFilters($e.YEAR),a.clearFilters($e.NATIONALITY),a.clearFilters($e.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo})},onFiltersData(t){var o=0,a=0;t.ageByRange&&(t.ageByRange.min==0?o=1:o=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[o,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let i="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y]);var r=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");r!==-1&&this.arrayFiltersPlays.splice(r,1)}else if(this.FVeligible=!1,t.hasOwnProperty("nationalities")){let y=0;this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let m=0;m<t.nationalities.length;m++)t.nationalities[m].isSelected&&(this.fVnationalities.add(t.nationalities[m].id),y++);if(y===t.nationalities.length){var r=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");r!==-1&&this.arrayFiltersPlays.splice(r,1)}}if(t.hasOwnProperty("nationalities")&&!this.FVeligible&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var r=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersNationality");r!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[r].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(r,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 y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y])}else this.FVeligible=!1;if(t.hasOwnProperty("positions")){let y=0;for(let m=0;m<t.positions.length;m++)t.positions[m].isSelected&&(this.fVsetPositionsIds.push(t.positions[m].id),y++);if(y===t.positions.length){var l=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersPosition");l!==-1&&this.arrayFiltersPlays.splice(l,1)}}if(t.hasOwnProperty("nationalities"))var n=t.nationalities.filter(y=>y.isSelected===!0);var c=t.positions.filter(y=>y.isSelected===!0);if(c.length==1&&(i=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 d=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");d!=-1?this.arrayFiltersPlays[d].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var d=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersElegibility");d!=-1&&this.arrayFiltersPlays.splice(d,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var l=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersPosition");l!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[l].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var u=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");u!=-1?this.arrayFiltersPlays[u].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.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 p=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");p!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[p].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(p,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var p=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersAge");p!=-1&&this.arrayFiltersPlays.splice(p,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var r=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersNationality");r!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[r].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(r,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($e.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.loadingActive=!0;const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo});this.resetFilterTeamAndPlayers(),this.getScoutingData(),setTimeout(()=>{this.modifidFiltersFlag=!1},200)}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(o){console.error("Error changing tabs:",o),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(o!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.fetchTournamentsForSelection()},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 o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}else this.optionSelected="Jugadores",this.typeTable=0,this.isTeam=!1,this.resetFilterTeamAndPlayers(),this.resetScouting(),await this.loadPreloadedTops();this.optionSelectedSubmenu=t}else t!="Predeterminados"&&t!="Más filtros}"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournamentsForSelection(){try{const{data:t}=await We.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",{headers:{Authorization:this.token}}),o=new Set([1,43,44,1001,1071,1143,1155,1169]);this.tournamentsToFilterSelection=t.filter(a=>o.has(a.tournament.id)).map(a=>({...a.tournament,seasons:a.seasons,isSelected:a.tournament.id===1})).sort((a,i)=>a.order-i.order)}catch(t){console.error("fetchTournamentsForSelection error",t)}},async fetchTeams(){const t=We.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(t){const o=We.create({headers:{Authorization:`${this.token}`}}),{data:a}=await o.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";t.id==1?o=this.urlFilter:o=this.urlFilter;const a=We.create({headers:{Authorization:`${this.token}`}}),{data:i}=await a.get(o+t.id);if(Object.keys(i[0].match_lapse_combinations).forEach(p=>{this.predefinedFiltersMatchLapse[p.toString()]=i[0].match_lapse_combinations[p]}),Object.keys(i[0].playing_as_combinations).forEach(p=>{this.predefinedFiltersPlayingAs[p.toString()]=i[0].playing_as_combinations[p]}),Object.keys(i[0].field_sections_combinations).forEach(p=>{this.predefinedFiltersSections[p.toString()]=i[0].field_sections_combinations[p]}),i[0]){for(let p=0;p<i[0].filter_records.length;p++){var s=i[0].description;if(i[0].filter_records[p].field_sections!==void 0){const m=i[0].filter_records[p].field_sections.toString();(this.predefinedFiltersSections[m]||this.predefinedFiltersSections[m]=="")&&(this.predefinedFiltersSections[m]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[m]):s=s.replace("{field_sections}",this.predefinedFiltersSections[m]))}if(i[0].filter_records[p].match_lapse!==void 0){const m=i[0].filter_records[p].match_lapse.toString();(this.predefinedFiltersMatchLapse[m]||this.predefinedFiltersMatchLapse[m]=="")&&(this.predefinedFiltersMatchLapse[m]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[m]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[m]))}if(i[0].filter_records[p].playing_as!==void 0){const m=i[0].filter_records[p].playing_as.toString();(this.predefinedFiltersPlayingAs[m]||this.predefinedFiltersPlayingAs[m]=="")&&(this.predefinedFiltersPlayingAs[m]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[m]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[m]))}i[0].filter_records[p].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",i[0].category_name);const y=s.split(": ");var r=y[1];r.length>129&&this.windowWidth>1358&&(r=r.substring(0,129),r=r+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||i[0].filter_records[p].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:p,category_name:t.name,id_category:i[0].id,title:y[0]+":",text:y[1],textOrigin:i[0].description,titledots:r,filtersPredefined:{matchResult:i[0].filter_records[p].match_result,playingAs:i[0].filter_records[p].playing_as,sections:i[0].filter_records[p].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[p].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let p=0;p<this.arrayPredefinedFilters.length;p++){var n=0,c=new Set,d={},u=this.arrayPredefinedFilters[p].text.replace(/\*.*?\*/,"");if(u=u.replace(/\*/g,""),u=u.replace(/ +/g," "),this.arrayPredefinedFilters[p].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[p].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[p].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,this.arrayPredefinedFilters[p].filtersPredefined.end_age]:this.arrayPredefinedFilters[p].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[p].filtersPredefined.end_age],this.arrayPredefinedFilters[p].filtersPredefined.matchResult.length!=3&&(n+=1),d.matchResult=this.arrayPredefinedFilters[p].filtersPredefined.matchResult,this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length;y++)c.add(this.arrayPredefinedFilters[p].filtersPredefined.nationalities[y]);d.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),d.setNationalitiesIds=c;this.arrayPredefinedFilters[p].filtersPredefined.playingAs.length!=2&&(n+=1),d.playingAs=this.arrayPredefinedFilters[p].filtersPredefined.playingAs,this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[p].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[p].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[p].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[p].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[p].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[p].filtersPredefined.typeZone,this.optionSelected=="Equipos"&&(this.tournamentSelectedObj.is_female?u=u.replace(/Jugadoras/g,"Equipos"):u=u.replace(/Jugadores/g,"Equipos")),d.setNationalitiesIds=[],l.push({id:p+1,name:u,isSelected:!1,value:n,filters:d})}this.FVfilterGolstats=l,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((u,p)=>u-p).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[i]||this.predefinedFiltersMatchLapse[i]=="")this.predefinedFiltersMatchLapse[i]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";i.includes(1)&&(s=s+"0-15, "),i.includes(2)&&(s=s+"16-30, "),i.includes(3)&&(s=s+"31-45, "),i.includes(4)&&(s=s+"46-60, "),i.includes(5)&&(s=s+"61-75, "),i.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[r]||this.predefinedFiltersPlayingAs[r]=="")&&(this.predefinedFiltersPlayingAs[r]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[r]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[r])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const l=t.split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),c=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const d=c.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let u=1;u<=d.length;u++)u%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:La[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},processPreloadedTops(t){const o={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),i=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return t.tops.forEach(s=>{const r=s.category;o[r]||(o[r]={teams:[],players:[]}),s.teams&&(o[r].teams=s.teams.map((l,n)=>{const c=a.get(l[0])||{};return{id:c.id,name:c.name,img:c.logo,total:l[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(o[r].players=s.players.map((l,n)=>{var c,d,u,p,y,m,h,f,g,b;const S=i.get(l[0])||{};return{age:S.numberAge,categoryName:s.name,country:(d=(c=S.countryId)==null?void 0:c[0])==null?void 0:d.nationality_id,date:S.date,effectiveness:S.effectiveness||0,games:S.games,id:l[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${l[0]}.png`,minutes:S.min,name:S.stringFullName,name_short:S.stringFullName,nationality:S.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(p=(u=S.countryId)==null?void 0:u[0])==null?void 0:p.nationality_id}.jpg`,position:S.position_short,positionId:S.numberPositionId,positionfull:this.positions[S.numberPositionId-1],team:((m=(y=S.teamName)==null?void 0:y[0])==null?void 0:m.acronym)||"",teamid:((f=(h=S.teamName)==null?void 0:h[0])==null?void 0:f.team_id)||"",teamname:((b=(g=S.teamName)==null?void 0:g[0])==null?void 0:b.acronym)||"",top:String(n+1).padStart(2,"0"),total:l[1]}}))}),o},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=We.create({headers:{Authorization:`${this.token}`}}),o=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(o);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,o){return`${t}-${o}`},async getTopData(t,o){const a=this.getCacheKey(t,o);if(this.topsCache.has(a))return this.topsCache.get(a);const i=We.create({headers:{Authorization:`${this.token}`}}),{data:s}=await i.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${o}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),o=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(o.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.fetchTournamentsForSelection(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadPreloadedTops();const t=await We.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(t){throw new Error(t)}}},UNe={key:0,class:"overlay-loading"},WNe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),HNe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),GNe=[WNe,HNe],qNe={class:"container-section__controls"},JNe={key:0,class:"scouting-title-switch"},ZNe={key:0,class:"title",id:"title-section",style:{"font-size":"22px !important"}},YNe={class:"female-scouting-switch"},KNe={class:"female-scouting__switch"},XNe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),QNe=[XNe],eTe={key:0,class:"cont-leyemd-multipleleagues"},tTe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),aTe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},oTe={key:0,style:{"margin-left":"10px"}},iTe=e.createElementVNode("span",null,"Todas las categorías",-1),sTe=[iTe],rTe=e.createElementVNode("span",null,"Tipo de Jugada",-1),lTe=e.createElementVNode("span",null,"Filtro GolStats",-1),nTe={key:3,style:{width:"100%",height:"295px"}};function dTe(t,o,a,i,s,r){const l=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),c=e.resolveComponent("SwitchCustom"),d=e.resolveComponent("GscSwitchComponent"),u=e.resolveComponent("GSCFilterperteam"),p=e.resolveComponent("GSCFilters"),y=e.resolveComponent("GSCLabel"),m=e.resolveComponent("GSCTopCategory"),h=e.resolveComponent("GSCTableHeader"),f=e.resolveComponent("GSCRowTable"),g=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",{ref:"myDivRefTopsFull",style:e.normalizeStyle(r.style)},[s.loadingActive?(e.openBlock(),e.createElementBlock("div",UNe,GNe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionClass),id:"container-section"},[e.createElementVNode("div",qNe,[i.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[!a.isScout&&i.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass({dropdownClass:t.dropdownClass,select:a.isScout})},[e.createVNode(l,{width:"100%","list-height":"370px","current-season-id":a.currentSeasonId,"api-url":r.tournamentsApiUrlLocal,"are-female-visible":a.areFemaleTournamentsVisible,"is-clubes-active":a.isClubes,"is-female-mode":a.isFemaleMode,token:a.token,onInput:r.changeTournament},null,8,["current-season-id","api-url","are-female-visible","is-clubes-active","is-female-mode","token","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({dropdown1Class:t.dropdown1Class,select:a.isScout})},[e.createVNode(n,{width:"100%","list-height":"370px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[i.elementSize.width>730&&!a.isScout?(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)},[a.isScout?(e.openBlock(),e.createElementBlock("div",JNe,[a.isScout||i.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",ZNe,[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))])):e.createCommentVNode("",!0),e.createElementVNode("div",YNe,[e.createElementVNode("div",{class:e.normalizeClass(["label",{"label-selected":!s.isFemaleScouting}])},"Varonil",2),e.createElementVNode("div",KNe,[e.createVNode(c,{"model-value":s.isFemaleScouting,"onUpdate:modelValue":r.onUpdateIsFemaleScouting},null,8,["model-value","onUpdate:modelValue"])]),e.createElementVNode("div",{class:e.normalizeClass(["label",{"label-selected":s.isFemaleScouting}])},"Femenil",2)])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(d,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2)),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdownParentClass)},[i.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(l,{width:"147px","list-height":"370px","current-season-id":a.currentSeasonId,"api-url":r.tournamentsApiUrlLocal,"are-female-visible":a.areFemaleTournamentsVisible,"is-clubes-active":a.isClubes,"is-female-mode":a.isFemaleMode,token:a.token,onInput:r.changeTournament},null,8,["current-season-id","api-url","are-female-visible","is-clubes-active","is-female-mode","token","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","list-height":"370px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2))]),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(u,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(r.showfiltersPcComputed?"display: none;":""),onClick:o[0]||(o[0]=(...b)=>r.clickOpenFilters&&r.clickOpenFilters(...b))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:nn},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(r.showfiltersPcComputed||a.isSelection?"":i.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 15px;":"")},[i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection&&!a.isScout?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...b)=>r.clickCloseFilters&&r.clickCloseFilters(...b))},QNe,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(d,{key:1,type:2,buttons:r.submenuButtons,"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:r.changeTabsSubmenu},null,8,["buttons","selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(d,{key:2,type:2,buttons:["Todas las jugadas","Más productivos"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:r.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0)],6),!a.isSelection&&!a.isScout?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:o[2]||(o[2]=(...b)=>r.openMenuFilters&&r.openMenuFilters(...b))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:nn},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(r.openMenuMobilComputed?"":"transform: rotate(180deg)"),alt:"",src:wb},null,6)],2)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:o[3]||(o[3]=(...b)=>r.openMenuFilters&&r.openMenuFilters(...b))},null,6),[[e.vShow,i.elementSize.width<760&&r.openMenuMobilComputed]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isSelection?(e.openBlock(),e.createBlock(p,e.mergeProps({key:0,"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:a.userType=="selecciones menores"||a.userType=="lillini"?s.tournamentsToFilterLillini:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":r.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersPlays,filters:r.filteredCategoriesPlaysTypes,onApply:r.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersDetails,filters: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(p,e.mergeProps({key:1,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:a.token,"onUpdate:filters":r.onFiltersData}),null,16,["is-female","button-filter-props","is-seleccion","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:a.userType=="selecciones menores"||a.userType=="lillini"?s.tournamentsToFilterLillini:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":r.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":r.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(p,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:o[4]||(o[4]=(...b)=>r.getScoutingData&&r.getScoutingData(...b))},"Buscar",2)],64)):e.createCommentVNode("",!0),(s.optionSelectedSubmenu=="Predeterminados"||s.optionSelectedSubmenu=="Más filtros")&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(p,e.mergeProps({"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":r.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(p,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":r.onFiltersGolStats,filters:r.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,i.elementSize.width>760||r.openMenuMobilComputed||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",eTe,[tTe,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(u,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:r.clickTeamScouting,onClickAll:r.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",aTe," 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"&&s.optionSelectedSubmenu!="Más filtros"?(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"&&s.optionSelectedSubmenu!="Más filtros"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.showFullTable?(e.openBlock(),e.createElementBlock("div",oTe,[e.createVNode(y,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(b,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,style:{"margin-left":"10px"}},[e.createVNode(y,{"text-value":b.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteLabelFilter,id:b.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:i.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||(s.optionSelectedSubmenu=="Predeterminados"||s.optionSelectedSubmenu=="Más filtros")&&s.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:o[5]||(o[5]=(...b)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...b))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.optionSelectedSubmenu!="Más filtros"&&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)},sTe,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,(b,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:S},[s.optionSelected==="Equipos"&&b.name==="Participaciones en gol"?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(b.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(m,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:r.onShowFullTable,"border-width":0,preload:s.preloadedTops[b.id],"border-radius":"12px","filters-prop":r.filterChange,category:b.id,"type-table":s.typeTable,categoryName:b.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onComponentLoaded:t.onComponentLoaded},null,8,["is-female","is-team","type-stats","is-selection","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(b.id)&&!s.showFullTable]])],4))],64))),128)),s.showFullTable?(e.openBlock(),e.createBlock(m,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":a.isSelection,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":r.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(m,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":r.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[rTe,e.createTextVNode(" y un "),lTe,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(h,{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,(b,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:S},[s.teamselectrec==0||s.teamselectrec==b.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{type:2,"is-expanded":s.playerexpand==b.id&&s.expand,onMediadata:r.setMediaData,data:{position:b.position,player_name:b.player_name,player_photo:b.player_photo,total:b.total,id:b.id,player_age:b.player_age,team_abrev:b.team_abrev,team_logo:b.team_logo,player_position:s.positions[b.player_position-1].fullname,player_country_flag:b.player_country_flag,player_games:b.player_games,player_min:b.player_min,league_name:b.league_name,seasons:b.seasons,season_id:b.season_id},height:"71px",background:S%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==b.id?(e.openBlock(),e.createBlock(g,{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:b.team_name,age:b.player_age,dataofbirth:b.date,nationality:b.nationality_name,countryFlag:b.player_country_flag,position:s.positions[b.player_position-1].name,games:b.player_games,min:b.player_min,goals:b.total,effectiveness:"-",category:"total",id:b.id},onViewprofile:F=>r.viewprofile(F,b.season_id,b.team_id),background:S%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:o[6]||(o[6]=(...b)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...b))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:o[7]||(o[7]=(...b)=>r.getScoutingData&&r.getScoutingData(...b))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",nTe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],4)}const cTe={$style:DNe},pTe=it(jNe,[["render",dTe],["__cssModules",cTe]]),Sm={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(o){throw new Error(o)}}}},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)}}},kb=()=>{e.useCssVars(t=>({"39b08ebc":t.backgroundColor,"5bd2cafa":t.widthCircle,"73104bac":t.heightCircle}))},Eb=Sm.setup;Sm.setup=Eb?(t,o)=>(kb(),Eb(t,o)):kb;const mTe=["width","src"],uTe=["checked"],fTe=["width","src"];function hTe(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(r.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,mTe)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:o[0]||(o[0]=(...l)=>r.handleSwitchChange&&r.handleSwitchChange(...l)),checked:s.OptionDefault},null,40,uTe),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([r.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,fTe)):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 yTe=it(Sm,[["render",hTe],["__scopeId","data-v-a583325d"]]),gTe={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:o}){const a=e.ref(null),i=e.ref(new Set),s=e.ref(""),r=e.ref([]),l=e.ref(!1),n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=e.ref(null),d=f=>{document.body.style.overflow=f?"hidden":"auto"},u=()=>{i.value.clear(),s.value="",c.value=null,r.value=[]},p=()=>{u(),o("close")},y=()=>{s.value=""},m=async()=>{if(t.userId){l.value=!0;try{const f=await We.create({headers:{Authorization:`${n}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`);r.value=f.data.data}catch(f){console.error("Error al obtener las listas:",f)}finally{l.value=!1}}};e.watch(()=>t.isVisible,f=>{d(f),f&&t.userId&&m()}),e.watch(()=>t.userId,f=>{f&&t.isVisible&&m()}),e.onMounted(()=>{t.isVisible&&d(!0)}),e.onUnmounted(()=>{d(!1)});const h=e.computed(()=>{if(!s.value)return r.value.map(g=>{var b;return{...g,isDisabled:((b=g.players)==null?void 0:b.some(S=>S.player_id===t.player.player_id))||!1}});const f=s.value.toLowerCase();return r.value.filter(g=>g.name.toLowerCase().includes(f)).map(g=>{var b;return{...g,isDisabled:((b=g.players)==null?void 0:b.some(S=>S.player_id===t.player.player_id))||!1}})});return{modalContent:a,selectedPlayers:i,searchQuery:s,closeModal:p,clearSearch:y,playlists:r,isLoading:l,filteredPlaylists:h,selectedPlaylist:c,handlePlaylistSelection:(f,g)=>{g||(c.value=f)},handleCreatePlaylist:async()=>{if(c.value)try{const f=We.create({headers:{Authorization:`${n}`}}),g={user_id:t.userId,id:c.value,players:[t.player]};await f.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${c.value}/players`,g),p()}catch(f){console.error("Error al guardar el jugador en la lista:",f)}},handleCreateListClick:()=>{o("create-list"),u()}}}},Ha=t=>(e.pushScopeId("data-v-67caccaa"),t=t(),e.popScopeId(),t),bTe={class:"modal-header"},STe=Ha(()=>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)),_Te=Ha(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),CTe=[_Te],wTe={class:"modal-body"},kTe={class:"search-section"},ETe={class:"search-container"},VTe={class:"search-input"},xTe=Ha(()=>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)),NTe=Ha(()=>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)),TTe=[NTe],BTe=Ha(()=>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)),FTe={class:"players-table-container"},PTe={class:"players-table"},$Te={key:0,class:"loading-message"},ATe={key:1,class:"empty-message"},ITe={class:"checkbox-container"},zTe=["id","checked","onChange"],MTe={key:1,class:"checkbox-placeholder"},OTe=Ha(()=>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)),RTe={class:"list-content"},LTe={class:"title"},DTe={class:"subtitle"},vTe={class:"modal-footer"},jTe={class:"buttons-container buttons-container-step2"},UTe=Ha(()=>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)),WTe=Ha(()=>e.createElementVNode("span",null,"Crear nueva lista",-1)),HTe=[UTe,WTe],GTe={class:"right-buttons"},qTe=["disabled"];function JTe(t,o,a,i,s,r){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:o[8]||(o[8]=(...l)=>i.closeModal&&i.closeModal(...l))},[e.createElementVNode("div",{class:"modal-content",onClick:o[7]||(o[7]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",bTe,[STe,e.createElementVNode("button",{class:"close-button",onClick:o[0]||(o[0]=(...l)=>i.closeModal&&i.closeModal(...l))},CTe)]),e.createElementVNode("div",wTe,[e.createElementVNode("div",kTe,[e.createElementVNode("div",ETe,[e.createElementVNode("div",VTe,[xTe,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=l=>i.searchQuery=l),type:"text",placeholder:"Buscar lista..."},null,512),[[e.vModelText,i.searchQuery]]),i.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:o[2]||(o[2]=(...l)=>i.clearSearch&&i.clearSearch(...l))},TTe)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"crear-playlist",onClick:o[3]||(o[3]=(...l)=>i.handleCreateListClick&&i.handleCreateListClick(...l))},[BTe,e.createTextVNode(" Crear nueva lista ")])])]),e.createElementVNode("div",FTe,[e.createElementVNode("div",PTe,[i.isLoading?(e.openBlock(),e.createElementBlock("div",$Te," Cargando listas... ")):i.filteredPlaylists.length===0?(e.openBlock(),e.createElementBlock("div",ATe," No hay listas disponibles ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(i.filteredPlaylists,l=>{var n;return e.openBlock(),e.createElementBlock("div",{key:l.id,class:e.normalizeClass(["list-item",{disabled:l.isDisabled}])},[e.createElementVNode("div",ITe,[l.isDisabled?(e.openBlock(),e.createElementBlock("div",MTe)):(e.openBlock(),e.createElementBlock("input",{key:0,type:"checkbox",id:l.id,checked:i.selectedPlaylist===l.id,onChange:c=>i.handlePlaylistSelection(l.id,l.isDisabled)},null,40,zTe))]),OTe,e.createElementVNode("div",RTe,[e.createElementVNode("div",LTe,e.toDisplayString(l==null?void 0:l.name),1),e.createElementVNode("div",DTe,e.toDisplayString((n=l==null?void 0:l.template)==null?void 0:n.name),1)])],2)}),128))])])]),e.createElementVNode("div",vTe,[e.createElementVNode("div",jTe,[e.createElementVNode("button",{class:"create-list-link",onClick:o[4]||(o[4]=(...l)=>i.handleCreateListClick&&i.handleCreateListClick(...l))},HTe),e.createElementVNode("div",GTe,[e.createElementVNode("button",{class:"cancelar",onClick:o[5]||(o[5]=(...l)=>i.closeModal&&i.closeModal(...l))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:o[6]||(o[6]=(...l)=>i.handleCreatePlaylist&&i.handleCreatePlaylist(...l)),disabled:!i.selectedPlaylist}," Guardar ",8,qTe)])])])],512)])):e.createCommentVNode("",!0)]),_:1})}const ZTe=it(gTe,[["render",JTe],["__scopeId","data-v-67caccaa"]]),YTe={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:o}){const a=e.ref(null),i=e.ref({title:"",templateId:""}),s=e.ref(0),r=()=>{a.value&&(s.value=a.value.offsetWidth)},l=p=>{document.body.style.overflow=p?"hidden":"auto"},n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=()=>{r(),t.isVisible&&l(!0)},d=()=>{i.value={title:"",templateId:""},o("close")},u=async()=>{if(!(!i.value.title||!i.value.templateId))try{const p=t.templates.find(h=>h.id===i.value.templateId),y={user_id:t.userId,name:i.value.title,template:p,players:[t.player]},m=await We.create({headers:{Authorization:`${n}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,y);d()}catch(p){console.error("Error al crear la lista:",p)}};return e.onMounted(()=>{window.addEventListener("resize",c)}),e.onUnmounted(()=>{window.removeEventListener("resize",c),l(!1)}),e.watch(()=>t.isVisible,p=>{p?(setTimeout(r,0),l(!0)):l(!1)}),e.watch(()=>t.listData,p=>{p&&(p.name&&(i.value.title=p.name),p.template&&(i.value.templateId=Number(p.template)))},{immediate:!0}),{modalContent:a,playlistData:i,modalWidth:s,closeModal:d,handleNext:u}}},_m=t=>(e.pushScopeId("data-v-0dd449b4"),t=t(),e.popScopeId(),t),KTe={class:"modal-header"},XTe=_m(()=>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)),QTe=_m(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),eBe=[QTe],tBe={class:"modal-body"},aBe=_m(()=>e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una plantilla",-1)),oBe=["value"],iBe={class:"modal-footer"},sBe={class:"buttons-container buttons-container-step1"},rBe=["disabled"];function lBe(t,o,a,i,s,r){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:o[6]||(o[6]=(...l)=>i.closeModal&&i.closeModal(...l))},[e.createElementVNode("div",{class:"modal-content",onClick:o[5]||(o[5]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",KTe,[XTe,e.createElementVNode("button",{class:"close-button",onClick:o[0]||(o[0]=(...l)=>i.closeModal&&i.closeModal(...l))},eBe)]),e.createElementVNode("div",tBe,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":o[1]||(o[1]=l=>i.playlistData.title=l),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,i.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":o[2]||(o[2]=l=>i.playlistData.templateId=l),class:"select-position"},[aBe,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.templates,l=>(e.openBlock(),e.createElementBlock("option",{key:l.id,value:l.id},e.toDisplayString(l.name),9,oBe))),128))],512),[[e.vModelSelect,i.playlistData.templateId]])]),e.createElementVNode("div",iBe,[e.createElementVNode("div",sBe,[e.createElementVNode("button",{class:"cancelar",onClick:o[3]||(o[3]=(...l)=>i.closeModal&&i.closeModal(...l))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:o[4]||(o[4]=(...l)=>i.handleNext&&i.handleNext(...l)),disabled:!i.playlistData.title||!i.playlistData.templateId}," Guardar ",8,rBe)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const nBe=it(YTe,[["render",lBe],["__scopeId","data-v-0dd449b4"]]),dBe=[{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}]}],cBe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},pBe={key:1},mBe={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uBe=["fill"],fBe={key:0,class:"checkbox__teams"},hBe={class:"checkbox__teams__logo"},yBe=["src"],gBe={class:"checkbox__teams__logo"},bBe=["src"],SBe={__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:o}){const a=t;e.useCssVars(d=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const i=e.ref(!1),s=e.computed(()=>{const d={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 i.value?(d["background-color"]=a.boxBackgroundColor,d.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):d.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,d}),r=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),l=e.computed(()=>{const d={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")&&(d[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),d});e.watch(()=>a.modelValue,d=>{d!==i.value&&(i.value=d)},{immediate:!0});function n(){a.avoidInteraction||!i.value&&a.avoidToCheck||(i.value=!i.value,o("update:modelValue",i.value))}function c(d){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${d}.png`}return(d,u)=>(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)},[i.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(r.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",pBe,[(e.openBlock(),e.createElementBlock("svg",mBe,[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,uBe)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",fBe,[e.createElementVNode("div",hBe,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,yBe)]),e.createElementVNode("div",gBe,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,bBe)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(l.value)},e.toDisplayString(t.label),5)],2))}},_Be=cBe(SBe,[["__scopeId","data-v-b6f124d8"]]),CBe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},Cm={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))}}},Vb=()=>{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}))},xb=Cm.setup;Cm.setup=xb?(t,o)=>(Vb(),xb(t,o)):Vb;const wBe=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),kBe=["src"],EBe={key:1,class:"text"},VBe=["src"],xBe={class:"stats"},NBe=wBe(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),TBe={class:"numstats"},BBe={class:"leyend"};function FBe(t,o,a,i,s,r){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([r.customStyle,s.status&&a.typeOnOff&&r.customActive]),onClick:o[0]||(o[0]=(...l)=>r.btnClick&&r.btnClick(...l))},[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,kBe)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",EBe,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,VBe)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...l)=>r.btnClick&&r.btnClick(...l))},[e.createElementVNode("div",xBe,[NBe,e.createElementVNode("div",TBe,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",BBe,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const PBe=CBe(Cm,[["render",FBe],["__scopeId","data-v-f3ee6b2b"]]),Nb=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},wm=t=>(e.pushScopeId("data-v-764bd788"),t=t(),e.popScopeId(),t),$Be={key:0,class:"overlay"},ABe=["onClick"],IBe=wm(()=>e.createElementVNode("svg",{width:"11",height:"12",viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M7.50558 0C6.78112 0 6.10558 0.475441 5.89478 1.14401L1.21987 1.14286C0.904267 1.14286 0.648438 1.39886 0.648438 1.71429C0.648438 2.02972 0.904267 2.28572 1.21987 2.28572L5.89478 2.28516C6.15083 2.98516 6.78112 3.42858 7.50558 3.42858C8.23004 3.42858 8.86678 2.98402 9.1273 2.28059L10.3627 2.28572C10.6783 2.28572 10.9342 2.02972 10.9342 1.71429C10.9342 1.39886 10.6783 1.14286 10.3627 1.14286H9.12244C8.8473 0.446287 8.23004 0 7.50558 0ZM7.50558 1.14286C7.82118 1.14286 8.07701 1.39886 8.07701 1.71429C8.07701 2.02972 7.82118 2.28572 7.50558 2.28572C7.18998 2.28572 6.93415 2.02972 6.93415 1.71429C6.93415 1.39886 7.18998 1.14286 7.50558 1.14286ZM4.07701 4.28572C3.32387 4.28572 2.69347 4.7543 2.4633 5.42971C2.38295 5.43485 1.21987 5.42856 1.21987 5.42856C0.904267 5.42856 0.648438 5.68456 0.648438 5.99999C0.648438 6.31542 0.904267 6.57142 1.21987 6.57142C1.21987 6.57142 2.39267 6.55942 2.46575 6.56685C2.69593 7.24228 3.32387 7.71428 4.07701 7.71428C4.80146 7.71428 5.42226 7.27028 5.69381 6.57314L10.3627 6.57142C10.6783 6.57142 10.9342 6.31542 10.9342 5.99999C10.9342 5.68456 10.6783 5.42856 10.3627 5.42856L5.69083 5.42348C5.44038 4.74174 4.80146 4.28572 4.07701 4.28572ZM4.07701 5.42856C4.39261 5.42856 4.64844 5.68456 4.64844 5.99999C4.64844 6.31542 4.39261 6.57142 4.07701 6.57142C3.76141 6.57142 3.50558 6.31542 3.50558 5.99999C3.50558 5.68456 3.76141 5.42856 4.07701 5.42856ZM7.50558 8.57142C6.78112 8.57142 6.11844 9.04857 5.89438 9.70857L1.21987 9.71428C0.904267 9.71428 0.648438 9.97028 0.648438 10.2857C0.648438 10.6011 0.904267 10.8571 1.21987 10.8571L5.88592 10.8577C6.12301 11.5349 6.78112 12 7.50558 12C8.23004 12 8.85467 11.5469 9.12987 10.8577L10.3627 10.8571C10.6783 10.8571 10.9342 10.6011 10.9342 10.2857C10.9342 9.97028 10.6783 9.71428 10.3627 9.71428L9.12467 9.71091C8.87798 9.03491 8.23004 8.57142 7.50558 8.57142ZM7.50558 9.71428C7.82118 9.71428 8.07701 9.97028 8.07701 10.2857C8.07701 10.6011 7.82118 10.8571 7.50558 10.8571C7.18998 10.8571 6.93415 10.6011 6.93415 10.2857C6.93415 9.97028 7.18998 9.71428 7.50558 9.71428Z",fill:"white"})],-1)),zBe=[IBe],MBe=["onClick"],OBe=wm(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),RBe=[OBe],LBe=wm(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),DBe=["onClick"],vBe={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1},isMobile:{type:Boolean,default:!1}},emits:["expand","open-media","click-parameters","sort"],setup(t,{expose:o,emit:a}){const i=t,s=e.ref(null),r=e.ref(null),l=e.ref(0);e.ref(!1);const n=e.computed(()=>{const h=i.availablePlayers[0];return h?h.stats:[]}),c=e.computed(()=>{const h=`repeat(${n.value.length}, max-content) 36px`;let f="";return l.value>0&&document.querySelectorAll(".column-title-2").forEach(g=>{f+=`${g.offsetWidth}px `}),{"--grid-template-columns":h,"--grid-template-columns-totals":f||h}});function d(){s.value=new ResizeObserver(h=>{for(const f of h){const{width:g}=f.contentRect;l.value=g}}),s.value.observe(r.value)}function u(h,f){const g=document.querySelectorAll(".scrollable-row-totals")[h+1];g&&(g.style.marginTop=`${f}px`)}function p({player:h,stat:f}){!f.total||f==="0%"||!f.seasons||!f.seasons.length||a("open-media",{...h,stat:f})}function y(h){!h||h==="no"||a("click-parameters",h)}function m(h){a("sort",h)}return e.onMounted(()=>{d()}),o({setMarginTopDetails:u}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(c.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",$Be)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:r,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:`t-${b}`,class:"column-title-2"},[g.parameters&&g.parameters!=="no"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"parameters",role:"button",onClick:S=>y(g.parameters)},zBe,8,ABe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"name",style:e.normalizeStyle(t.isMobile?"font-size: 10px;":"")},e.toDisplayString(g.name),5),(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:S=>m(g)},RBe,8,MBe))]))),128)),LBe],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${g.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.stats,S=>(e.openBlock(),e.createElementBlock("div",{key:S.category_id,class:e.normalizeClass(["row data-info",{odd:b%2!==0,underline:!!S.total&&S.total!=="0%"&&S.seasons&&S.seasons.length}])},[e.createElementVNode("span",{onClick:F=>p({player:g,stat:S})},e.toDisplayString(S.total),9,DBe)],2))),128))]))),128))],4))}},jBe=Nb(vBe,[["__scopeId","data-v-764bd788"]]);function Tb(t,o){return function(){return t.apply(o,arguments)}}const{toString:UBe}=Object.prototype,{getPrototypeOf:km}=Object,{iterator:dn,toStringTag:Bb}=Symbol,cn=(t=>o=>{const a=UBe.call(o);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),la=t=>(t=t.toLowerCase(),o=>cn(o)===t),pn=t=>o=>typeof o===t,{isArray:Ei}=Array,Bs=pn("undefined");function WBe(t){return t!==null&&!Bs(t)&&t.constructor!==null&&!Bs(t.constructor)&&Rt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Fb=la("ArrayBuffer");function HBe(t){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(t):o=t&&t.buffer&&Fb(t.buffer),o}const GBe=pn("string"),Rt=pn("function"),Pb=pn("number"),mn=t=>t!==null&&typeof t=="object",qBe=t=>t===!0||t===!1,un=t=>{if(cn(t)!=="object")return!1;const o=km(t);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Bb in t)&&!(dn in t)},JBe=la("Date"),ZBe=la("File"),YBe=la("Blob"),KBe=la("FileList"),XBe=t=>mn(t)&&Rt(t.pipe),QBe=t=>{let o;return t&&(typeof FormData=="function"&&t instanceof FormData||Rt(t.append)&&((o=cn(t))==="formdata"||o==="object"&&Rt(t.toString)&&t.toString()==="[object FormData]"))},eFe=la("URLSearchParams"),[tFe,aFe,oFe,iFe]=["ReadableStream","Request","Response","Headers"].map(la),sFe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(t,o,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Ei(t))for(i=0,s=t.length;i<s;i++)o.call(null,t[i],i,t);else{const r=a?Object.getOwnPropertyNames(t):Object.keys(t),l=r.length;let n;for(i=0;i<l;i++)n=r[i],o.call(null,t[n],n,t)}}function $b(t,o){o=o.toLowerCase();const a=Object.keys(t);let i=a.length,s;for(;i-- >0;)if(s=a[i],o===s.toLowerCase())return s;return null}const zo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ab=t=>!Bs(t)&&t!==zo;function Em(){const{caseless:t}=Ab(this)&&this||{},o={},a=(i,s)=>{const r=t&&$b(o,s)||s;un(o[r])&&un(i)?o[r]=Em(o[r],i):un(i)?o[r]=Em({},i):Ei(i)?o[r]=i.slice():o[r]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Fs(arguments[i],a);return o}const rFe=(t,o,a,{allOwnKeys:i}={})=>(Fs(o,(s,r)=>{a&&Rt(s)?t[r]=Tb(s,a):t[r]=s},{allOwnKeys:i}),t),lFe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),nFe=(t,o,a,i)=>{t.prototype=Object.create(o.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:o.prototype}),a&&Object.assign(t.prototype,a)},dFe=(t,o,a,i)=>{let s,r,l;const n={};if(o=o||{},t==null)return o;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)l=s[r],(!i||i(l,t,o))&&!n[l]&&(o[l]=t[l],n[l]=!0);t=a!==!1&&km(t)}while(t&&(!a||a(t,o))&&t!==Object.prototype);return o},cFe=(t,o,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=o.length;const i=t.indexOf(o,a);return i!==-1&&i===a},pFe=t=>{if(!t)return null;if(Ei(t))return t;let o=t.length;if(!Pb(o))return null;const a=new Array(o);for(;o-- >0;)a[o]=t[o];return a},mFe=(t=>o=>t&&o instanceof t)(typeof Uint8Array<"u"&&km(Uint8Array)),uFe=(t,o)=>{const a=(t&&t[dn]).call(t);let i;for(;(i=a.next())&&!i.done;){const s=i.value;o.call(t,s[0],s[1])}},fFe=(t,o)=>{let a;const i=[];for(;(a=t.exec(o))!==null;)i.push(a);return i},hFe=la("HTMLFormElement"),yFe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,a,i){return a.toUpperCase()+i}),Ib=(({hasOwnProperty:t})=>(o,a)=>t.call(o,a))(Object.prototype),gFe=la("RegExp"),zb=(t,o)=>{const a=Object.getOwnPropertyDescriptors(t),i={};Fs(a,(s,r)=>{let l;(l=o(s,r,t))!==!1&&(i[r]=l||s)}),Object.defineProperties(t,i)},bFe=t=>{zb(t,(o,a)=>{if(Rt(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const i=t[a];if(Rt(i)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},SFe=(t,o)=>{const a={},i=s=>{s.forEach(r=>{a[r]=!0})};return Ei(t)?i(t):i(String(t).split(o)),a},_Fe=()=>{},CFe=(t,o)=>t!=null&&Number.isFinite(t=+t)?t:o;function wFe(t){return!!(t&&Rt(t.append)&&t[Bb]==="FormData"&&t[dn])}const kFe=t=>{const o=new Array(10),a=(i,s)=>{if(mn(i)){if(o.indexOf(i)>=0)return;if(!("toJSON"in i)){o[s]=i;const r=Ei(i)?[]:{};return Fs(i,(l,n)=>{const c=a(l,s+1);!Bs(c)&&(r[n]=c)}),o[s]=void 0,r}}return i};return a(t,0)},EFe=la("AsyncFunction"),VFe=t=>t&&(mn(t)||Rt(t))&&Rt(t.then)&&Rt(t.catch),Mb=((t,o)=>t?setImmediate:o?((a,i)=>(zo.addEventListener("message",({source:s,data:r})=>{s===zo&&r===a&&i.length&&i.shift()()},!1),s=>{i.push(s),zo.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Rt(zo.postMessage)),xFe=typeof queueMicrotask<"u"?queueMicrotask.bind(zo):typeof process<"u"&&process.nextTick||Mb,NFe=t=>t!=null&&Rt(t[dn]),le={isArray:Ei,isArrayBuffer:Fb,isBuffer:WBe,isFormData:QBe,isArrayBufferView:HBe,isString:GBe,isNumber:Pb,isBoolean:qBe,isObject:mn,isPlainObject:un,isReadableStream:tFe,isRequest:aFe,isResponse:oFe,isHeaders:iFe,isUndefined:Bs,isDate:JBe,isFile:ZBe,isBlob:YBe,isRegExp:gFe,isFunction:Rt,isStream:XBe,isURLSearchParams:eFe,isTypedArray:mFe,isFileList:KBe,forEach:Fs,merge:Em,extend:rFe,trim:sFe,stripBOM:lFe,inherits:nFe,toFlatObject:dFe,kindOf:cn,kindOfTest:la,endsWith:cFe,toArray:pFe,forEachEntry:uFe,matchAll:fFe,isHTMLForm:hFe,hasOwnProperty:Ib,hasOwnProp:Ib,reduceDescriptors:zb,freezeMethods:bFe,toObjectSet:SFe,toCamelCase:yFe,noop:_Fe,toFiniteNumber:CFe,findKey:$b,global:zo,isContextDefined:Ab,isSpecCompliantForm:wFe,toJSONObject:kFe,isAsyncFn:EFe,isThenable:VFe,setImmediate:Mb,asap:xFe,isIterable:NFe};function Ne(t,o,a,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",o&&(this.code=o),a&&(this.config=a),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}le.inherits(Ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:le.toJSONObject(this.config),code:this.code,status:this.status}}});const Ob=Ne.prototype,Rb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Rb[t]={value:t}}),Object.defineProperties(Ne,Rb),Object.defineProperty(Ob,"isAxiosError",{value:!0}),Ne.from=(t,o,a,i,s,r)=>{const l=Object.create(Ob);return le.toFlatObject(t,l,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Ne.call(l,t.message,o,a,i,s),l.cause=t,l.name=t.name,r&&Object.assign(l,r),l};const TFe=null;function Vm(t){return le.isPlainObject(t)||le.isArray(t)}function Lb(t){return le.endsWith(t,"[]")?t.slice(0,-2):t}function Db(t,o,a){return t?t.concat(o).map(function(i,s){return i=Lb(i),!a&&s?"["+i+"]":i}).join(a?".":""):o}function BFe(t){return le.isArray(t)&&!t.some(Vm)}const FFe=le.toFlatObject(le,{},null,function(t){return/^is[A-Z]/.test(t)});function fn(t,o,a){if(!le.isObject(t))throw new TypeError("target must be an object");o=o||new FormData,a=le.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!le.isUndefined(h[m])});const i=a.metaTokens,s=a.visitor||d,r=a.dots,l=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&le.isSpecCompliantForm(o);if(!le.isFunction(s))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(le.isDate(m))return m.toISOString();if(!n&&le.isBlob(m))throw new Ne("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(m)||le.isTypedArray(m)?n&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,h,f){let g=m;if(m&&!f&&typeof m=="object"){if(le.endsWith(h,"{}"))h=i?h:h.slice(0,-2),m=JSON.stringify(m);else if(le.isArray(m)&&BFe(m)||(le.isFileList(m)||le.endsWith(h,"[]"))&&(g=le.toArray(m)))return h=Lb(h),g.forEach(function(b,S){!(le.isUndefined(b)||b===null)&&o.append(l===!0?Db([h],S,r):l===null?h:h+"[]",c(b))}),!1}return Vm(m)?!0:(o.append(Db(f,h,r),c(m)),!1)}const u=[],p=Object.assign(FFe,{defaultVisitor:d,convertValue:c,isVisitable:Vm});function y(m,h){if(!le.isUndefined(m)){if(u.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));u.push(m),le.forEach(m,function(f,g){(!(le.isUndefined(f)||f===null)&&s.call(o,f,le.isString(g)?g.trim():g,h,p))===!0&&y(f,h?h.concat(g):[g])}),u.pop()}}if(!le.isObject(t))throw new TypeError("data must be an object");return y(t),o}function vb(t){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return o[a]})}function xm(t,o){this._pairs=[],t&&fn(t,this,o)}const jb=xm.prototype;jb.append=function(t,o){this._pairs.push([t,o])},jb.toString=function(t){const o=t?function(a){return t.call(this,a,vb)}:vb;return this._pairs.map(function(a){return o(a[0])+"="+o(a[1])},"").join("&")};function PFe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ub(t,o,a){if(!o)return t;const i=a&&a.encode||PFe;le.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let r;if(s?r=s(o,a):r=le.isURLSearchParams(o)?o.toString():new xm(o,a).toString(i),r){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}let Wb=class{constructor(){this.handlers=[]}use(t,o,a){return this.handlers.push({fulfilled:t,rejected:o,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){le.forEach(this.handlers,function(o){o!==null&&t(o)})}};const Hb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$Fe=typeof URLSearchParams<"u"?URLSearchParams:xm,AFe=typeof FormData<"u"?FormData:null,IFe=typeof Blob<"u"?Blob:null,zFe={isBrowser:!0,classes:{URLSearchParams:$Fe,FormData:AFe,Blob:IFe},protocols:["http","https","file","blob","url","data"]},Nm=typeof window<"u"&&typeof document<"u",Tm=typeof navigator=="object"&&navigator||void 0,MFe=Nm&&(!Tm||["ReactNative","NativeScript","NS"].indexOf(Tm.product)<0),OFe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",RFe=Nm&&window.location.href||"http://localhost",LFe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nm,hasStandardBrowserEnv:MFe,hasStandardBrowserWebWorkerEnv:OFe,navigator:Tm,origin:RFe},Symbol.toStringTag,{value:"Module"})),gt={...LFe,...zFe};function DFe(t,o){return fn(t,new gt.classes.URLSearchParams,Object.assign({visitor:function(a,i,s,r){return gt.isNode&&le.isBuffer(a)?(this.append(i,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},o))}function vFe(t){return le.matchAll(/\w+|\[(\w*)]/g,t).map(o=>o[0]==="[]"?"":o[1]||o[0])}function jFe(t){const o={},a=Object.keys(t);let i;const s=a.length;let r;for(i=0;i<s;i++)r=a[i],o[r]=t[r];return o}function Gb(t){function o(a,i,s,r){let l=a[r++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),c=r>=a.length;return l=!l&&le.isArray(s)?s.length:l,c?(le.hasOwnProp(s,l)?s[l]=[s[l],i]:s[l]=i,!n):((!s[l]||!le.isObject(s[l]))&&(s[l]=[]),o(a,i,s[l],r)&&le.isArray(s[l])&&(s[l]=jFe(s[l])),!n)}if(le.isFormData(t)&&le.isFunction(t.entries)){const a={};return le.forEachEntry(t,(i,s)=>{o(vFe(i),s,a,0)}),a}return null}function UFe(t,o,a){if(le.isString(t))try{return(o||JSON.parse)(t),le.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(a||JSON.stringify)(t)}const Ps={transitional:Hb,adapter:["xhr","http","fetch"],transformRequest:[function(t,o){const a=o.getContentType()||"",i=a.indexOf("application/json")>-1,s=le.isObject(t);if(s&&le.isHTMLForm(t)&&(t=new FormData(t)),le.isFormData(t))return i?JSON.stringify(Gb(t)):t;if(le.isArrayBuffer(t)||le.isBuffer(t)||le.isStream(t)||le.isFile(t)||le.isBlob(t)||le.isReadableStream(t))return t;if(le.isArrayBufferView(t))return t.buffer;if(le.isURLSearchParams(t))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return DFe(t,this.formSerializer).toString();if((r=le.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fn(r?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(o.setContentType("application/json",!1),UFe(t)):t}],transformResponse:[function(t){const o=this.transitional||Ps.transitional,a=o&&o.forcedJSONParsing,i=this.responseType==="json";if(le.isResponse(t)||le.isReadableStream(t))return t;if(t&&le.isString(t)&&(a&&!this.responseType||i)){const s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(r){if(s)throw r.name==="SyntaxError"?Ne.from(r,Ne.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],t=>{Ps.headers[t]={}});const WFe=le.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),HFe=t=>{const o={};let a,i,s;return t&&t.split(`
|
|
55
55
|
`).forEach(function(r){s=r.indexOf(":"),a=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!a||o[a]&&WFe[a])&&(a==="set-cookie"?o[a]?o[a].push(i):o[a]=[i]:o[a]=o[a]?o[a]+", "+i:i)}),o},qb=Symbol("internals");function $s(t){return t&&String(t).trim().toLowerCase()}function hn(t){return t===!1||t==null?t:le.isArray(t)?t.map(hn):String(t)}function GFe(t){const o=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=a.exec(t);)o[i[1]]=i[2];return o}const qFe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Bm(t,o,a,i,s){if(le.isFunction(i))return i.call(this,o,a);if(s&&(o=a),!!le.isString(o)){if(le.isString(i))return o.indexOf(i)!==-1;if(le.isRegExp(i))return i.test(o)}}function JFe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,a,i)=>a.toUpperCase()+i)}function ZFe(t,o){const a=le.toCamelCase(" "+o);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+a,{value:function(s,r,l){return this[i].call(this,o,s,r,l)},configurable:!0})})}let Lt=class{constructor(t){t&&this.set(t)}set(t,o,a){const i=this;function s(l,n,c){const d=$s(n);if(!d)throw new Error("header name must be a non-empty string");const u=le.findKey(i,d);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||n]=hn(l))}const r=(l,n)=>le.forEach(l,(c,d)=>s(c,d,n));if(le.isPlainObject(t)||t instanceof this.constructor)r(t,o);else if(le.isString(t)&&(t=t.trim())&&!qFe(t))r(HFe(t),o);else if(le.isObject(t)&&le.isIterable(t)){let l={},n,c;for(const d of t){if(!le.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[c=d[0]]=(n=l[c])?le.isArray(n)?[...n,d[1]]:[n,d[1]]:d[1]}r(l,o)}else t!=null&&s(o,t,a);return this}get(t,o){if(t=$s(t),t){const a=le.findKey(this,t);if(a){const i=this[a];if(!o)return i;if(o===!0)return GFe(i);if(le.isFunction(o))return o.call(this,i,a);if(le.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,o){if(t=$s(t),t){const a=le.findKey(this,t);return!!(a&&this[a]!==void 0&&(!o||Bm(this,this[a],a,o)))}return!1}delete(t,o){const a=this;let i=!1;function s(r){if(r=$s(r),r){const l=le.findKey(a,r);l&&(!o||Bm(a,a[l],l,o))&&(delete a[l],i=!0)}}return le.isArray(t)?t.forEach(s):s(t),i}clear(t){const o=Object.keys(this);let a=o.length,i=!1;for(;a--;){const s=o[a];(!t||Bm(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const o=this,a={};return le.forEach(this,(i,s)=>{const r=le.findKey(a,s);if(r){o[r]=hn(i),delete o[s];return}const l=t?JFe(s):String(s).trim();l!==s&&delete o[s],o[l]=hn(i),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const o=Object.create(null);return le.forEach(this,(a,i)=>{a!=null&&a!==!1&&(o[i]=t&&le.isArray(a)?a.join(", "):a)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,o])=>t+": "+o).join(`
|
|
56
56
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const a=new this(t);return o.forEach(i=>a.set(i)),a}static accessor(t){const o=(this[qb]=this[qb]={accessors:{}}).accessors,a=this.prototype;function i(s){const r=$s(s);o[r]||(ZFe(a,s),o[r]=!0)}return le.isArray(t)?t.forEach(i):i(t),this}};Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),le.reduceDescriptors(Lt.prototype,({value:t},o)=>{let a=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(i){this[a]=i}}}),le.freezeMethods(Lt);function Fm(t,o){const a=this||Ps,i=o||a,s=Lt.from(i.headers);let r=i.data;return le.forEach(t,function(l){r=l.call(a,r,s.normalize(),o?o.status:void 0)}),s.normalize(),r}function Jb(t){return!!(t&&t.__CANCEL__)}function Vi(t,o,a){Ne.call(this,t??"canceled",Ne.ERR_CANCELED,o,a),this.name="CanceledError"}le.inherits(Vi,Ne,{__CANCEL__:!0});function Zb(t,o,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?t(a):o(new Ne("Request failed with status code "+a.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function YFe(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function KFe(t,o){t=t||10;const a=new Array(t),i=new Array(t);let s=0,r=0,l;return o=o!==void 0?o:1e3,function(n){const c=Date.now(),d=i[r];l||(l=c),a[s]=n,i[s]=c;let u=r,p=0;for(;u!==s;)p+=a[u++],u=u%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),c-l<o)return;const y=d&&c-d;return y?Math.round(p*1e3/y):void 0}}function XFe(t,o){let a=0,i=1e3/o,s,r;const l=(n,c=Date.now())=>{a=c,s=null,r&&(clearTimeout(r),r=null),t.apply(null,n)};return[(...n)=>{const c=Date.now(),d=c-a;d>=i?l(n,c):(s=n,r||(r=setTimeout(()=>{r=null,l(s)},i-d)))},()=>s&&l(s)]}const yn=(t,o,a=3)=>{let i=0;const s=KFe(50,250);return XFe(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,c=l-i,d=s(c),u=l<=n;i=l;const p={loaded:l,total:n,progress:n?l/n:void 0,bytes:c,rate:d||void 0,estimated:d&&n&&u?(n-l)/d:void 0,event:r,lengthComputable:n!=null,[o?"download":"upload"]:!0};t(p)},a)},Yb=(t,o)=>{const a=t!=null;return[i=>o[0]({lengthComputable:a,total:t,loaded:i}),o[1]]},Kb=t=>(...o)=>le.asap(()=>t(...o)),QFe=gt.hasStandardBrowserEnv?((t,o)=>a=>(a=new URL(a,gt.origin),t.protocol===a.protocol&&t.host===a.host&&(o||t.port===a.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,ePe=gt.hasStandardBrowserEnv?{write(t,o,a,i,s,r){const l=[t+"="+encodeURIComponent(o)];le.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),le.isString(i)&&l.push("path="+i),le.isString(s)&&l.push("domain="+s),r===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tPe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function aPe(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function Xb(t,o,a){let i=!tPe(o);return t&&(i||a==!1)?aPe(t,o):o}const Qb=t=>t instanceof Lt?{...t}:t;function Mo(t,o){o=o||{};const a={};function i(d,u,p,y){return le.isPlainObject(d)&&le.isPlainObject(u)?le.merge.call({caseless:y},d,u):le.isPlainObject(u)?le.merge({},u):le.isArray(u)?u.slice():u}function s(d,u,p,y){if(le.isUndefined(u)){if(!le.isUndefined(d))return i(void 0,d,p,y)}else return i(d,u,p,y)}function r(d,u){if(!le.isUndefined(u))return i(void 0,u)}function l(d,u){if(le.isUndefined(u)){if(!le.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function n(d,u,p){if(p in o)return i(d,u);if(p in t)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(d,u,p)=>s(Qb(d),Qb(u),p,!0)};return le.forEach(Object.keys(Object.assign({},t,o)),function(d){const u=c[d]||s,p=u(t[d],o[d],d);le.isUndefined(p)&&u!==n||(a[d]=p)}),a}const e5=t=>{const o=Mo({},t);let{data:a,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=o;o.headers=l=Lt.from(l),o.url=Ub(Xb(o.baseURL,o.url,o.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let c;if(le.isFormData(a)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...u]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...u].join("; "))}}if(gt.hasStandardBrowserEnv&&(i&&le.isFunction(i)&&(i=i(o)),i||i!==!1&&QFe(o.url))){const d=s&&r&&ePe.read(r);d&&l.set(s,d)}return o},oPe=typeof XMLHttpRequest<"u",iPe=oPe&&function(t){return new Promise(function(o,a){const i=e5(t);let s=i.data;const r=Lt.from(i.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:c}=i,d,u,p,y,m;function h(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function g(){if(!f)return;const S=Lt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),F={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:t,request:f};Zb(function(v){o(v),h()},function(v){a(v),h()},F),f=null}"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(a(new Ne("Request aborted",Ne.ECONNABORTED,t,f)),f=null)},f.onerror=function(){a(new Ne("Network Error",Ne.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const F=i.transitional||Hb;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),a(new Ne(S,F.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,t,f)),f=null},s===void 0&&r.setContentType(null),"setRequestHeader"in f&&le.forEach(r.toJSON(),function(S,F){f.setRequestHeader(F,S)}),le.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),l&&l!=="json"&&(f.responseType=i.responseType),c&&([p,m]=yn(c,!0),f.addEventListener("progress",p)),n&&f.upload&&([u,y]=yn(n),f.upload.addEventListener("progress",u),f.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=S=>{f&&(a(!S||S.type?new Vi(null,t,f):S),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const b=YFe(i.url);if(b&>.protocols.indexOf(b)===-1){a(new Ne("Unsupported protocol "+b+":",Ne.ERR_BAD_REQUEST,t));return}f.send(s||null)})},sPe=(t,o)=>{const{length:a}=t=t?t.filter(Boolean):[];if(o||a){let i=new AbortController,s;const r=function(d){if(!s){s=!0,n();const u=d instanceof Error?d:this.reason;i.abort(u instanceof Ne?u:new Vi(u instanceof Error?u.message:u))}};let l=o&&setTimeout(()=>{l=null,r(new Ne(`timeout ${o} of ms exceeded`,Ne.ETIMEDOUT))},o);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),t=null)};t.forEach(d=>d.addEventListener("abort",r));const{signal:c}=i;return c.unsubscribe=()=>le.asap(n),c}},rPe=function*(t,o){let a=t.byteLength;if(a<o){yield t;return}let i=0,s;for(;i<a;)s=i+o,yield t.slice(i,s),i=s},lPe=async function*(t,o){for await(const a of nPe(t))yield*rPe(a,o)},nPe=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const o=t.getReader();try{for(;;){const{done:a,value:i}=await o.read();if(a)break;yield i}}finally{await o.cancel()}},t5=(t,o,a,i)=>{const s=lPe(t,o);let r=0,l,n=c=>{l||(l=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await s.next();if(d){n(),c.close();return}let p=u.byteLength;if(a){let y=r+=p;a(y)}c.enqueue(new Uint8Array(u))}catch(d){throw n(d),d}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},gn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",a5=gn&&typeof ReadableStream=="function",dPe=gn&&(typeof TextEncoder=="function"?(t=>o=>t.encode(o))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),o5=(t,...o)=>{try{return!!t(...o)}catch{return!1}},cPe=a5&&o5(()=>{let t=!1;const o=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!o}),i5=64*1024,Pm=a5&&o5(()=>le.isReadableStream(new Response("").body)),bn={stream:Pm&&(t=>t.body)};gn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!bn[o]&&(bn[o]=le.isFunction(t[o])?a=>a[o]():(a,i)=>{throw new Ne(`Response type '${o}' is not supported`,Ne.ERR_NOT_SUPPORT,i)})})})(new Response);const pPe=async t=>{if(t==null)return 0;if(le.isBlob(t))return t.size;if(le.isSpecCompliantForm(t))return(await new Request(gt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(le.isArrayBufferView(t)||le.isArrayBuffer(t))return t.byteLength;if(le.isURLSearchParams(t)&&(t=t+""),le.isString(t))return(await dPe(t)).byteLength},mPe=async(t,o)=>le.toFiniteNumber(t.getContentLength())??pPe(o),uPe=gn&&(async t=>{let{url:o,method:a,data:i,signal:s,cancelToken:r,timeout:l,onDownloadProgress:n,onUploadProgress:c,responseType:d,headers:u,withCredentials:p="same-origin",fetchOptions:y}=e5(t);d=d?(d+"").toLowerCase():"text";let m=sPe([s,r&&r.toAbortSignal()],l),h;const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(c&&cPe&&a!=="get"&&a!=="head"&&(g=await mPe(u,i))!==0){let T=new Request(o,{method:"POST",body:i,duplex:"half"}),M;if(le.isFormData(i)&&(M=T.headers.get("content-type"))&&u.setContentType(M),T.body){const[D,P]=Yb(g,yn(Kb(c)));i=t5(T.body,i5,D,P)}}le.isString(p)||(p=p?"include":"omit");const b="credentials"in Request.prototype;h=new Request(o,{...y,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:b?p:void 0});let S=await fetch(h);const F=Pm&&(d==="stream"||d==="response");if(Pm&&(n||F&&f)){const T={};["status","statusText","headers"].forEach(Q=>{T[Q]=S[Q]});const M=le.toFiniteNumber(S.headers.get("content-length")),[D,P]=n&&Yb(M,yn(Kb(n),!0))||[];S=new Response(t5(S.body,i5,D,()=>{P&&P(),f&&f()}),T)}d=d||"text";let v=await bn[le.findKey(bn,d)||"text"](S,t);return!F&&f&&f(),await new Promise((T,M)=>{Zb(T,M,{data:v,headers:Lt.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:h})})}catch(b){throw f&&f(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,t,h),{cause:b.cause||b}):Ne.from(b,b&&b.code,t,h)}}),$m={http:TFe,xhr:iPe,fetch:uPe};le.forEach($m,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const s5=t=>`- ${t}`,fPe=t=>le.isFunction(t)||t===null||t===!1,r5={getAdapter:t=>{t=le.isArray(t)?t:[t];const{length:o}=t;let a,i;const s={};for(let r=0;r<o;r++){a=t[r];let l;if(i=a,!fPe(a)&&(i=$m[(l=String(a)).toLowerCase()],i===void 0))throw new Ne(`Unknown adapter '${l}'`);if(i)break;s[l||"#"+r]=i}if(!i){const r=Object.entries(s).map(([n,c])=>`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=o?r.length>1?`since :
|
|
57
57
|
`+r.map(s5).join(`
|
|
@@ -61,4 +61,4 @@
|
|
|
61
61
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...o){const a=new this(t);return o.forEach(i=>a.set(i)),a}static accessor(t){const o=(this[F5]=this[F5]={accessors:{}}).accessors,a=this.prototype;function i(s){const r=Ms(s);o[r]||(z$e(a,s),o[r]=!0)}return ne.isArray(t)?t.forEach(i):i(t),this}};vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(vt.prototype,({value:t},o)=>{let a=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(i){this[a]=i}}}),ne.freezeMethods(vt);function jm(t,o){const a=this||zs,i=o||a,s=vt.from(i.headers);let r=i.data;return ne.forEach(t,function(l){r=l.call(a,r,s.normalize(),o?o.status:void 0)}),s.normalize(),r}function P5(t){return!!(t&&t.__CANCEL__)}function Ni(t,o,a){Te.call(this,t??"canceled",Te.ERR_CANCELED,o,a),this.name="CanceledError"}ne.inherits(Ni,Te,{__CANCEL__:!0});function $5(t,o,a){const i=a.config.validateStatus;!a.status||!i||i(a.status)?t(a):o(new Te("Request failed with status code "+a.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function M$e(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function O$e(t,o){t=t||10;const a=new Array(t),i=new Array(t);let s=0,r=0,l;return o=o!==void 0?o:1e3,function(n){const c=Date.now(),d=i[r];l||(l=c),a[s]=n,i[s]=c;let u=r,p=0;for(;u!==s;)p+=a[u++],u=u%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),c-l<o)return;const y=d&&c-d;return y?Math.round(p*1e3/y):void 0}}function R$e(t,o){let a=0,i=1e3/o,s,r;const l=(n,c=Date.now())=>{a=c,s=null,r&&(clearTimeout(r),r=null),t.apply(null,n)};return[(...n)=>{const c=Date.now(),d=c-a;d>=i?l(n,c):(s=n,r||(r=setTimeout(()=>{r=null,l(s)},i-d)))},()=>s&&l(s)]}const Tn=(t,o,a=3)=>{let i=0;const s=O$e(50,250);return R$e(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,c=l-i,d=s(c),u=l<=n;i=l;const p={loaded:l,total:n,progress:n?l/n:void 0,bytes:c,rate:d||void 0,estimated:d&&n&&u?(n-l)/d:void 0,event:r,lengthComputable:n!=null,[o?"download":"upload"]:!0};t(p)},a)},A5=(t,o)=>{const a=t!=null;return[i=>o[0]({lengthComputable:a,total:t,loaded:i}),o[1]]},I5=t=>(...o)=>ne.asap(()=>t(...o)),L$e=bt.hasStandardBrowserEnv?((t,o)=>a=>(a=new URL(a,bt.origin),t.protocol===a.protocol&&t.host===a.host&&(o||t.port===a.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,D$e=bt.hasStandardBrowserEnv?{write(t,o,a,i,s,r){const l=[t+"="+encodeURIComponent(o)];ne.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),ne.isString(i)&&l.push("path="+i),ne.isString(s)&&l.push("domain="+s),r===!0&&l.push("secure"),document.cookie=l.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function v$e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function j$e(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function z5(t,o,a){let i=!v$e(o);return t&&(i||a==!1)?j$e(t,o):o}const M5=t=>t instanceof vt?{...t}:t;function Lo(t,o){o=o||{};const a={};function i(d,u,p,y){return ne.isPlainObject(d)&&ne.isPlainObject(u)?ne.merge.call({caseless:y},d,u):ne.isPlainObject(u)?ne.merge({},u):ne.isArray(u)?u.slice():u}function s(d,u,p,y){if(ne.isUndefined(u)){if(!ne.isUndefined(d))return i(void 0,d,p,y)}else return i(d,u,p,y)}function r(d,u){if(!ne.isUndefined(u))return i(void 0,u)}function l(d,u){if(ne.isUndefined(u)){if(!ne.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function n(d,u,p){if(p in o)return i(d,u);if(p in t)return i(void 0,d)}const c={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(d,u,p)=>s(M5(d),M5(u),p,!0)};return ne.forEach(Object.keys(Object.assign({},t,o)),function(d){const u=c[d]||s,p=u(t[d],o[d],d);ne.isUndefined(p)&&u!==n||(a[d]=p)}),a}const O5=t=>{const o=Lo({},t);let{data:a,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=o;o.headers=l=vt.from(l),o.url=x5(z5(o.baseURL,o.url,o.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let c;if(ne.isFormData(a)){if(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...u]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...u].join("; "))}}if(bt.hasStandardBrowserEnv&&(i&&ne.isFunction(i)&&(i=i(o)),i||i!==!1&&L$e(o.url))){const d=s&&r&&D$e.read(r);d&&l.set(s,d)}return o},U$e=typeof XMLHttpRequest<"u",W$e=U$e&&function(t){return new Promise(function(o,a){const i=O5(t);let s=i.data;const r=vt.from(i.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:c}=i,d,u,p,y,m;function h(){y&&y(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function g(){if(!f)return;const S=vt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),F={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:t,request:f};$5(function(v){o(v),h()},function(v){a(v),h()},F),f=null}"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(a(new Te("Request aborted",Te.ECONNABORTED,t,f)),f=null)},f.onerror=function(){a(new Te("Network Error",Te.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const F=i.transitional||T5;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),a(new Te(S,F.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,t,f)),f=null},s===void 0&&r.setContentType(null),"setRequestHeader"in f&&ne.forEach(r.toJSON(),function(S,F){f.setRequestHeader(F,S)}),ne.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),l&&l!=="json"&&(f.responseType=i.responseType),c&&([p,m]=Tn(c,!0),f.addEventListener("progress",p)),n&&f.upload&&([u,y]=Tn(n),f.upload.addEventListener("progress",u),f.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=S=>{f&&(a(!S||S.type?new Ni(null,t,f):S),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const b=M$e(i.url);if(b&&bt.protocols.indexOf(b)===-1){a(new Te("Unsupported protocol "+b+":",Te.ERR_BAD_REQUEST,t));return}f.send(s||null)})},H$e=(t,o)=>{const{length:a}=t=t?t.filter(Boolean):[];if(o||a){let i=new AbortController,s;const r=function(d){if(!s){s=!0,n();const u=d instanceof Error?d:this.reason;i.abort(u instanceof Te?u:new Ni(u instanceof Error?u.message:u))}};let l=o&&setTimeout(()=>{l=null,r(new Te(`timeout ${o} of ms exceeded`,Te.ETIMEDOUT))},o);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(r):d.removeEventListener("abort",r)}),t=null)};t.forEach(d=>d.addEventListener("abort",r));const{signal:c}=i;return c.unsubscribe=()=>ne.asap(n),c}},G$e=function*(t,o){let a=t.byteLength;if(a<o){yield t;return}let i=0,s;for(;i<a;)s=i+o,yield t.slice(i,s),i=s},q$e=async function*(t,o){for await(const a of J$e(t))yield*G$e(a,o)},J$e=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const o=t.getReader();try{for(;;){const{done:a,value:i}=await o.read();if(a)break;yield i}}finally{await o.cancel()}},R5=(t,o,a,i)=>{const s=q$e(t,o);let r=0,l,n=c=>{l||(l=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await s.next();if(d){n(),c.close();return}let p=u.byteLength;if(a){let y=r+=p;a(y)}c.enqueue(new Uint8Array(u))}catch(d){throw n(d),d}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},Bn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",L5=Bn&&typeof ReadableStream=="function",Z$e=Bn&&(typeof TextEncoder=="function"?(t=>o=>t.encode(o))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),D5=(t,...o)=>{try{return!!t(...o)}catch{return!1}},Y$e=L5&&D5(()=>{let t=!1;const o=new Request(bt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!o}),v5=64*1024,Um=L5&&D5(()=>ne.isReadableStream(new Response("").body)),Fn={stream:Um&&(t=>t.body)};Bn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!Fn[o]&&(Fn[o]=ne.isFunction(t[o])?a=>a[o]():(a,i)=>{throw new Te(`Response type '${o}' is not supported`,Te.ERR_NOT_SUPPORT,i)})})})(new Response);const K$e=async t=>{if(t==null)return 0;if(ne.isBlob(t))return t.size;if(ne.isSpecCompliantForm(t))return(await new Request(bt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(t)||ne.isArrayBuffer(t))return t.byteLength;if(ne.isURLSearchParams(t)&&(t=t+""),ne.isString(t))return(await Z$e(t)).byteLength},X$e=async(t,o)=>ne.toFiniteNumber(t.getContentLength())??K$e(o),Q$e=Bn&&(async t=>{let{url:o,method:a,data:i,signal:s,cancelToken:r,timeout:l,onDownloadProgress:n,onUploadProgress:c,responseType:d,headers:u,withCredentials:p="same-origin",fetchOptions:y}=O5(t);d=d?(d+"").toLowerCase():"text";let m=H$e([s,r&&r.toAbortSignal()],l),h;const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(c&&Y$e&&a!=="get"&&a!=="head"&&(g=await X$e(u,i))!==0){let T=new Request(o,{method:"POST",body:i,duplex:"half"}),M;if(ne.isFormData(i)&&(M=T.headers.get("content-type"))&&u.setContentType(M),T.body){const[D,P]=A5(g,Tn(I5(c)));i=R5(T.body,v5,D,P)}}ne.isString(p)||(p=p?"include":"omit");const b="credentials"in Request.prototype;h=new Request(o,{...y,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",credentials:b?p:void 0});let S=await fetch(h);const F=Um&&(d==="stream"||d==="response");if(Um&&(n||F&&f)){const T={};["status","statusText","headers"].forEach(Q=>{T[Q]=S[Q]});const M=ne.toFiniteNumber(S.headers.get("content-length")),[D,P]=n&&A5(M,Tn(I5(n),!0))||[];S=new Response(R5(S.body,v5,D,()=>{P&&P(),f&&f()}),T)}d=d||"text";let v=await Fn[ne.findKey(Fn,d)||"text"](S,t);return!F&&f&&f(),await new Promise((T,M)=>{$5(T,M,{data:v,headers:vt.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:h})})}catch(b){throw f&&f(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,t,h),{cause:b.cause||b}):Te.from(b,b&&b.code,t,h)}}),Wm={http:f$e,xhr:W$e,fetch:Q$e};ne.forEach(Wm,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const j5=t=>`- ${t}`,eAe=t=>ne.isFunction(t)||t===null||t===!1,U5={getAdapter:t=>{t=ne.isArray(t)?t:[t];const{length:o}=t;let a,i;const s={};for(let r=0;r<o;r++){a=t[r];let l;if(i=a,!eAe(a)&&(i=Wm[(l=String(a)).toLowerCase()],i===void 0))throw new Te(`Unknown adapter '${l}'`);if(i)break;s[l||"#"+r]=i}if(!i){const r=Object.entries(s).map(([n,c])=>`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=o?r.length>1?`since :
|
|
62
62
|
`+r.map(j5).join(`
|
|
63
63
|
`):" "+j5(r[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:Wm};function Hm(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ni(null,t)}function W5(t){return Hm(t),t.headers=vt.from(t.headers),t.data=jm.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),U5.getAdapter(t.adapter||zs.adapter)(t).then(function(o){return Hm(t),o.data=jm.call(t,t.transformResponse,o),o.headers=vt.from(o.headers),o},function(o){return P5(o)||(Hm(t),o&&o.response&&(o.response.data=jm.call(t,t.transformResponse,o.response),o.response.headers=vt.from(o.response.headers))),Promise.reject(o)})}const H5="1.9.0",Pn={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{Pn[t]=function(a){return typeof a===t||"a"+(o<1?"n ":" ")+t}});const G5={};Pn.transitional=function(t,o,a){function i(s,r){return"[Axios v"+H5+"] Transitional option '"+s+"'"+r+(a?". "+a:"")}return(s,r,l)=>{if(t===!1)throw new Te(i(r," has been removed"+(o?" in "+o:"")),Te.ERR_DEPRECATED);return o&&!G5[r]&&(G5[r]=!0,console.warn(i(r," has been deprecated since v"+o+" and will be removed in the near future"))),t?t(s,r,l):!0}},Pn.spelling=function(t){return(o,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function tAe(t,o,a){if(typeof t!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const r=i[s],l=o[r];if(l){const n=t[r],c=n===void 0||l(n,r,t);if(c!==!0)throw new Te("option "+r+" must be "+c,Te.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Te("Unknown option "+r,Te.ERR_BAD_OPTION)}}const $n={assertOptions:tAe,validators:Pn},Va=$n.validators;let Do=class{constructor(t){this.defaults=t||{},this.interceptors={request:new N5,response:new N5}}async request(t,o){try{return await this._request(t,o)}catch(a){if(a instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
64
|
-
`+s):a.stack=s}catch{}}throw a}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=Lo(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:s}=o;a!==void 0&&$n.assertOptions(a,{silentJSONParsing:Va.transitional(Va.boolean),forcedJSONParsing:Va.transitional(Va.boolean),clarifyTimeoutError:Va.transitional(Va.boolean)},!1),i!=null&&(ne.isFunction(i)?o.paramsSerializer={serialize:i}:$n.assertOptions(i,{encode:Va.function,serialize:Va.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),$n.assertOptions(o,{baseUrl:Va.spelling("baseURL"),withXsrfToken:Va.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=s&&ne.merge(s.common,s[o.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),o.headers=vt.concat(r,s);const l=[];let n=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(o)===!1||(n=n&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,u=0,p;if(!n){const m=[W5.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,c),p=m.length,d=Promise.resolve(o);u<p;)d=d.then(m[u++],m[u++]);return d}p=l.length;let y=o;for(u=0;u<p;){const m=l[u++],h=l[u++];try{y=m(y)}catch(f){h.call(this,f);break}}try{d=W5.call(this,y)}catch(m){return Promise.reject(m)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=Lo(this.defaults,t);const o=z5(t.baseURL,t.url,t.allowAbsoluteUrls);return x5(o,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){Do.prototype[t]=function(o,a){return this.request(Lo(a||{},{method:t,url:o,data:(a||{}).data}))}}),ne.forEach(["post","put","patch"],function(t){function o(a){return function(i,s,r){return this.request(Lo(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Do.prototype[t]=o(),Do.prototype[t+"Form"]=o(!0)});let aAe=class C4{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{i.subscribe(n),r=n}).then(s);return l.cancel=function(){i.unsubscribe(r)},l},o(function(s,r,l){i.reason||(i.reason=new Ni(s,r,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const o=new AbortController,a=i=>{o.abort(i)};return this.subscribe(a),o.signal.unsubscribe=()=>this.unsubscribe(a),o.signal}static source(){let o;return{token:new C4(function(a){o=a}),cancel:o}}};function oAe(t){return function(o){return t.apply(null,o)}}function iAe(t){return ne.isObject(t)&&t.isAxiosError===!0}const Gm={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(Gm).forEach(([t,o])=>{Gm[o]=t});function q5(t){const o=new Do(t),a=p5(Do.prototype.request,o);return ne.extend(a,Do.prototype,o,{allOwnKeys:!0}),ne.extend(a,o,null,{allOwnKeys:!0}),a.create=function(i){return q5(Lo(t,i))},a}const Xe=q5(zs);Xe.Axios=Do,Xe.CanceledError=Ni,Xe.CancelToken=aAe,Xe.isCancel=P5,Xe.VERSION=H5,Xe.toFormData=xn,Xe.AxiosError=Te,Xe.Cancel=Xe.CanceledError,Xe.all=function(t){return Promise.all(t)},Xe.spread=oAe,Xe.isAxiosError=iAe,Xe.mergeConfig=Lo,Xe.AxiosHeaders=vt,Xe.formToJSON=t=>B5(ne.isHTMLForm(t)?new FormData(t):t),Xe.getAdapter=U5.getAdapter,Xe.HttpStatusCode=Gm,Xe.default=Xe;const sAe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},rAe={class:"modal-overlay"},lAe={key:0,class:"modal-content"},nAe={class:"modal-select-container"},dAe={class:"modal-input-wrapper"},cAe=["disabled"],pAe={key:0,class:"modal-input-loading"},mAe={key:0,class:"modal-dropdown-empty"},uAe={key:1,class:"modal-dropdown-scroll"},fAe={class:"variable-selection"},hAe=["value","onClick","disabled"],yAe={class:"variable-text"},gAe={class:"modal-dropdown-actions"},bAe={key:1,class:"modal-error"},SAe={key:0,class:"modal-name-error"},_Ae={class:"modal-actions"},CAe=["disabled"],J5=3,wAe={__name:"CreateListModal",props:{userId:{type:String,required:!0},token:{type:String,required:!0},lists:{type:Array,default:()=>[]}},emits:["close","createList","listCreated"],setup(t,{emit:o}){const a=o,i=t,s=e.ref(""),r=e.ref(""),l=e.ref([]),n=e.ref(!1),c=e.ref(!1),d=e.ref([]),u=e.ref(!1),p=e.ref(null),y=e.ref(!1),m=e.computed(()=>i.lists.some(k=>k.name.toLowerCase()===s.value.toLowerCase().trim())),h=e.computed(()=>s.value.trim()!==""&&l.value.length>0&&!m.value);function f(){n.value=!n.value}async function g(){var k,E;try{u.value=!0;const V=await Xe.create({headers:{Authorization:`${i.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables`);d.value=V.data.data,l.value=d.value.filter(N=>N.checked)}catch(V){p.value=((E=(k=V.response)==null?void 0:k.data)==null?void 0:E.message)||"Error al obtener las variables",console.error("Error fetching variables:",V)}finally{u.value=!1}}const b=e.computed(()=>{if(!d.value.length)return[];const k=r.value.toLowerCase().trim();return k?d.value.filter(E=>E.name.toLowerCase().includes(k)):d.value});function S(){n.value=!0,y.value=!1}function F(){n.value=!0}function v(){setTimeout(()=>{y.value||(n.value=!1,r.value="")},200)}function T(){r.value="",n.value=!1,y.value=!1}function M(k){if(l.value.includes(k)){if(l.value.length<=J5)return;l.value=l.value.filter(E=>E!==k)}else l.value.push(k)}async function D(){var k,E;try{if(s.value&&l.value.length){const V=Xe.create({headers:{Authorization:`${i.token}`}}),N={user_id:parseInt(i.userId),name:s.value,variables:l.value};console.log("Lo que se guarda es:");const Y=await V.post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,N);Y.data&&(a("createList",{nombre:s.value,variables:l.value,id:Y.data.data.id}),a("listCreated"),s.value="",l.value=[],r.value="",n.value=!1,a("close"))}}catch(V){console.error("Error creating list:",V),p.value=((E=(k=V.response)==null?void 0:k.data)==null?void 0:E.message)||"Error al crear la lista"}}function P(){n.value=!1,a("close")}function Q(){document.body.style.overflow="hidden"}function O(){document.body.style.overflow=""}return e.onMounted(async()=>{c.value=!0,n.value=!1,Q(),await g()}),e.onUnmounted(()=>{O()}),(k,E)=>(e.openBlock(),e.createElementBlock("div",rAe,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",lAe,[e.createElementVNode("button",{class:"modal-close",onClick:P},"×"),E[7]||(E[7]=e.createElementVNode("div",{class:"modal-title"},[e.createElementVNode("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.3877 4.88909H1.70676C1.11931 4.88909 0.638672 5.35562 0.638672 5.92582C0.638672 6.49602 1.11931 6.96254 1.70676 6.96254H12.3877C12.9751 6.96254 13.4558 6.49602 13.4558 5.92582C13.4558 5.35562 12.9751 4.88909 12.3877 4.88909ZM12.3877 0.742188H1.70676C1.11931 0.742188 0.638672 1.20871 0.638672 1.77891C0.638672 2.34911 1.11931 2.81564 1.70676 2.81564H12.3877C12.9751 2.81564 13.4558 2.34911 13.4558 1.77891C13.4558 1.20871 12.9751 0.742188 12.3877 0.742188ZM17.7281 9.03599V5.92582C17.7281 5.35562 17.2475 4.88909 16.6601 4.88909C16.0726 4.88909 15.592 5.35562 15.592 5.92582V9.03599H12.3877C11.8002 9.03599 11.3196 9.50252 11.3196 10.0727C11.3196 10.6429 11.8002 11.1094 12.3877 11.1094H15.592V14.2196C15.592 14.7898 16.0726 15.2563 16.6601 15.2563C17.2475 15.2563 17.7281 14.7898 17.7281 14.2196V11.1094H20.9324C21.5199 11.1094 22.0005 10.6429 22.0005 10.0727C22.0005 9.50252 21.5199 9.03599 20.9324 9.03599H17.7281ZM1.70676 11.1094H8.11532C8.70277 11.1094 9.18341 10.6429 9.18341 10.0727C9.18341 9.50252 8.70277 9.03599 8.11532 9.03599H1.70676C1.11931 9.03599 0.638672 9.50252 0.638672 10.0727C0.638672 10.6429 1.11931 11.1094 1.70676 11.1094Z",fill:"#FFFFFF",stroke:"#FFFFFF","stroke-width":"0.091682"})]),e.createTextVNode(" Crear nueva lista ")],-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=V=>s.value=V),class:"modal-input",type:"text",placeholder:"Nombre de tu lista"},null,512),[[e.vModelText,s.value]]),e.createElementVNode("div",nAe,[e.createElementVNode("div",dAe,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=V=>r.value=V),class:"modal-input",type:"text",placeholder:"Selecciona las variables que quieres que se vean",onFocus:S,onBlur:v,onInput:F,disabled:u.value},null,40,cAe),[[e.vModelText,r.value]]),u.value?(e.openBlock(),e.createElementBlock("div",pAe,E[4]||(E[4]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1)]))):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["modal-dropdown-arrow",{"arrow-up":n.value}]),onMousedown:e.withModifiers(f,["prevent"])},E[5]||(E[5]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M2 4L6 8L10 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),34))]),n.value&&!u.value&&!p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-dropdown",onMousedown:E[3]||(E[3]=V=>y.value=!0)},[b.value.length===0?(e.openBlock(),e.createElementBlock("div",mAe," No se encontraron variables ")):(e.openBlock(),e.createElementBlock("div",uAe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.custom_id,class:"modal-dropdown-item"},[e.createElementVNode("label",fAe,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:V,"onUpdate:modelValue":E[2]||(E[2]=N=>l.value=N),onClick:e.withModifiers(N=>M(V),["stop"]),disabled:l.value.length<=J5&&l.value.includes(V)},null,8,hAe),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",yAe,e.toDisplayString(V.name),1)])]))),128))])),e.createElementVNode("div",gAe,[e.createElementVNode("button",{class:"modal-listo-btn",onMousedown:e.withModifiers(T,["prevent"])},"Listo",32)])],32)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("div",bAe,[E[6]||(E[6]=e.createElementVNode("span",{class:"error-icon"},"!",-1)),e.createTextVNode(" "+e.toDisplayString(p.value),1)])):e.createCommentVNode("",!0)]),m.value?(e.openBlock(),e.createElementBlock("div",SAe," Ya existe una lista con este nombre, utiliza otro para poder continuar. ")):e.createCommentVNode("",!0),E[8]||(E[8]=e.createElementVNode("div",{class:"modal-divider"},null,-1)),e.createElementVNode("div",_Ae,[e.createElementVNode("button",{class:"modal-cancel",onClick:P},"Cancelar"),e.createElementVNode("button",{class:e.normalizeClass(["modal-create",{"modal-create--disabled":!h.value}]),onClick:D,disabled:!h.value}," Crear lista ",10,CAe)])])):e.createCommentVNode("",!0)]),_:1})]))}},kAe=sAe(wAe,[["__scopeId","data-v-71419cea"]]),De=t=>(e.pushScopeId("data-v-7c36553e"),t=t(),e.popScopeId(),t),EAe=De(()=>e.createElementVNode("div",{class:"top-scroll-spacer"},null,-1)),VAe={class:"table__static-column"},xAe={class:"static-title column-title restore"},NAe={class:"titles-left"},TAe=De(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".6",stroke:"#fff","stroke-width":"1.333","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M15.333 2.667v4h-4M.667 13.333v-4h4"}),e.createElementVNode("path",{d:"M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24"})])],-1)),BAe=["id"],FAe={class:"container"},PAe={class:"details-row__info"},$Ae={class:"details-row__info__personal"},AAe={class:"bold"},IAe={class:"bold"},zAe={class:"bold"},MAe={class:"bold"},OAe={class:"details-row__info__games"},RAe={class:"bold"},LAe={class:"bold"},DAe=["onClick"],vAe=De(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),jAe=De(()=>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)),UAe=[vAe,jAe],WAe=["onClick"],HAe=De(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),GAe=De(()=>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)),qAe=[HAe,GAe],JAe=["onClick"],ZAe=De(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),YAe=De(()=>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)),KAe=[ZAe,YAe],XAe=["onClick"],QAe=De(()=>e.createElementVNode("div",null,"Ver perfil",-1)),eIe=[QAe],tIe={class:"static-row__info-player"},aIe=["onClick"],oIe=De(()=>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)),iIe=De(()=>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)),sIe=De(()=>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)),rIe=[oIe,iIe,sIe],lIe=["onClick"],nIe=De(()=>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)),dIe=De(()=>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)),cIe=De(()=>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)),pIe=[nIe,dIe,cIe],mIe={class:"player-photo"},uIe=["src"],fIe={class:"player-name"},hIe={class:"arrow"},yIe=["onClick"],gIe=De(()=>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)),bIe=[gIe],SIe={class:"titles scrollable-row"},_Ie={class:"column-title"},CIe=De(()=>e.createElementVNode("div",null," Equipo ",-1)),wIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),kIe=[wIe],EIe={class:"column-title"},VIe=De(()=>e.createElementVNode("div",null," Posición ",-1)),xIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),NIe=[xIe],TIe={class:"column-title"},BIe=De(()=>e.createElementVNode("div",null," Edad ",-1)),FIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),PIe=[FIe],$Ie=De(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),AIe={class:"column-title"},IIe=De(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),zIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),MIe=[zIe],OIe={class:"column-title"},RIe=De(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),LIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),DIe=[LIe],vIe={class:"column-title"},jIe=De(()=>e.createElementVNode("div",null," Liga ",-1)),UIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),WIe=[UIe],HIe=De(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),GIe={class:"team-logo"},qIe=["src"],JIe={class:"team-name data-info"},ZIe=["src"],YIe={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1},isGraphButtonVisible:{type:Boolean,default:!0},isAddToListButtonVisible:{type:Boolean,default:!0},isAddToListPlayerVisible:{type:Boolean,default:!0},lists:{type:Array,default:()=>[]},userId:{type:Number,default:0},token:{type:String,default:""}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters","list-created","delete-from-list"],setup(t,{emit:o}){const a=t;let i=null,s=null;const r=e.ref([]),l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(0),u=e.ref(0),p=e.ref(-1),y=e.ref(!1),m=e.ref(null),h=e.ref(null),f=e.ref(null),g=e.ref([]),b=e.ref([{name:"team_abrev",isDesc:!1,isRoot:!0},{name:"player_position",isDesc:!1,isRoot:!0},{name:"player_age",isDesc:!1,isRoot:!0},{name:"player_games",isDesc:!1,isRoot:!0},{name:"player_min",isDesc:!1,isRoot:!0},{name:"league_name",isDesc:!1,isRoot:!0}]),S=e.ref(0),F=e.ref("922px"),v=e.ref(!1),T=e.ref(!1),M=e.ref(null),D=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${P.value?"8px":"18px"}`,"--width-static-column":`${P.value?"65%":"436px"}`})),P=e.computed(()=>d.value<600);e.watch(()=>a.players,_=>{_&&_.length&&(r.value=_.map((B,A)=>{const pe=A+1,he={...B,position:pe<10?`0${pe}`:`${pe}`,isSelected:!1,isExpanded:!1,isOdd:A%2!==0,index:A};return B.stats&&B.stats.length&&(he.stats=B.stats.map(me=>({...me,isDesc:!1,isRoot:!1}))),he.parameters&&Object.entries(he.parameters).forEach(([me,Re])=>{const St=he.stats.find(Ti=>Ti.custom_category_id===Number(me));St&&(St.parameters=Re)}),he}),g.value=r.value.map(B=>({...B})))},{immediate:!0,deep:!0}),e.watch(()=>a.isEditMode,_=>{_&&r.value.forEach(B=>{B.isSelected=!1})}),e.watch(()=>f.value,_=>{if(_){let B=[...g.value];_.isRoot?B.sort((A,pe)=>typeof A[_.name]=="string"?_.isDesc?A[_.name].localeCompare(pe[_.name]):A[_.name].localeCompare(pe[_.name])*-1:_.isDesc?pe[_.name]-A[_.name]:A[_.name]-pe[_.name]):B.sort((A,pe)=>{const he=A.stats.find(Re=>Re.name===_.name),me=pe.stats.find(Re=>Re.name===_.name);return typeof he.value=="string"?_.isDesc?he.total.localeCompare(me.total):he.total.localeCompare(me.total)*-1:_.isDesc?me.total-he.total:he.total-me.total}),B.forEach((A,pe)=>{A.isOdd=pe%2!==0}),g.value=B}else g.value.sort((B,A)=>B.index-A.index).forEach((B,A)=>{B.isOdd=A%2!==0})},{immediate:!0,deep:!0}),e.watch(u,_=>{const B=document.querySelectorAll(".static-row")[p.value+1];B&&(B.style.marginTop=`${_}px`),a.isGeneral?Q(p.value,_):n.value&&n.value.setMarginTopDetails(p.value,_),_===0&&m.value&&z(m.value)});function Q(_,B){const A=document.querySelectorAll(".scrollable-row")[_+2];A&&(A.style.marginTop=`${B}px`)}function O(_){o("click-parameters",_)}function k(_){_&&(_.isDesc=!_.isDesc),f.value=_}function E(_){const B=_.player||_.objeto_player,A=B?B.player_id||B.id||B.playerId:_.id||_.player_id,pe={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:A?[A]:[],goalkeeperIds:[],matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(_.stat&&_.stat.parameters&&(pe.parameters=_.stat.parameters),_.stat&&_.stat.seasons&&_.stat.seasons.length||_.seasons&&_.seasons.length){const he=[..._.stat&&_.stat.seasons&&_.stat.seasons.length?_.stat.seasons:_.seasons];he.sort((me,Re)=>me-Re),pe.seasonId=he.shift(),pe.seasonsIds=he}else(_.season_id||_.seasonId)&&(pe.seasonId=_.season_id||_.seasonId);_.stat?_.stat.category_id&&_.stat.category_id.length?pe.categoryIds=_.stat.category_id:_.stat.custom_category_id&&(pe.customCategoryIds=[_.stat.custom_category_id]):pe.categoryIds=Y(_.player_position),o("open-media",pe)}function V(){i=new ResizeObserver(_=>{for(const B of _)d.value=B.contentRect.width}),i.observe(l.value)}function N(_){s=new ResizeObserver(B=>{for(const A of B)u.value=A.contentRect.height}),s.observe(_)}function Y(_){return _==="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 de(_,B){B.isSelected=_;const A=r.value.filter(pe=>pe.isSelected);o("change-selected-players",A)}function ue(_){o("view-profile",_)}function C(_){o("delete-from-list",_)}function I(_){M.value=_.objeto_player||_,o("add-to-list",_),_.showTooltip=!0}function U(_){o("show-graph",_)}function z(_){if(_.isExpanded){_.isExpanded=!1,m.value=null;return}const B=r.value.find(me=>me.isExpanded);if(B&&(B.isExpanded=!1),B){m.value=_;return}const A=document.querySelectorAll(".details-row");let pe=-1;A.forEach((me,Re)=>{me.id===`dr-${_.id}`&&(pe=Re)});const he=A[pe];p.value=pe,N(he),_.isExpanded=!0,r.value.forEach(me=>{me.isExpanded=!1}),setTimeout(()=>{if(!y.value){const me=document.querySelectorAll(".details-row")[_.index];p.value=_.index,N(me)}_.isExpanded=!y.value},1)}let W=!1,ce,j,H=function(_){W=!0,ce=_.pageX-h.value.offsetLeft,j=h.value.scrollLeft},w=function(_){W=!0,ce=_.pageX-c.value.offsetLeft,j=c.value.scrollLeft},G=function(){W=!1};function $(_){h.value&&(h.value.scrollLeft=_.target.scrollLeft)}function J(_){c.value&&(c.value.scrollLeft=_.target.scrollLeft)}function fe(){h.value&&(h.value.addEventListener("mousemove",_=>{if(!W)return;const B=_.pageX-h.value.offsetLeft-ce,A=j-B;h.value.scrollLeft=A,c.value&&(c.value.scrollLeft=A)}),h.value.addEventListener("mousedown",H,!1),h.value.addEventListener("mouseup",G,!1),h.value.addEventListener("mouseleave",G,!1),h.value.addEventListener("scroll",J)),c.value&&(c.value.addEventListener("mousemove",_=>{if(!W)return;const B=_.pageX-c.value.offsetLeft-ce,A=j-B;c.value.scrollLeft=A,h.value&&(h.value.scrollLeft=A)}),c.value.addEventListener("mousedown",w,!1),c.value.addEventListener("mouseup",G,!1),c.value.addEventListener("mouseleave",G,!1),c.value.addEventListener("scroll",$))}function ye(){a.isGeneral?F.value="922px":e.nextTick(()=>{const _=document.querySelector(".scrollable-row-2");if(_){const B=window.getComputedStyle(_),A=_.scrollWidth||parseInt(B.width);F.value=`${A}px`}else if(r.value.length&&r.value[0].stats){const B=r.value[0].stats.length,A=120;F.value=`${(B+1)*A}px`}})}e.watch(()=>[a.players,a.isGeneral],()=>{ye()},{immediate:!0});function ge(){v.value=!0}async function Z(_){try{const B={dob:M.value.dob,is_female:0,jersey:0,name:M.value.name,nationality:M.value.nationality,nationality_id:M.value.nationality_id,player_id:M.value.player_id,position:M.value.position_id,team_id:M.value.team_id},A={user_id:a.userId,id:_.id,players:[B]};await fetch(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${a.userId}/in-followed/${_.id}/players`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:a.token},body:JSON.stringify(A)}),o("list-created")}catch(B){console.error("Error creating list:",B)}}function x(){o("list-created")}return e.onMounted(()=>{V(),fe()}),e.onBeforeUnmount(()=>{i&&i.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",H,!1),h.value.removeEventListener("mouseup",G,!1),h.value.removeEventListener("mouseleave",G,!1),h.value.removeEventListener("scroll",J)),c.value&&(c.value.removeEventListener("mousemove",w,!1),c.value.removeEventListener("mouseup",G,!1),c.value.removeEventListener("mouseleave",G,!1),c.value.removeEventListener("scroll",$))}),(_,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createBlock(e.unref(kAe),{key:0,token:t.token,"user-id":t.userId,onClose:B[0]||(B[0]=A=>v.value=!1),onCreateList:Z},null,8,["token","user-id"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"top-scroll-container",style:e.normalizeStyle(D.value)},[EAe,e.createElementVNode("div",{ref_key:"topScrollableColumns",ref:c,class:"top-scroll"},[e.createElementVNode("div",{class:"top-scroll-content",style:e.normalizeStyle({width:F.value})},null,4)],512)],4),(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:l,style:e.normalizeStyle(D.value),key:S.value},[e.createElementVNode("div",VAe,[e.createElementVNode("div",xAe,[e.createElementVNode("div",NAe,[e.createElementVNode("div",{class:"title",style:e.normalizeStyle(P.value?"font-size: 8px":"")},"Ranking",4),t.isAddToListPlayerVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title",style:e.normalizeStyle(P.value?"font-size: 8px":"")},"Agregar a lista",4)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{role:"button",class:"restore-button",onClick:B[1]||(B[1]=A=>k(null))},[TAe,e.createElementVNode("div",{style:e.normalizeStyle(P.value?"font-size: 10px; white-space: wrap;":"")},"Restaurar orden",4)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,A=>(e.openBlock(),e.createElementBlock("div",{key:`s-${A.id}`,class:e.normalizeClass(["row static-row",{odd:A.isOdd}]),style:e.normalizeStyle(P.value?"width: auto":"")},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:`dr-${A.id}`,class:e.normalizeClass(["details-row",{odd:A.isOdd}])},[e.createElementVNode("div",FAe,[e.createElementVNode("div",PAe,[e.createElementVNode("div",$Ae,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",AAe,e.toDisplayString(A.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",IAe,e.toDisplayString(A.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",zAe,e.toDisplayString(A.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",MAe,e.toDisplayString(A.position_name),1)])]),e.createElementVNode("div",OAe,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",RAe,e.toDisplayString(A.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",LAe,e.toDisplayString(A.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(P.value?"margin-left: 0; gap: 8px;":"")},[t.isGraphButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:pe=>U(A)},UAe,8,DAe)):e.createCommentVNode("",!0),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:pe=>C(A)},qAe,8,WAe)):t.isAddToListButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:2,role:"button",class:"button",onClick:pe=>I(A)},KAe,8,JAe)):e.createCommentVNode("",!0),e.createElementVNode("div",{role:"button",class:"button green",onClick:pe=>ue(A)},eIe,8,XAe)],4)])],10,BAe),[[e.vShow,A.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(_Be),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":A.isSelected,"onUpdate:modelValue":pe=>de(pe,A)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",tIe,[e.createElementVNode("div",{class:"position",style:e.normalizeStyle(P.value?"width:20px;":"")},e.toDisplayString(A.position),5),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-to-list-container",style:e.normalizeStyle(P.value?"width:20px;":"")},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:pe=>C(A)},rIe,8,aIe))],4)):t.isAddToListPlayerVisible?(e.openBlock(),e.createElementBlock("div",{key:1,class:"add-to-list",style:e.normalizeStyle(P.value?"width:20px;":"")},[A.showTooltip?(e.openBlock(),e.createBlock(e.unref(TPe),{key:0,token:t.token,"user-id":t.userId,lists:t.lists,isModalOpen:T.value,"selected-player":A.objeto_player,onClose:pe=>A.showTooltip=!1,onCreateNewList:ge,onPlayerAdded:x},null,8,["token","user-id","lists","isModalOpen","selected-player","onClose"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:pe=>I(A)},pIe,8,lIe))],4)):e.createCommentVNode("",!0),e.createElementVNode("div",mIe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:A.player_photo,alt:"player photo"},null,8,uIe)])]),e.createElementVNode("div",fIe,e.toDisplayString(A.player_name),1)]),e.createElementVNode("div",hIe,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:A.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:pe=>z(A)},bIe,10,yIe))])],6))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:h,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",SIe,[e.createElementVNode("div",_Ie,[CIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[2]||(B[2]=A=>k(b.value[0]))},kIe))]),e.createElementVNode("div",EIe,[VIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[3]||(B[3]=A=>k(b.value[1]))},NIe))]),e.createElementVNode("div",TIe,[BIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[4]||(B[4]=A=>k(b.value[2]))},PIe))]),$Ie,e.createElementVNode("div",AIe,[IIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[5]||(B[5]=A=>k(b.value[3]))},MIe))]),e.createElementVNode("div",OIe,[RIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[6]||(B[6]=A=>k(b.value[4]))},DIe))]),e.createElementVNode("div",vIe,[jIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[7]||(B[7]=A=>k(b.value[5]))},WIe))]),HIe]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,A=>(e.openBlock(),e.createElementBlock("div",{key:`i-${A.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:A.isOdd}])},[e.createElementVNode("div",GIe,[e.createElementVNode("img",{src:A.team_logo,alt:"team logo"},null,8,qIe)]),e.createElementVNode("div",JIe,e.toDisplayString(A.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},[e.createElementVNode("img",{src:A.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,ZIe)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},[e.createVNode(e.unref(PBe),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:pe=>E(A)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(jBe,{key:1,ref_key:"scrollColumns",ref:n,"available-players":g.value,"is-edit-mode":t.isEditMode,"is-mobile":P.value,onOpenMedia:E,onClickParameters:O,onSort:k},null,8,["available-players","is-edit-mode","is-mobile"]))],512)],4))],64))}},KIe=Nb(YIe,[["__scopeId","data-v-7c36553e"]]),qm=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},Jm={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1},title:{type:String,default:"Zona de origen del balón:"},quarters:{type:Array,default:()=>[1,2,3,4]}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,lastSelectedSections:[]}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){if(this.lastSelectedSections.every(a=>t.has(a)))return;const o=Array.from(t).map(Number).sort((a,i)=>a-i);this.lastSelectedSections=[...o],this.$emit("sections-changed",o)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const o=Math.ceil(t/4);if(!this.isQuarterEnabled(o))return;const a=t.toString();this.selectedSections.size===1&&this.selectedSections.has(a)||(this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState())},toggleAllSections(){if(this.selectAll)for(let t=1;t<=16;t++)this.selectedSections.add(t.toString());else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{this.selectAll=this.selectedSections.size===16})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t){if(this.displayMode)return;const o=Date.now();if(o-this.lastUpdateTime<16)return;this.lastUpdateTime=o;const a=t.toString(),i=Math.ceil(t/4);if(this.isQuarterEnabled(i)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(a)),this.dragSelectMode)this.selectedSections.add(a);else{if(this.selectedSections.size===1&&this.selectedSections.has(a))return;this.selectedSections.delete(a)}this.updateSelectAllState()}},getSectionNumber(t,o){return(t-1)*4+o},getSectionIndex(t,o){return(t-1)*4+o},selectColumn(t){if(!this.isQuarterEnabled(t))return;const o=(t-1)*4+1,a=t*4;if(Array.from({length:4},(i,s)=>(o+s).toString()).every(i=>this.selectedSections.has(i))&&this.selectedSections.size>4)for(let i=o;i<=a;i++)this.selectedSections.delete(i.toString());else for(let i=o;i<=a;i++)this.selectedSections.add(i.toString());this.updateSelectAllState()},isQuarterSelected(t){const o=(t-1)*4+1;return Array.from({length:4},(a,i)=>(o+i).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},Z5=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Y5=Jm.setup;Jm.setup=Y5?(t,o)=>(Z5(),Y5(t,o)):Z5;const XIe={class:"field-template-element"},QIe={class:"field-container"},eze=["onMouseenter","onMousedown"],tze={class:"column-buttons"},aze=["onClick","disabled"];function oze(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",XIe,[e.createElementVNode("div",QIe,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":a.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[0]||(o[0]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[1]||(o[1]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[2]||(o[2]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(r.getSectionIndex(l,n)),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(r.getSectionIndex(l,n)),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(r.getSectionIndex(l,n)),["prevent"])},null,42,eze)),64))])),64))],32),e.createElementVNode("div",tze,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"column-label"},e.toDisplayString(l)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,l=>e.createElementVNode("button",{key:l,class:e.normalizeClass(["column-button",{selected:r.isQuarterSelected(l),disabled:!r.isQuarterEnabled(l)}]),onClick:n=>r.selectColumn(l),disabled:!r.isQuarterEnabled(l)},e.toDisplayString(l)+"/4 tos ",11,aze)),64))])])])}const ize=qm(Jm,[["render",oze],["__scopeId","data-v-1f6351a4"]]),Zm={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,selectedCells:new Array(72).fill(!0)}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){const o=Array.from(t).map(r=>{const[l,n]=r.split("-").map(Number);return{row:l,col:n,value:this.getSequentialNumber(l,n)}}),a={};o.forEach(r=>{a[r.col]||(a[r.col]=[]),a[r.col].push(r)});const i=[];Object.values(a).forEach(r=>{r.sort((n,c)=>c.row-n.row);let l=[r[0]];for(let n=1;n<r.length;n++){const c=r[n];r[n-1].row-c.row===1?l.push(c):(l.length>0&&i.push(l),l=[c])}l.length>0&&i.push(l)});const s=i.sort((r,l)=>{const n=Math.min(...r.map(d=>d.value)),c=Math.min(...l.map(d=>d.value));return n-c}).map(r=>{const l=r.map(n=>n.value).sort((n,c)=>c-n);return l.length===1?[l[0],l[0]]:[l[0],l[l.length-1]]});this.$emit("sections-changed",s)},deep:!0}},methods:{initializeSections(){if(this.initialSections&&this.initialSections.length>0)this.selectedSections.clear(),this.initialSections.forEach(t=>{if(Array.isArray(t)&&t.length===2){const[o,a]=t,i=17-Math.floor((o-1)/21),s=(o-1)%21+1,r=17-Math.floor((a-1)/21),l=(a-1)%21+1;if(s===l){const n=Math.min(i,r),c=Math.max(i,r);for(let d=n;d<=c;d++)this.selectedSections.add(this.getSectionId(d,s))}else{const n=Math.min(s,l),c=Math.max(s,l);for(let d=n;d<=c;d++){const u=d===s?i:1,p=d===l?r:17;for(let y=Math.min(u,p);y<=Math.max(u,p);y++)this.selectedSections.add(this.getSectionId(y,d))}}}});else for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));this.updateSelectAllState()},getSectionId(t,o){return`${t}-${o}`},isSelected(t,o){return this.selectedSections.has(this.getSectionId(t,o))},toggleSection(t,o){const a=this.getSectionId(t,o);this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{let t=357;this.selectAll=this.selectedSections.size===t})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t,o){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const i=this.getSectionId(t,o);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(i)),this.dragSelectMode?this.selectedSections.add(i):this.selectedSections.delete(i),this.updateSelectAllState()},getSequentialNumber(t,o){return(17-t)*21+o}}},K5=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},X5=Zm.setup;Zm.setup=X5?(t,o)=>(K5(),X5(t,o)):K5;const sze={class:"field-template-element"},rze={class:"field-container"},lze={key:0,class:"select-all-container"},nze={class:"select-all-label"},dze=["onMouseenter","onMousedown"];function cze(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",sze,[e.createElementVNode("div",rze,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",lze,[e.createElementVNode("label",nze,[o[5]||(o[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":o[0]||(o[0]=l=>s.selectAll=l),onChange:o[1]||(o[1]=(...l)=>r.toggleAllSections&&r.toggleAllSections(...l))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[2]||(o[2]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[3]||(o[3]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[4]||(o[4]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(l,n),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(l,n),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(l,n),["prevent"])},null,42,dze)),64))],64))),64))],32),o[6]||(o[6]=e.createStaticVNode('<div class="attack-direction" data-v-389c50fa><div class="arrow-line" data-v-389c50fa></div><span class="attack-text" data-v-389c50fa>Ataca</span><div class="arrow-line" data-v-389c50fa></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-389c50fa><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-389c50fa></polygon></svg></div>',1))])])}const pze=qm(Zm,[["render",cze],["__scopeId","data-v-389c50fa"]]),mze={components:{FieldGolStatsTemplates:ize,FieldTemplatesElement:pze},name:"ModalPassConditions",props:{isVisible:{type:Boolean,required:!0},parameters:{type:Object,required:!0}},data(){return{quarters:[1,2],userId:24254,originSelection:[],destinationSelection:[],selectAllOrigin:!1,selectAllDestination:!1,minDistanceX:.5,minDistanceY:.5,minDistanceTotal:.5}},methods:{isArrayOfArrays(t){return Array.isArray(t)&&t.length>0&&t.every(o=>Array.isArray(o))},closeModal(){this.$emit("update:isVisible",!1)},updateOriginSelection(t){this.originSelection=t},updateDestinationSelection(t){this.destinationSelection=t},clearFilters(){this.originSelection=[],this.destinationSelection=[],this.selectAllOrigin=!1,this.selectAllDestination=!1,this.minDistanceX=0,this.minDistanceY=0,this.minDistanceTotal=0},applyFilters(){this.$emit("update:isVisible",!1)}}},uze={key:0,class:"modal-wrapper"},fze={class:"modal-overlay"},hze={class:"modal-container"},yze={class:"modal-content"},gze={class:"modal-header"},bze={class:"fields-container"},Sze={class:"field-section"},_ze={class:"field-section"},Cze={class:"distance-section"},wze={class:"distance-info"},kze={class:"info-row"},Eze={class:"info-value"},Vze={class:"info-row"},xze={class:"info-value"},Nze={class:"info-row"},Tze={class:"info-value"},Bze={class:"distance-section"},Fze={class:"distance-info"},Pze={class:"info-row"},$ze={class:"info-value"},Aze={class:"info-row"},Ize={class:"info-value"},zze={class:"info-row"},Mze={class:"info-value"};function Oze(t,o,a,i,s,r){var l,n,c,d,u,p,y,m,h,f,g,b;const S=e.resolveComponent("FieldGolStatsTemplates"),F=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",uze,[e.createElementVNode("div",fze,[e.createElementVNode("div",hze,[e.createElementVNode("div",yze,[e.createElementVNode("div",gze,[o[2]||(o[2]=e.createStaticVNode('<div class="header-content" data-v-834c0128><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-inspector="src/components/GSCTemplates.vue:100:15" data-v-a08c9209="" data-v-834c0128><path d="M5.18088 2.68185L3.12463 4.74435L2.31838 3.93185C2.20069 3.81416 2.04107 3.74805 1.87463 3.74805C1.70819 3.74805 1.54857 3.81416 1.43088 3.93185C1.31319 4.04954 1.24707 4.20917 1.24707 4.3756C1.24707 4.54204 1.31319 4.70166 1.43088 4.81935L2.68088 6.06935C2.73898 6.12793 2.80811 6.17443 2.88427 6.20616C2.96043 6.23789 3.04212 6.25423 3.12463 6.25423C3.20714 6.25423 3.28883 6.23789 3.36499 6.20616C3.44115 6.17443 3.51028 6.12793 3.56838 6.06935L6.06838 3.56935C6.12665 3.51108 6.17288 3.4419 6.20442 3.36576C6.23595 3.28962 6.25218 3.20802 6.25218 3.1256C6.25218 3.04319 6.23595 2.96159 6.20442 2.88545C6.17288 2.80931 6.12665 2.74013 6.06838 2.68185C6.0101 2.62358 5.94092 2.57735 5.86478 2.54582C5.78864 2.51428 5.70704 2.49805 5.62463 2.49805C5.54222 2.49805 5.46061 2.51428 5.38447 2.54582C5.30833 2.57735 5.23915 2.62358 5.18088 2.68185Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:101:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 8.125H2.5C2.33424 8.125 2.17527 8.19085 2.05806 8.30806C1.94085 8.42527 1.875 8.58424 1.875 8.75V11.25C1.875 11.4158 1.94085 11.5747 2.05806 11.6919C2.17527 11.8092 2.33424 11.875 2.5 11.875H5C5.16576 11.875 5.32473 11.8092 5.44194 11.6919C5.55915 11.5747 5.625 11.4158 5.625 11.25V8.75C5.625 8.58424 5.55915 8.42527 5.44194 8.30806C5.32473 8.19085 5.16576 8.125 5 8.125ZM4.375 10.625H3.125V9.375H4.375V10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:104:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 13.75H2.5C2.33424 13.75 2.17527 13.8158 2.05806 13.9331C1.94085 14.0503 1.875 14.2092 1.875 14.375V16.875C1.875 17.0408 1.94085 17.1997 2.05806 17.3169C2.17527 17.4342 2.33424 17.5 2.5 17.5H5C5.16576 17.5 5.32473 17.4342 5.44194 17.3169C5.55915 17.1997 5.625 17.0408 5.625 16.875V14.375C5.625 14.2092 5.55915 14.0503 5.44194 13.9331C5.32473 13.8158 5.16576 13.75 5 13.75ZM4.375 16.25H3.125V15H4.375V16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:107:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 9.375H13.125C13.2908 9.375 13.4497 9.30915 13.5669 9.19194C13.6842 9.07473 13.75 8.91576 13.75 8.75C13.75 8.58424 13.6842 8.42527 13.5669 8.30806C13.4497 8.19085 13.2908 8.125 13.125 8.125H8.125C7.95924 8.125 7.80027 8.19085 7.68306 8.30806C7.56585 8.42527 7.5 8.58424 7.5 8.75C7.5 8.91576 7.56585 9.07473 7.68306 9.19194C7.80027 9.30915 7.95924 9.375 8.125 9.375Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:110:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 10.625H8.125C7.95924 10.625 7.80027 10.6908 7.68306 10.8081C7.56585 10.9253 7.5 11.0842 7.5 11.25C7.5 11.4158 7.56585 11.5747 7.68306 11.6919C7.80027 11.8092 7.95924 11.875 8.125 11.875H18.125C18.2908 11.875 18.4497 11.8092 18.5669 11.6919C18.6842 11.5747 18.75 11.4158 18.75 11.25C18.75 11.0842 18.6842 10.9253 18.5669 10.8081C18.4497 10.6908 18.2908 10.625 18.125 10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:113:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 15H13.125C13.2908 15 13.4497 14.9342 13.5669 14.8169C13.6842 14.6997 13.75 14.5408 13.75 14.375C13.75 14.2092 13.6842 14.0503 13.5669 13.9331C13.4497 13.8158 13.2908 13.75 13.125 13.75H8.125C7.95924 13.75 7.80027 13.8158 7.68306 13.9331C7.56585 14.0503 7.5 14.2092 7.5 14.375C7.5 14.5408 7.56585 14.6997 7.68306 14.8169C7.80027 14.9342 7.95924 15 8.125 15Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:116:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 16.25H8.125C7.95924 16.25 7.80027 16.3158 7.68306 16.4331C7.56585 16.5503 7.5 16.7092 7.5 16.875C7.5 17.0408 7.56585 17.1997 7.68306 17.3169C7.80027 17.4342 7.95924 17.5 8.125 17.5H18.125C18.2908 17.5 18.4497 17.4342 18.5669 17.3169C18.6842 17.1997 18.75 17.0408 18.75 16.875C18.75 16.7092 18.6842 16.5503 18.5669 16.4331C18.4497 16.3158 18.2908 16.25 18.125 16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:119:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 3.75H13.125C13.2908 3.75 13.4497 3.68415 13.5669 3.56694C13.6842 3.44973 13.75 3.29076 13.75 3.125C13.75 2.95924 13.6842 2.80027 13.5669 2.68306C13.4497 2.56585 13.2908 2.5 13.125 2.5H8.125C7.95924 2.5 7.80027 2.56585 7.68306 2.68306C7.56585 2.80027 7.5 2.95924 7.5 3.125C7.5 3.29076 7.56585 3.44973 7.68306 3.56694C7.80027 3.68415 7.95924 3.75 8.125 3.75Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:122:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 6.25H18.125C18.2908 6.25 18.4497 6.18415 18.5669 6.06694C18.6842 5.94973 18.75 5.79076 18.75 5.625C18.75 5.45924 18.6842 5.30027 18.5669 5.18306C18.4497 5.06585 18.2908 5 18.125 5H8.125C7.95924 5 7.80027 5.06585 7.68306 5.18306C7.56585 5.30027 7.5 5.45924 7.5 5.625C7.5 5.79076 7.56585 5.94973 7.68306 6.06694C7.80027 6.18415 7.95924 6.25 8.125 6.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:125:17" data-v-a08c9209="" data-v-834c0128></path></svg><span data-v-834c0128>Elige las condiciones del pase</span></div>',1)),e.createElementVNode("button",{class:"close-button",onClick:o[0]||(o[0]=v=>t.$emit("update:isVisible",!1))},o[1]||(o[1]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})],-1)]))]),e.createElementVNode("div",bze,[e.createElementVNode("div",Sze,[r.isArrayOfArrays((l=a.parameters)==null?void 0:l.origin_zones)?(e.openBlock(),e.createBlock(F,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(c=a.parameters)==null?void 0:c.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(S,{key:0,title:"Elige la zona de origen del balón:","initial-sections":(n=a.parameters)==null?void 0:n.origin_zones,"display-mode":!0},null,8,["initial-sections"]))]),e.createElementVNode("div",_ze,[r.isArrayOfArrays((d=a.parameters)==null?void 0:d.destiny_zones)?(e.openBlock(),e.createBlock(F,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(p=a.parameters)==null?void 0:p.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(S,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(u=a.parameters)==null?void 0:u.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",Cze,[o[6]||(o[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",wze,[e.createElementVNode("div",kze,[o[3]||(o[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Eze,e.toDisplayString((y=a.parameters)==null?void 0:y.minimum_distance_x)+" m",1)]),e.createElementVNode("div",Vze,[o[4]||(o[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",xze,e.toDisplayString((m=a.parameters)==null?void 0:m.minimum_distance_y)+" m",1)]),e.createElementVNode("div",Nze,[o[5]||(o[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Tze,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",Bze,[o[10]||(o[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",Fze,[e.createElementVNode("div",Pze,[o[7]||(o[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",$ze,e.toDisplayString((f=a.parameters)==null?void 0:f.maximum_distance_x)+" m",1)]),e.createElementVNode("div",Aze,[o[8]||(o[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Ize,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",zze,[o[9]||(o[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Mze,e.toDisplayString((b=a.parameters)==null?void 0:b.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const Rze=qm(mze,[["render",Oze],["__scopeId","data-v-834c0128"]]),Lze={computed:{sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsFontMS(){const t=this.elementSize.width;return t<=600?"12px":t<=768?"13px":"14px"},sizeTabsMS(){const t=this.elementSize.width;return t<=480?"145px":t<=600?"153px":t<=620?"163px":t<=640?"170px":t<=660?"175px":t<=680?"180px":t<=700?"185px":t<=720?"195px":"200px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"68px":t<=330?"73px":t<=340?"78px":t<=350?"82px":t<=360||t<=370?"90px":t<=390?"95px":t<=410?"105px":t<=430?"110px":t<=450?"117px":t<=470?"122px":t<=500?"130px":t<=530?"138px":t<=560?"155px":t<=590?"163px":t<=620?"175px":t<=650?"180px":t<=680?"195px":t<=730?"210px":t<=768?"100px":"110px"},textleyemdmultipleleaguesClass(){return this.elementSize.width<=380?this.$style.textleyemdmultipleleagues380:this.$style.textleyemdmultipleleagues},dropdownParentClass(){return this.elementSize.width<=730?this.$style.dropdownParent730:this.$style.dropdownParent},descubreVideosClass(){const t=this.elementSize.width;return t<=960?this.$style.descubreVideos960:t<=1232?this.$style.descubreVideos1232:this.$style.descubreVideos},quitarFiltrosClass(){const t=this.elementSize.width;return t<=380?this.$style.quitarFiltros380:t<=480?this.$style.quitarFiltros480:t<=730?this.$style.quitarFiltros730:this.$style.quitarFiltros},mejoresJugadoresClass(){const t=this.elementSize.width;return t<=480?this.$style.mejoresJugadores480:t<=730?this.$style.mejoresJugadores730:this.$style.mejoresJugadores},menuSectionClass(){return this.elementSize.width<=960?this.$style.menuSection960:this.$style.menuSection},menuSectionPlayClass(){return this.elementSize.width<=960?this.$style.menuSectionPlay960:this.$style.menuSectionPlay},topFiltersClass(){const t=this.elementSize.width;return t<=420?this.$style.topFilters420:t<=460?this.$style.topFilters460:t<=1232?this.$style.topFilters1232:this.$style.topFilters},toniKroosWrapperClass(){const t=this.elementSize.width;return t<=319?this.$style.toniKroosWrapper320:t<=420?this.$style.toniKroosWrapper420:t<=916?this.$style.toniKroosWrapper760:t<=975?this.$style.toniKroosWrapper975:t<=1079?this.$style.toniKroosWrapper1080:this.$style.toniKroosWrapper},containerTablesClass(){const t=this.elementSize.width;return t<=319?this.$style.containerTables320:t<=916?this.$style.containerTables760:t<=1079?this.$style.containerTables960:this.$style.containerTables},containerTheBestClass(){const t=this.elementSize.width;return t<=319?this.$style.containerTheBest320:t<=960?this.$style.containerTheBest960:t<=1232?this.$style.containerTheBest1232:this.$style.containerTheBest},menuSectionHeaderClass(){const t=this.elementSize.width;return t<=730?this.$style.menuSectionHeader730:t<=960?this.$style.menuSectionHeader960:t<=1232?this.$style.menuSectionHeader1232:this.$style.menuSectionHeader},losMejoresClass(){const t=this.elementSize.width;return t<=380?this.$style.losMejores380:t<=530?this.$style.losMejores530:t<=730?this.$style.losMejores730:this.$style.losMejores},dropdownClass(){return this.elementSize.width<=730?this.$style.dropdown730:this.$style.dropdown},dropdown1Class(){return this.elementSize.width<=730?this.$style.dropdown1730:this.$style.dropdown1},menuSectionParentHeaderClass(){const t=this.elementSize.width;return t<=430?this.$style.menuSectionParentHeader430:t<=730?this.$style.menuSectionParentHeader730:t<=960?this.$style.menuSectionParentHeader960:t<=1232?this.$style.menuSectionParentHeader1232:this.$style.menuSectionParentHeader},templateLosMejoresClass(){const t=this.elementSize.width;return t<=319?this.$style.templateLosMejores320:t<=350?this.$style.templateLosMejores350:t<=420?this.$style.templateLosMejores420:t<=540?this.$style.templateLosMejores540:t<=960?this.$style.templateLosMejores960:t<=1232?this.$style.templateLosMejores1232:this.$style.templateLosMejores},containerMenuClass(){return this.elementSize.width<=760?this.$style.containerMenu760:this.$style.containerMenu},titleSectionClass(){return this.elementSize.width<=540?this.$style.titleSection540:this.$style.titleSection},containerSectionClass(){const t=this.elementSize.width;return t<=319?this.$style.containerSection320:t<=350?this.$style.containerSection350:t<=960?this.$style.containerSection960:t<=1232?this.$style.containerSection1232:this.$style.containerSection},containerSectionPlayClass(){const t=this.elementSize.width;return t<=319?this.$style.containerSectionPlay320:t<=350?this.$style.containerSectionPlay350:t<=960?this.$style.containerSectionPlay960:t<=1232?this.$style.containerSectionPlay1232:this.$style.containerSectionPlay},filtersContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.filtersContainer420:t<=760?this.$style.filtersContainer760:t<=1232?this.$style.filtersContainer1232:this.$style.filtersContainer},topFiltersParentClass(){const t=this.elementSize.width;return t<=420?this.$style.topFiltersParent420:t<=460?this.$style.topFiltersParent460:t<=1232?this.$style.topFiltersParent1232:this.$style.topFiltersParent}}},Dze="_tablePosition_s65tc_46",vze="_tablePositionWrapper_s65tc_62",jze="_imgHenrryIcon_s65tc_71",Uze="_americaIcon_s65tc_79",Wze="_playerPhoto_s65tc_91",Hze="_toniKroos_s65tc_100",Gze="_shapeIcon_s65tc_111",qze="_menuiconsTeams_s65tc_117",Jze="_component31_s65tc_126",Zze="_playerName_s65tc_137",Yze="_icnPlayIcon_s65tc_145",Kze="_goles_s65tc_153",Xze="_americaIcon1_s65tc_160",Qze="_teamsAmerica_s65tc_174",eMe="_topAddPlayer_s65tc_181",tMe="_containerData_s65tc_185",aMe="_shapeIcon1_s65tc_193",oMe="_icnExpand1_s65tc_199",iMe="_icnExpand_s65tc_199",sMe="_playerData_s65tc_219",rMe="_playerInfo_s65tc_230",lMe="_headerTop_s65tc_245",nMe="_playerRow_s65tc_259",dMe="_groupsLeague_s65tc_270",cMe="_text_s65tc_279",pMe="_btnViewFullList_s65tc_287",mMe="_headerTops_s65tc_304",uMe="_btnVideosOptions_s65tc_376",fMe="_position_s65tc_553",hMe="_positionWrapper_s65tc_565",yMe="_imgNecaxaIcon_s65tc_573",gMe="_teamLogo_s65tc_579",bMe="_teamPhoto_s65tc_587",SMe="_name_s65tc_595",_Me="_icnPlayIconType1_s65tc_603",CMe="_verVideosType1_s65tc_610",wMe="_btnVideosOptionsType1_s65tc_616",kMe="_btnVideosOptions1_s65tc_628",EMe="_leftContainer_s65tc_640",VMe="_shapeIconType1_s65tc_649",xMe="_icnExpandType1_s65tc_654",NMe="_arrowExpand_s65tc_664",TMe="_containerInfo_s65tc_672",BMe="_headerTopTeam_s65tc_684",FMe="_containerHeader_s65tc_698",PMe="_goles1_s65tc_707",$Me="_golesType1_s65tc_710",AMe="_golesWrapper_s65tc_715",IMe="_btnViewAll_s65tc_724",zMe="_headerTopsTeams_s65tc_741",MMe="_arrowExpandIcon_s65tc_858",OMe="_rotate_s65tc_863",RMe={tablePosition:Dze,tablePositionWrapper:vze,imgHenrryIcon:jze,americaIcon:Uze,playerPhoto:Wze,toniKroos:Hze,shapeIcon:Gze,menuiconsTeams:qze,component31:Jze,playerName:Zze,icnPlayIcon:Yze,goles:Kze,americaIcon1:Xze,teamsAmerica:Qze,topAddPlayer:eMe,containerData:tMe,shapeIcon1:aMe,icnExpand1:oMe,icnExpand:iMe,playerData:sMe,playerInfo:rMe,headerTop:lMe,playerRow:nMe,groupsLeague:dMe,text:cMe,btnViewFullList:pMe,headerTops:mMe,btnVideosOptions:uMe,position:fMe,positionWrapper:hMe,imgNecaxaIcon:yMe,teamLogo:gMe,teamPhoto:bMe,name:SMe,icnPlayIconType1:_Me,verVideosType1:CMe,btnVideosOptionsType1:wMe,btnVideosOptions1:kMe,leftContainer:EMe,shapeIconType1:VMe,icnExpandType1:xMe,arrowExpand:NMe,containerInfo:TMe,headerTopTeam:BMe,containerHeader:FMe,goles1:PMe,golesType1:$Me,golesWrapper:AMe,btnViewAll:IMe,headerTopsTeams:zMe,arrowExpandIcon:MMe,rotate:OMe},Ym={components:{GSCButton:vl},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(t){this.$emit("play",t)},clickMore(t){this.$emit("more",t)},clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},clickFav(t){this.$emit("fav",t)},clickEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},Q5=()=>{e.useCssVars(t=>({"585cd937":t.fontSizeTopNum,"32d8991a":t.fontFamilyTopNum,"16a25bef":t.fontColorTopNum,"3f30455f":t.opacityColorTopNum,"74b0c809":t.fontColorName,"051a53f4":t.fontFamilyName,"63f9f751":t.fontSizeName,"91c50268":t.backgroundColorHeader,"1c9cb9e7":t.fontFamilyCategory,"1bdd3278":t.fontSizeCategory,"35011b7c":t.fontColorCategory,"0582c83f":t.borderColorCategory}))},e4=Ym.setup;Ym.setup=e4?(t,o)=>(Q5(),e4(t,o)):Q5;const LMe=["src"],DMe=["src"],vMe=["src"],jMe=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),UMe=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),WMe=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),HMe=[jMe,UMe,WMe],GMe=["fill"],qMe=["fill"],JMe=["src"],ZMe=["fill"],YMe=["fill"];function KMe(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.headerTops)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerRow),id:"player-row"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTop)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerPhoto),id:"container-player-photp"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.tablePositionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.tablePosition)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHenrryIcon),alt:"",src:a.data.photo},null,10,LMe),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,DMe)],2),e.createElementVNode("main",{class:e.normalizeClass(t.$style.playerInfo),id:"container-player-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerName)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.toniKroos)},e.toDisplayString(a.data.name),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createVNode(l,{"icon-size":"12px","icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:o[0]||(o[0]=n=>r.clickEventMedia(a.data))},null,8,["icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamsAmerica)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon1),alt:"",src:a.data.logo},null,10,vMe)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.topAddPlayer)},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o[1]||(o[1]=n=>r.emitAddPlayer(a.data)),style:{cursor:"pointer"}},HMe))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:o[2]||(o[2]=n=>r.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,qMe)],10,GMe))],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,JMe)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerInfo)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leftContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(a.data.name_team),3),e.createVNode(l,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:o[3]||(o[3]=n=>r.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnVideosOptions1)},[e.createVNode(l,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:o[4]||(o[4]=n=>r.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.verVideosType1)},e.toDisplayString(a.data.total),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.arrowExpand),onClick:o[5]||(o[5]=n=>r.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,YMe)],10,ZMe))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const XMe={$style:RMe},QMe=it(Ym,[["render",KMe],["__cssModules",XMe]]),eOe="_rotate_1tou5_3",tOe="_positionContainer_1tou5_50",aOe="_positionContainer620_1tou5_57",oOe="_rowwPlayer_1tou5_64",iOe="_rowwPlayer960_1tou5_80",sOe="_rowwPlayer420_1tou5_95",rOe="_rowwPlayer460_1tou5_111",lOe="_containerLeft_1tou5_128",nOe="_containerLeft420_1tou5_136",dOe="_containerLeft620_1tou5_144",cOe="_iconFavoritesType1_1tou5_151",pOe="_iconFavoritesType1320_1tou5_159",mOe="_iconFavorites_1tou5_151",uOe="_iconFavorites420_1tou5_175",fOe="_playerContainer_1tou5_183",hOe="_playerContainer420_1tou5_195",yOe="_playerContainer460_1tou5_207",gOe="_playerContainerType1_1tou5_219",bOe="_playerContainerType1320_1tou5_229",SOe="_playerContainerType1460_1tou5_239",_Oe="_imgPlayerIcon_1tou5_249",COe="_imgPlayerIcon460_1tou5_259",wOe="_imgPlayerIcon420_1tou5_269",kOe="_manchesterUnited_1tou5_279",EOe="_manchesterUnited360_1tou5_290",VOe="_manchesterUnited420_1tou5_301",xOe="_manchesterUnited460_1tou5_312",NOe="_containerRight_1tou5_323",TOe="_containerRight960_1tou5_332",BOe="_containerRight420_1tou5_342",FOe="_numberOfVideos_1tou5_353",POe="_numberOfVideos620_1tou5_359",$Oe="_block02_1tou5_365",AOe="_block02960_1tou5_375",IOe="_block02620_1tou5_384",zOe="_block02420_1tou5_391",MOe="_verVideos_1tou5_399",OOe="_verVideos620_1tou5_405",ROe="_numberPosition_1tou5_408",LOe="_shapeIcon_1tou5_414",DOe="_chivasIcon_1tou5_419",vOe="_imgTeamIcon_1tou5_430",jOe="_teamName_1tou5_435",UOe="_nameTeam_1tou5_441",WOe="_dfC_1tou5_450",HOe="_position_1tou5_50",GOe="_age_1tou5_460",qOe="_manchesterUnitedIcon_1tou5_468",JOe="_country_1tou5_475",ZOe="_playedGames_1tou5_482",YOe="_playedMinutes_1tou5_489",KOe="_block01_1tou5_496",XOe="_leagueName_1tou5_503",QOe="_roleCharacterIcon_1tou5_509",eRe="_btnVideos_1tou5_517",tRe="_containerBtnVideos_1tou5_532",aRe="_containerBtnVideos620_1tou5_542",oRe="_containesOptions_1tou5_551",iRe="_arrowExpandIcon_1tou5_558",sRe="_rowTeam_1tou5_567",rRe="_rowTeam420_1tou5_585",lRe="_rowTeam320_1tou5_603",nRe="_rowTeam460_1tou5_622",dRe="_rowTeam350_1tou5_641",cRe="_containerLeftType1_1tou5_659",pRe="_containerLeftType1680_1tou5_665",mRe="_containerLeftType1320_1tou5_672",uRe="_containerLeftType1350_1tou5_680",fRe="_positionContainertype1_1tou5_687",hRe="_positionContainertype1380_1tou5_695",yRe="_positionContainertype1680_1tou5_703",gRe="_positionContainertype1420_1tou5_711",bRe="_manchesterUnitedType1_1tou5_719",SRe="_manchesterUnitedType1460_1tou5_725",_Re="_manchesterUnitedType1320_1tou5_732",CRe="_containerRightType1_1tou5_739",wRe="_containerRightType1420_1tou5_750",kRe="_containerRightType1320_1tou5_761",ERe="_teamNameWrapperType1_1tou5_772",VRe="_teamNameWrapperType1960_1tou5_779",xRe="_teamNameWrapperType11086_1tou5_786",NRe="_ageWrapperType1_1tou5_793",TRe="_ageWrapperType1680_1tou5_800",BRe="_ageWrapperType11086_1tou5_808",FRe="_ageType1_1tou5_816",PRe="_ageType1960_1tou5_824",$Re="_playedGamesWrapperType1_1tou5_827",ARe="_playedGamesWrapperType1680_1tou5_834",IRe="_playedGamesWrapperType1960_1tou5_837",zRe="_playedGamesType1_1tou5_840",MRe="_playedGamesType1540_1tou5_847",ORe="_playedGamesType1960_1tou5_851",RRe="_playedGamesType11086_1tou5_854",LRe="_playedMinutesWrapperType1_1tou5_857",DRe="_playedMinutesWrapperType11086_1tou5_864",vRe="_playedMinutesType1_1tou5_871",jRe="_playedMinutesType1680_1tou5_878",URe="_block02Type1_1tou5_881",WRe="_block02Type1680_1tou5_889",HRe="_block02Type1320_1tou5_897",GRe="_block02Type1350_1tou5_906",qRe="_leagueNameWrapperType1_1tou5_914",JRe="_leagueNameWrapperType1680_1tou5_922",ZRe="_leagueNameWrapperType1960_1tou5_925",YRe="_leagueNameType1_1tou5_933",KRe="_leagueNameType1960_1tou5_943",XRe="_numberOfVideosType1_1tou5_953",QRe="_numberOfVideosType1680_1tou5_960",eLe="_numberOfVideosType11232_1tou5_967",tLe="_vectorIconType1_1tou5_974",aLe="_block01TitlesType1_1tou5_991",oLe="_numberPositionType1_1tou5_998",iLe="_shapeIconType1_1tou5_1004",sLe="_tijuanaIconType1_1tou5_1010",rLe="_tijuanaWrapperType1_1tou5_1016",lLe="_tijuanaWrapperType1NoBg_1tou5_1027",nLe="_teamNameType1_1tou5_1035",dLe="_roleCharacterIconType1_1tou5_1042",cLe="_verVideosType1_1tou5_1049",pLe="_btnVideosType1_1tou5_1055",mLe="_containerBtnVideosType1_1tou5_1070",uLe="_containesOptionsType1_1tou5_1081",fLe="_arrowExpandIconType1_1tou5_1089",hLe="_templateTablaProductividadType1_1tou5_1095",yLe="_verVideosType11232_1tou5_1107",gLe="_templateTablaProductividadType1320_1tou5_1111",bLe="_verVideosType1680_1tou5_1115",SLe={rotate:eOe,positionContainer:tOe,positionContainer620:aOe,rowwPlayer:oOe,rowwPlayer960:iOe,rowwPlayer420:sOe,rowwPlayer460:rOe,containerLeft:lOe,containerLeft420:nOe,containerLeft620:dOe,iconFavoritesType1:cOe,iconFavoritesType1320:pOe,iconFavorites:mOe,iconFavorites420:uOe,playerContainer:fOe,playerContainer420:hOe,playerContainer460:yOe,playerContainerType1:gOe,playerContainerType1320:bOe,playerContainerType1460:SOe,imgPlayerIcon:_Oe,imgPlayerIcon460:COe,imgPlayerIcon420:wOe,manchesterUnited:kOe,manchesterUnited360:EOe,manchesterUnited420:VOe,manchesterUnited460:xOe,containerRight:NOe,containerRight960:TOe,containerRight420:BOe,numberOfVideos:FOe,numberOfVideos620:POe,block02:$Oe,block02960:AOe,block02620:IOe,block02420:zOe,verVideos:MOe,verVideos620:OOe,numberPosition:ROe,shapeIcon:LOe,chivasIcon:DOe,imgTeamIcon:vOe,teamName:jOe,nameTeam:UOe,dfC:WOe,position:HOe,age:GOe,manchesterUnitedIcon:qOe,country:JOe,playedGames:ZOe,playedMinutes:YOe,block01:KOe,leagueName:XOe,roleCharacterIcon:QOe,btnVideos:eRe,containerBtnVideos:tRe,containerBtnVideos620:aRe,containesOptions:oRe,arrowExpandIcon:iRe,rowTeam:sRe,rowTeam420:rRe,rowTeam320:lRe,rowTeam460:nRe,rowTeam350:dRe,containerLeftType1:cRe,containerLeftType1680:pRe,containerLeftType1320:mRe,containerLeftType1350:uRe,positionContainertype1:fRe,positionContainertype1380:hRe,positionContainertype1680:yRe,positionContainertype1420:gRe,manchesterUnitedType1:bRe,manchesterUnitedType1460:SRe,manchesterUnitedType1320:_Re,containerRightType1:CRe,containerRightType1420:wRe,containerRightType1320:kRe,teamNameWrapperType1:ERe,teamNameWrapperType1960:VRe,teamNameWrapperType11086:xRe,ageWrapperType1:NRe,ageWrapperType1680:TRe,ageWrapperType11086:BRe,ageType1:FRe,ageType1960:PRe,playedGamesWrapperType1:$Re,playedGamesWrapperType1680:ARe,playedGamesWrapperType1960:IRe,playedGamesType1:zRe,playedGamesType1540:MRe,playedGamesType1960:ORe,playedGamesType11086:RRe,playedMinutesWrapperType1:LRe,playedMinutesWrapperType11086:DRe,playedMinutesType1:vRe,playedMinutesType1680:jRe,block02Type1:URe,block02Type1680:WRe,block02Type1320:HRe,block02Type1350:GRe,leagueNameWrapperType1:qRe,leagueNameWrapperType1680:JRe,leagueNameWrapperType1960:ZRe,leagueNameType1:YRe,leagueNameType1960:KRe,numberOfVideosType1:XRe,numberOfVideosType1680:QRe,numberOfVideosType11232:eLe,vectorIconType1:tLe,block01TitlesType1:aLe,numberPositionType1:oLe,shapeIconType1:iLe,tijuanaIconType1:sLe,tijuanaWrapperType1:rLe,tijuanaWrapperType1NoBg:lLe,teamNameType1:nLe,roleCharacterIconType1:dLe,verVideosType1:cLe,btnVideosType1:pLe,containerBtnVideosType1:mLe,containesOptionsType1:uLe,arrowExpandIconType1:fLe,templateTablaProductividadType1:hLe,verVideosType11232:yLe,templateTablaProductividadType1320:gLe,verVideosType1680:bLe},Km={components:{GSCButton:vl},computed:{manchesterUnitedType1Class(){const t=this.elementSize.width;return t<=320?this.$style.manchesterUnitedType1320:t<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerRightType1320:t<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.teamNameWrapperType1960:t<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.ageWrapperType1680:t<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.playedGamesWrapperType1680:t<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const t=this.elementSize.width;return t<=540?this.$style.playedGamesType1540:t<=960?this.$style.playedGamesType1960:t<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const t=this.elementSize.width;return t<=320?this.$style.block02Type1320:t<=350?this.$style.block02Type1350:t<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.leagueNameWrapperType1680:t<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const t=this.elementSize.width;return t<=680?this.$style.numberOfVideosType1680:t<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerLeftType1320:t<=350?this.$style.containerLeftType1350:t<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const t=this.elementSize.width;return t<=380?this.$style.positionContainertype1380:t<=420?this.$style.positionContainertype1420:t<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const t=this.elementSize.width;return t<=320?this.$style.rowTeam320:t<=350?this.$style.rowTeam350:t<=420?this.$style.rowTeam420:t<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const t=this.elementSize.width;return t<=420?this.$style.block02420:t<=620?this.$style.block02620:t<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const t=this.elementSize.width;return t<=420?this.$style.imgPlayerIcon420:t<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const t=this.elementSize.width;return t<=360?this.$style.manchesterUnited360:t<=420?this.$style.manchesterUnited420:t<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const t=this.elementSize.width;return t<=420?this.$style.containerRight420:t<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const t=this.elementSize.width;return t<=320?this.$style.playerContainerType1320:t<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.playerContainer420:t<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeft420:t<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const t=this.elementSize.width;return t<=420?this.$style.rowwPlayer420:t<=460?this.$style.rowwPlayer460:t<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const t=e.ref("myDivRef2"),{elementSize:o}=Wt(t);return{myDivRef2:t,elementSize:o}},props:{type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},emitEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},t4=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},a4=Km.setup;Km.setup=a4?(t,o)=>(t4(),a4(t,o)):t4;const _Le={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},CLe=["src"],wLe=["src"],kLe=["src"],ELe=["src"],VLe=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),xLe=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),NLe=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),TLe=[VLe,xLe,NLe],BLe=["fill"],FLe=["fill"],PLe=["src"],$Le=["src"],ALe=["fill"],ILe=["fill"],zLe=["src"],MLe=["src"],OLe=["src"],RLe=["src"],LLe=["fill"],DLe=["fill"];function vLe(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",_Le,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(r.imgPlayerIconClass),src:a.data.player_photo},null,10,CLe),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedClass)},[i.elementSize.width<=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.data.player_short),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.data.player_name),1)],64))],2),i.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,wLe)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[i.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,kLe),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,ELe)],2)):e.createCommentVNode("",!0),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.leagueName)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.containerBtnVideosClass)},[i.elementSize.width>635?(e.openBlock(),e.createBlock(l,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:o[0]||(o[0]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(l,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:o[1]||(o[1]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),i.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.numberOfVideosClass)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o[2]||(o[2]=n=>r.emitAddPlayer(a.data)),style:{cursor:"pointer"}},TLe))],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:o[3]||(o[3]=n=>r.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,FLe)],10,BLe))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.rowTeamClass),style:e.normalizeStyle(i.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(r.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,PLe)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(a.typeView==0?t.$style.tijuanaWrapperType1:t.$style.tijuanaWrapperType1NoBg)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.tijuanaIconType1),alt:"",src:a.data.team_logo},null,10,$Le)],2),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.teamNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamNameType1)},[e.createTextVNode(" C/"+e.toDisplayString(a.data.frequency)+" ",1),a.data.category!=2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("min")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("segs")],64))],2)],2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(r.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(r.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[i.elementSize.width>679?(e.openBlock(),e.createBlock(l,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:o[4]||(o[4]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(l,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:o[5]||(o[5]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),e.createElementVNode("div",{class:e.normalizeClass(r.numberOfVideosType1Class)},e.toDisplayString(a.data.total),3)],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:o[6]||(o[6]=n=>r.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,ILe)],10,ALe))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(r.imgPlayerIconClass),src:a.data.player_photo},null,10,zLe),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),i.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,MLe)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[i.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,OLe),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,RLe)],2)):e.createCommentVNode("",!0),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.league_name),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(r.containerBtnVideosClass)},[e.createVNode(l,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:i.elementSize.width<=680?"83px":a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:o[7]||(o[7]=n=>r.emitEventMedia(a.data)),style:e.normalizeStyle(i.elementSize.width<=680?i.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:o[8]||(o[8]=n=>r.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,DLe)],10,LLe))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const jLe={$style:SLe},ULe=it(Km,[["render",vLe],["__cssModules",jLe]]),WLe="_containerLeftTitlesPlay_mmyc1_61",HLe="_containerLeftTitles420Play_mmyc1_69",GLe="_containerLeftTitles620Play_mmyc1_77",qLe="_containerLeftTitlesTeamPlay_mmyc1_85",JLe="_containerLeftTitlesTeam1180Play_mmyc1_93",ZLe="_containerLeftTitlesTeam1090Play_mmyc1_101",YLe="_containerLeftTitlesTeam960Play_mmyc1_109",KLe="_containerLeftTitlesTeam860Play_mmyc1_117",XLe="_containerLeftTitlesTeam768Play_mmyc1_125",QLe="_containerLeftTitlesTeam680Play_mmyc1_133",eDe="_containerLeftTitlesTeam620Play_mmyc1_141",tDe="_containerLeftTitlesTeam420Play_mmyc1_149",aDe="_headTitlesPlay_mmyc1_158",oDe="_headTitles960Play_mmyc1_173",iDe="_headTitles420Play_mmyc1_188",sDe="_headTitles540Play_mmyc1_208",rDe="_headTitles460Play_mmyc1_223",lDe="_headTitles620Play_mmyc1_238",nDe="_positionPlay_mmyc1_253",dDe="_position420Play_mmyc1_262",cDe="_playerPlay_mmyc1_265",pDe="_player420Play_mmyc1_276",mDe="_containerRightType1Play_mmyc1_280",uDe="_containerRightTitlesPlay_mmyc1_287",fDe="_containerRightTitles960Play_mmyc1_296",hDe="_block02TitlesPlay_mmyc1_305",yDe="_block02Titles620Play_mmyc1_313",gDe="_mon1ScoutingPlay_mmyc1_317",bDe="_mon1Scouting960Play_mmyc1_327",SDe="_mon1Play_mmyc1_336",_De="_mon1420Play_mmyc1_345",CDe="_mon1620Play_mmyc1_355",wDe="_icnIconPlay_mmyc1_365",kDe="_icnIcon960Play_mmyc1_370",EDe="_icnIcon420Play_mmyc1_376",VDe="_teamTitlePlay_mmyc1_380",xDe="_positionTitlePlay_mmyc1_390",NDe="_ageTitlePlay_mmyc1_398",TDe="_partidosPlay_mmyc1_406",BDe="_playedGamesTitlePlay_mmyc1_410",FDe="_playedMinutesTitlePlay_mmyc1_420",PDe="_block01TitlesPlay_mmyc1_429",$De="_monPlay_mmyc1_436",ADe="_containesOptionsTitlesPlay_mmyc1_445",IDe="_templateTablaProductividadType1Play_mmyc1_451",zDe="_templateTablaProductividadType1400Play_mmyc1_463",MDe="_headTitlesType1Play_mmyc1_477",ODe="_headTitlesType1420Play_mmyc1_490",RDe="_headTitlesType1400Play_mmyc1_506",LDe="_headTitlesType1540Play_mmyc1_522",DDe="_headTitlesType1460Play_mmyc1_536",vDe="_headTitlesType1680Play_mmyc1_550",jDe="_headTitlesType1350Play_mmyc1_563",UDe="_positionType1Play_mmyc1_578",WDe="_positionType1400Play_mmyc1_587",HDe="_teamType1Play_mmyc1_597",GDe="_teamType1400Play_mmyc1_606",qDe="_frecuenciaType1Play_mmyc1_616",JDe="_frecuenciaType1540Play_mmyc1_624",ZDe="_containerLeftTitlesType1Play_mmyc1_633",YDe="_frecuenciaWrapperType1Play_mmyc1_641",KDe="_frecuenciaWrapperType1680Play_mmyc1_650",XDe="_promedioPartidoType1Play_mmyc1_658",QDe="_promedioEstePartidoType1Play_mmyc1_662",eve="_promedioEstePartidoType1960Play_mmyc1_670",tve="_promedioEstePartidoWrapperType1Play_mmyc1_674",ave="_promedioEstePartidoWrapperType11200Play_mmyc1_682",ove="_promedioEstePartidoWrapperType11090Play_mmyc1_691",ive="_promedioEstePartidoWrapperType11086Play_mmyc1_701",sve="_promedioPartidosType1Play_mmyc1_710",rve="_promedioPartidosWrapperType1Play_mmyc1_717",lve="_promedioPartidosWrapperType1960Play_mmyc1_725",nve="_promedioPartidosWrapperType11086Play_mmyc1_728",dve="_partidosJugadosType1Play_mmyc1_731",cve="_partidosJugadosType1960Play_mmyc1_737",pve="_partidosJugadosWrapperType1Play_mmyc1_744",mve="_partidosJugadosWrapperType11200Play_mmyc1_752",uve="_partidosJugadosWrapperType11180Play_mmyc1_760",fve="_partidosJugadosWrapperType11170Play_mmyc1_768",hve="_partidosJugadosWrapperType11140Play_mmyc1_776",yve="_partidosJugadosWrapperType11086Play_mmyc1_784",gve="_partidosJugadosWrapperType1960Play_mmyc1_792",bve="_partidosJugadosWrapperType1880Play_mmyc1_800",Sve="_partidosJugadosWrapperType1860Play_mmyc1_808",_ve="_partidosJugadosWrapperType1830Play_mmyc1_816",Cve="_partidosJugadosWrapperType1790Play_mmyc1_824",wve="_partidosJugadosWrapperType1930Play_mmyc1_832",kve="_partidosJugadosWrapperType1770Play_mmyc1_840",Eve="_block01TitlesType1Play_mmyc1_843",Vve="_monType1Play_mmyc1_851",xve="_monType1960Play_mmyc1_860",Nve="_monType1680Play_mmyc1_870",Tve="_videosType1Play_mmyc1_873",Bve="_videosType1680Play_mmyc1_883",Fve="_videosType1600Play_mmyc1_892",Pve="_videosType1540Play_mmyc1_901",$ve="_videosType1420Play_mmyc1_910",Ave="_videosType1400Play_mmyc1_919",Ive="_containesOptionsTitlesType1Play_mmyc1_931",zve="_containesOptionsTitlesType1768Play_mmyc1_939",Mve="_containesOptionsTitlesType1730Play_mmyc1_946",Ove="_containesOptionsTitlesType1690Play_mmyc1_953",Rve="_icnIconType1Play_mmyc1_960",Lve="_icnIconType1420Play_mmyc1_966",Dve="_icnIconType1400Play_mmyc1_973",vve="_block02TitlesType1Play_mmyc1_977",jve="_block02TitlesType1680Play_mmyc1_984",Uve="_block02TitlesType1350Play_mmyc1_991",Wve="_containerRightTitlesType1Play_mmyc1_998",Hve="_containerRightTitlesType1420Play_mmyc1_1007",Gve={containerLeftTitlesPlay:WLe,containerLeftTitles420Play:HLe,containerLeftTitles620Play:GLe,containerLeftTitlesTeamPlay:qLe,containerLeftTitlesTeam1180Play:JLe,containerLeftTitlesTeam1090Play:ZLe,containerLeftTitlesTeam960Play:YLe,containerLeftTitlesTeam860Play:KLe,containerLeftTitlesTeam768Play:XLe,containerLeftTitlesTeam680Play:QLe,containerLeftTitlesTeam620Play:eDe,containerLeftTitlesTeam420Play:tDe,headTitlesPlay:aDe,headTitles960Play:oDe,headTitles420Play:iDe,headTitles540Play:sDe,headTitles460Play:rDe,headTitles620Play:lDe,positionPlay:nDe,position420Play:dDe,playerPlay:cDe,player420Play:pDe,containerRightType1Play:mDe,containerRightTitlesPlay:uDe,containerRightTitles960Play:fDe,block02TitlesPlay:hDe,block02Titles620Play:yDe,mon1ScoutingPlay:gDe,mon1Scouting960Play:bDe,mon1Play:SDe,mon1420Play:_De,mon1620Play:CDe,icnIconPlay:wDe,icnIcon960Play:kDe,icnIcon420Play:EDe,teamTitlePlay:VDe,positionTitlePlay:xDe,ageTitlePlay:NDe,partidosPlay:TDe,playedGamesTitlePlay:BDe,playedMinutesTitlePlay:FDe,block01TitlesPlay:PDe,monPlay:$De,containesOptionsTitlesPlay:ADe,templateTablaProductividadType1Play:IDe,templateTablaProductividadType1400Play:zDe,headTitlesType1Play:MDe,headTitlesType1420Play:ODe,headTitlesType1400Play:RDe,headTitlesType1540Play:LDe,headTitlesType1460Play:DDe,headTitlesType1680Play:vDe,headTitlesType1350Play:jDe,positionType1Play:UDe,positionType1400Play:WDe,teamType1Play:HDe,teamType1400Play:GDe,frecuenciaType1Play:qDe,frecuenciaType1540Play:JDe,containerLeftTitlesType1Play:ZDe,frecuenciaWrapperType1Play:YDe,frecuenciaWrapperType1680Play:KDe,promedioPartidoType1Play:XDe,promedioEstePartidoType1Play:QDe,promedioEstePartidoType1960Play:eve,promedioEstePartidoWrapperType1Play:tve,promedioEstePartidoWrapperType11200Play:ave,promedioEstePartidoWrapperType11090Play:ove,promedioEstePartidoWrapperType11086Play:ive,promedioPartidosType1Play:sve,promedioPartidosWrapperType1Play:rve,promedioPartidosWrapperType1960Play:lve,promedioPartidosWrapperType11086Play:nve,partidosJugadosType1Play:dve,partidosJugadosType1960Play:cve,partidosJugadosWrapperType1Play:pve,partidosJugadosWrapperType11200Play:mve,partidosJugadosWrapperType11180Play:uve,partidosJugadosWrapperType11170Play:fve,partidosJugadosWrapperType11140Play:hve,partidosJugadosWrapperType11086Play:yve,partidosJugadosWrapperType1960Play:gve,partidosJugadosWrapperType1880Play:bve,partidosJugadosWrapperType1860Play:Sve,partidosJugadosWrapperType1830Play:_ve,partidosJugadosWrapperType1790Play:Cve,partidosJugadosWrapperType1930Play:wve,partidosJugadosWrapperType1770Play:kve,block01TitlesType1Play:Eve,monType1Play:Vve,monType1960Play:xve,monType1680Play:Nve,videosType1Play:Tve,videosType1680Play:Bve,videosType1600Play:Fve,videosType1540Play:Pve,videosType1420Play:$ve,videosType1400Play:Ave,containesOptionsTitlesType1Play:Ive,containesOptionsTitlesType1768Play:zve,containesOptionsTitlesType1730Play:Mve,containesOptionsTitlesType1690Play:Ove,icnIconType1Play:Rve,icnIconType1420Play:Lve,icnIconType1400Play:Dve,block02TitlesType1Play:vve,block02TitlesType1680Play:jve,block02TitlesType1350Play:Uve,containerRightTitlesType1Play:Wve,containerRightTitlesType1420Play:Hve},Xm={components:{},computed:{icnIconType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.icnIconType1400Play:t<=420?this.$style.icnIconType1420Play:this.$style.icnIconType1Play},videosType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.videosType1400Play:t<=420?this.$style.videosType1420Play:t<=540?this.$style.videosType1540Play:t<=600?this.$style.videosType1600Play:t<=680?this.$style.videosType1680Play:this.$style.videosType1Play},monType1ClassPlay(){const t=this.elementSize.width;return t<=680?this.$style.monType1680Play:t<=960?this.$style.monType1960Play:this.$style.monType1Play},block02TitlesType1ClassPlay(){const t=this.elementSize.width;return t<=350?this.$style.block02TitlesType1350Play:t<=680?this.$style.block02TitlesType1680Play:this.$style.block02TitlesType1Play},containesOptionsTitlesType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.containesOptionsTitlesType1400Play:t<=690?this.$style.containesOptionsTitlesType1690Play:t<=730?this.$style.containesOptionsTitlesType1730Play:t<=768?this.$style.containesOptionsTitlesType1768Play:this.$style.containesOptionsTitlesType1Play},partidosJugadosWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=770?this.$style.promedioPartidosWrapperType1770Play:t<=790?this.$style.partidosJugadosWrapperType1790Play:t<=830?this.$style.partidosJugadosWrapperType1830Play:t<=860?this.$style.partidosJugadosWrapperType1860Play:t<=880?this.$style.partidosJugadosWrapperType1880Play:t<=930?this.$style.partidosJugadosWrapperType1930Play:t<=960?this.$style.partidosJugadosWrapperType1960Play:t<=1086?this.$style.partidosJugadosWrapperType11086Play:t<=1140?this.$style.partidosJugadosWrapperType11140Play:t<=1170?this.$style.partidosJugadosWrapperType11170Play:t<=1180?this.$style.partidosJugadosWrapperType11180Play:t<=1200?this.$style.partidosJugadosWrapperType11200Play:this.$style.partidosJugadosWrapperType1Play},promedioPartidosWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=960?this.$style.promedioPartidosWrapperType1960Play:t<=1086?this.$style.promedioPartidosWrapperType11086Play:this.$style.promedioPartidosWrapperType1Play},partidosJugadosType1ClassPlay(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960Play:this.$style.partidosJugadosType1Play},templateTablaProductividadType1ClassPlay(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400Play:this.$style.templateTablaProductividadType1Play},promedioEstePartidoType1ClassPlay(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960Play:this.$style.promedioEstePartidoType1Play},headTitlesType1ClassPlay(){const t=this.elementSize.width;return t<=350?this.$style.headTitlesType1350Play:t<=400?this.$style.headTitlesType1400Play:t<=420?this.$style.headTitlesType1420Play:t<=460?this.$style.headTitlesType1460Play:t<=540?this.$style.headTitlesType1540Play:t<=680?this.$style.headTitlesType1680Play:this.$style.headTitlesType1Play},headTitlesClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.headTitles420Play:t<=460?this.$style.headTitles460Play:t<=540?this.$style.headTitles540Play:t<=620?this.$style.headTitles620Play:t<=960?this.$style.headTitles960Play:this.$style.headTitlesPlay},containerLeftTitlesClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitles420Play:t<=620?this.$style.containerLeftTitles620Play:this.$style.containerLeftTitlesPlay},containerLeftTitlesClassTeamPlay(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitlesTeam420Play:t<=620?this.$style.containerLeftTitlesTeam620Play:t<=680?this.$style.containerLeftTitlesTeam680Play:t<=768?this.$style.containerLeftTitlesTeam768Play:t<=860?this.$style.containerLeftTitlesTeam860Play:t<=960?this.$style.containerLeftTitlesTeam960Play:t<=1090?this.$style.containerLeftTitlesTeam1090Play:t<=1180?this.$style.containerLeftTitlesTeam1180Play:this.$style.containerLeftTitlesTeamPlay},icnIconClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.icnIcon420Play:t<=960?this.$style.icnIcon960Play:this.$style.icnIconPlay},mon1ClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.mon1420Play:t<=620?this.$style.mon1620Play:this.$style.mon1Play},mon1ScoutingClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.mon1420Play:t<=960?this.$style.mon1Scouting960Play:this.$style.mon1ScoutingPlay},promedioEstePartidoWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=1086?this.$style.promedioEstePartidoWrapperType11086Play:t<=1090?this.$style.promedioEstePartidoWrapperType11090Play:t<=1200?this.$style.promedioEstePartidoWrapperType11200Play:this.$style.promedioEstePartidoWrapperType1Play},frecuenciaWrapperType1ClassPlay(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680Play:this.$style.frecuenciaWrapperType1Play},frecuenciaType1ClassPlay(){return this.elementSize.width<=540?this.$style.frecuenciaType1540Play:this.$style.frecuenciaType1Play},positionType1ClassPlay(){return this.elementSize.width<=400?this.$style.positionType1400Play:this.$style.positionType1Play},containerRightType1ClassPlay(){return this.elementSize.width<=420?this.$style.containerRightType1420Play:this.$style.containerRightType1Play},containerRightTitlesType1ClassPlay(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420Play:this.$style.containerRightTitlesType1Play},teamType1ClassPlay(){return this.elementSize.width<=400?this.$style.teamType1400Play:this.$style.teamType1Play},playerClassPlay(){return this.elementSize.width<=420?this.$style.player420Play:this.$style.playerPlay},positionClassPlay(){return this.elementSize.width<=420?this.$style.position420Play:this.$style.positionPlay},containerRightTitlesClassPlay(){return this.elementSize.width<=960?this.$style.containerRightTitles960Play:this.$style.containerRightTitlesPlay},block02TitlesClassPlay(){return this.elementSize.width<=620?this.$style.block02Titles960Play:this.$style.block02TitlesPlay}},setup(){const t=e.ref("myDivRef"),{elementSize:o}=Wt(t);return{myDivRef:t,elementSize:o}},props:{type:{type:Number,default:0},isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"total"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},o4=()=>{e.useCssVars(t=>({"8d117076":t.background,"39ae673e":t.height,"5bb96572":t.fontSize,"71676add":t.fontColor,"8040e1ac":t.fontFamily,"61b44ebb":t.heightTeam}))},i4=Xm.setup;Xm.setup=i4?(t,o)=>(o4(),i4(t,o)):o4;const qve={ref:"myDivRef"},Jve=e.createElementVNode("br",null,null,-1),Zve=e.createElementVNode("br",null,null,-1),Yve=e.createElementVNode("br",null,null,-1);function Kve(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",qve,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.playerClassPlay)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.monPlay)},[a.typeStats==="total"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Total")],64)):e.createCommentVNode("",!0),a.typeStats==="average"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("PPP")],64)):e.createCommentVNode("",!0),a.typeStats==="every90"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Cada "),Jve,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.mon1ClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.templateTablaProductividadType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.headTitlesType1ClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassTeamPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionType1ClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.teamType1ClassPlay)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.frecuenciaWrapperType1ClassPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.frecuenciaType1ClassPlay)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.promedioEstePartidoWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.promedioEstePartidoType1ClassPlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},"Promedio partido",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},"este Torneo",2)],2)],2)):e.createCommentVNode("",!0),i.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.promedioPartidosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Promedio partido"),Zve,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),i.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.partidosJugadosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Partidos "),Yve,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containesOptionsTitlesType1ClassPlay)},[i.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.monType1ClassPlay)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.videosType1ClassPlay)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.playerClassPlay)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Liga",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.mon1ScoutingClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const Xve={$style:Gve},Qve=it(Xm,[["render",Kve],["__cssModules",Xve]]),eje="_equipo_1lpaa_38",tje="_atlasSeleccin_1lpaa_43",aje="_equipoAtlasSeleccinMexi_1lpaa_47",oje="_aos_1lpaa_51",ije="_span12_1lpaa_55",sje="_nacionalidadMex_1lpaa_58",rje="_manchesterUnited_1lpaa_61",lje="_manchesterUnited12_1lpaa_68",nje="_containerInfo_1lpaa_78",dje="_verPerfil12_1lpaa_87",cje="_btnProfile_1lpaa_96",pje="_containerButton_1lpaa_112",mje="_containerButton2_1lpaa_119",uje="_dataContainer_1lpaa_125",fje="_expandedInfoPlayer_1lpaa_135",hje="_containerDataBg_1lpaa_225",yje="_containerDataSm_1lpaa_236",gje="_span_1lpaa_55",bje="_manchesterUnited14_1lpaa_247",Sje="_filter_1lpaa_252",_je="_verPerfil_1lpaa_87",Cje="_manchesterUnited8_1lpaa_273",wje="_manchesterUnitedParent1_1lpaa_279",kje="_manchesterUnited1_1lpaa_68",Eje="_manchesterUnitedParent_1lpaa_279",Vje="_frameDiv_1lpaa_301",xje="_infoExpanded_1lpaa_309",Nje="_countryFlag_1lpaa_462",Tje={equipo:eje,atlasSeleccin:tje,equipoAtlasSeleccinMexi:aje,aos:oje,span12:ije,nacionalidadMex:sje,manchesterUnited:rje,manchesterUnited12:lje,containerInfo:nje,verPerfil12:dje,btnProfile:cje,containerButton:pje,containerButton2:mje,dataContainer:uje,expandedInfoPlayer:fje,containerDataBg:hje,containerDataSm:yje,span:gje,manchesterUnited14:bje,filter:Sje,verPerfil:_je,manchesterUnited8:Cje,manchesterUnitedParent1:wje,manchesterUnited1:kje,manchesterUnitedParent:Eje,frameDiv:Vje,infoExpanded:xje,countryFlag:Nje},Qm={components:{GSCButton:W2},props:{isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"totals"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const t=e.ref("myDivRef"),{elementSize:o}=Wt(t);return{myDivRef:t,elementSize:o}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},s4=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},r4=Qm.setup;Qm.setup=r4?(t,o)=>(s4(),r4(t,o)):s4;const jt=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),Bje={ref:"myDivRef"},Fje=["src"],Pje=jt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),$je=jt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Aje=jt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Ije=jt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),zje=jt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Mje=jt(()=>e.createElementVNode("span",null,"xG: ",-1)),Oje=jt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Rje=jt(()=>e.createElementVNode("span",null,"xG: ",-1)),Lje=jt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Dje=jt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),vje=jt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),jje=jt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Uje=jt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Wje=jt(()=>e.createElementVNode("span",null,"xG: ",-1));function Hje(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Bje,[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,Fje)],2)],2)],2)):e.createCommentVNode("",!0),a.viewPosition?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Posición: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.isFemale?a.data.position.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):a.data.position),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited12)},[a.viewGames?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"partidos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.games),3)],2)):e.createCommentVNode("",!0),a.viewMin?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Minutos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.min),3)],2)):e.createCommentVNode("",!0),a.viewGoals?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},e.toDisplayString(a.data.category)+": ",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.goals),3)],2)):e.createCommentVNode("",!0),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Efectividad de pases: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(i.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(l,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:o[0]||(o[0]=n=>r.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(l,{key:1,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/add-list-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Agregar","font-size":"10px",onClick:o[1]||(o[1]=n=>r.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(l,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Ver grafica","font-size":"10px",onClick:o[2]||(o[2]=n=>r.showGraph(a.data))},null,8,["style"])):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.infoExpanded)},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerDataBg,a.additionalClass])},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Pje,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)},[$je,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)},[Aje,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)},[Ije,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)},[zje,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)},[Mje,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)},[Oje,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)},[Rje,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)},[Lje,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)},[Dje,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)},[vje,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)},[jje,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)},[Uje,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)},[Wje,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2)],2)],2),a.viewButton?(e.openBlock(),e.createBlock(l,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&i.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:o[3]||(o[3]=n=>r.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const e1={components:{GSCCarousel:Y2,GSCLeaders:QMe,GSCRowTable:ULe,GSCTableHeader:Qve,GSCExpandedInfo:it(Qm,[["render",Hje],["__cssModules",{$style:Tje}],["__scopeId","data-v-83d82c67"]])},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:o}=Wt(t);return{myDivRef:t,elementSize:o}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,o){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(o)||this.sonConjuntosDistintos(t.setNationalitiesIds,o.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,o){t.length>0&&JSON.stringify(t)!==JSON.stringify(o)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},o={},a=[],i=[],s=[];return this.formatFilterStats.map(r=>{t[r.team_id]?(t[r.team_id].total+=r.total,t[r.team_id].uniqueGames.has(r.game_id)||t[r.team_id].uniqueGames.add(r.game_id)):this.teamInfo[r.team_id]&&(t[r.team_id]=this.initializeTeamData(r,this.teamInfo[r.team_id])),r.player_id!==0&&r.player_id!==62117&&(o[r.player_id]?(o[r.player_id].total+=r.total,o[r.player_id].uniqueGames.has(r.game_id)||o[r.player_id].uniqueGames.add(r.game_id)):o[r.player_id]=this.initializePlayerData(r,this.playersInfo[r.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,o),a=this.processTeamData(t),i=this.processPlayerData(o),this.filterTeam!==0&&!this.isTeam&&(s=i.filter(r=>r.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:i)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,o){return t.total>o.total?-1:t.total<o.total?1:t.minutes<o.minutes?-1:t.minutes>o.minutes?1:0},sonConjuntosDistintos(t,o){const a=Array.from(t),i=Array.from(o);if(a.length!==i.length)return!0;for(let s=0;s<a.length;s++)if(!o.has(a[s]))return!0;return!1},getnameshort(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,o){return t.total<o.total?-1:t.total>o.total?1:t.name<o.name?-1:t.name>o.name?1:0},sortAndSlice(t,o){return t.sort((a,i)=>(a.name<i.name?1:-1)&&(a.total<i.total?1:-1)).slice(0,o)},getCategoryName(t){let o="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(o=this.categories[a].name);return o},translateTopCategories(t){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[t]||[]},getCoordinatePointPerCategory(t){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[t]||0},emitEventMedia(t,o,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,r=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,r=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const c=1,d=2,u=3,p=this.isTeam?u:d,y=t.player_id;let m=[],h=this.isTeam?t.id:this.filterTeam;y?this.isTeam?h=y:(m=[y],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?h=t.id:(m=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:p,gameIds:null,playerIds:m,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:h||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:r,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",f)},emitEventMediaFullTable(t,o,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,r=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,r=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const c=1,d=2,u=3,p=this.isTeam?u:d;let y=[],m=this.isTeam?t.id:this.filterTeam;this.isTeam?m=t.id:(y=[t.id],n=n.filter(f=>!f.toString().includes("_r")));const h={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:p,gameIds:null,playerIds:y,goalkeeperIds:[],categoryIds:n,teamId:m||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:r,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",h)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,o){this.$emit("clickprofile",{id:t,teamId:o,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let o=[],a={},i={};this.arePlaysEmpty=!1;const s=await We.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){o=s.data.data.map(l=>this.formatStatsData(l)),s.data.teams.forEach(l=>{a[l[0]]={},a[l[0]].id=l[0],a[l[0]].name=l[1],a[l[0]].abrv=l[2],a[l[0]].img=l[3],a[l[0]].effectiveness=l[4],a[l[0]].games_played=l[5],a[l[0]].games_played_lastseason=l[6],a[l[0]].positiontable=l[7],a[l[0]].goals=l[8],a[l[0]].goalsrecived=l[9],a[l[0]].xg=l[10],a[l[0]].frecuency=l[11],a[l[0]].game_avg=l[12],a[l[0]].game_avg_last_season=l[13]});const r=new Set;s.data.players.forEach(l=>{const n=this.getObjectPlayer(l);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,d=n.teamName[0].acronym,u=a[n.teamName[0].team_id].name,p=n.teamName[0].team_id,y=this.positions[n.numberPositionId-1].fullname,m=this.positions[n.numberPositionId-1].name,h=n.countryId[0].nationality_id,f=n.effectiveness,g=n.min,b=n.games,S=n.date;n.arrayNationalities.forEach(F=>{r.add(F.numberId)}),i[l[0]]={id:l[0],name:l[1],img:l[2],age:c,team:d,teamname:u,teamid:p,position:y,positionfull:m,effectiveness:f,country:h,games_played:b,minutes_played:g,nationalityId:g,date:S,nationality:l[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=r,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=i,this.formatStats=o,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(o){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(o)}}},filterRecords(t){if(!this.formatStats.length)return[];const o={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!o.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),o.setNationalitiesIds=!0),!Object.values(o).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),i=new Set(t.setPositionsIds),[s,r]=t.arrayAgeRange||[0,100],l=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(this.typeTable!=1&&!c||o.playingAs&&!t.playingAs.includes(n.playing_as)||o.matchResult&&!t.matchResult.includes(n.match_result)||o.sections&&!t.sections.includes(n.section)||o.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino)))return!1;if(this.typeTable!=1){if(o.setNationalitiesIds&&!c.arrayNationalitiesIds.some(d=>a.has(d))||o.setPositionsIds&&!i.has(c.numberPositionId))return!1;if(o.arrayAgeRange){const d=c.numberAge;if(d<s||d>r)return!1}if(o.setYear&&c.date<l||o.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))return!1}return!0})},createFilterConfig(t){const o={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return o.hasFilters=this.checkActiveFilters(o),Object.freeze(o)},checkActiveFilters(t){const{basic:o,player:a}=t;return o.playingAs.size>0||o.matchResult.size>0||o.sections.size>0||o.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,o){return t.filter(a=>!(!this.passesBasicFilters(a,o.basic)||o.player&&!this.passesPlayerFilters(a,o.player)))},passesBasicFilters(t,o){const{playingAs:a,matchResult:i,sections:s,zone:r,typeZone:l}=o;if(a.size&&!a.has(t.playing_as)||i.size&&!i.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(r.size){const n=l===1?t.origen:t.destino;if(!r.has(n))return!1}return!0},passesPlayerFilters(t,o){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(o.nationalTeams.enabled){if(o.nationalTeams.players.size&&!o.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(r=>o.nationalities.has(r)))return!1;const{ageRange:i,yearLimit:s}=o;if(a.numberAge<i[0]||a.numberAge>i[1]||a.date<s||!o.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const o={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,i)=>{o[a]=t[i]}),o},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:La[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},formatArrayPaginate(t){const o=Math.ceil(t.length/this.numRows);return Array.from({length:o},(a,i)=>{const s=i*this.numRows,r=s+this.numRows;return t.slice(s,r)})},initializeTeamData(t,o){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:o.id,name:o.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:o.effectiveness,frecuency:o.frecuency,game_avg:o.game_avg,game_avg_last_season:o.game_avg_last_season,games_played:o.games_played,games_played_lastseason:o.games_played_lastseason,positiontable:o.positiontable,goals:o.goals,goalsrecived:o.goalsrecived,xg:o.xg};return this.typeStats==="every90"&&(a.minutes=o.minutes||0),a},initializePlayerData(t,o){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return o?Object.assign(a,{name:o.name,name_short:this.getnameshort(o.name),img:o.img,id:o.id,age:o.age,team:o.team,teamname:o.teamname,teamid:o.teamid,position:o.position,positionId:o.positionId,positionfull:o.positionfull,country:o.country,effectiveness:o.effectiveness,minutes:o.minutes_played,games:o.games_played,date:o.date,nationality:o.nationality,player_country_flag:o.player_country_flag,categoryName:this.categoryName,goals:o.goals||0,goalsrecived:o.goalsrecived||0,xg:o.xg||0,positiontable:o.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,o){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(o).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(o).forEach(a=>{o[a].minutes<90&&delete o[a]})},processTeamData(t){return Object.values(t).sort((o,a)=>a.total-o.total).slice(0,60).map((o,a)=>{const i=a+1;return{...o,top:i<10?`0${i}`:`${i}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((o,a)=>{const i=a+1;return{...o,top:i<10?`0${i}`:`${i}`}})},HandlerAddplayer(t){this.$emit("add-player",t)},HandlerShowGraph(t){this.$emit("show-graph",t)}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},l4=()=>{e.useCssVars(t=>({"075c6ad7":t.borderRadius,"0f765a3e":t.borderWidth,"11a45704":t.borderColor}))},n4=e1.setup;e1.setup=n4?(t,o)=>(l4(),n4(t,o)):l4;const An=t=>(e.pushScopeId("data-v-c8b0ccee"),t=t(),e.popScopeId(),t),Gje={ref:"myDivRef"},qje={class:"text"},Jje={class:"groupsLeague"},Zje={class:"row-table-carrousel"},Yje={key:1,class:"container-no-search-result"},Kje={key:0,class:"overlay-loading-top"},Xje=An(()=>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)),Qje=An(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),eUe=[Xje,Qje],tUe=An(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),aUe=An(()=>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 oUe(t,o,a,i,s,r){const l=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),d=e.resolveComponent("GSCCarousel"),u=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Gje,[r.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:o[0]||(o[0]=p=>r.clickMore(a.category))},[e.createElementVNode("div",qje,[e.createElementVNode("div",Jje,e.toDisplayString(a.categoryName)+" → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[r.displayData.length>0?(e.openBlock(),e.createBlock(d,{key:0,items:r.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:r.changeCarrousel},{default:e.withCtx(({item:p})=>[e.createElementVNode("div",Zje,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(y,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m},[y.top==="01"?(e.openBlock(),e.createBlock(l,{key:0,onAddPlayer:r.HandlerAddplayer,onMediadata:o[1]||(o[1]=h=>r.emitEventMedia(h,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==y.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:y.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",name:y.name,player_short:y.name_short,player_id:y.id,categoryId:a.category,total:y.total}:{top:"01",logo:y.img,total:y.total,name_team:y.name,player_id:y.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?i.elementSize.width>360?"210px":"130px":i.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:r.clickexpand,onMore:r.morestats},null,8,["onAddPlayer","type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==y.id&&t.expand,onAddPlayer:r.HandlerAddplayer,onMediadata:o[2]||(o[2]=h=>r.emitEventMedia(h,a.category,a.categoryName)),data:a.typeTable==0?{position:y.top,player_name:y.name,player_short:y.name_short,player_photo:y.img,total:y.total,id:y.id,player_age:y.age,team_abrev:y.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",player_position:y.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+y.country+".jpg",player_games:y.minutes,player_min:y.games,league_name:" Liga MX "}:{position:y.top,team_logo:y.img,team_abrev:y.name,frequency:y.frecuency,promthistournament:y.game_avg,promlasttournament:y.game_avg_last_season,teams_games:"-",category:a.category,total:y.total,id:y.id},height:"71px",background:m%2===0?a.backgroundEven:a.backgroundOdd,onExpand:r.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==y.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":y.positionId!==1,onAddPlayer:r.HandlerAddplayer,onShowGraph:r.HandlerShowGraph,data:a.typeTable==0?{teams:y.teamname,age:y.age,dataofbirth:y.date,nationality:y.nationality,countryFlag:y.player_country_flag,position:y.position,games:y.games,min:y.minutes,goals:y.originalTotal||y.total,effectiveness:y.effectiveness,category:a.categoryName,id:y.id}:{position:y.position,goals:y.goals,goals_received:y.goalsrecived,games_played:y.games_played,category:a.categoryName,effectiveness:y.effectiveness,xg:y.xg,total:y.originalTotal||y.total,attendance:"-",id:y.id},onViewprofile:h=>r.viewprofile(h,y.teamid),background:m%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",Yje,[t.isloading?(e.openBlock(),e.createElementBlock("div",Kje,eUe)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[tUe,aUe],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(u,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.displayData,(p,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==m.id&&t.expand,onMediadata:o[3]||(o[3]=f=>r.emitEventMediaFullTable(f,a.category,a.categoryName)),onAddPlayer:r.HandlerAddplayer,data:a.typeTable==0?{position:m.top,player_name:m.name,player_short:m.name_short,player_photo:m.img,total:m.total,id:m.id,player_age:m.age,team_abrev:m.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+m.teamid+".png",player_position:m.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+m.country+".jpg",player_games:m.games,player_min:m.minutes,league_name:" Liga MX "}:{position:m.positiontable,team_logo:m.img,team_abrev:m.name,frequency:m.frecuency,promthistournament:m.game_avg,promlasttournament:m.game_avg_last_season,category:a.category,team_games:m.games_played,total:m.total,id:m.id},height:"71px",background:((y+1)*5+h)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==m.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":m.positionId!==1,onAddPlayer:r.HandlerAddplayer,onShowGraph:r.HandlerShowGraph,data:a.typeTable==0?{teams:m.teamname,age:m.age,dataofbirth:m.date,nationality:m.nationality,countryFlag:m.player_country_flag,position:m.position,positionfull:m.positionfull,games:m.games,min:m.minutes,goals:m.originalTotal||m.total,effectiveness:m.effectiveness,category:r.getCategoryName(a.category),id:m.id}:{position:m.positiontable,goals:m.goals,goals_received:m.goalsrecived,games_played:m.games_played,category:a.categoryName,effectiveness:m.effectiveness,xg:m.xg,total:m.originalTotal||m.total,category:r.getCategoryName(a.category),attendance:"-",id:m.id},onViewprofile:f=>r.viewprofile(f,m.teamid),background:h%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const iUe=it(e1,[["render",oUe],["__scopeId","data-v-c8b0ccee"]]),sUe="_filtersContainer_b9wc6_1",rUe="_filtersContainer1232_b9wc6_1",lUe="_closeFiltersPc_b9wc6_1",nUe="_textleyemdmultipleleagues_b9wc6_1",dUe="_textleyemdmultipleleagues380_b9wc6_1",cUe="_filtersContainer760_b9wc6_1",pUe="_filtersContainer460_b9wc6_1",mUe="_containerSectionPlay_b9wc6_1",uUe="_containerSectionPlay1232_b9wc6_1",fUe="_containerSectionPlay960_b9wc6_1",hUe="_containerSectionPlay320_b9wc6_1",yUe="_containerSectionPlay350_b9wc6_1",gUe="_containerSection_b9wc6_1",bUe="_containerSection1232_b9wc6_1",SUe="_containerSection960_b9wc6_1",_Ue="_containerSection320_b9wc6_1",CUe="_containerSection350_b9wc6_1",wUe="_templateLosMejores_b9wc6_1",kUe="_templateLosMejores1232_b9wc6_1",EUe="_templateLosMejores960_b9wc6_1",VUe="_templateLosMejores420_b9wc6_1",xUe="_templateLosMejores320_b9wc6_1",NUe="_templateLosMejores540_b9wc6_1",TUe="_templateLosMejores350_b9wc6_1",BUe="_topFiltersParent_b9wc6_1",FUe="_topFiltersParent1232_b9wc6_1",PUe="_topFiltersParent960_b9wc6_1",$Ue="_topFiltersParent460_b9wc6_1",AUe="_topFiltersParent420_b9wc6_1",IUe="_containerTheBest_b9wc6_1",zUe="_containerTheBest1232_b9wc6_1",MUe="_containerTheBest960_b9wc6_1",OUe="_containerTheBest320_b9wc6_1",RUe="_titleSection_b9wc6_1",LUe="_titleSection540_b9wc6_1",DUe="_containerTables_b9wc6_1",vUe="_containerTables960_b9wc6_1",jUe="_containerTables760_b9wc6_1",UUe="_containerTables320_b9wc6_1",WUe="_toniKroosWrapper_b9wc6_1",HUe="_toniKroosWrapper1080_b9wc6_1",GUe="_toniKroosWrapper975_b9wc6_1",qUe="_toniKroosWrapper760_b9wc6_1",JUe="_toniKroosWrapper420_b9wc6_1",ZUe="_toniKroosWrapper320_b9wc6_1",YUe="_frameChild_b9wc6_1",KUe="_filtros_b9wc6_1",XUe="_groupParent_b9wc6_1",QUe="_shapeIcon_b9wc6_1",eWe="_btnFilters_b9wc6_1",tWe="_btnFiltersPC_b9wc6_1",aWe="_quitarFiltros_b9wc6_1",oWe="_quitarFiltros730_b9wc6_1",iWe="_quitarFiltros480_b9wc6_1",sWe="_quitarFiltros380_b9wc6_1",rWe="_btnCloseFilters_b9wc6_1",lWe="_mejoresJugadores_b9wc6_1",nWe="_mejoresJugadores730_b9wc6_1",dWe="_mejoresJugadores480_b9wc6_1",cWe="_mejoresJugadoresSM_b9wc6_1",pWe="_toniKroos_b9wc6_1",mWe="_teamBar_b9wc6_1",uWe="_menuSection_b9wc6_1",fWe="_menuSection960_b9wc6_1",hWe="_menuSectionPlay_b9wc6_1",yWe="_menuSectionPlay960_b9wc6_1",gWe="_containerMenu_b9wc6_1",bWe="_containerMenu760_b9wc6_1",SWe="_containerFilters_b9wc6_1",_We="_teamBarParent_b9wc6_1",CWe="_topFilters_b9wc6_1",wWe="_topFilters1232_b9wc6_1",kWe="_topFilters420_b9wc6_1",EWe="_topFilters460_b9wc6_1",VWe="_losMejores_b9wc6_1",xWe="_losMejores380_b9wc6_1",NWe="_losMejores530_b9wc6_1",TWe="_losMejores730_b9wc6_1",BWe="_menuSectionHeader_b9wc6_1",FWe="_menuSectionHeader1232_b9wc6_1",PWe="_menuSectionHeader960_b9wc6_1",$We="_menuSectionHeader730_b9wc6_1",AWe="_dropdown_b9wc6_1",IWe="_dropdown730_b9wc6_1",zWe="_dropdown1_b9wc6_1",MWe="_dropdown1730_b9wc6_1",OWe="_dropdownParent_b9wc6_1",RWe="_dropdownParent730_b9wc6_1",LWe="_menuSectionParentHeader_b9wc6_1",DWe="_menuSectionParentHeader1232_b9wc6_1",vWe="_menuSectionParentHeader960_b9wc6_1",jWe="_menuSectionParentHeader730_b9wc6_1",UWe="_menuSectionParentHeader430_b9wc6_1",WWe="_descubreVideos_b9wc6_1",HWe="_descubreVideos1232_b9wc6_1",GWe="_descubreVideos960_b9wc6_1",qWe="_allCategories_b9wc6_1",JWe="_containerScountingBtn_b9wc6_3",ZWe="_btnDeleteAplica_b9wc6_13",YWe="_SearchBtnBar_b9wc6_33",KWe="_btnLeyendTxt_b9wc6_52",XWe="_BtnSearchScounting_b9wc6_61",QWe="_containerPredefined_b9wc6_85",eHe="_containerPredefinedScounting_b9wc6_92",tHe="_titleContainerPredefined_b9wc6_100",aHe="_subtitleContainerPredefined_b9wc6_111",oHe={filtersContainer:sUe,filtersContainer1232:rUe,closeFiltersPc:lUe,textleyemdmultipleleagues:nUe,textleyemdmultipleleagues380:dUe,filtersContainer760:cUe,filtersContainer460:pUe,containerSectionPlay:mUe,containerSectionPlay1232:uUe,containerSectionPlay960:fUe,containerSectionPlay320:hUe,containerSectionPlay350:yUe,containerSection:gUe,containerSection1232:bUe,containerSection960:SUe,containerSection320:_Ue,containerSection350:CUe,templateLosMejores:wUe,templateLosMejores1232:kUe,templateLosMejores960:EUe,templateLosMejores420:VUe,templateLosMejores320:xUe,templateLosMejores540:NUe,templateLosMejores350:TUe,topFiltersParent:BUe,topFiltersParent1232:FUe,topFiltersParent960:PUe,topFiltersParent460:$Ue,topFiltersParent420:AUe,containerTheBest:IUe,containerTheBest1232:zUe,containerTheBest960:MUe,containerTheBest320:OUe,titleSection:RUe,titleSection540:LUe,containerTables:DUe,containerTables960:vUe,containerTables760:jUe,containerTables320:UUe,toniKroosWrapper:WUe,toniKroosWrapper1080:HUe,toniKroosWrapper975:GUe,toniKroosWrapper760:qUe,toniKroosWrapper420:JUe,toniKroosWrapper320:ZUe,frameChild:YUe,filtros:KUe,groupParent:XUe,shapeIcon:QUe,btnFilters:eWe,btnFiltersPC:tWe,quitarFiltros:aWe,quitarFiltros730:oWe,quitarFiltros480:iWe,quitarFiltros380:sWe,btnCloseFilters:rWe,mejoresJugadores:lWe,mejoresJugadores730:nWe,mejoresJugadores480:dWe,mejoresJugadoresSM:cWe,toniKroos:pWe,teamBar:mWe,menuSection:uWe,menuSection960:fWe,menuSectionPlay:hWe,menuSectionPlay960:yWe,containerMenu:gWe,containerMenu760:bWe,containerFilters:SWe,teamBarParent:_We,topFilters:CWe,topFilters1232:wWe,topFilters420:kWe,topFilters460:EWe,losMejores:VWe,losMejores380:xWe,losMejores530:NWe,losMejores730:TWe,menuSectionHeader:BWe,menuSectionHeader1232:FWe,menuSectionHeader960:PWe,menuSectionHeader730:$We,dropdown:AWe,dropdown730:IWe,dropdown1:zWe,dropdown1730:MWe,dropdownParent:OWe,dropdownParent730:RWe,menuSectionParentHeader:LWe,menuSectionParentHeader1232:DWe,menuSectionParentHeader960:vWe,menuSectionParentHeader730:jWe,menuSectionParentHeader430:UWe,descubreVideos:WWe,descubreVideos1232:HWe,descubreVideos960:GWe,allCategories:qWe,containerScountingBtn:JWe,btnDeleteAplica:ZWe,SearchBtnBar:YWe,btnLeyendTxt:KWe,BtnSearchScounting:XWe,containerPredefined:QWe,containerPredefinedScounting:eHe,titleContainerPredefined:tHe,subtitleContainerPredefined:aHe},iHe=e.ref(_b()),sHe=e.ref(vVe()),rHe=e.ref(Cb()),lHe={components:{GSCTableHeader:Np,GscSwitchComponent:jp,GSCFilterperteam:L2,DropdownYears:Sb,GSCFilters:gm,DropdownPositions:gb,GSCExpandedInfo:Mp,GSCLabel:Q2,GSCSeasonSelect:V2,GSCTopCategory:iUe,GSCTournamentSelect:T2,GSCRowTable:Fp},computed:{...Lze.computed,filterTournaments(){return this.isFemaleMode?this.tournamentsToFilterSelection.reduce((t,o)=>(o.is_female&&t.push({...o,isSelected:!0,propAux:!0}),t),[]):this.tournamentsToFilterSelection},filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},o=JSON.stringify(t);if(JSON.stringify(this.filters)!=o)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...iHe.value}},filterButtonPropsAux(){return{...sHe.value}},filterButtonPropsTournaments(){return{...rHe.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:""},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let o=0;o<t.teams.length;o++)this.teams.push({id:t.teams[o].team_id,team:t.teams[o].colloquial_name,logo:t.teams[o].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:o}=Wt(t);return{myDivRefTopsFull:t,elementSize:o}},data(){return{cachedPlayersMap:[],dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},isAvanced:!1,elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],fvTypeStats:"totals",seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:this.isFemaleMode,id:1001,show_logos:1,tournament_type:0,tournament_status:0,is_female:1,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:[],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",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:R,personalDataFilters:_i,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 P_e(this.seasonsArray,this.tokenFree)}catch(t){console.error("error",t)}},toggleAdvancedView(){this.isAvanced=!this.isAvanced},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const o=t.id===this.selectedTournament.id;t.isSelected=o,t.isDefaultTournament=o})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let i=0;i<this.detaildProductivityCategories.offensive.categories.length;i++)this.detaildProductivityCategories.offensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.defensive.categories.length;i++)this.detaildProductivityCategories.defensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.possession.categories.length;i++)this.detaildProductivityCategories.possession.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.offensesConditions.length;i++)this.detaildProductivityCategories.offensesConditions[i]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters($e.All),o.clearFilters($e.AGE_RANGE),o.clearFilters($e.YEAR),o.clearFilters($e.NATIONALITY),o.clearFilters($e.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(i,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let i=0;i<a.teams.length;i++)this.teamsscouting.push({id:a.teams[i].team_id,team:a.teams[i].colloquial_name,logo:a.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},HandlerShowGraph(t){var o,a;const i=(o=this.cachedPlayersMap)==null?void 0:o.get(t.id);if(i){const s={id:t.id,player_name:i.stringFullName,position:t.position,is_female:(i==null?void 0:i.is_female)||0,team_id:(a=i==null?void 0:i.teamName[0])==null?void 0:a.team_id,nationality:i.stringNationalityName,photo:i.stringImageUrl,countryFlag:i.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var o,a;const i=(o=this.cachedPlayersMap)==null?void 0:o.get(t.id||t.player_id);if(i){const s={player_id:i.numberId,name:i.stringFullName,position:i.numberPositionId,is_female:(i==null?void 0:i.is_female)||0,dob:"",team_id:(a=i==null?void 0:i.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:i.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let o=[t.id],a=t.team_id;const i={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",i)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,o,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:o||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=We.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<o.length;s++){o[s];let r=o[s].dob.split("T")[0].split("-");var i={position:s+1,player_name:this.abrevName(o[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[s].player_id+".png",total:o[s].total.toFixed(0),id:o[s].player_id,player_age:this.calcularEdad(o[s].dob),team_abrev:o[s].teams[0].acronym,team_name:o[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o[s].teams[0].team_id+".png",player_position:o[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[s].nationality_id+".jpg",date:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:o[s].team_id,nationality_name:La[o[s].nationality_id],player_games:o[s].games_played,player_min:o[s].minutes_played,league_name:o[s].tournament_name,seasons:o[s].seasons,season_id:o[s].seasons[0]};this.rowScoutingData.push(i)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let r=0;r<s.teams.length;r++)this.teamsscouting.push({id:s.teams[r].team_id,team:s.teams[r].colloquial_name,logo:s.teams[r].logo})}this.loadingActive=!1},abrevName(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},calcularEdad(t){var o=new Date(t),a=new Date,i=a-o,s=Math.floor(i/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var o;const a=t.find(n=>n.isSelected),i=a?a.id:null,s=a?a.name:null,r=((o=a==null?void 0:a.seasons[0])==null?void 0:o.id)||null;var l=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");l!==-1?this.arrayFiltersPlays[l].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),i!==null&&r!==null&&(this.seasonActive=r,this.selectedTournament=i,this.tournamentSelectedObj={propName:"id",value:i,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",r),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.length;a++)t[a].isSelected&&o.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),o.length==0&&(o=[1]),o.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[i,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var o=[];if(t.hasOwnProperty("nationalities")){for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=o},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filterScounting.categories=o,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(a!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,o){return Math.floor(Math.random()*(o-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(t){var o=this.arrayFiltersPlays.findIndex(i=>i.type===t);if(o!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,r)=>r+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<i.teams.length;s++)this.teamsscouting.push({id:i.teams[s].team_id,team:i.teams[s].colloquial_name,logo:i.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.categoriesPlaysTypes.offensive.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.categoriesPlaysTypes.defensive.categories[i].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.categoriesPlaysTypes.possession.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.categoriesPlaysTypes.offenses.categories[i].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters($e.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($e.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($e.AGE_RANGE)):t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters($e.YEAR),this.FVYear=1981,this.personalDataFilters.selectedYear=1981,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters($e.ELIGIBILITY)}this.arrayFiltersPlays.splice(o,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let l=0;l<t.playingAs.length;l++)if(t.playingAs[l].isSelected){const n=t.playingAs[l].name=="Local"?1:2;o.push(n)}for(let l=0;l<t.gameSections.length;l++)t.gameSections[l].isSelected&&a.push(t.gameSections[l].value);this.fVsections=a,this.fVplayingAs=o,this.fvTypeStats=t.statisticType;var i=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?i!=-1&&this.arrayFiltersPlays.splice(i,1):i!=-1?this.arrayFiltersPlays[i].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTime"),r="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(r+=", 0-15"),this.fVsections.includes(2)&&(r+=", 15-30"),this.fVsections.includes(3)&&(r+=", 30-45"),this.fVsections.includes(4)&&(r+=", 45-60"),this.fVsections.includes(5)&&(r+=", 60-75"),this.fVsections.includes(6)&&(r+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=r:this.arrayFiltersPlays.push({name:r,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,i)=>i+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters($e.All),a.clearFilters($e.AGE_RANGE),a.clearFilters($e.YEAR),a.clearFilters($e.NATIONALITY),a.clearFilters($e.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo})},onFiltersData(t){var o=0,a=0;t.ageByRange?(t.ageByRange.min==0?o=1:o=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[o,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let i="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let y=0;y<t.nationalities.length;y++)t.nationalities[y].isSelected&&this.fVnationalities.add(t.nationalities[y].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y])}else this.FVeligible=!1;for(let y=0;y<t.positions.length;y++)t.positions[y].isSelected&&this.fVsetPositionsIds.push(t.positions[y].id);if(t.hasOwnProperty("nationalities"))var r=t.nationalities.filter(y=>y.isSelected===!0);var l=t.positions.filter(y=>y.isSelected===!0);if(l.length==1&&(i=l[0].name),t.hasOwnProperty("nationalities")&&r.length==1&&(s=r[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var c=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersPosition");c!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[c].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i:this.arrayFiltersPlays.splice(c,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i,type:"onFiltersPosition"})}if(t.hasOwnProperty("ageLimits")){if(this.arrayFiltersPlays=this.arrayFiltersPlays.filter(y=>y.type!=="onFiltersYear"),this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var d=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");d!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[d].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(d,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var d=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersAge");d!=-1&&this.arrayFiltersPlays.splice(d,1)}}else if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var u=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");u!=-1?this.arrayFiltersPlays[u].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var p=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");p!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[p].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(p,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.categoriesPlaysTypes={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},this.detailsObject={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},this.detailsObjectSelection={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters($e.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(o){console.error("Error changing tabs:",o),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(o!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:this.isFemaleMode,id:1001,show_logos:1,tournament_type:0,tournament_status:0,is_female:1,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.fetchTournamentsForSelection()},async changeTabsSubmenu(t){t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournamentsForSelection(){try{const{data:t}=await We.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",{headers:{Authorization:this.token}}),o=new Set([1,43,1001,1071,1143,1153,1155,1210]);this.tournamentsToFilterSelection=t.filter(a=>o.has(a.tournament.id)).map(a=>({...a.tournament,seasons:a.seasons,isSelected:a.tournament.id===1}))}catch(t){console.error("fetchTournamentsForSelection error",t)}},async fetchTeams(){const t=We.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(t){const o=We.create({headers:{Authorization:`${this.token}`}}),{data:a}=await o.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";t.id==1?o=this.urlFilter:o=this.urlFilter;const a=We.create({headers:{Authorization:`${this.token}`}}),{data:i}=await a.get(o+t.id);if(Object.keys(i[0].match_lapse_combinations).forEach(p=>{this.predefinedFiltersMatchLapse[p.toString()]=i[0].match_lapse_combinations[p]}),Object.keys(i[0].playing_as_combinations).forEach(p=>{this.predefinedFiltersPlayingAs[p.toString()]=i[0].playing_as_combinations[p]}),Object.keys(i[0].field_sections_combinations).forEach(p=>{this.predefinedFiltersSections[p.toString()]=i[0].field_sections_combinations[p]}),i[0]){for(let p=0;p<i[0].filter_records.length;p++){var s=i[0].description;if(i[0].filter_records[p].field_sections!==void 0){const m=i[0].filter_records[p].field_sections.toString();(this.predefinedFiltersSections[m]||this.predefinedFiltersSections[m]=="")&&(this.predefinedFiltersSections[m]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[m]):s=s.replace("{field_sections}",this.predefinedFiltersSections[m]))}if(i[0].filter_records[p].match_lapse!==void 0){const m=i[0].filter_records[p].match_lapse.toString();(this.predefinedFiltersMatchLapse[m]||this.predefinedFiltersMatchLapse[m]=="")&&(this.predefinedFiltersMatchLapse[m]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[m]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[m]))}if(i[0].filter_records[p].playing_as!==void 0){const m=i[0].filter_records[p].playing_as.toString();(this.predefinedFiltersPlayingAs[m]||this.predefinedFiltersPlayingAs[m]=="")&&(this.predefinedFiltersPlayingAs[m]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[m]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[m]))}i[0].filter_records[p].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",i[0].category_name);const y=s.split(": ");var r=y[1];r.length>129&&this.windowWidth>1358&&(r=r.substring(0,129),r=r+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||i[0].filter_records[p].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:p,category_name:t.name,id_category:i[0].id,title:y[0]+":",text:y[1],textOrigin:i[0].description,titledots:r,filtersPredefined:{matchResult:i[0].filter_records[p].match_result,playingAs:i[0].filter_records[p].playing_as,sections:i[0].filter_records[p].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[p].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let p=0;p<this.arrayPredefinedFilters.length;p++){var n=0,c=new Set,d={},u=this.arrayPredefinedFilters[p].text.replace(/\*.*?\*/,"");if(u=u.replace(/\*/g,""),u=u.replace(/ +/g," "),this.arrayPredefinedFilters[p].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[p].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[p].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,this.arrayPredefinedFilters[p].filtersPredefined.end_age]:this.arrayPredefinedFilters[p].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[p].filtersPredefined.end_age],this.arrayPredefinedFilters[p].filtersPredefined.matchResult.length!=3&&(n+=1),d.matchResult=this.arrayPredefinedFilters[p].filtersPredefined.matchResult,this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length;y++)c.add(this.arrayPredefinedFilters[p].filtersPredefined.nationalities[y]);d.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),d.setNationalitiesIds=c;this.arrayPredefinedFilters[p].filtersPredefined.playingAs.length!=2&&(n+=1),d.playingAs=this.arrayPredefinedFilters[p].filtersPredefined.playingAs,this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[p].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[p].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[p].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[p].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[p].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[p].filtersPredefined.typeZone,l.push({id:p+1,name:u,isSelected:!1,value:n,filters:d})}this.FVfilterGolstats=l,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((u,p)=>u-p).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[i]||this.predefinedFiltersMatchLapse[i]=="")this.predefinedFiltersMatchLapse[i]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";i.includes(1)&&(s=s+"0-15, "),i.includes(2)&&(s=s+"16-30, "),i.includes(3)&&(s=s+"31-45, "),i.includes(4)&&(s=s+"46-60, "),i.includes(5)&&(s=s+"61-75, "),i.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[r]||this.predefinedFiltersPlayingAs[r]=="")&&(this.predefinedFiltersPlayingAs[r]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[r]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[r])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const l=t.split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),c=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const d=c.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let u=1;u<=d.length;u++)u%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:La[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},processPreloadedTops(t){const o={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),i=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=i,t.tops.forEach(s=>{const r=s.category;o[r]||(o[r]={teams:[],players:[]}),s.teams&&(o[r].teams=s.teams.map((l,n)=>{const c=a.get(l[0])||{};return{id:c.id,name:c.name,img:c.logo,total:l[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(o[r].players=s.players.map((l,n)=>{var c,d,u,p,y,m,h,f,g,b;const S=i.get(l[0])||{};return{age:S.numberAge,categoryName:s.name,country:(d=(c=S.countryId)==null?void 0:c[0])==null?void 0:d.nationality_id,date:S.date,effectiveness:S.effectiveness||0,games:S.games,id:l[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${l[0]}.png`,minutes:S.min,name:S.stringFullName,name_short:S.stringFullName,nationality:S.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(p=(u=S.countryId)==null?void 0:u[0])==null?void 0:p.nationality_id}.jpg`,position:S.position_short,positionId:S.numberPositionId,positionfull:this.positions[S.numberPositionId-1],team:((m=(y=S.teamName)==null?void 0:y[0])==null?void 0:m.acronym)||"",teamid:((f=(h=S.teamName)==null?void 0:h[0])==null?void 0:f.team_id)||"",teamname:((b=(g=S.teamName)==null?void 0:g[0])==null?void 0:b.acronym)||"",top:String(n+1).padStart(2,"0"),total:l[1]}}))}),o},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=We.create({headers:{Authorization:`${this.token}`}}),o=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(o);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,o){return`${t}-${o}`},async getTopData(t,o){const a=this.getCacheKey(t,o);if(this.topsCache.has(a))return this.topsCache.get(a);const i=We.create({headers:{Authorization:`${this.token}`}}),{data:s}=await i.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${o}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),o=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(o.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.fetchTournamentsForSelection(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadPreloadedTops();const t=await We.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.fillPersonalDataFilters()}catch(t){throw new Error(t)}}},nHe={ref:"myDivRefTopsFull",class:"play-tops"},dHe={key:0,class:"overlay-loading"},cHe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),pHe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),mHe=[cHe,pHe],uHe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),fHe=[uHe],hHe={style:{display:"contents"}},yHe={style:{display:"contents"}},gHe={key:0,class:"cont-leyemd-multipleleagues"},bHe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),SHe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},_He={key:0,style:{"margin-left":"10px"}},CHe=e.createElementVNode("span",null,"Todas las categorías",-1),wHe=[CHe],kHe=e.createElementVNode("span",null,"Tipo de Jugada",-1),EHe=e.createElementVNode("span",null,"Filtro GolStats",-1),VHe={key:3,style:{width:"100%",height:"295px"}};function xHe(t,o,a,i,s,r){var l,n,c;const d=e.resolveComponent("GSCTournamentSelect"),u=e.resolveComponent("GSCSeasonSelect"),p=e.resolveComponent("GscSwitchComponent"),y=e.resolveComponent("GSCFilterperteam"),m=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),f=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),b=e.resolveComponent("GSCTopCategory"),S=e.resolveComponent("GSCTableHeader"),F=e.resolveComponent("GSCRowTable"),v=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",nHe,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",dHe,mHe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[i.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[i.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(d,{width:"100%","list-height":"370px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,token:a.token,onInput:r.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","token","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(u,{width:"100%","list-height":"370px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[i.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(p,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[i.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(d,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,token:a.token,onInput:r.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","token","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(u,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(y,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:o[0]||(o[0]=(...T)=>r.clickOpenFilters&&r.clickOpenFilters(...T))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:nn},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":i.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...T)=>r.clickCloseFilters&&r.clickCloseFilters(...T))},fHe,2)):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:o[2]||(o[2]=(...T)=>r.openMenuFilters&&r.openMenuFilters(...T))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:nn},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:wb},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:o[3]||(o[3]=(...T)=>r.openMenuFilters&&r.openMenuFilters(...T))},null,6),[[e.vShow,i.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(i.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:o[4]||(o[4]=(...T)=>r.toggleAdvancedView&&r.toggleAdvancedView(...T))},[s.isAvanced?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ocultar avanzado")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ver avanzado")],64))],2),e.withDirectives(e.createElementVNode("div",null,"Liga:",512),[[e.vShow,!s.isAvanced]]),e.createElementVNode("div",{style:e.normalizeStyle(s.isAvanced?"width: auto;":i.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(m,e.mergeProps({key:0,"button-filter-props":s.isAvanced?r.filterButtonPropsTournaments:r.filterButtonProps,width:"100%"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,"default-tournament-id":a.isFemaleMode?1001:1,filters:r.filterTournaments,"onUpdate:filters":r.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","default-tournament-id","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",hHe,[e.createElementVNode("div",{style:e.normalizeStyle((i.elementSize.width>=768,"width: 61px;"))},"Posición:",4),e.createElementVNode("div",{style:e.normalizeStyle(i.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(h,{"dropdown-props":s.dropdownProps,positions:(l=s.personalDataFilters)==null?void 0:l.positions,onChangePositions:r.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((i.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(i.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(f,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(c=s.personalDataFilters)==null?void 0:c.selectedYear,onChangeYear:r.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",yHe,[e.withDirectives(e.createVNode(m,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:r.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(m,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(m,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(m,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":r.filterButtonPropsTournaments,filters:s.personalDataFilters},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:a.token,"onUpdate:filters":r.onFiltersData}),null,16,["is-female","button-filter-props","filters","filter-type","season","token","onUpdate:filters"]),[[e.vShow,s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"]])],512),[[e.vShow,s.isAvanced]])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(m,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:r.filterTournaments,key:s.keyTournamentValue,"onUpdate:filters":r.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(m,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":r.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(m,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(m,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:o[5]||(o[5]=(...T)=>r.getScoutingData&&r.getScoutingData(...T))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(m,e.mergeProps({"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":r.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(m,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":r.onFiltersGolStats,filters:r.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,i.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",gHe,[bHe,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(y,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:r.clickTeamScouting,onClickAll:r.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",SHe," 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",_He,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(T,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":T.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteLabelFilter,id:T.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:i.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(T=>T.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:o[6]||(o[6]=(...T)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...T))}," 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)},wHe,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,(T,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(T.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(b,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,onMore:r.onShowFullTable,"border-width":0,preload:s.preloadedTops[T.id],"border-radius":"12px","filters-prop":r.filterChange,category:T.id,"type-table":s.typeTable,categoryName:T.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded","onShowGraph","onAddPlayer"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(T.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(b,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":!1,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":r.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(b,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":r.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[kHe,e.createTextVNode(" y un "),EHe,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(S,{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,(T,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:M},[s.teamselectrec==0||s.teamselectrec==T.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(F,{type:2,"is-expanded":s.playerexpand==T.id&&s.expand,onMediadata:r.setMediaData,data:{position:T.position,player_name:T.player_name,player_photo:T.player_photo,total:T.total,id:T.id,player_age:T.player_age,team_abrev:T.team_abrev,team_logo:T.team_logo,player_position:s.positions[T.player_position-1].fullname,player_country_flag:T.player_country_flag,player_games:T.player_games,player_min:T.player_min,league_name:T.league_name,seasons:T.seasons,season_id:T.season_id},height:"71px",background:M%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==T.id?(e.openBlock(),e.createBlock(v,{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:T.team_name,age:T.player_age,dataofbirth:T.date,nationality:T.nationality_name,countryFlag:T.player_country_flag,position:s.positions[T.player_position-1].name,games:T.player_games,min:T.player_min,goals:T.total,effectiveness:"-",category:"total",id:T.id},onViewprofile:D=>r.viewprofile(D,T.season_id,T.team_id),background:M%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:o[7]||(o[7]=(...T)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...T))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:o[8]||(o[8]=(...T)=>r.getScoutingData&&r.getScoutingData(...T))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",VHe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const NHe={$style:oHe},THe=it(lHe,[["render",xHe],["__cssModules",NHe]]),BHe=e.ref(_b()),FHe=e.ref(Cb()),PHe={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0},templates:{type:Array,default:()=>[]},templatesCreateList:{type:Array,default:()=>[]},hidePersonalizableVariables:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1},templatesUrl:{type:String,default:""},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},components:{GscSwitchComponent:jp,GSCRadioToggle:yTe,ModalAddPlayList:ZTe,DropdownTemplates:LVe,GSCTableScrollable:KIe,GSCFilters:gm,ModalAddLista:nBe,DropdownYears:Sb,DropdownPositions:gb,PlayTops:THe,ModalViewVarGolstats:Rze},computed:{isInfoGeneral(){return this.selectedRadioOption==="Info general"},filterButtonProps(){return{...BHe.value}},filterButtonPropsTournamentsAdvanced(){return{...FHe.value}},sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"90px":t<=330?"95px":t<=340||t<=350?"110px":t<=360?"120px":t<=470?"122px":"130px"},advancedText(){return this.showAdvanced?"Ocultar avanzado":"Ver avanzado"}},data(){return{showModal:!1,currentParameters:{},MobileFilterDesing:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},showtableType:!0,formattedPlayers:[],totalNationalities:0,defaultFiltersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:6,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},visibleModalAddPlaylist:!1,showCreatePlaylistModal:!1,filtersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:6,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},positions:[{id:1,name:"Portero",fullname:"POR"},{id:2,name:"Defensa central",fullname:"DFC"},{id:3,name:"Lateral por izquierda",fullname:"LI"},{id:4,name:"Lateral por derecha",fullname:"LD"},{id:5,name:"Volante por izquierda",fullname:"VI"},{id:6,name:"Volante por derecha",fullname:"VD"},{id:7,name:"Volante defensivo",fullname:"VDF"},{id:8,name:"Volante ofensivo",fullname:"VO"},{id:9,name:"Delantero",fullname:"DEL"},{id:10,name:"Desconocida",fullname:"Desc"}],tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],filtersTypes:R,personalDataFilters:_i,personalDataSubFiltersTypes:$e,tournamentsToFilter:[],tournamentsToFilterVariables:dBe,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"Poppins-Regular"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},optionSelected:"Los mejores",showVariables:!0,selectedRadioOption:"Variables propias",showAdvanced:!1,isSearchActive:!1,lastSearchFilters:null,seasonsArray:[],activeFilters:[],isLoading:!1,selectedPlayerToAdd:null}},setup(){const t=e.ref("myDivRefTopsBestPlay"),o=e.ref(null),a=e.ref(null),{elementSize:i}=Wt(t),{elementSize:s}=Wt(o),{elementSize:r}=Wt(a);return{myDivRefTopsBestPlay:t,midLayoutRef:o,filterBoxRef:a,elementSize:i,midLayoutSize:s,filterBoxSize:r}},created(){},async mounted(){try{await this.fetchTournamentsForSelection(),await this.fillPersonalDataFilters(),this.isSearchActive=!0,!this.hasTemplates||this.hidePersonalizableVariables?(this.selectedRadioOption="Info general",delete this.filtersObject.template_id,this.showVariables=!1,this.checkSearchButton()):await new Promise(t=>{const o=()=>{this.filtersObject.template_id?t(!0):setTimeout(o,100)};o()}),await this.toggleSearch()}catch(t){console.error("Error durante la inicialización:",t)}},methods:{onClickParameters(t){this.currentParameters=t,this.showModal=!0},closeModal(){this.showModal=!1},onViewProfile(t){this.$emit("open-profile-player",t)},onAddToList(t){this.selectedPlayerToAdd={player_id:t.objeto_player.player_id,name:t.objeto_player.name,position:t.objeto_player.position_id,is_female:t.objeto_player.is_female||0,dob:t.objeto_player.dob,team_id:t.objeto_player.teams[0].team_id,jersey:t.objeto_player.jersey||0,nationality:t.objeto_player.nationality,nationality_id:t.objeto_player.nationality_id},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",{data:t,templateId:this.selectedRadioOption==="Info general"||this.optionSelected==="Por jugada"?null:this.currentTemplateId})},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),o=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==o},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(o=>o.isSelected).map(o=>o.id),this.seasonsArray=t.filter(o=>o.isSelected).map(o=>({id:o.seasons[0].id,tournamentId:o.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[i,s],this.filtersObject.age_or_year=1}else t.hasOwnProperty("year")?(this.filtersObject.year=t.year,this.filtersObject.age_or_year=0,this.filtersObject.range_age=[]):this.filtersObject.year=0;var o=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=o,this.checkSearchButton()},onFiltersField(t){this.checkSearchButton()},onFiltersUniverse(t){this.filtersObject.minutes_played=Number(t.minutesPlayed),this.filtersObject.last_months=Number(t.lastMonths),this.filtersObject.minutes_played_avg=Number(t.percentMinutesPlayed),this.filtersObject.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1,t.statisticsRadios&&t.statisticsRadios==="every90"?(this.filtersObject.is_ppp=!0,this.filtersObject.ppp_default_minutes=90):this.filtersObject.is_ppp=!1,this.checkSearchButton()},onFiltersProductivity(t){var o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filtersObject.categories=o,this.filtersObject.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filtersObject.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filtersObject.red_cards=t.offensesConditions.areRedCardsSelected,this.checkSearchButton()},onChangePositions(t){this.filtersObject.positions=t.filter(o=>o.isSelected&&o.id!==0).map(o=>o.id),this.checkSearchButton()},onChangeYear(t){this.filtersObject.year=t,this.personalDataFilters.selectedYear=t,this.checkSearchButton()},async toggleSearch(){const t="https://1km387uzk3.execute-api.us-east-2.amazonaws.com/qa/players/productivity";if(this.isSearchActive)try{this.isLoading=!0;const o=await(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...this.filtersObject,year:this.filtersObject.year==="Sin límite"?this.personalDataFilters.availableYears[this.personalDataFilters.availableYears.length-1]:this.filtersObject.year})})).json();this.showtableType=!this.filtersObject.template_id,this.formattedPlayers=o.map(a=>({objeto_player:a,player_photo:a.photo,player_name:a.acronym,player_age:this.calculateAge(a.dob),team_abrev:a.teams[0].acronym,jersey:a.jersey||"",nationality:a.nationality,team_name:a.team_name,is_female:a.is_female||0,parameters:a.internal_parameters,position_name:this.positions[a.position_id-1].fullname,player_position:this.positions[a.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+a.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${a.nationality_id}.jpg`,player_games:a.games_played,player_min:a.minutes_played,nationality_name:La[a.nationality_id],league_name:a.tournament_name,seasons:a.seasons,season_id:a.seasons[0],stats:a.stats?a.stats.map(i=>({category_id:i[4]||null,custom_category_id:i[0]||null,name:i[1]||"",total:i[2]||0,seasons:i[3]||null})):[]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(o){console.error("Error al realizar la búsqueda:",o)}finally{this.isLoading=!1}},calculateAge(t){if(!t)return"-";const o=new Date(t),a=new Date;let i=a.getFullYear()-o.getFullYear();const s=a.getMonth()-o.getMonth();return(s<0||s===0&&a.getDate()<o.getDate())&&i--,i},resetFilters(){this.filtersObject=JSON.parse(JSON.stringify(this.defaultFiltersObject)),this.lastSearchFilters=null,this.checkSearchButton()},async fillPersonalDataFilters(){this.seasonsArray,this.tokenFree},async fetchTournamentsForSelection(){try{const{data:t}=await We.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",{headers:{Authorization:this.token}}),o=new Set([1,43,1001,1071,1143,1153,1155,1210]),a=t.filter(i=>o.has(i.tournament.id)).map(i=>({...i.tournament,seasons:i.seasons,isSelected:i.tournament.id===1}));this.isFemaleMode?this.tournamentsToFilter=a.filter(i=>i.is_female).map(i=>({...i,isSelected:!0})):this.tournamentsToFilter=a}catch(t){console.error("fetchTournamentsForSelection error",t)}},async changeTabsGeneral(t){this.optionSelected=t},closeModalAddPlaylist(){this.visibleModalAddPlaylist=!1},ChangeRadio(t){if(!this.hasTemplates){this.selectedRadioOption="Info general";return}typeof t=="string"?(this.selectedRadioOption=t,this.showVariables=t==="Variables propias",t==="Info general"&&(delete this.filtersObject.template_id,this.checkSearchButton(),this.toggleSearch())):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t?(this.currentTemplateId=t.id,this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton(),this.toggleSearch()):this.currentTemplateId=null},updateActiveFilters(){const t=[];if(this.filtersObject.tournaments.length>0&&this.filtersObject.tournaments.length!=6)if(this.filtersObject.tournaments.length>1)t.push(`Ligas ${this.filtersObject.tournaments.length}`);else{const o=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));o&&t.push(o.name)}else t.push("Todas las ligas");if(this.filtersObject.nationalities.length>0&&this.filtersObject.nationalities.length!==this.totalNationalities&&this.filtersObject.nationalities.length!==231){const o=this.filtersObject.nationalities.length;o===1?t.push("Nacionalidad "+La[this.filtersObject.nationalities[0]]):t.push(`${o} nacionalidades`)}if(this.filtersObject.elegibles&&this.filtersObject.elegibles.length>0&&t.push("Nacionalidad Mexicana"),this.filtersObject.positions.length>0&&this.filtersObject.positions.length!==9)if(this.filtersObject.positions.length===1){const o=this.positions.find(a=>a.id===this.filtersObject.positions[0]);o&&t.push(o.name)}else t.push(`${this.filtersObject.positions.length} posiciones de juego`);if(this.filtersObject.year>0&&t.push(`A partir del ${this.filtersObject.year}`),this.filtersObject.range_age.length===2&&t.push(`${this.filtersObject.range_age[0]}-${this.filtersObject.range_age[1]} años`),this.filtersObject.last_months&&this.filtersObject.last_months!==6&&t.push(`Últimos ${this.filtersObject.last_months} meses`),this.filtersObject.minutes_played>0&&t.push(`Min. ${this.filtersObject.minutes_played} min`),this.filtersObject.minutes_played_avg>0&&t.push(`Min. ${this.filtersObject.minutes_played_avg}% min`),this.filtersObject.type_stats!==1){const o=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(o)}this.activeFilters=t},handleCreateList(){this.showCreatePlaylistModal=!0,this.visibleModalAddPlaylist=!1},closeCreatePlaylistModal(){this.showCreatePlaylistModal=!1},changeSeasonId(t){this.$emit("change-season-id",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},topsLoaded(t){this.$emit("tops-loaded",t)},handleCompareClick(){this.formattedPlayers.length>0&&this.$emit("compare-players",{data:this.formattedPlayers,templateId:this.selectedRadioOption==="Info general"||this.optionSelected==="Por jugada"?null:this.currentTemplateId})}}},Ba=t=>(e.pushScopeId("data-v-25335fc3"),t=t(),e.popScopeId(),t),$He={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},AHe={class:"overlay-loading"},IHe=Ba(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),zHe=Ba(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),MHe=[IHe,zHe],OHe={class:"strip-menu"},RHe={class:"strip-options-vars"},LHe={key:0,class:"desktop-layout"},DHe={class:"left-containers"},vHe={class:"filter-container filter-container-variables container-372"},jHe={key:0,class:"filter-container filter-container-variables container-291"},UHe=Ba(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),WHe={class:"variables-indicator"},HHe=Ba(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),GHe={class:"filter-container-box"},qHe=Ba(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),JHe={class:"filter-container-box-2"},ZHe=Ba(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),YHe={class:"filter-container-box-3"},KHe={class:"advanced-row-top"},XHe=Ba(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),QHe={class:"stats-section"},eGe={class:"filters-applied"},tGe=Ba(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),aGe={class:"filters-tags-wrapper"},oGe={class:"filters-tags"},iGe=Ba(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),sGe={key:0,class:"no-results"},rGe={key:1,class:"content-container"};function lGe(t,o,a,i,s,r){const l=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("ModalAddPlayList"),c=e.resolveComponent("ModalAddLista"),d=e.resolveComponent("GscSwitchComponent"),u=e.resolveComponent("GSCRadioToggle"),p=e.resolveComponent("DropdownTemplates"),y=e.resolveComponent("GSCFilters"),m=e.resolveComponent("DropdownPositions"),h=e.resolveComponent("DropdownYears"),f=e.resolveComponent("GSCTableScrollable"),g=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{isVisible:s.showModal,"onUpdate:isVisible":o[0]||(o[0]=b=>s.showModal=b),onClose:r.closeModal,parameters:s.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",$He,[e.createVNode(n,{isVisible:s.visibleModalAddPlaylist,onClose:r.closeModalAddPlaylist,"user-id":a.userId,onCreateList:r.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(c,{isVisible:s.showCreatePlaylistModal,"user-id":a.userId,player:s.selectedPlayerToAdd,templates:a.templatesCreateList.data,onClose:r.closeCreatePlaylistModal},null,8,["isVisible","user-id","player","templates","onClose"]),e.withDirectives(e.createElementVNode("div",AHe,MHe,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",OHe,[e.createVNode(d,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":r.sizeTabsFontMP,width:r.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",RHe,[i.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",LHe,[e.createElementVNode("div",DHe,[e.createElementVNode("div",vHe,[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(u,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:r.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",jHe,[UHe,e.createElementVNode("div",WHe,[e.createVNode(p,{"templates-url":a.templatesUrl,"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:r.onChangeTemplate},null,8,["templates-url","dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.withDirectives(e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:o[1]||(o[1]=(...b)=>r.toggleAdvanced&&r.toggleAdvanced(...b))},e.toDisplayString(r.advancedText),513),[[e.vShow,r.isInfoGeneral]])])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":i.elementSize.width<=480,"mid-layout":i.elementSize.width<=780&&i.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":i.elementSize.width<=780&&i.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":i.elementSize.width<=480}])},[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(u,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:r.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),i.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":i.elementSize.width<=480}]),onClick:o[2]||(o[2]=(...b)=>r.toggleAdvanced&&r.toggleAdvanced(...b))},e.toDisplayString(r.advancedText),3)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container container-291",{"mobile-container":i.elementSize.width<=480,"mid-container":i.elementSize.width<=780&&i.elementSize.width>480,"container-292":i.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":i.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":i.elementSize.width<=480}])},[e.createVNode(p,{"team-id":a.teamId,"templates-url":a.templatesUrl,onChangeTemplate:r.onChangeTemplate},null,8,["team-id","templates-url","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),i.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":i.elementSize.width<=480}]),onClick:o[3]||(o[3]=(...b)=>r.toggleAdvanced&&r.toggleAdvanced(...b))},e.toDisplayString(r.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var b,S;return[s.showAdvanced?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":i.elementSize.width<=890,"layout-480":i.elementSize.width<=480}])},[e.createElementVNode("div",KHe,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({width:"99.7%","button-filter-props":r.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":r.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,"is-scouting":""},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":r.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":r.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-75",{"equal-width":i.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:o[5]||(o[5]=(...F)=>r.toggleSearch&&r.toggleSearch(...F))},"Buscar",2)],2)])],2)),[[e.vShow,r.isInfoGeneral]]):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":i.elementSize.width<=780,"gap-reduced-850":i.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":i.elementSize.width<=780,"stack-vertical":i.elementSize.width<=480,"gap-reduced-850":i.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced-tournament":i.elementSize.width<=1e3}])},[HHe,e.createElementVNode("div",GHe,[e.createVNode(y,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":r.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.tournamentsToFilter,"onUpdate:filters":r.onUpdateTournaments},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-2",{"filter-half-position":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced-position":i.elementSize.width<=1e3}])},[qHe,e.createElementVNode("div",JHe,[e.createVNode(m,{"dropdown-props":s.dropdownProps,positions:(b=s.personalDataFilters)==null?void 0:b.positions,onChangePositions:r.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":i.elementSize.width<=780,"stack-vertical":i.elementSize.width<=480,"gap-reduced-850":i.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced":i.elementSize.width<=1e3}])},[ZHe,e.createElementVNode("div",YHe,[e.createVNode(h,{"dropdown-props":s.dropdownProps,years:(S=s.personalDataFilters)==null?void 0:S.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:r.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:o[4]||(o[4]=(...F)=>r.toggleSearch&&r.toggleSearch(...F))},"Buscar",2)],2)],2)],2)),[[e.vShow,r.isInfoGeneral]])]}),_:1}),XHe,e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":i.elementSize.width<=780}])},[e.createElementVNode("div",QHe,[e.createElementVNode("div",eGe,[tGe,e.createElementVNode("div",aGe,[e.createElementVNode("div",oGe,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(b,S)=>(e.openBlock(),e.createElementBlock("span",{key:S,class:"filter-tag"},e.toDisplayString(b),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":i.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:o[6]||(o[6]=(...b)=>r.handleCompareClick&&r.handleCompareClick(...b))},[e.createTextVNode(" Comparar jugadores "),iGe])],2)],2),[[e.vShow,r.isInfoGeneral]]),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",sGe," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",rGe,[e.createVNode(f,{players:s.formattedPlayers,"is-general":s.showtableType,"is-graph-button-visible":r.isInfoGeneral,onViewProfile:r.onViewProfile,onAddToList:r.onAddToList,onShowGraph:r.onShowGraph,onOpenMedia:r.onOpenMedia,onClickParameters:r.onClickParameters},null,8,["players","is-general","is-graph-button-visible","onViewProfile","onAddToList","onShowGraph","onOpenMedia","onClickParameters"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(g,{key:1,"is-female-mode":a.isFemaleMode,token:a.token,onChangeSeasonId:r.changeSeasonId,onOpenmedia:r.onOpenMedia,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded,onShowGraph:r.onShowGraph,onAddPlayer:r.onAddPlayer},null,8,["is-female-mode","token","onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)],64)}const nGe=it(PHe,[["render",lGe],["__scopeId","data-v-25335fc3"]]),dGe={name:"SwitchTopsType",components:{TopsFull:pTe,TopsBestAndPlay:nGe},data(){return{templates:[],templatesCreateList:[],hasTemplates:!1,isTemplatesLoaded:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",templatesUrl:""}},created(){this.fetchTemplates(),this.fillTemplatesCreateList()},props:{type:{type:Number,default:1},userType:{type:String,required:!0},userId:{type:String,required:!0},isScout:{type:Boolean,default:!1},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0},isSelection:{type:Boolean,default:!1},hidePersonalizableVariables:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzQwNDcsIm5hbWUiOiJHb2xTdGF0cyBTYW50b3MiLCJ1c2VybmFtZSI6Imdzc2FudG9zIiwiZW1haWwiOiIiLCJwcm92aWRlcl9pZCI6MSwibG9naW5fZ29sc3RhdHMiOjEsImlhdCI6MTc0NjIyMjQ3NCwiZXhwIjoxNzc3NzU4NDc0fQ.fga__q8pm-HbeHeNPWOqz32n8xkE_zcVPiPu8NTAiOM"},tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0},isFemaleMode:{type:Boolean,default:!1}},methods:{async fetchTemplates(){var t;try{const o=We.create({headers:{Authorization:`${this.token}`}});this.templatesUrl=`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/teams/${this.teamId}/templates?&onlyPublic=1`;const a=await o.get(this.templatesUrl);(t=a.data)!=null&&t.data&&Array.isArray(a.data.data)&&a.data.data.length>0?(this.templates=a.data,this.hasTemplates=!0):(this.templates=[],this.hasTemplates=!1)}catch(o){console.error("Error al obtener templates:",o),this.templates=[],this.hasTemplates=!1}finally{this.isTemplatesLoaded=!0}},async fillTemplatesCreateList(){var t;try{const o=await We.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/teams/${this.teamId}/templates?general=1&onlyPublic=1&infoGeneral=1`);(t=o.data)!=null&&t.data&&Array.isArray(o.data.data)&&o.data.data.length>0?this.templatesCreateList=o.data:this.templatesCreateList=[]}catch(o){console.error("Error al obtener templates:",o),this.templatesCreateList=[]}},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 cGe(t,o,a,i,s,r){const l=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(l,{key:0,onChangeSeasonId:r.changeSeasonId,onOpenMedia:r.onOpenMedia,onOpenmedia:r.onOpenMedia,"team-id":a.teamId,"is-scout":a.isScout,"user-type":a.userType,"is-clubes":a.isClubes,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,"tournaments-api-url":a.tournamentsApiUrl,"are-female-tournaments-visible":a.areFemaleTournamentsVisible,"is-female-mode":a.isFemaleMode,token:a.token,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded},null,8,["onChangeSeasonId","onOpenMedia","onOpenmedia","team-id","is-scout","user-type","is-clubes","current-season-id","is-selection","tournaments-api-url","are-female-tournaments-visible","is-female-mode","token","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded"])):s.isTemplatesLoaded?(e.openBlock(),e.createBlock(n,{key:1,"team-id":a.teamId,"has-templates":s.hasTemplates,templates:s.templates,"templates-create-list":s.templatesCreateList,"user-type":a.userType,"is-female-mode":a.isFemaleMode,"templates-url":s.templatesUrl,token:a.token,onOpenMedia:r.onOpenMedia,onShowGraph:r.onShowGraph,onComparePlayers:r.comparePlayers,onOpenProfilePlayer:r.onOpenProfilePlayer,onAddToList:r.onAddToList,onChangeSeasonId:r.changeSeasonId,onOpenProfileTeam:r.openProfileTeam,onTopsLoaded:r.topsLoaded,"user-id":a.userId,"hide-personalizable-variables":a.hidePersonalizableVariables},null,8,["team-id","has-templates","templates","templates-create-list","user-type","is-female-mode","templates-url","token","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id","hide-personalizable-variables"])):e.createCommentVNode("",!0)])}const pGe=it(dGe,[["render",cGe]]),mGe={class:"elegibles"},d4=Bi(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1},hidePersonalizableVariables:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:o}){const a=t,i=u=>{o("openmedia",u)},s=u=>{o("open-profile-team",u)},r=u=>{o("open-profile-player",u)};function l(u){o("showGraph",u)}function n(u){o("change-season-id",u)}function c(u){o("tops-loaded",u)}function d(u){o("comparePlayers",u)}return(u,p)=>(e.openBlock(),e.createElementBlock("div",mGe,[e.createVNode(e.unref(pGe),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores","hide-personalizable-variables":t.hidePersonalizableVariables,"is-female-mode":t.isFemaleMode,token:t.token,onOpenmedia:i,onComparePlayers:d,onOpenMedia:i,onOpenProfileTeam:s,onOpenProfilePlayer:r,onShowGraph:l,onChangeSeasonId:n,onTopsLoaded:c},null,8,["user-id","team-id","hide-personalizable-variables","is-female-mode","token"])]))}}),[["__scopeId","data-v-433d86de"]]),uGe=(t=>(e.pushScopeId("data-v-fb7f69ad"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),fGe={class:""},hGe={class:""},yGe={class:"tabs"},gGe=Bi({__name:"PlayersTrackingMain",props:{tournamentsApiUrl:{type:String,default:""},tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},userType:{type:String,default:"presidents"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},isSeleccionUser:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},userId:{type:Number,default:24254,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0},areFemaleTeamsExcluded:{type:Boolean,default:!1},hidePersonalizableVariables:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:o}){const a=t,i={fontFamily:"Poppins-Light",logosUrl:"https://golstatsimages.blob.core.windows.net/todoelfut/",logoFileType:"png",height:"40px",width:"179px",borderRadius:8,arrowHeight:24,arrowWidth:24,borderType:"solid",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#0d1d29",color:"white",arrowColor:"#CBEE6B"},s=a.userType==="seleccion"?["Detección de jugadores","Listas de seguimiento","Última convocatoria"]:["Detección de jugadores","Listas de seguimiento"],r=e.ref("Detección de jugadores"),l=e.ref({width:0}),n=e.ref(null),c=e.ref(0),d=e.ref(0),u=e.ref([]),p=e.ref([]),y=e.ref(!1),m=e.ref(!1),h=e.ref({}),f=e.ref([]),g=e.ref({}),b=e.ref({});e.watch(()=>a.tournamentId,w=>{w&&v()},{immediate:!0}),e.watch(()=>a.teamId,async w=>{w&&(await F(),await v())},{immediate:!0});const S=w=>{r.value=w};async function F(){try{const w=[fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/last-call/teams/${a.teamId}/seasons`,{method:"GET",headers:{Authorization:a.token}}),fetch("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",{method:"GET",headers:{Authorization:a.token}})],[G,$]=await Promise.all(w);let J=await G.json();const fe=await $.json();a.areFemaleTeamsExcluded&&(J=J.filter(ye=>!ye.team_name.toLowerCase().includes("femenil"))),J.forEach(ye=>{ye.seasonsIds=new Set(ye.seasons.map(ge=>ge.id)),ye.availableTournaments=ye.seasonsIds?fe.reduce((ge,Z)=>{if(Z.seasons.some(_=>ye.seasonsIds.has(_.id))){const _=Z.seasons.filter(B=>ye.seasonsIds.has(B.id));ge.push({...Z.tournament,seasons:ye.seasons.reduce((B,A)=>(_.forEach(pe=>{pe.id===A.id&&B.push(A)}),B),[]),seasonsIds:ye.seasonsIds,teamId:ye.team_id})}return ge},[]):[]}),f.value=J.filter(ye=>ye.availableTournaments.length>0),g.value=f.value[0]}catch(w){console.error(w)}}async function v(){try{if(c.value!==a.tournamentId||d.value!==a.teamId){const w=[M()];c.value=a.tournamentId,d.value=a.teamId;const[G]=await Promise.all(w);p.value=G}}catch(w){console.error("Error filling data",w)}}function T(){D().then(w=>{u.value=w})}async function M(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/in-followed/teams/${a.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(w){console.error("Error fetching in followed",w)}}async function D(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${h.value.id}/teams/${h.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(w){console.error("Error fetching last called",w)}}const P=()=>{n.value&&(l.value.width=n.value.offsetWidth,y.value=l.value.width<700,m.value=l.value.width<420)};e.onMounted(()=>{P();const w=new ResizeObserver(P);n.value&&w.observe(n.value)});const Q=e.computed(()=>{const w=l.value.width;return w<=560?"170px":(w<=650||w<=768,"225px")}),O=e.computed(()=>{const w=l.value.width;return w<=460?"12px":w<=650?"13px":w<=768?"14px":"16px"});e.computed(()=>l.value.width<=380?"18px":"22px");const k=e.computed(()=>{switch(r.value){case"Detección de jugadores":return d4;case"Listas de seguimiento":return Wde;case"Última convocatoria":return X6;default:return d4}}),E=e.computed(()=>m.value||y.value?"100%":"179px"),V=w=>{o("openmedia",w)},N=w=>{o("showGraph",w)},Y=w=>{o("open-profile-team",w)},de=w=>{o("open-profile-player",w)},ue=w=>{o("open-profile-player",w)},C=w=>{o("compare-players",w)};function I(w){o("change-season-id",w)}function U(w){o("tops-loaded",w)}async function z(){if(h.value.friendlyGames&&h.value.friendlyGames.length>0)try{const G=await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/games/${b.value.game_id}/teams/${g.value.team_id}`,{method:"GET",headers:{Authorization:a.token}})).json();u.value=G.players||[]}catch(w){console.error("Error fetching last called players by game",w)}}function W(w){b.value=w,z()}async function ce(w){const G=w.name.toLowerCase();w.isFriendly=G.includes("friend"),w.isFriendly&&!w.friendlyGames&&(w.friendlyGames=w.seasons.reduce(($,J)=>(J.games&&($=[...$,...J.games]),$),[])),h.value=w,h.value.friendlyGames?(b.value=h.value.friendlyGames[0],await z()):T()}function j(w){g.value=w}function H(w){g.value=w}return(w,G)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":y.value}])},[uGe,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":y.value}])},[t.isSeleccionUser&&r.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[e.createVNode(e.unref(o1),e.mergeProps(i,{"model-value":g.value,items:f.value,onInput:j,"onUpdate:modelValue":H}),{default:e.withCtx(({selectedItem:$})=>[e.createElementVNode("div",fGe,e.toDisplayString($.team_name),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,e.toDisplayString($.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(f6),{key:0,items:g.value.availableTournaments,width:E.value,token:t.token,onInput:ce},null,8,["items","width","token"])):e.createCommentVNode("",!0)],2),h.value.friendlyGames?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[e.createVNode(e.unref(o1),e.mergeProps(i,{width:"250px","model-value":b.value,items:h.value.friendlyGames,onInput:W}),{default:e.withCtx(({selectedItem:$})=>[e.createElementVNode("div",hGe,e.toDisplayString($.game),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,e.toDisplayString($.game),1)]),_:1},16,["model-value","items"])],2)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",yGe,[e.createVNode(e.unref(M6),{type:2,buttons:e.unref(s),"font-family":"Poppins-Medium","selected-option":r.value,"font-size":O.value,width:Q.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:S},null,8,["buttons","selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":r.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{"parent-width":l.value.width,"user-id":a.userId,"team-id":a.teamId,"user-team-id":a.userTeamId,"last-called-players":u.value,"in-followed-players":p.value,"hide-personalizable-variables":t.hidePersonalizableVariables,"is-female-mode":t.isFemaleMode,token:t.token,onShowGraph:N,onShowProfile:ue,onOpenmedia:V,onOpenMedia:V,onOpenProfileTeam:Y,onOpenProfilePlayer:de,onChangeSeasonId:I,onTopsLoaded:U,onComparePlayers:C},null,40,["parent-width","user-id","team-id","user-team-id","last-called-players","in-followed-players","hide-personalizable-variables","is-female-mode","token"]))],2)],512))}},[["__scopeId","data-v-fb7f69ad"]]),bGe={class:"subcategory-group"},SGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",bGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(ze),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},_Ge=Oe(SGe,[["__scopeId","data-v-ae6f3d72"]]),CGe={class:"filter-subcategories"},wGe=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",CGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(_Ge,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),In=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),kGe={class:"details__header"},EGe=In(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),VGe={class:"details__header__checkbox"},xGe={class:"details__body"},NGe={class:"details__body__playing-as"},TGe=["onClick"],BGe={class:"details__header"},FGe=In(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),PGe={class:"details__header__checkbox"},$Ge={class:"details__body"},AGe=In(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),IGe={class:"details__body__game-section"},zGe=["onClick"],MGe={class:"details__body"},OGe=In(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),RGe={class:"details__body__game-section"},LGe=["onClick"],DGe=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const o=t;e.useCssVars(u=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>o.playingAs.every(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,p)=>(p.value<=3?u.firstHalf.push(p):u.secondHalf.push(p),u),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(u){u?o.playingAs.forEach(p=>{p.isSelected=!0}):o.playingAs.forEach((p,y)=>{p.isSelected=y===0})}function n(u){o.playingAs.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(p=>{p.isSelected=!0}):o.gameSections.forEach((p,y)=>{p.isSelected=y===0})}return(u,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",kGe,[EGe,e.createElementVNode("div",VGe,[e.createVNode(e.unref(ze),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",xGe,[e.createElementVNode("div",NGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,TGe))),128))])]),e.createElementVNode("div",BGe,[FGe,e.createElementVNode("div",PGe,[e.createVNode(e.unref(ze),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",$Ge,[AGe,e.createElementVNode("div",IGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,zGe))),128))])]),e.createElementVNode("div",MGe,[OGe,e.createElementVNode("div",RGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,LGe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),vGe={class:"filter-field"},jGe=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",vGe,[e.createVNode(e.unref(Bh),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),UGe={class:"subcategory-group"},WGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",UGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(Be),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},HGe=Pe(WGe,[["__scopeId","data-v-ae6f3d72"]]),GGe={class:"filter-subcategories"},qGe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",GGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(HGe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),zn=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),JGe={class:"details__header"},ZGe=zn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),YGe={class:"details__header__checkbox"},KGe={class:"details__body"},XGe={class:"details__body__playing-as"},QGe=["onClick"],eqe={class:"details__header"},tqe=zn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),aqe={class:"details__header__checkbox"},oqe={class:"details__body"},iqe=zn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),sqe={class:"details__body__game-section"},rqe=["onClick"],lqe={class:"details__body"},nqe=zn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),dqe={class:"details__body__game-section"},cqe=["onClick"],pqe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const o=t;e.useCssVars(u=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>o.playingAs.every(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,p)=>(p.value<=3?u.firstHalf.push(p):u.secondHalf.push(p),u),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(u){u?o.playingAs.forEach(p=>{p.isSelected=!0}):o.playingAs.forEach((p,y)=>{p.isSelected=y===0})}function n(u){o.playingAs.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(p=>{p.isSelected=!0}):o.gameSections.forEach((p,y)=>{p.isSelected=y===0})}return(u,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",JGe,[ZGe,e.createElementVNode("div",YGe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",KGe,[e.createElementVNode("div",XGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,QGe))),128))])]),e.createElementVNode("div",eqe,[tqe,e.createElementVNode("div",aqe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",oqe,[iqe,e.createElementVNode("div",sqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,rqe))),128))])]),e.createElementVNode("div",lqe,[nqe,e.createElementVNode("div",dqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,cqe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),mqe={class:"filter-field"},uqe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",mqe,[e.createVNode(e.unref(z0),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),fqe={class:"subcategory-group"},hqe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",fqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(Fe),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},yqe=Ae(hqe,[["__scopeId","data-v-ae6f3d72"]]),gqe={class:"filter-subcategories"},bqe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",gqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(yqe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Mn=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),Sqe={class:"details__header"},_qe=Mn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Cqe={class:"details__header__checkbox"},wqe={class:"details__body"},kqe={class:"details__body__playing-as"},Eqe=["onClick"],Vqe={class:"details__header"},xqe=Mn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Nqe={class:"details__header__checkbox"},Tqe={class:"details__body"},Bqe=Mn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Fqe={class:"details__body__game-section"},Pqe=["onClick"],$qe={class:"details__body"},Aqe=Mn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Iqe={class:"details__body__game-section"},zqe=["onClick"],Mqe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const o=t;e.useCssVars(u=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>o.playingAs.every(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,p)=>(p.value<=3?u.firstHalf.push(p):u.secondHalf.push(p),u),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(u){u?o.playingAs.forEach(p=>{p.isSelected=!0}):o.playingAs.forEach((p,y)=>{p.isSelected=y===0})}function n(u){o.playingAs.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(p=>{p.isSelected=!0}):o.gameSections.forEach((p,y)=>{p.isSelected=y===0})}return(u,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",Sqe,[_qe,e.createElementVNode("div",Cqe,[e.createVNode(e.unref(Fe),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",wqe,[e.createElementVNode("div",kqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,Eqe))),128))])]),e.createElementVNode("div",Vqe,[xqe,e.createElementVNode("div",Nqe,[e.createVNode(e.unref(Fe),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",Tqe,[Bqe,e.createElementVNode("div",Fqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,Pqe))),128))])]),e.createElementVNode("div",$qe,[Aqe,e.createElementVNode("div",Iqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,zqe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Oqe={class:"filter-field"},Rqe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",Oqe,[e.createVNode(e.unref(S3),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Ga.GSCPlayersTracking=gGe,Object.defineProperty(Ga,Symbol.toStringTag,{value:"Module"})});
|
|
64
|
+
`+s):a.stack=s}catch{}}throw a}}_request(t,o){typeof t=="string"?(o=o||{},o.url=t):o=t||{},o=Lo(this.defaults,o);const{transitional:a,paramsSerializer:i,headers:s}=o;a!==void 0&&$n.assertOptions(a,{silentJSONParsing:Va.transitional(Va.boolean),forcedJSONParsing:Va.transitional(Va.boolean),clarifyTimeoutError:Va.transitional(Va.boolean)},!1),i!=null&&(ne.isFunction(i)?o.paramsSerializer={serialize:i}:$n.assertOptions(i,{encode:Va.function,serialize:Va.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),$n.assertOptions(o,{baseUrl:Va.spelling("baseURL"),withXsrfToken:Va.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=s&&ne.merge(s.common,s[o.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],m=>{delete s[m]}),o.headers=vt.concat(r,s);const l=[];let n=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(o)===!1||(n=n&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,u=0,p;if(!n){const m=[W5.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,c),p=m.length,d=Promise.resolve(o);u<p;)d=d.then(m[u++],m[u++]);return d}p=l.length;let y=o;for(u=0;u<p;){const m=l[u++],h=l[u++];try{y=m(y)}catch(f){h.call(this,f);break}}try{d=W5.call(this,y)}catch(m){return Promise.reject(m)}for(u=0,p=c.length;u<p;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=Lo(this.defaults,t);const o=z5(t.baseURL,t.url,t.allowAbsoluteUrls);return x5(o,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){Do.prototype[t]=function(o,a){return this.request(Lo(a||{},{method:t,url:o,data:(a||{}).data}))}}),ne.forEach(["post","put","patch"],function(t){function o(a){return function(i,s,r){return this.request(Lo(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Do.prototype[t]=o(),Do.prototype[t+"Form"]=o(!0)});let aAe=class C4{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{i.subscribe(n),r=n}).then(s);return l.cancel=function(){i.unsubscribe(r)},l},o(function(s,r,l){i.reason||(i.reason=new Ni(s,r,l),a(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const a=this._listeners.indexOf(o);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const o=new AbortController,a=i=>{o.abort(i)};return this.subscribe(a),o.signal.unsubscribe=()=>this.unsubscribe(a),o.signal}static source(){let o;return{token:new C4(function(a){o=a}),cancel:o}}};function oAe(t){return function(o){return t.apply(null,o)}}function iAe(t){return ne.isObject(t)&&t.isAxiosError===!0}const Gm={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(Gm).forEach(([t,o])=>{Gm[o]=t});function q5(t){const o=new Do(t),a=p5(Do.prototype.request,o);return ne.extend(a,Do.prototype,o,{allOwnKeys:!0}),ne.extend(a,o,null,{allOwnKeys:!0}),a.create=function(i){return q5(Lo(t,i))},a}const Xe=q5(zs);Xe.Axios=Do,Xe.CanceledError=Ni,Xe.CancelToken=aAe,Xe.isCancel=P5,Xe.VERSION=H5,Xe.toFormData=xn,Xe.AxiosError=Te,Xe.Cancel=Xe.CanceledError,Xe.all=function(t){return Promise.all(t)},Xe.spread=oAe,Xe.isAxiosError=iAe,Xe.mergeConfig=Lo,Xe.AxiosHeaders=vt,Xe.formToJSON=t=>B5(ne.isHTMLForm(t)?new FormData(t):t),Xe.getAdapter=U5.getAdapter,Xe.HttpStatusCode=Gm,Xe.default=Xe;const sAe=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},rAe={class:"modal-overlay"},lAe={key:0,class:"modal-content"},nAe={class:"modal-select-container"},dAe={class:"modal-input-wrapper"},cAe=["disabled"],pAe={key:0,class:"modal-input-loading"},mAe={key:0,class:"modal-dropdown-empty"},uAe={key:1,class:"modal-dropdown-scroll"},fAe={class:"variable-selection"},hAe=["value","onClick","disabled"],yAe={class:"variable-text"},gAe={class:"modal-dropdown-actions"},bAe={key:1,class:"modal-error"},SAe={key:0,class:"modal-name-error"},_Ae={class:"modal-actions"},CAe=["disabled"],J5=3,wAe={__name:"CreateListModal",props:{userId:{type:String,required:!0},token:{type:String,required:!0},lists:{type:Array,default:()=>[]}},emits:["close","createList","listCreated"],setup(t,{emit:o}){const a=o,i=t,s=e.ref(""),r=e.ref(""),l=e.ref([]),n=e.ref(!1),c=e.ref(!1),d=e.ref([]),u=e.ref(!1),p=e.ref(null),y=e.ref(!1),m=e.computed(()=>i.lists.some(k=>k.name.toLowerCase()===s.value.toLowerCase().trim())),h=e.computed(()=>s.value.trim()!==""&&l.value.length>0&&!m.value);function f(){n.value=!n.value}async function g(){var k,E;try{u.value=!0;const V=await Xe.create({headers:{Authorization:`${i.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/users/${i.userId}/variables`);d.value=V.data.data,l.value=d.value.filter(N=>N.checked)}catch(V){p.value=((E=(k=V.response)==null?void 0:k.data)==null?void 0:E.message)||"Error al obtener las variables",console.error("Error fetching variables:",V)}finally{u.value=!1}}const b=e.computed(()=>{if(!d.value.length)return[];const k=r.value.toLowerCase().trim();return k?d.value.filter(E=>E.name.toLowerCase().includes(k)):d.value});function S(){n.value=!0,y.value=!1}function F(){n.value=!0}function v(){setTimeout(()=>{y.value||(n.value=!1,r.value="")},200)}function T(){r.value="",n.value=!1,y.value=!1}function M(k){if(l.value.includes(k)){if(l.value.length<=J5)return;l.value=l.value.filter(E=>E!==k)}else l.value.push(k)}async function D(){var k,E;try{if(s.value&&l.value.length){const V=Xe.create({headers:{Authorization:`${i.token}`}}),N={user_id:parseInt(i.userId),name:s.value,variables:l.value};console.log("Lo que se guarda es:");const Y=await V.post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${i.userId}/in-followed`,N);Y.data&&(a("createList",{nombre:s.value,variables:l.value,id:Y.data.data.id}),a("listCreated"),s.value="",l.value=[],r.value="",n.value=!1,a("close"))}}catch(V){console.error("Error creating list:",V),p.value=((E=(k=V.response)==null?void 0:k.data)==null?void 0:E.message)||"Error al crear la lista"}}function P(){n.value=!1,a("close")}function Q(){document.body.style.overflow="hidden"}function O(){document.body.style.overflow=""}return e.onMounted(async()=>{c.value=!0,n.value=!1,Q(),await g()}),e.onUnmounted(()=>{O()}),(k,E)=>(e.openBlock(),e.createElementBlock("div",rAe,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",lAe,[e.createElementVNode("button",{class:"modal-close",onClick:P},"×"),E[7]||(E[7]=e.createElementVNode("div",{class:"modal-title"},[e.createElementVNode("svg",{width:"23",height:"16",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.3877 4.88909H1.70676C1.11931 4.88909 0.638672 5.35562 0.638672 5.92582C0.638672 6.49602 1.11931 6.96254 1.70676 6.96254H12.3877C12.9751 6.96254 13.4558 6.49602 13.4558 5.92582C13.4558 5.35562 12.9751 4.88909 12.3877 4.88909ZM12.3877 0.742188H1.70676C1.11931 0.742188 0.638672 1.20871 0.638672 1.77891C0.638672 2.34911 1.11931 2.81564 1.70676 2.81564H12.3877C12.9751 2.81564 13.4558 2.34911 13.4558 1.77891C13.4558 1.20871 12.9751 0.742188 12.3877 0.742188ZM17.7281 9.03599V5.92582C17.7281 5.35562 17.2475 4.88909 16.6601 4.88909C16.0726 4.88909 15.592 5.35562 15.592 5.92582V9.03599H12.3877C11.8002 9.03599 11.3196 9.50252 11.3196 10.0727C11.3196 10.6429 11.8002 11.1094 12.3877 11.1094H15.592V14.2196C15.592 14.7898 16.0726 15.2563 16.6601 15.2563C17.2475 15.2563 17.7281 14.7898 17.7281 14.2196V11.1094H20.9324C21.5199 11.1094 22.0005 10.6429 22.0005 10.0727C22.0005 9.50252 21.5199 9.03599 20.9324 9.03599H17.7281ZM1.70676 11.1094H8.11532C8.70277 11.1094 9.18341 10.6429 9.18341 10.0727C9.18341 9.50252 8.70277 9.03599 8.11532 9.03599H1.70676C1.11931 9.03599 0.638672 9.50252 0.638672 10.0727C0.638672 10.6429 1.11931 11.1094 1.70676 11.1094Z",fill:"#FFFFFF",stroke:"#FFFFFF","stroke-width":"0.091682"})]),e.createTextVNode(" Crear nueva lista ")],-1)),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=V=>s.value=V),class:"modal-input",type:"text",placeholder:"Nombre de tu lista"},null,512),[[e.vModelText,s.value]]),e.createElementVNode("div",nAe,[e.createElementVNode("div",dAe,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":E[1]||(E[1]=V=>r.value=V),class:"modal-input",type:"text",placeholder:"Selecciona las variables que quieres que se vean",onFocus:S,onBlur:v,onInput:F,disabled:u.value},null,40,cAe),[[e.vModelText,r.value]]),u.value?(e.openBlock(),e.createElementBlock("div",pAe,E[4]||(E[4]=[e.createElementVNode("div",{class:"loading-spinner"},null,-1)]))):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(["modal-dropdown-arrow",{"arrow-up":n.value}]),onMousedown:e.withModifiers(f,["prevent"])},E[5]||(E[5]=[e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M2 4L6 8L10 4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),34))]),n.value&&!u.value&&!p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-dropdown",onMousedown:E[3]||(E[3]=V=>y.value=!0)},[b.value.length===0?(e.openBlock(),e.createElementBlock("div",mAe," No se encontraron variables ")):(e.openBlock(),e.createElementBlock("div",uAe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,V=>(e.openBlock(),e.createElementBlock("div",{key:V.custom_id,class:"modal-dropdown-item"},[e.createElementVNode("label",fAe,[e.withDirectives(e.createElementVNode("input",{type:"checkbox",value:V,"onUpdate:modelValue":E[2]||(E[2]=N=>l.value=N),onClick:e.withModifiers(N=>M(V),["stop"]),disabled:l.value.length<=J5&&l.value.includes(V)},null,8,hAe),[[e.vModelCheckbox,l.value]]),e.createElementVNode("span",yAe,e.toDisplayString(V.name),1)])]))),128))])),e.createElementVNode("div",gAe,[e.createElementVNode("button",{class:"modal-listo-btn",onMousedown:e.withModifiers(T,["prevent"])},"Listo",32)])],32)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("div",bAe,[E[6]||(E[6]=e.createElementVNode("span",{class:"error-icon"},"!",-1)),e.createTextVNode(" "+e.toDisplayString(p.value),1)])):e.createCommentVNode("",!0)]),m.value?(e.openBlock(),e.createElementBlock("div",SAe," Ya existe una lista con este nombre, utiliza otro para poder continuar. ")):e.createCommentVNode("",!0),E[8]||(E[8]=e.createElementVNode("div",{class:"modal-divider"},null,-1)),e.createElementVNode("div",_Ae,[e.createElementVNode("button",{class:"modal-cancel",onClick:P},"Cancelar"),e.createElementVNode("button",{class:e.normalizeClass(["modal-create",{"modal-create--disabled":!h.value}]),onClick:D,disabled:!h.value}," Crear lista ",10,CAe)])])):e.createCommentVNode("",!0)]),_:1})]))}},kAe=sAe(wAe,[["__scopeId","data-v-71419cea"]]),De=t=>(e.pushScopeId("data-v-7c36553e"),t=t(),e.popScopeId(),t),EAe=De(()=>e.createElementVNode("div",{class:"top-scroll-spacer"},null,-1)),VAe={class:"table__static-column"},xAe={class:"static-title column-title restore"},NAe={class:"titles-left"},TAe=De(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{opacity:".6",stroke:"#fff","stroke-width":"1.333","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M15.333 2.667v4h-4M.667 13.333v-4h4"}),e.createElementVNode("path",{d:"M2.34 6a6 6 0 0 1 9.9-2.24l3.094 2.906M.667 9.333l3.093 2.906a6 6 0 0 0 9.9-2.24"})])],-1)),BAe=["id"],FAe={class:"container"},PAe={class:"details-row__info"},$Ae={class:"details-row__info__personal"},AAe={class:"bold"},IAe={class:"bold"},zAe={class:"bold"},MAe={class:"bold"},OAe={class:"details-row__info__games"},RAe={class:"bold"},LAe={class:"bold"},DAe=["onClick"],vAe=De(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),jAe=De(()=>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)),UAe=[vAe,jAe],WAe=["onClick"],HAe=De(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),GAe=De(()=>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)),qAe=[HAe,GAe],JAe=["onClick"],ZAe=De(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),YAe=De(()=>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)),KAe=[ZAe,YAe],XAe=["onClick"],QAe=De(()=>e.createElementVNode("div",null,"Ver perfil",-1)),eIe=[QAe],tIe={class:"static-row__info-player"},aIe=["onClick"],oIe=De(()=>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)),iIe=De(()=>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)),sIe=De(()=>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)),rIe=[oIe,iIe,sIe],lIe=["onClick"],nIe=De(()=>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)),dIe=De(()=>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)),cIe=De(()=>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)),pIe=[nIe,dIe,cIe],mIe={class:"player-photo"},uIe=["src"],fIe={class:"player-name"},hIe={class:"arrow"},yIe=["onClick"],gIe=De(()=>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)),bIe=[gIe],SIe={class:"titles scrollable-row"},_Ie={class:"column-title"},CIe=De(()=>e.createElementVNode("div",null," Equipo ",-1)),wIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),kIe=[wIe],EIe={class:"column-title"},VIe=De(()=>e.createElementVNode("div",null," Posición ",-1)),xIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),NIe=[xIe],TIe={class:"column-title"},BIe=De(()=>e.createElementVNode("div",null," Edad ",-1)),FIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),PIe=[FIe],$Ie=De(()=>e.createElementVNode("div",{class:"column-title"},"País",-1)),AIe={class:"column-title"},IIe=De(()=>e.createElementVNode("div",null," Partidos Jugados ",-1)),zIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),MIe=[zIe],OIe={class:"column-title"},RIe=De(()=>e.createElementVNode("div",null," Minutos Jugados ",-1)),LIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),DIe=[LIe],vIe={class:"column-title"},jIe=De(()=>e.createElementVNode("div",null," Liga ",-1)),UIe=De(()=>e.createElementVNode("g",{opacity:".5",stroke:"#fff","stroke-width":"1.677","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M4.532 2.13v13.74M8.202 12.2l-3.67 3.669-3.669-3.67M12.919 15.87V2.132M16.589 5.802l-3.67-3.67-3.669 3.67"})],-1)),WIe=[UIe],HIe=De(()=>e.createElementVNode("div",{class:"column-title"},"Videos",-1)),GIe={class:"team-logo"},qIe=["src"],JIe={class:"team-name data-info"},ZIe=["src"],YIe={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1},isGraphButtonVisible:{type:Boolean,default:!0},isAddToListButtonVisible:{type:Boolean,default:!0},isAddToListPlayerVisible:{type:Boolean,default:!0},lists:{type:Array,default:()=>[]},userId:{type:Number,default:0},token:{type:String,default:""}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media","click-parameters","list-created","delete-from-list"],setup(t,{emit:o}){const a=t;let i=null,s=null;const r=e.ref([]),l=e.ref(null),n=e.ref(null),c=e.ref(null),d=e.ref(0),u=e.ref(0),p=e.ref(-1),y=e.ref(!1),m=e.ref(null),h=e.ref(null),f=e.ref(null),g=e.ref([]),b=e.ref([{name:"team_abrev",isDesc:!1,isRoot:!0},{name:"player_position",isDesc:!1,isRoot:!0},{name:"player_age",isDesc:!1,isRoot:!0},{name:"player_games",isDesc:!1,isRoot:!0},{name:"player_min",isDesc:!1,isRoot:!0},{name:"league_name",isDesc:!1,isRoot:!0}]),S=e.ref(0),F=e.ref("922px"),v=e.ref(!1),T=e.ref(!1),M=e.ref(null),D=e.computed(()=>({"--width-details":`${d.value}px`,"--gap-static-row":`${P.value?"8px":"18px"}`,"--width-static-column":`${P.value?"65%":"436px"}`})),P=e.computed(()=>d.value<600);e.watch(()=>a.players,_=>{_&&_.length&&(r.value=_.map((B,A)=>{const pe=A+1,he={...B,position:pe<10?`0${pe}`:`${pe}`,isSelected:!1,isExpanded:!1,isOdd:A%2!==0,index:A};return B.stats&&B.stats.length&&(he.stats=B.stats.map(me=>({...me,isDesc:!1,isRoot:!1}))),he.parameters&&Object.entries(he.parameters).forEach(([me,Re])=>{const St=he.stats.find(Ti=>Ti.custom_category_id===Number(me));St&&(St.parameters=Re)}),he}),g.value=r.value.map(B=>({...B})))},{immediate:!0,deep:!0}),e.watch(()=>a.isEditMode,_=>{_&&r.value.forEach(B=>{B.isSelected=!1})}),e.watch(()=>f.value,_=>{if(_){let B=[...g.value];_.isRoot?B.sort((A,pe)=>typeof A[_.name]=="string"?_.isDesc?A[_.name].localeCompare(pe[_.name]):A[_.name].localeCompare(pe[_.name])*-1:_.isDesc?pe[_.name]-A[_.name]:A[_.name]-pe[_.name]):B.sort((A,pe)=>{const he=A.stats.find(Re=>Re.name===_.name),me=pe.stats.find(Re=>Re.name===_.name);return typeof he.value=="string"?_.isDesc?he.total.localeCompare(me.total):he.total.localeCompare(me.total)*-1:_.isDesc?me.total-he.total:he.total-me.total}),B.forEach((A,pe)=>{A.isOdd=pe%2!==0}),g.value=B}else g.value.sort((B,A)=>B.index-A.index).forEach((B,A)=>{B.isOdd=A%2!==0})},{immediate:!0,deep:!0}),e.watch(u,_=>{const B=document.querySelectorAll(".static-row")[p.value+1];B&&(B.style.marginTop=`${_}px`),a.isGeneral?Q(p.value,_):n.value&&n.value.setMarginTopDetails(p.value,_),_===0&&m.value&&z(m.value)});function Q(_,B){const A=document.querySelectorAll(".scrollable-row")[_+2];A&&(A.style.marginTop=`${B}px`)}function O(_){o("click-parameters",_)}function k(_){_&&(_.isDesc=!_.isDesc),f.value=_}function E(_){const B=_.player||_.objeto_player,A=B?B.player_id||B.id||B.playerId:_.id||_.player_id,pe={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:A?[A]:[],goalkeeperIds:[],matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(_.stat&&_.stat.parameters&&(pe.parameters=_.stat.parameters),_.stat&&_.stat.seasons&&_.stat.seasons.length||_.seasons&&_.seasons.length){const he=[..._.stat&&_.stat.seasons&&_.stat.seasons.length?_.stat.seasons:_.seasons];he.sort((me,Re)=>me-Re),pe.seasonId=he.shift(),pe.seasonsIds=he}else(_.season_id||_.seasonId)&&(pe.seasonId=_.season_id||_.seasonId);_.stat?_.stat.category_id&&_.stat.category_id.length?pe.categoryIds=_.stat.category_id:_.stat.custom_category_id&&(pe.customCategoryIds=[_.stat.custom_category_id]):pe.categoryIds=Y(_.player_position),o("open-media",pe)}function V(){i=new ResizeObserver(_=>{for(const B of _)d.value=B.contentRect.width}),i.observe(l.value)}function N(_){s=new ResizeObserver(B=>{for(const A of B)u.value=A.contentRect.height}),s.observe(_)}function Y(_){return _==="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 de(_,B){B.isSelected=_;const A=r.value.filter(pe=>pe.isSelected);o("change-selected-players",A)}function ue(_){o("view-profile",_)}function C(_){o("delete-from-list",_)}function I(_){M.value=_.objeto_player||_,o("add-to-list",_),_.showTooltip=!0}function U(_){o("show-graph",_)}function z(_){if(_.isExpanded){_.isExpanded=!1,m.value=null;return}const B=r.value.find(me=>me.isExpanded);if(B&&(B.isExpanded=!1),B){m.value=_;return}const A=document.querySelectorAll(".details-row");let pe=-1;A.forEach((me,Re)=>{me.id===`dr-${_.id}`&&(pe=Re)});const he=A[pe];p.value=pe,N(he),_.isExpanded=!0,r.value.forEach(me=>{me.isExpanded=!1}),setTimeout(()=>{if(!y.value){const me=document.querySelectorAll(".details-row")[_.index];p.value=_.index,N(me)}_.isExpanded=!y.value},1)}let W=!1,ce,j,H=function(_){W=!0,ce=_.pageX-h.value.offsetLeft,j=h.value.scrollLeft},w=function(_){W=!0,ce=_.pageX-c.value.offsetLeft,j=c.value.scrollLeft},G=function(){W=!1};function $(_){h.value&&(h.value.scrollLeft=_.target.scrollLeft)}function J(_){c.value&&(c.value.scrollLeft=_.target.scrollLeft)}function fe(){h.value&&(h.value.addEventListener("mousemove",_=>{if(!W)return;const B=_.pageX-h.value.offsetLeft-ce,A=j-B;h.value.scrollLeft=A,c.value&&(c.value.scrollLeft=A)}),h.value.addEventListener("mousedown",H,!1),h.value.addEventListener("mouseup",G,!1),h.value.addEventListener("mouseleave",G,!1),h.value.addEventListener("scroll",J)),c.value&&(c.value.addEventListener("mousemove",_=>{if(!W)return;const B=_.pageX-c.value.offsetLeft-ce,A=j-B;c.value.scrollLeft=A,h.value&&(h.value.scrollLeft=A)}),c.value.addEventListener("mousedown",w,!1),c.value.addEventListener("mouseup",G,!1),c.value.addEventListener("mouseleave",G,!1),c.value.addEventListener("scroll",$))}function ye(){a.isGeneral?F.value="922px":e.nextTick(()=>{const _=document.querySelector(".scrollable-row-2");if(_){const B=window.getComputedStyle(_),A=_.scrollWidth||parseInt(B.width);F.value=`${A}px`}else if(r.value.length&&r.value[0].stats){const B=r.value[0].stats.length,A=120;F.value=`${(B+1)*A}px`}})}e.watch(()=>[a.players,a.isGeneral],()=>{ye()},{immediate:!0});function ge(){v.value=!0}async function Z(_){try{const B={dob:M.value.dob,is_female:0,jersey:0,name:M.value.name,nationality:M.value.nationality,nationality_id:M.value.nationality_id,player_id:M.value.player_id,position:M.value.position_id,team_id:M.value.team_id},A={user_id:a.userId,id:_.id,players:[B]};await fetch(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${a.userId}/in-followed/${_.id}/players`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:a.token},body:JSON.stringify(A)}),o("list-created")}catch(B){console.error("Error creating list:",B)}}function x(){o("list-created")}return e.onMounted(()=>{V(),fe()}),e.onBeforeUnmount(()=>{i&&i.disconnect(),s&&s.disconnect(),h.value&&(h.value.removeEventListener("mousemove",H,!1),h.value.removeEventListener("mouseup",G,!1),h.value.removeEventListener("mouseleave",G,!1),h.value.removeEventListener("scroll",J)),c.value&&(c.value.removeEventListener("mousemove",w,!1),c.value.removeEventListener("mouseup",G,!1),c.value.removeEventListener("mouseleave",G,!1),c.value.removeEventListener("scroll",$))}),(_,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value?(e.openBlock(),e.createBlock(e.unref(kAe),{key:0,token:t.token,"user-id":t.userId,onClose:B[0]||(B[0]=A=>v.value=!1),onCreateList:Z},null,8,["token","user-id"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"top-scroll-container",style:e.normalizeStyle(D.value)},[EAe,e.createElementVNode("div",{ref_key:"topScrollableColumns",ref:c,class:"top-scroll"},[e.createElementVNode("div",{class:"top-scroll-content",style:e.normalizeStyle({width:F.value})},null,4)],512)],4),(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:l,style:e.normalizeStyle(D.value),key:S.value},[e.createElementVNode("div",VAe,[e.createElementVNode("div",xAe,[e.createElementVNode("div",NAe,[e.createElementVNode("div",{class:"title",style:e.normalizeStyle(P.value?"font-size: 8px":"")},"Ranking",4),t.isAddToListPlayerVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"title",style:e.normalizeStyle(P.value?"font-size: 8px":"")},"Agregar a lista",4)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{role:"button",class:"restore-button",onClick:B[1]||(B[1]=A=>k(null))},[TAe,e.createElementVNode("div",{style:e.normalizeStyle(P.value?"font-size: 10px; white-space: wrap;":"")},"Restaurar orden",4)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,A=>(e.openBlock(),e.createElementBlock("div",{key:`s-${A.id}`,class:e.normalizeClass(["row static-row",{odd:A.isOdd}]),style:e.normalizeStyle(P.value?"width: auto":"")},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:`dr-${A.id}`,class:e.normalizeClass(["details-row",{odd:A.isOdd}])},[e.createElementVNode("div",FAe,[e.createElementVNode("div",PAe,[e.createElementVNode("div",$Ae,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",AAe,e.toDisplayString(A.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",IAe,e.toDisplayString(A.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",zAe,e.toDisplayString(A.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",MAe,e.toDisplayString(A.position_name),1)])]),e.createElementVNode("div",OAe,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",RAe,e.toDisplayString(A.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",LAe,e.toDisplayString(A.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(P.value?"margin-left: 0; gap: 8px;":"")},[t.isGraphButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:pe=>U(A)},UAe,8,DAe)):e.createCommentVNode("",!0),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:pe=>C(A)},qAe,8,WAe)):t.isAddToListButtonVisible?(e.openBlock(),e.createElementBlock("div",{key:2,role:"button",class:"button",onClick:pe=>I(A)},KAe,8,JAe)):e.createCommentVNode("",!0),e.createElementVNode("div",{role:"button",class:"button green",onClick:pe=>ue(A)},eIe,8,XAe)],4)])],10,BAe),[[e.vShow,A.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(_Be),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":A.isSelected,"onUpdate:modelValue":pe=>de(pe,A)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",tIe,[e.createElementVNode("div",{class:"position",style:e.normalizeStyle(P.value?"width:20px;":"")},e.toDisplayString(A.position),5),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-to-list-container",style:e.normalizeStyle(P.value?"width:20px;":"")},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:pe=>C(A)},rIe,8,aIe))],4)):t.isAddToListPlayerVisible?(e.openBlock(),e.createElementBlock("div",{key:1,class:"add-to-list",style:e.normalizeStyle(P.value?"width:20px;":"")},[A.showTooltip?(e.openBlock(),e.createBlock(e.unref(TPe),{key:0,token:t.token,"user-id":t.userId,lists:t.lists,isModalOpen:T.value,"selected-player":A.objeto_player,onClose:pe=>A.showTooltip=!1,onCreateNewList:ge,onPlayerAdded:x},null,8,["token","user-id","lists","isModalOpen","selected-player","onClose"])):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:pe=>I(A)},pIe,8,lIe))],4)):e.createCommentVNode("",!0),e.createElementVNode("div",mIe,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:A.player_photo,alt:"player photo"},null,8,uIe)])]),e.createElementVNode("div",fIe,e.toDisplayString(A.player_name),1)]),e.createElementVNode("div",hIe,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:A.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:pe=>z(A)},bIe,10,yIe))])],6))),128))]),e.createElementVNode("div",{ref_key:"scrollableColumns",ref:h,class:"table__scrollable-columns"},[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",SIe,[e.createElementVNode("div",_Ie,[CIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[2]||(B[2]=A=>k(b.value[0]))},kIe))]),e.createElementVNode("div",EIe,[VIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[3]||(B[3]=A=>k(b.value[1]))},NIe))]),e.createElementVNode("div",TIe,[BIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[4]||(B[4]=A=>k(b.value[2]))},PIe))]),$Ie,e.createElementVNode("div",AIe,[IIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[5]||(B[5]=A=>k(b.value[3]))},MIe))]),e.createElementVNode("div",OIe,[RIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[6]||(B[6]=A=>k(b.value[4]))},DIe))]),e.createElementVNode("div",vIe,[jIe,(e.openBlock(),e.createElementBlock("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:B[7]||(B[7]=A=>k(b.value[5]))},WIe))]),HIe]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,A=>(e.openBlock(),e.createElementBlock("div",{key:`i-${A.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:A.isOdd}])},[e.createElementVNode("div",GIe,[e.createElementVNode("img",{src:A.team_logo,alt:"team logo"},null,8,qIe)]),e.createElementVNode("div",JIe,e.toDisplayString(A.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},[e.createElementVNode("img",{src:A.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,ZIe)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},e.toDisplayString(A.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:A.isOdd}])},[e.createVNode(e.unref(PBe),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:pe=>E(A)},null,8,["onClick"])],2)]))),128))],64)):(e.openBlock(),e.createBlock(jBe,{key:1,ref_key:"scrollColumns",ref:n,"available-players":g.value,"is-edit-mode":t.isEditMode,"is-mobile":P.value,onOpenMedia:E,onClickParameters:O,onSort:k},null,8,["available-players","is-edit-mode","is-mobile"]))],512)],4))],64))}},KIe=Nb(YIe,[["__scopeId","data-v-7c36553e"]]),qm=(t,o)=>{const a=t.__vccOpts||t;for(const[i,s]of o)a[i]=s;return a},Jm={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1},title:{type:String,default:"Zona de origen del balón:"},quarters:{type:Array,default:()=>[1,2,3,4]}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,lastSelectedSections:[]}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){if(this.lastSelectedSections.every(a=>t.has(a)))return;const o=Array.from(t).map(Number).sort((a,i)=>a-i);this.lastSelectedSections=[...o],this.$emit("sections-changed",o)},deep:!0}},methods:{initializeSections(){if(this.selectedSections.clear(),this.initialSections&&this.initialSections.length>0)this.initialSections.forEach(t=>{const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())});else for(let t=1;t<=16;t++){const o=Math.ceil(t/4);this.isQuarterEnabled(o)&&this.selectedSections.add(t.toString())}this.updateSelectAllState()},isSelected(t){return this.selectedSections.has(t.toString())},toggleSection(t){const o=Math.ceil(t/4);if(!this.isQuarterEnabled(o))return;const a=t.toString();this.selectedSections.size===1&&this.selectedSections.has(a)||(this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState())},toggleAllSections(){if(this.selectAll)for(let t=1;t<=16;t++)this.selectedSections.add(t.toString());else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{this.selectAll=this.selectedSections.size===16})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t){if(this.displayMode)return;const o=Date.now();if(o-this.lastUpdateTime<16)return;this.lastUpdateTime=o;const a=t.toString(),i=Math.ceil(t/4);if(this.isQuarterEnabled(i)){if(this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(a)),this.dragSelectMode)this.selectedSections.add(a);else{if(this.selectedSections.size===1&&this.selectedSections.has(a))return;this.selectedSections.delete(a)}this.updateSelectAllState()}},getSectionNumber(t,o){return(t-1)*4+o},getSectionIndex(t,o){return(t-1)*4+o},selectColumn(t){if(!this.isQuarterEnabled(t))return;const o=(t-1)*4+1,a=t*4;if(Array.from({length:4},(i,s)=>(o+s).toString()).every(i=>this.selectedSections.has(i))&&this.selectedSections.size>4)for(let i=o;i<=a;i++)this.selectedSections.delete(i.toString());else for(let i=o;i<=a;i++)this.selectedSections.add(i.toString());this.updateSelectAllState()},isQuarterSelected(t){const o=(t-1)*4+1;return Array.from({length:4},(a,i)=>(o+i).toString()).every(a=>this.selectedSections.has(a))},isQuarterEnabled(t){return this.quarters.includes(t)}}},Z5=()=>{e.useCssVars(t=>({"3f07ccca":t.fieldWidth+"px","26834d3a":t.fieldHeight+"px","1711e604":t.displayMode?"-28px":"0"}))},Y5=Jm.setup;Jm.setup=Y5?(t,o)=>(Z5(),Y5(t,o)):Z5;const XIe={class:"field-template-element"},QIe={class:"field-container"},eze=["onMouseenter","onMousedown"],tze={class:"column-buttons"},aze=["onClick","disabled"];function oze(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",XIe,[e.createElementVNode("div",QIe,[e.createElementVNode("div",{class:e.normalizeClass(["field-title",{"hidden-title":a.displayMode}])},[e.createElementVNode("span",null,e.toDisplayString(a.title),1)],2),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[0]||(o[0]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[1]||(o[1]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[2]||(o[2]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"field-column"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(r.getSectionIndex(l,n)),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(r.getSectionIndex(l,n)),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(r.getSectionIndex(l,n)),["prevent"])},null,42,eze)),64))])),64))],32),e.createElementVNode("div",tze,[a.displayMode?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(4,l=>e.createElementVNode("div",{key:l,class:"column-label"},e.toDisplayString(l)+"/4 tos ",1)),64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},e.renderList(4,l=>e.createElementVNode("button",{key:l,class:e.normalizeClass(["column-button",{selected:r.isQuarterSelected(l),disabled:!r.isQuarterEnabled(l)}]),onClick:n=>r.selectColumn(l),disabled:!r.isQuarterEnabled(l)},e.toDisplayString(l)+"/4 tos ",11,aze)),64))])])])}const ize=qm(Jm,[["render",oze],["__scopeId","data-v-1f6351a4"]]),Zm={name:"FieldTemplatesElement",props:{fieldWidth:{type:Number,default:302.5},fieldHeight:{type:Number,default:254.5},initialSections:{type:Array,default:()=>[]},displayMode:{type:Boolean,default:!1}},data(){return{selectAll:!0,selectedSections:new Set,isDragging:!1,dragSelectMode:null,lastUpdateTime:0,selectedCells:new Array(72).fill(!0)}},created(){this.initializeSections()},watch:{initialSections:{handler:"initializeSections",immediate:!0},selectedSections:{handler(t){const o=Array.from(t).map(r=>{const[l,n]=r.split("-").map(Number);return{row:l,col:n,value:this.getSequentialNumber(l,n)}}),a={};o.forEach(r=>{a[r.col]||(a[r.col]=[]),a[r.col].push(r)});const i=[];Object.values(a).forEach(r=>{r.sort((n,c)=>c.row-n.row);let l=[r[0]];for(let n=1;n<r.length;n++){const c=r[n];r[n-1].row-c.row===1?l.push(c):(l.length>0&&i.push(l),l=[c])}l.length>0&&i.push(l)});const s=i.sort((r,l)=>{const n=Math.min(...r.map(d=>d.value)),c=Math.min(...l.map(d=>d.value));return n-c}).map(r=>{const l=r.map(n=>n.value).sort((n,c)=>c-n);return l.length===1?[l[0],l[0]]:[l[0],l[l.length-1]]});this.$emit("sections-changed",s)},deep:!0}},methods:{initializeSections(){if(this.initialSections&&this.initialSections.length>0)this.selectedSections.clear(),this.initialSections.forEach(t=>{if(Array.isArray(t)&&t.length===2){const[o,a]=t,i=17-Math.floor((o-1)/21),s=(o-1)%21+1,r=17-Math.floor((a-1)/21),l=(a-1)%21+1;if(s===l){const n=Math.min(i,r),c=Math.max(i,r);for(let d=n;d<=c;d++)this.selectedSections.add(this.getSectionId(d,s))}else{const n=Math.min(s,l),c=Math.max(s,l);for(let d=n;d<=c;d++){const u=d===s?i:1,p=d===l?r:17;for(let y=Math.min(u,p);y<=Math.max(u,p);y++)this.selectedSections.add(this.getSectionId(y,d))}}}});else for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));this.updateSelectAllState()},getSectionId(t,o){return`${t}-${o}`},isSelected(t,o){return this.selectedSections.has(this.getSectionId(t,o))},toggleSection(t,o){const a=this.getSectionId(t,o);this.selectedSections.has(a)?this.selectedSections.delete(a):this.selectedSections.add(a),this.updateSelectAllState()},toggleAllSections(){if(this.selectAll)for(let t=1;t<=17;t++)for(let o=1;o<=21;o++)this.selectedSections.add(this.getSectionId(t,o));else this.selectedSections.clear()},updateSelectAllState(){requestAnimationFrame(()=>{let t=357;this.selectAll=this.selectedSections.size===t})},startDragging(){this.displayMode||(this.isDragging=!0,event.preventDefault())},stopDragging(){this.displayMode||(this.isDragging=!1,this.dragSelectMode=null)},handleDragSelect(t,o){if(this.displayMode)return;const a=Date.now();if(a-this.lastUpdateTime<16)return;this.lastUpdateTime=a;const i=this.getSectionId(t,o);this.dragSelectMode===null&&(this.dragSelectMode=!this.selectedSections.has(i)),this.dragSelectMode?this.selectedSections.add(i):this.selectedSections.delete(i),this.updateSelectAllState()},getSequentialNumber(t,o){return(17-t)*21+o}}},K5=()=>{e.useCssVars(t=>({"7dc153b4":t.fieldWidth+"px","3cee0bfc":(t.displayMode?t.fieldHeight-24:t.fieldHeight)+"px"}))},X5=Zm.setup;Zm.setup=X5?(t,o)=>(K5(),X5(t,o)):K5;const sze={class:"field-template-element"},rze={class:"field-container"},lze={key:0,class:"select-all-container"},nze={class:"select-all-label"},dze=["onMouseenter","onMousedown"];function cze(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",sze,[e.createElementVNode("div",rze,[a.displayMode?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",lze,[e.createElementVNode("label",nze,[o[5]||(o[5]=e.createElementVNode("span",null,"Seleccionar toda la cancha",-1)),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"select-all-checkbox","onUpdate:modelValue":o[0]||(o[0]=l=>s.selectAll=l),onChange:o[1]||(o[1]=(...l)=>r.toggleAllSections&&r.toggleAllSections(...l))},null,544),[[e.vModelCheckbox,s.selectAll]])])])),e.createElementVNode("div",{class:"soccer-field",onMousedown:o[2]||(o[2]=(...l)=>r.startDragging&&r.startDragging(...l)),onMouseup:o[3]||(o[3]=(...l)=>r.stopDragging&&r.stopDragging(...l)),onMouseleave:o[4]||(o[4]=(...l)=>r.stopDragging&&r.stopDragging(...l))},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(17,l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(21,n=>e.createElementVNode("div",{key:`${l}-${n}`,class:e.normalizeClass(["field-section",{selected:r.isSelected(l,n),"display-mode":a.displayMode}]),onMouseenter:c=>s.isDragging&&r.handleDragSelect(l,n),onMousedown:e.withModifiers(c=>!a.displayMode&&r.toggleSection(l,n),["prevent"])},null,42,dze)),64))],64))),64))],32),o[6]||(o[6]=e.createStaticVNode('<div class="attack-direction" data-v-389c50fa><div class="arrow-line" data-v-389c50fa></div><span class="attack-text" data-v-389c50fa>Ataca</span><div class="arrow-line" data-v-389c50fa></div><svg class="arrow-head" width="12" height="12" viewBox="0 0 12 12" data-v-389c50fa><polygon points="12,6 0,1 0,11" fill="#316fee" data-v-389c50fa></polygon></svg></div>',1))])])}const pze=qm(Zm,[["render",cze],["__scopeId","data-v-389c50fa"]]),mze={components:{FieldGolStatsTemplates:ize,FieldTemplatesElement:pze},name:"ModalPassConditions",props:{isVisible:{type:Boolean,required:!0},parameters:{type:Object,required:!0}},data(){return{quarters:[1,2],userId:24254,originSelection:[],destinationSelection:[],selectAllOrigin:!1,selectAllDestination:!1,minDistanceX:.5,minDistanceY:.5,minDistanceTotal:.5}},methods:{isArrayOfArrays(t){return Array.isArray(t)&&t.length>0&&t.every(o=>Array.isArray(o))},closeModal(){this.$emit("update:isVisible",!1)},updateOriginSelection(t){this.originSelection=t},updateDestinationSelection(t){this.destinationSelection=t},clearFilters(){this.originSelection=[],this.destinationSelection=[],this.selectAllOrigin=!1,this.selectAllDestination=!1,this.minDistanceX=0,this.minDistanceY=0,this.minDistanceTotal=0},applyFilters(){this.$emit("update:isVisible",!1)}}},uze={key:0,class:"modal-wrapper"},fze={class:"modal-overlay"},hze={class:"modal-container"},yze={class:"modal-content"},gze={class:"modal-header"},bze={class:"fields-container"},Sze={class:"field-section"},_ze={class:"field-section"},Cze={class:"distance-section"},wze={class:"distance-info"},kze={class:"info-row"},Eze={class:"info-value"},Vze={class:"info-row"},xze={class:"info-value"},Nze={class:"info-row"},Tze={class:"info-value"},Bze={class:"distance-section"},Fze={class:"distance-info"},Pze={class:"info-row"},$ze={class:"info-value"},Aze={class:"info-row"},Ize={class:"info-value"},zze={class:"info-row"},Mze={class:"info-value"};function Oze(t,o,a,i,s,r){var l,n,c,d,u,p,y,m,h,f,g,b;const S=e.resolveComponent("FieldGolStatsTemplates"),F=e.resolveComponent("FieldTemplatesElement");return a.isVisible?(e.openBlock(),e.createElementBlock("div",uze,[e.createElementVNode("div",fze,[e.createElementVNode("div",hze,[e.createElementVNode("div",yze,[e.createElementVNode("div",gze,[o[2]||(o[2]=e.createStaticVNode('<div class="header-content" data-v-834c0128><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-inspector="src/components/GSCTemplates.vue:100:15" data-v-a08c9209="" data-v-834c0128><path d="M5.18088 2.68185L3.12463 4.74435L2.31838 3.93185C2.20069 3.81416 2.04107 3.74805 1.87463 3.74805C1.70819 3.74805 1.54857 3.81416 1.43088 3.93185C1.31319 4.04954 1.24707 4.20917 1.24707 4.3756C1.24707 4.54204 1.31319 4.70166 1.43088 4.81935L2.68088 6.06935C2.73898 6.12793 2.80811 6.17443 2.88427 6.20616C2.96043 6.23789 3.04212 6.25423 3.12463 6.25423C3.20714 6.25423 3.28883 6.23789 3.36499 6.20616C3.44115 6.17443 3.51028 6.12793 3.56838 6.06935L6.06838 3.56935C6.12665 3.51108 6.17288 3.4419 6.20442 3.36576C6.23595 3.28962 6.25218 3.20802 6.25218 3.1256C6.25218 3.04319 6.23595 2.96159 6.20442 2.88545C6.17288 2.80931 6.12665 2.74013 6.06838 2.68185C6.0101 2.62358 5.94092 2.57735 5.86478 2.54582C5.78864 2.51428 5.70704 2.49805 5.62463 2.49805C5.54222 2.49805 5.46061 2.51428 5.38447 2.54582C5.30833 2.57735 5.23915 2.62358 5.18088 2.68185Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:101:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 8.125H2.5C2.33424 8.125 2.17527 8.19085 2.05806 8.30806C1.94085 8.42527 1.875 8.58424 1.875 8.75V11.25C1.875 11.4158 1.94085 11.5747 2.05806 11.6919C2.17527 11.8092 2.33424 11.875 2.5 11.875H5C5.16576 11.875 5.32473 11.8092 5.44194 11.6919C5.55915 11.5747 5.625 11.4158 5.625 11.25V8.75C5.625 8.58424 5.55915 8.42527 5.44194 8.30806C5.32473 8.19085 5.16576 8.125 5 8.125ZM4.375 10.625H3.125V9.375H4.375V10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:104:17" data-v-a08c9209="" data-v-834c0128></path><path d="M5 13.75H2.5C2.33424 13.75 2.17527 13.8158 2.05806 13.9331C1.94085 14.0503 1.875 14.2092 1.875 14.375V16.875C1.875 17.0408 1.94085 17.1997 2.05806 17.3169C2.17527 17.4342 2.33424 17.5 2.5 17.5H5C5.16576 17.5 5.32473 17.4342 5.44194 17.3169C5.55915 17.1997 5.625 17.0408 5.625 16.875V14.375C5.625 14.2092 5.55915 14.0503 5.44194 13.9331C5.32473 13.8158 5.16576 13.75 5 13.75ZM4.375 16.25H3.125V15H4.375V16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:107:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 9.375H13.125C13.2908 9.375 13.4497 9.30915 13.5669 9.19194C13.6842 9.07473 13.75 8.91576 13.75 8.75C13.75 8.58424 13.6842 8.42527 13.5669 8.30806C13.4497 8.19085 13.2908 8.125 13.125 8.125H8.125C7.95924 8.125 7.80027 8.19085 7.68306 8.30806C7.56585 8.42527 7.5 8.58424 7.5 8.75C7.5 8.91576 7.56585 9.07473 7.68306 9.19194C7.80027 9.30915 7.95924 9.375 8.125 9.375Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:110:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 10.625H8.125C7.95924 10.625 7.80027 10.6908 7.68306 10.8081C7.56585 10.9253 7.5 11.0842 7.5 11.25C7.5 11.4158 7.56585 11.5747 7.68306 11.6919C7.80027 11.8092 7.95924 11.875 8.125 11.875H18.125C18.2908 11.875 18.4497 11.8092 18.5669 11.6919C18.6842 11.5747 18.75 11.4158 18.75 11.25C18.75 11.0842 18.6842 10.9253 18.5669 10.8081C18.4497 10.6908 18.2908 10.625 18.125 10.625Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:113:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 15H13.125C13.2908 15 13.4497 14.9342 13.5669 14.8169C13.6842 14.6997 13.75 14.5408 13.75 14.375C13.75 14.2092 13.6842 14.0503 13.5669 13.9331C13.4497 13.8158 13.2908 13.75 13.125 13.75H8.125C7.95924 13.75 7.80027 13.8158 7.68306 13.9331C7.56585 14.0503 7.5 14.2092 7.5 14.375C7.5 14.5408 7.56585 14.6997 7.68306 14.8169C7.80027 14.9342 7.95924 15 8.125 15Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:116:17" data-v-a08c9209="" data-v-834c0128></path><path d="M18.125 16.25H8.125C7.95924 16.25 7.80027 16.3158 7.68306 16.4331C7.56585 16.5503 7.5 16.7092 7.5 16.875C7.5 17.0408 7.56585 17.1997 7.68306 17.3169C7.80027 17.4342 7.95924 17.5 8.125 17.5H18.125C18.2908 17.5 18.4497 17.4342 18.5669 17.3169C18.6842 17.1997 18.75 17.0408 18.75 16.875C18.75 16.7092 18.6842 16.5503 18.5669 16.4331C18.4497 16.3158 18.2908 16.25 18.125 16.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:119:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 3.75H13.125C13.2908 3.75 13.4497 3.68415 13.5669 3.56694C13.6842 3.44973 13.75 3.29076 13.75 3.125C13.75 2.95924 13.6842 2.80027 13.5669 2.68306C13.4497 2.56585 13.2908 2.5 13.125 2.5H8.125C7.95924 2.5 7.80027 2.56585 7.68306 2.68306C7.56585 2.80027 7.5 2.95924 7.5 3.125C7.5 3.29076 7.56585 3.44973 7.68306 3.56694C7.80027 3.68415 7.95924 3.75 8.125 3.75Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:122:17" data-v-a08c9209="" data-v-834c0128></path><path d="M8.125 6.25H18.125C18.2908 6.25 18.4497 6.18415 18.5669 6.06694C18.6842 5.94973 18.75 5.79076 18.75 5.625C18.75 5.45924 18.6842 5.30027 18.5669 5.18306C18.4497 5.06585 18.2908 5 18.125 5H8.125C7.95924 5 7.80027 5.06585 7.68306 5.18306C7.56585 5.30027 7.5 5.45924 7.5 5.625C7.5 5.79076 7.56585 5.94973 7.68306 6.06694C7.80027 6.18415 7.95924 6.25 8.125 6.25Z" fill="white" data-v-inspector="src/components/GSCTemplates.vue:125:17" data-v-a08c9209="" data-v-834c0128></path></svg><span data-v-834c0128>Elige las condiciones del pase</span></div>',1)),e.createElementVNode("button",{class:"close-button",onClick:o[0]||(o[0]=v=>t.$emit("update:isVisible",!1))},o[1]||(o[1]=[e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"})],-1)]))]),e.createElementVNode("div",bze,[e.createElementVNode("div",Sze,[r.isArrayOfArrays((l=a.parameters)==null?void 0:l.origin_zones)?(e.openBlock(),e.createBlock(F,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(c=a.parameters)==null?void 0:c.origin_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(S,{key:0,title:"Elige la zona de origen del balón:","initial-sections":(n=a.parameters)==null?void 0:n.origin_zones,"display-mode":!0},null,8,["initial-sections"]))]),e.createElementVNode("div",_ze,[r.isArrayOfArrays((d=a.parameters)==null?void 0:d.destiny_zones)?(e.openBlock(),e.createBlock(F,{key:1,"user-id":24254,"display-mode":!0,"initial-sections":(p=a.parameters)==null?void 0:p.destiny_zones},null,8,["initial-sections"])):(e.openBlock(),e.createBlock(S,{key:0,title:"Elige la zona de destino del balón:","initial-sections":(u=a.parameters)==null?void 0:u.destiny_zones,"display-mode":!0},null,8,["initial-sections"]))])]),e.createElementVNode("div",Cze,[o[6]||(o[6]=e.createElementVNode("h3",null,"Distancia mínima del pase:",-1)),e.createElementVNode("div",wze,[e.createElementVNode("div",kze,[o[3]||(o[3]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",Eze,e.toDisplayString((y=a.parameters)==null?void 0:y.minimum_distance_x)+" m",1)]),e.createElementVNode("div",Vze,[o[4]||(o[4]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",xze,e.toDisplayString((m=a.parameters)==null?void 0:m.minimum_distance_y)+" m",1)]),e.createElementVNode("div",Nze,[o[5]||(o[5]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Tze,e.toDisplayString((h=a.parameters)==null?void 0:h.minimum_total_distance)+" m",1)])])]),e.createElementVNode("div",Bze,[o[10]||(o[10]=e.createElementVNode("h3",null,"Distancia máxima del pase:",-1)),e.createElementVNode("div",Fze,[e.createElementVNode("div",Pze,[o[7]||(o[7]=e.createElementVNode("span",{class:"info-label"},"Eje X de la cancha (de portería a portería):",-1)),e.createElementVNode("span",$ze,e.toDisplayString((f=a.parameters)==null?void 0:f.maximum_distance_x)+" m",1)]),e.createElementVNode("div",Aze,[o[8]||(o[8]=e.createElementVNode("span",{class:"info-label"},"Eje Y de la cancha (de banda a banda):",-1)),e.createElementVNode("span",Ize,e.toDisplayString((g=a.parameters)==null?void 0:g.maximum_distance_y)+" m",1)]),e.createElementVNode("div",zze,[o[9]||(o[9]=e.createElementVNode("span",{class:"info-label"},"Distancia total (No importa si va diagonal):",-1)),e.createElementVNode("span",Mze,e.toDisplayString((b=a.parameters)==null?void 0:b.maximum_total_distance)+" m",1)])])])])])])])):e.createCommentVNode("",!0)}const Rze=qm(mze,[["render",Oze],["__scopeId","data-v-834c0128"]]),Lze={computed:{sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsFontMS(){const t=this.elementSize.width;return t<=600?"12px":t<=768?"13px":"14px"},sizeTabsMS(){const t=this.elementSize.width;return t<=480?"145px":t<=600?"153px":t<=620?"163px":t<=640?"170px":t<=660?"175px":t<=680?"180px":t<=700?"185px":t<=720?"195px":"200px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"68px":t<=330?"73px":t<=340?"78px":t<=350?"82px":t<=360||t<=370?"90px":t<=390?"95px":t<=410?"105px":t<=430?"110px":t<=450?"117px":t<=470?"122px":t<=500?"130px":t<=530?"138px":t<=560?"155px":t<=590?"163px":t<=620?"175px":t<=650?"180px":t<=680?"195px":t<=730?"210px":t<=768?"100px":"110px"},textleyemdmultipleleaguesClass(){return this.elementSize.width<=380?this.$style.textleyemdmultipleleagues380:this.$style.textleyemdmultipleleagues},dropdownParentClass(){return this.elementSize.width<=730?this.$style.dropdownParent730:this.$style.dropdownParent},descubreVideosClass(){const t=this.elementSize.width;return t<=960?this.$style.descubreVideos960:t<=1232?this.$style.descubreVideos1232:this.$style.descubreVideos},quitarFiltrosClass(){const t=this.elementSize.width;return t<=380?this.$style.quitarFiltros380:t<=480?this.$style.quitarFiltros480:t<=730?this.$style.quitarFiltros730:this.$style.quitarFiltros},mejoresJugadoresClass(){const t=this.elementSize.width;return t<=480?this.$style.mejoresJugadores480:t<=730?this.$style.mejoresJugadores730:this.$style.mejoresJugadores},menuSectionClass(){return this.elementSize.width<=960?this.$style.menuSection960:this.$style.menuSection},menuSectionPlayClass(){return this.elementSize.width<=960?this.$style.menuSectionPlay960:this.$style.menuSectionPlay},topFiltersClass(){const t=this.elementSize.width;return t<=420?this.$style.topFilters420:t<=460?this.$style.topFilters460:t<=1232?this.$style.topFilters1232:this.$style.topFilters},toniKroosWrapperClass(){const t=this.elementSize.width;return t<=319?this.$style.toniKroosWrapper320:t<=420?this.$style.toniKroosWrapper420:t<=916?this.$style.toniKroosWrapper760:t<=975?this.$style.toniKroosWrapper975:t<=1079?this.$style.toniKroosWrapper1080:this.$style.toniKroosWrapper},containerTablesClass(){const t=this.elementSize.width;return t<=319?this.$style.containerTables320:t<=916?this.$style.containerTables760:t<=1079?this.$style.containerTables960:this.$style.containerTables},containerTheBestClass(){const t=this.elementSize.width;return t<=319?this.$style.containerTheBest320:t<=960?this.$style.containerTheBest960:t<=1232?this.$style.containerTheBest1232:this.$style.containerTheBest},menuSectionHeaderClass(){const t=this.elementSize.width;return t<=730?this.$style.menuSectionHeader730:t<=960?this.$style.menuSectionHeader960:t<=1232?this.$style.menuSectionHeader1232:this.$style.menuSectionHeader},losMejoresClass(){const t=this.elementSize.width;return t<=380?this.$style.losMejores380:t<=530?this.$style.losMejores530:t<=730?this.$style.losMejores730:this.$style.losMejores},dropdownClass(){return this.elementSize.width<=730?this.$style.dropdown730:this.$style.dropdown},dropdown1Class(){return this.elementSize.width<=730?this.$style.dropdown1730:this.$style.dropdown1},menuSectionParentHeaderClass(){const t=this.elementSize.width;return t<=430?this.$style.menuSectionParentHeader430:t<=730?this.$style.menuSectionParentHeader730:t<=960?this.$style.menuSectionParentHeader960:t<=1232?this.$style.menuSectionParentHeader1232:this.$style.menuSectionParentHeader},templateLosMejoresClass(){const t=this.elementSize.width;return t<=319?this.$style.templateLosMejores320:t<=350?this.$style.templateLosMejores350:t<=420?this.$style.templateLosMejores420:t<=540?this.$style.templateLosMejores540:t<=960?this.$style.templateLosMejores960:t<=1232?this.$style.templateLosMejores1232:this.$style.templateLosMejores},containerMenuClass(){return this.elementSize.width<=760?this.$style.containerMenu760:this.$style.containerMenu},titleSectionClass(){return this.elementSize.width<=540?this.$style.titleSection540:this.$style.titleSection},containerSectionClass(){const t=this.elementSize.width;return t<=319?this.$style.containerSection320:t<=350?this.$style.containerSection350:t<=960?this.$style.containerSection960:t<=1232?this.$style.containerSection1232:this.$style.containerSection},containerSectionPlayClass(){const t=this.elementSize.width;return t<=319?this.$style.containerSectionPlay320:t<=350?this.$style.containerSectionPlay350:t<=960?this.$style.containerSectionPlay960:t<=1232?this.$style.containerSectionPlay1232:this.$style.containerSectionPlay},filtersContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.filtersContainer420:t<=760?this.$style.filtersContainer760:t<=1232?this.$style.filtersContainer1232:this.$style.filtersContainer},topFiltersParentClass(){const t=this.elementSize.width;return t<=420?this.$style.topFiltersParent420:t<=460?this.$style.topFiltersParent460:t<=1232?this.$style.topFiltersParent1232:this.$style.topFiltersParent}}},Dze="_tablePosition_s65tc_46",vze="_tablePositionWrapper_s65tc_62",jze="_imgHenrryIcon_s65tc_71",Uze="_americaIcon_s65tc_79",Wze="_playerPhoto_s65tc_91",Hze="_toniKroos_s65tc_100",Gze="_shapeIcon_s65tc_111",qze="_menuiconsTeams_s65tc_117",Jze="_component31_s65tc_126",Zze="_playerName_s65tc_137",Yze="_icnPlayIcon_s65tc_145",Kze="_goles_s65tc_153",Xze="_americaIcon1_s65tc_160",Qze="_teamsAmerica_s65tc_174",eMe="_topAddPlayer_s65tc_181",tMe="_containerData_s65tc_185",aMe="_shapeIcon1_s65tc_193",oMe="_icnExpand1_s65tc_199",iMe="_icnExpand_s65tc_199",sMe="_playerData_s65tc_219",rMe="_playerInfo_s65tc_230",lMe="_headerTop_s65tc_245",nMe="_playerRow_s65tc_259",dMe="_groupsLeague_s65tc_270",cMe="_text_s65tc_279",pMe="_btnViewFullList_s65tc_287",mMe="_headerTops_s65tc_304",uMe="_btnVideosOptions_s65tc_376",fMe="_position_s65tc_553",hMe="_positionWrapper_s65tc_565",yMe="_imgNecaxaIcon_s65tc_573",gMe="_teamLogo_s65tc_579",bMe="_teamPhoto_s65tc_587",SMe="_name_s65tc_595",_Me="_icnPlayIconType1_s65tc_603",CMe="_verVideosType1_s65tc_610",wMe="_btnVideosOptionsType1_s65tc_616",kMe="_btnVideosOptions1_s65tc_628",EMe="_leftContainer_s65tc_640",VMe="_shapeIconType1_s65tc_649",xMe="_icnExpandType1_s65tc_654",NMe="_arrowExpand_s65tc_664",TMe="_containerInfo_s65tc_672",BMe="_headerTopTeam_s65tc_684",FMe="_containerHeader_s65tc_698",PMe="_goles1_s65tc_707",$Me="_golesType1_s65tc_710",AMe="_golesWrapper_s65tc_715",IMe="_btnViewAll_s65tc_724",zMe="_headerTopsTeams_s65tc_741",MMe="_arrowExpandIcon_s65tc_858",OMe="_rotate_s65tc_863",RMe={tablePosition:Dze,tablePositionWrapper:vze,imgHenrryIcon:jze,americaIcon:Uze,playerPhoto:Wze,toniKroos:Hze,shapeIcon:Gze,menuiconsTeams:qze,component31:Jze,playerName:Zze,icnPlayIcon:Yze,goles:Kze,americaIcon1:Xze,teamsAmerica:Qze,topAddPlayer:eMe,containerData:tMe,shapeIcon1:aMe,icnExpand1:oMe,icnExpand:iMe,playerData:sMe,playerInfo:rMe,headerTop:lMe,playerRow:nMe,groupsLeague:dMe,text:cMe,btnViewFullList:pMe,headerTops:mMe,btnVideosOptions:uMe,position:fMe,positionWrapper:hMe,imgNecaxaIcon:yMe,teamLogo:gMe,teamPhoto:bMe,name:SMe,icnPlayIconType1:_Me,verVideosType1:CMe,btnVideosOptionsType1:wMe,btnVideosOptions1:kMe,leftContainer:EMe,shapeIconType1:VMe,icnExpandType1:xMe,arrowExpand:NMe,containerInfo:TMe,headerTopTeam:BMe,containerHeader:FMe,goles1:PMe,golesType1:$Me,golesWrapper:AMe,btnViewAll:IMe,headerTopsTeams:zMe,arrowExpandIcon:MMe,rotate:OMe},Ym={components:{GSCButton:vl},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(t){this.$emit("play",t)},clickMore(t){this.$emit("more",t)},clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},clickFav(t){this.$emit("fav",t)},clickEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},Q5=()=>{e.useCssVars(t=>({"585cd937":t.fontSizeTopNum,"32d8991a":t.fontFamilyTopNum,"16a25bef":t.fontColorTopNum,"3f30455f":t.opacityColorTopNum,"74b0c809":t.fontColorName,"051a53f4":t.fontFamilyName,"63f9f751":t.fontSizeName,"91c50268":t.backgroundColorHeader,"1c9cb9e7":t.fontFamilyCategory,"1bdd3278":t.fontSizeCategory,"35011b7c":t.fontColorCategory,"0582c83f":t.borderColorCategory}))},e4=Ym.setup;Ym.setup=e4?(t,o)=>(Q5(),e4(t,o)):Q5;const LMe=["src"],DMe=["src"],vMe=["src"],jMe=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),UMe=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),WMe=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),HMe=[jMe,UMe,WMe],GMe=["fill"],qMe=["fill"],JMe=["src"],ZMe=["fill"],YMe=["fill"];function KMe(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.headerTops)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerRow),id:"player-row"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTop)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerPhoto),id:"container-player-photp"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.tablePositionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.tablePosition)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHenrryIcon),alt:"",src:a.data.photo},null,10,LMe),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,DMe)],2),e.createElementVNode("main",{class:e.normalizeClass(t.$style.playerInfo),id:"container-player-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerName)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.toniKroos)},e.toDisplayString(a.data.name),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createVNode(l,{"icon-size":"12px","icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:o[0]||(o[0]=n=>r.clickEventMedia(a.data))},null,8,["icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamsAmerica)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon1),alt:"",src:a.data.logo},null,10,vMe)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.topAddPlayer)},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o[1]||(o[1]=n=>r.emitAddPlayer(a.data)),style:{cursor:"pointer"}},HMe))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:o[2]||(o[2]=n=>r.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,qMe)],10,GMe))],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,JMe)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerInfo)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leftContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(a.data.name_team),3),e.createVNode(l,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:o[3]||(o[3]=n=>r.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnVideosOptions1)},[e.createVNode(l,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:o[4]||(o[4]=n=>r.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.verVideosType1)},e.toDisplayString(a.data.total),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.arrowExpand),onClick:o[5]||(o[5]=n=>r.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,YMe)],10,ZMe))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const XMe={$style:RMe},QMe=it(Ym,[["render",KMe],["__cssModules",XMe]]),eOe="_rotate_1tou5_3",tOe="_positionContainer_1tou5_50",aOe="_positionContainer620_1tou5_57",oOe="_rowwPlayer_1tou5_64",iOe="_rowwPlayer960_1tou5_80",sOe="_rowwPlayer420_1tou5_95",rOe="_rowwPlayer460_1tou5_111",lOe="_containerLeft_1tou5_128",nOe="_containerLeft420_1tou5_136",dOe="_containerLeft620_1tou5_144",cOe="_iconFavoritesType1_1tou5_151",pOe="_iconFavoritesType1320_1tou5_159",mOe="_iconFavorites_1tou5_151",uOe="_iconFavorites420_1tou5_175",fOe="_playerContainer_1tou5_183",hOe="_playerContainer420_1tou5_195",yOe="_playerContainer460_1tou5_207",gOe="_playerContainerType1_1tou5_219",bOe="_playerContainerType1320_1tou5_229",SOe="_playerContainerType1460_1tou5_239",_Oe="_imgPlayerIcon_1tou5_249",COe="_imgPlayerIcon460_1tou5_259",wOe="_imgPlayerIcon420_1tou5_269",kOe="_manchesterUnited_1tou5_279",EOe="_manchesterUnited360_1tou5_290",VOe="_manchesterUnited420_1tou5_301",xOe="_manchesterUnited460_1tou5_312",NOe="_containerRight_1tou5_323",TOe="_containerRight960_1tou5_332",BOe="_containerRight420_1tou5_342",FOe="_numberOfVideos_1tou5_353",POe="_numberOfVideos620_1tou5_359",$Oe="_block02_1tou5_365",AOe="_block02960_1tou5_375",IOe="_block02620_1tou5_384",zOe="_block02420_1tou5_391",MOe="_verVideos_1tou5_399",OOe="_verVideos620_1tou5_405",ROe="_numberPosition_1tou5_408",LOe="_shapeIcon_1tou5_414",DOe="_chivasIcon_1tou5_419",vOe="_imgTeamIcon_1tou5_430",jOe="_teamName_1tou5_435",UOe="_nameTeam_1tou5_441",WOe="_dfC_1tou5_450",HOe="_position_1tou5_50",GOe="_age_1tou5_460",qOe="_manchesterUnitedIcon_1tou5_468",JOe="_country_1tou5_475",ZOe="_playedGames_1tou5_482",YOe="_playedMinutes_1tou5_489",KOe="_block01_1tou5_496",XOe="_leagueName_1tou5_503",QOe="_roleCharacterIcon_1tou5_509",eRe="_btnVideos_1tou5_517",tRe="_containerBtnVideos_1tou5_532",aRe="_containerBtnVideos620_1tou5_542",oRe="_containesOptions_1tou5_551",iRe="_arrowExpandIcon_1tou5_558",sRe="_rowTeam_1tou5_567",rRe="_rowTeam420_1tou5_585",lRe="_rowTeam320_1tou5_603",nRe="_rowTeam460_1tou5_622",dRe="_rowTeam350_1tou5_641",cRe="_containerLeftType1_1tou5_659",pRe="_containerLeftType1680_1tou5_665",mRe="_containerLeftType1320_1tou5_672",uRe="_containerLeftType1350_1tou5_680",fRe="_positionContainertype1_1tou5_687",hRe="_positionContainertype1380_1tou5_695",yRe="_positionContainertype1680_1tou5_703",gRe="_positionContainertype1420_1tou5_711",bRe="_manchesterUnitedType1_1tou5_719",SRe="_manchesterUnitedType1460_1tou5_725",_Re="_manchesterUnitedType1320_1tou5_732",CRe="_containerRightType1_1tou5_739",wRe="_containerRightType1420_1tou5_750",kRe="_containerRightType1320_1tou5_761",ERe="_teamNameWrapperType1_1tou5_772",VRe="_teamNameWrapperType1960_1tou5_779",xRe="_teamNameWrapperType11086_1tou5_786",NRe="_ageWrapperType1_1tou5_793",TRe="_ageWrapperType1680_1tou5_800",BRe="_ageWrapperType11086_1tou5_808",FRe="_ageType1_1tou5_816",PRe="_ageType1960_1tou5_824",$Re="_playedGamesWrapperType1_1tou5_827",ARe="_playedGamesWrapperType1680_1tou5_834",IRe="_playedGamesWrapperType1960_1tou5_837",zRe="_playedGamesType1_1tou5_840",MRe="_playedGamesType1540_1tou5_847",ORe="_playedGamesType1960_1tou5_851",RRe="_playedGamesType11086_1tou5_854",LRe="_playedMinutesWrapperType1_1tou5_857",DRe="_playedMinutesWrapperType11086_1tou5_864",vRe="_playedMinutesType1_1tou5_871",jRe="_playedMinutesType1680_1tou5_878",URe="_block02Type1_1tou5_881",WRe="_block02Type1680_1tou5_889",HRe="_block02Type1320_1tou5_897",GRe="_block02Type1350_1tou5_906",qRe="_leagueNameWrapperType1_1tou5_914",JRe="_leagueNameWrapperType1680_1tou5_922",ZRe="_leagueNameWrapperType1960_1tou5_925",YRe="_leagueNameType1_1tou5_933",KRe="_leagueNameType1960_1tou5_943",XRe="_numberOfVideosType1_1tou5_953",QRe="_numberOfVideosType1680_1tou5_960",eLe="_numberOfVideosType11232_1tou5_967",tLe="_vectorIconType1_1tou5_974",aLe="_block01TitlesType1_1tou5_991",oLe="_numberPositionType1_1tou5_998",iLe="_shapeIconType1_1tou5_1004",sLe="_tijuanaIconType1_1tou5_1010",rLe="_tijuanaWrapperType1_1tou5_1016",lLe="_tijuanaWrapperType1NoBg_1tou5_1027",nLe="_teamNameType1_1tou5_1035",dLe="_roleCharacterIconType1_1tou5_1042",cLe="_verVideosType1_1tou5_1049",pLe="_btnVideosType1_1tou5_1055",mLe="_containerBtnVideosType1_1tou5_1070",uLe="_containesOptionsType1_1tou5_1081",fLe="_arrowExpandIconType1_1tou5_1089",hLe="_templateTablaProductividadType1_1tou5_1095",yLe="_verVideosType11232_1tou5_1107",gLe="_templateTablaProductividadType1320_1tou5_1111",bLe="_verVideosType1680_1tou5_1115",SLe={rotate:eOe,positionContainer:tOe,positionContainer620:aOe,rowwPlayer:oOe,rowwPlayer960:iOe,rowwPlayer420:sOe,rowwPlayer460:rOe,containerLeft:lOe,containerLeft420:nOe,containerLeft620:dOe,iconFavoritesType1:cOe,iconFavoritesType1320:pOe,iconFavorites:mOe,iconFavorites420:uOe,playerContainer:fOe,playerContainer420:hOe,playerContainer460:yOe,playerContainerType1:gOe,playerContainerType1320:bOe,playerContainerType1460:SOe,imgPlayerIcon:_Oe,imgPlayerIcon460:COe,imgPlayerIcon420:wOe,manchesterUnited:kOe,manchesterUnited360:EOe,manchesterUnited420:VOe,manchesterUnited460:xOe,containerRight:NOe,containerRight960:TOe,containerRight420:BOe,numberOfVideos:FOe,numberOfVideos620:POe,block02:$Oe,block02960:AOe,block02620:IOe,block02420:zOe,verVideos:MOe,verVideos620:OOe,numberPosition:ROe,shapeIcon:LOe,chivasIcon:DOe,imgTeamIcon:vOe,teamName:jOe,nameTeam:UOe,dfC:WOe,position:HOe,age:GOe,manchesterUnitedIcon:qOe,country:JOe,playedGames:ZOe,playedMinutes:YOe,block01:KOe,leagueName:XOe,roleCharacterIcon:QOe,btnVideos:eRe,containerBtnVideos:tRe,containerBtnVideos620:aRe,containesOptions:oRe,arrowExpandIcon:iRe,rowTeam:sRe,rowTeam420:rRe,rowTeam320:lRe,rowTeam460:nRe,rowTeam350:dRe,containerLeftType1:cRe,containerLeftType1680:pRe,containerLeftType1320:mRe,containerLeftType1350:uRe,positionContainertype1:fRe,positionContainertype1380:hRe,positionContainertype1680:yRe,positionContainertype1420:gRe,manchesterUnitedType1:bRe,manchesterUnitedType1460:SRe,manchesterUnitedType1320:_Re,containerRightType1:CRe,containerRightType1420:wRe,containerRightType1320:kRe,teamNameWrapperType1:ERe,teamNameWrapperType1960:VRe,teamNameWrapperType11086:xRe,ageWrapperType1:NRe,ageWrapperType1680:TRe,ageWrapperType11086:BRe,ageType1:FRe,ageType1960:PRe,playedGamesWrapperType1:$Re,playedGamesWrapperType1680:ARe,playedGamesWrapperType1960:IRe,playedGamesType1:zRe,playedGamesType1540:MRe,playedGamesType1960:ORe,playedGamesType11086:RRe,playedMinutesWrapperType1:LRe,playedMinutesWrapperType11086:DRe,playedMinutesType1:vRe,playedMinutesType1680:jRe,block02Type1:URe,block02Type1680:WRe,block02Type1320:HRe,block02Type1350:GRe,leagueNameWrapperType1:qRe,leagueNameWrapperType1680:JRe,leagueNameWrapperType1960:ZRe,leagueNameType1:YRe,leagueNameType1960:KRe,numberOfVideosType1:XRe,numberOfVideosType1680:QRe,numberOfVideosType11232:eLe,vectorIconType1:tLe,block01TitlesType1:aLe,numberPositionType1:oLe,shapeIconType1:iLe,tijuanaIconType1:sLe,tijuanaWrapperType1:rLe,tijuanaWrapperType1NoBg:lLe,teamNameType1:nLe,roleCharacterIconType1:dLe,verVideosType1:cLe,btnVideosType1:pLe,containerBtnVideosType1:mLe,containesOptionsType1:uLe,arrowExpandIconType1:fLe,templateTablaProductividadType1:hLe,verVideosType11232:yLe,templateTablaProductividadType1320:gLe,verVideosType1680:bLe},Km={components:{GSCButton:vl},computed:{manchesterUnitedType1Class(){const t=this.elementSize.width;return t<=320?this.$style.manchesterUnitedType1320:t<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerRightType1320:t<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.teamNameWrapperType1960:t<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.ageWrapperType1680:t<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.playedGamesWrapperType1680:t<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const t=this.elementSize.width;return t<=540?this.$style.playedGamesType1540:t<=960?this.$style.playedGamesType1960:t<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const t=this.elementSize.width;return t<=320?this.$style.block02Type1320:t<=350?this.$style.block02Type1350:t<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.leagueNameWrapperType1680:t<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const t=this.elementSize.width;return t<=680?this.$style.numberOfVideosType1680:t<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerLeftType1320:t<=350?this.$style.containerLeftType1350:t<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const t=this.elementSize.width;return t<=380?this.$style.positionContainertype1380:t<=420?this.$style.positionContainertype1420:t<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const t=this.elementSize.width;return t<=320?this.$style.rowTeam320:t<=350?this.$style.rowTeam350:t<=420?this.$style.rowTeam420:t<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const t=this.elementSize.width;return t<=420?this.$style.block02420:t<=620?this.$style.block02620:t<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const t=this.elementSize.width;return t<=420?this.$style.imgPlayerIcon420:t<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const t=this.elementSize.width;return t<=360?this.$style.manchesterUnited360:t<=420?this.$style.manchesterUnited420:t<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const t=this.elementSize.width;return t<=420?this.$style.containerRight420:t<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const t=this.elementSize.width;return t<=320?this.$style.playerContainerType1320:t<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.playerContainer420:t<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeft420:t<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const t=this.elementSize.width;return t<=420?this.$style.rowwPlayer420:t<=460?this.$style.rowwPlayer460:t<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const t=e.ref("myDivRef2"),{elementSize:o}=Wt(t);return{myDivRef2:t,elementSize:o}},props:{type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},emitEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},t4=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},a4=Km.setup;Km.setup=a4?(t,o)=>(t4(),a4(t,o)):t4;const _Le={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},CLe=["src"],wLe=["src"],kLe=["src"],ELe=["src"],VLe=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),xLe=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),NLe=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),TLe=[VLe,xLe,NLe],BLe=["fill"],FLe=["fill"],PLe=["src"],$Le=["src"],ALe=["fill"],ILe=["fill"],zLe=["src"],MLe=["src"],OLe=["src"],RLe=["src"],LLe=["fill"],DLe=["fill"];function vLe(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",_Le,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(r.imgPlayerIconClass),src:a.data.player_photo},null,10,CLe),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedClass)},[i.elementSize.width<=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.data.player_short),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.data.player_name),1)],64))],2),i.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,wLe)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[i.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,kLe),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,ELe)],2)):e.createCommentVNode("",!0),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.leagueName)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.containerBtnVideosClass)},[i.elementSize.width>635?(e.openBlock(),e.createBlock(l,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:o[0]||(o[0]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(l,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:o[1]||(o[1]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),i.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.numberOfVideosClass)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o[2]||(o[2]=n=>r.emitAddPlayer(a.data)),style:{cursor:"pointer"}},TLe))],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:o[3]||(o[3]=n=>r.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,FLe)],10,BLe))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.rowTeamClass),style:e.normalizeStyle(i.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(r.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,PLe)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(a.typeView==0?t.$style.tijuanaWrapperType1:t.$style.tijuanaWrapperType1NoBg)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.tijuanaIconType1),alt:"",src:a.data.team_logo},null,10,$Le)],2),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.teamNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamNameType1)},[e.createTextVNode(" C/"+e.toDisplayString(a.data.frequency)+" ",1),a.data.category!=2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("min")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("segs")],64))],2)],2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(r.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(r.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(r.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[i.elementSize.width>679?(e.openBlock(),e.createBlock(l,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:o[4]||(o[4]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(l,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:o[5]||(o[5]=n=>r.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),e.createElementVNode("div",{class:e.normalizeClass(r.numberOfVideosType1Class)},e.toDisplayString(a.data.total),3)],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:o[6]||(o[6]=n=>r.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,ILe)],10,ALe))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(r.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(r.imgPlayerIconClass),src:a.data.player_photo},null,10,zLe),e.createElementVNode("div",{class:e.normalizeClass(r.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),i.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,MLe)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[i.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,OLe),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,RLe)],2)):e.createCommentVNode("",!0),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.league_name),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(r.containerBtnVideosClass)},[e.createVNode(l,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:i.elementSize.width<=680?"83px":a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:o[7]||(o[7]=n=>r.emitEventMedia(a.data)),style:e.normalizeStyle(i.elementSize.width<=680?i.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:o[8]||(o[8]=n=>r.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,DLe)],10,LLe))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const jLe={$style:SLe},ULe=it(Km,[["render",vLe],["__cssModules",jLe]]),WLe="_containerLeftTitlesPlay_mmyc1_61",HLe="_containerLeftTitles420Play_mmyc1_69",GLe="_containerLeftTitles620Play_mmyc1_77",qLe="_containerLeftTitlesTeamPlay_mmyc1_85",JLe="_containerLeftTitlesTeam1180Play_mmyc1_93",ZLe="_containerLeftTitlesTeam1090Play_mmyc1_101",YLe="_containerLeftTitlesTeam960Play_mmyc1_109",KLe="_containerLeftTitlesTeam860Play_mmyc1_117",XLe="_containerLeftTitlesTeam768Play_mmyc1_125",QLe="_containerLeftTitlesTeam680Play_mmyc1_133",eDe="_containerLeftTitlesTeam620Play_mmyc1_141",tDe="_containerLeftTitlesTeam420Play_mmyc1_149",aDe="_headTitlesPlay_mmyc1_158",oDe="_headTitles960Play_mmyc1_173",iDe="_headTitles420Play_mmyc1_188",sDe="_headTitles540Play_mmyc1_208",rDe="_headTitles460Play_mmyc1_223",lDe="_headTitles620Play_mmyc1_238",nDe="_positionPlay_mmyc1_253",dDe="_position420Play_mmyc1_262",cDe="_playerPlay_mmyc1_265",pDe="_player420Play_mmyc1_276",mDe="_containerRightType1Play_mmyc1_280",uDe="_containerRightTitlesPlay_mmyc1_287",fDe="_containerRightTitles960Play_mmyc1_296",hDe="_block02TitlesPlay_mmyc1_305",yDe="_block02Titles620Play_mmyc1_313",gDe="_mon1ScoutingPlay_mmyc1_317",bDe="_mon1Scouting960Play_mmyc1_327",SDe="_mon1Play_mmyc1_336",_De="_mon1420Play_mmyc1_345",CDe="_mon1620Play_mmyc1_355",wDe="_icnIconPlay_mmyc1_365",kDe="_icnIcon960Play_mmyc1_370",EDe="_icnIcon420Play_mmyc1_376",VDe="_teamTitlePlay_mmyc1_380",xDe="_positionTitlePlay_mmyc1_390",NDe="_ageTitlePlay_mmyc1_398",TDe="_partidosPlay_mmyc1_406",BDe="_playedGamesTitlePlay_mmyc1_410",FDe="_playedMinutesTitlePlay_mmyc1_420",PDe="_block01TitlesPlay_mmyc1_429",$De="_monPlay_mmyc1_436",ADe="_containesOptionsTitlesPlay_mmyc1_445",IDe="_templateTablaProductividadType1Play_mmyc1_451",zDe="_templateTablaProductividadType1400Play_mmyc1_463",MDe="_headTitlesType1Play_mmyc1_477",ODe="_headTitlesType1420Play_mmyc1_490",RDe="_headTitlesType1400Play_mmyc1_506",LDe="_headTitlesType1540Play_mmyc1_522",DDe="_headTitlesType1460Play_mmyc1_536",vDe="_headTitlesType1680Play_mmyc1_550",jDe="_headTitlesType1350Play_mmyc1_563",UDe="_positionType1Play_mmyc1_578",WDe="_positionType1400Play_mmyc1_587",HDe="_teamType1Play_mmyc1_597",GDe="_teamType1400Play_mmyc1_606",qDe="_frecuenciaType1Play_mmyc1_616",JDe="_frecuenciaType1540Play_mmyc1_624",ZDe="_containerLeftTitlesType1Play_mmyc1_633",YDe="_frecuenciaWrapperType1Play_mmyc1_641",KDe="_frecuenciaWrapperType1680Play_mmyc1_650",XDe="_promedioPartidoType1Play_mmyc1_658",QDe="_promedioEstePartidoType1Play_mmyc1_662",eve="_promedioEstePartidoType1960Play_mmyc1_670",tve="_promedioEstePartidoWrapperType1Play_mmyc1_674",ave="_promedioEstePartidoWrapperType11200Play_mmyc1_682",ove="_promedioEstePartidoWrapperType11090Play_mmyc1_691",ive="_promedioEstePartidoWrapperType11086Play_mmyc1_701",sve="_promedioPartidosType1Play_mmyc1_710",rve="_promedioPartidosWrapperType1Play_mmyc1_717",lve="_promedioPartidosWrapperType1960Play_mmyc1_725",nve="_promedioPartidosWrapperType11086Play_mmyc1_728",dve="_partidosJugadosType1Play_mmyc1_731",cve="_partidosJugadosType1960Play_mmyc1_737",pve="_partidosJugadosWrapperType1Play_mmyc1_744",mve="_partidosJugadosWrapperType11200Play_mmyc1_752",uve="_partidosJugadosWrapperType11180Play_mmyc1_760",fve="_partidosJugadosWrapperType11170Play_mmyc1_768",hve="_partidosJugadosWrapperType11140Play_mmyc1_776",yve="_partidosJugadosWrapperType11086Play_mmyc1_784",gve="_partidosJugadosWrapperType1960Play_mmyc1_792",bve="_partidosJugadosWrapperType1880Play_mmyc1_800",Sve="_partidosJugadosWrapperType1860Play_mmyc1_808",_ve="_partidosJugadosWrapperType1830Play_mmyc1_816",Cve="_partidosJugadosWrapperType1790Play_mmyc1_824",wve="_partidosJugadosWrapperType1930Play_mmyc1_832",kve="_partidosJugadosWrapperType1770Play_mmyc1_840",Eve="_block01TitlesType1Play_mmyc1_843",Vve="_monType1Play_mmyc1_851",xve="_monType1960Play_mmyc1_860",Nve="_monType1680Play_mmyc1_870",Tve="_videosType1Play_mmyc1_873",Bve="_videosType1680Play_mmyc1_883",Fve="_videosType1600Play_mmyc1_892",Pve="_videosType1540Play_mmyc1_901",$ve="_videosType1420Play_mmyc1_910",Ave="_videosType1400Play_mmyc1_919",Ive="_containesOptionsTitlesType1Play_mmyc1_931",zve="_containesOptionsTitlesType1768Play_mmyc1_939",Mve="_containesOptionsTitlesType1730Play_mmyc1_946",Ove="_containesOptionsTitlesType1690Play_mmyc1_953",Rve="_icnIconType1Play_mmyc1_960",Lve="_icnIconType1420Play_mmyc1_966",Dve="_icnIconType1400Play_mmyc1_973",vve="_block02TitlesType1Play_mmyc1_977",jve="_block02TitlesType1680Play_mmyc1_984",Uve="_block02TitlesType1350Play_mmyc1_991",Wve="_containerRightTitlesType1Play_mmyc1_998",Hve="_containerRightTitlesType1420Play_mmyc1_1007",Gve={containerLeftTitlesPlay:WLe,containerLeftTitles420Play:HLe,containerLeftTitles620Play:GLe,containerLeftTitlesTeamPlay:qLe,containerLeftTitlesTeam1180Play:JLe,containerLeftTitlesTeam1090Play:ZLe,containerLeftTitlesTeam960Play:YLe,containerLeftTitlesTeam860Play:KLe,containerLeftTitlesTeam768Play:XLe,containerLeftTitlesTeam680Play:QLe,containerLeftTitlesTeam620Play:eDe,containerLeftTitlesTeam420Play:tDe,headTitlesPlay:aDe,headTitles960Play:oDe,headTitles420Play:iDe,headTitles540Play:sDe,headTitles460Play:rDe,headTitles620Play:lDe,positionPlay:nDe,position420Play:dDe,playerPlay:cDe,player420Play:pDe,containerRightType1Play:mDe,containerRightTitlesPlay:uDe,containerRightTitles960Play:fDe,block02TitlesPlay:hDe,block02Titles620Play:yDe,mon1ScoutingPlay:gDe,mon1Scouting960Play:bDe,mon1Play:SDe,mon1420Play:_De,mon1620Play:CDe,icnIconPlay:wDe,icnIcon960Play:kDe,icnIcon420Play:EDe,teamTitlePlay:VDe,positionTitlePlay:xDe,ageTitlePlay:NDe,partidosPlay:TDe,playedGamesTitlePlay:BDe,playedMinutesTitlePlay:FDe,block01TitlesPlay:PDe,monPlay:$De,containesOptionsTitlesPlay:ADe,templateTablaProductividadType1Play:IDe,templateTablaProductividadType1400Play:zDe,headTitlesType1Play:MDe,headTitlesType1420Play:ODe,headTitlesType1400Play:RDe,headTitlesType1540Play:LDe,headTitlesType1460Play:DDe,headTitlesType1680Play:vDe,headTitlesType1350Play:jDe,positionType1Play:UDe,positionType1400Play:WDe,teamType1Play:HDe,teamType1400Play:GDe,frecuenciaType1Play:qDe,frecuenciaType1540Play:JDe,containerLeftTitlesType1Play:ZDe,frecuenciaWrapperType1Play:YDe,frecuenciaWrapperType1680Play:KDe,promedioPartidoType1Play:XDe,promedioEstePartidoType1Play:QDe,promedioEstePartidoType1960Play:eve,promedioEstePartidoWrapperType1Play:tve,promedioEstePartidoWrapperType11200Play:ave,promedioEstePartidoWrapperType11090Play:ove,promedioEstePartidoWrapperType11086Play:ive,promedioPartidosType1Play:sve,promedioPartidosWrapperType1Play:rve,promedioPartidosWrapperType1960Play:lve,promedioPartidosWrapperType11086Play:nve,partidosJugadosType1Play:dve,partidosJugadosType1960Play:cve,partidosJugadosWrapperType1Play:pve,partidosJugadosWrapperType11200Play:mve,partidosJugadosWrapperType11180Play:uve,partidosJugadosWrapperType11170Play:fve,partidosJugadosWrapperType11140Play:hve,partidosJugadosWrapperType11086Play:yve,partidosJugadosWrapperType1960Play:gve,partidosJugadosWrapperType1880Play:bve,partidosJugadosWrapperType1860Play:Sve,partidosJugadosWrapperType1830Play:_ve,partidosJugadosWrapperType1790Play:Cve,partidosJugadosWrapperType1930Play:wve,partidosJugadosWrapperType1770Play:kve,block01TitlesType1Play:Eve,monType1Play:Vve,monType1960Play:xve,monType1680Play:Nve,videosType1Play:Tve,videosType1680Play:Bve,videosType1600Play:Fve,videosType1540Play:Pve,videosType1420Play:$ve,videosType1400Play:Ave,containesOptionsTitlesType1Play:Ive,containesOptionsTitlesType1768Play:zve,containesOptionsTitlesType1730Play:Mve,containesOptionsTitlesType1690Play:Ove,icnIconType1Play:Rve,icnIconType1420Play:Lve,icnIconType1400Play:Dve,block02TitlesType1Play:vve,block02TitlesType1680Play:jve,block02TitlesType1350Play:Uve,containerRightTitlesType1Play:Wve,containerRightTitlesType1420Play:Hve},Xm={components:{},computed:{icnIconType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.icnIconType1400Play:t<=420?this.$style.icnIconType1420Play:this.$style.icnIconType1Play},videosType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.videosType1400Play:t<=420?this.$style.videosType1420Play:t<=540?this.$style.videosType1540Play:t<=600?this.$style.videosType1600Play:t<=680?this.$style.videosType1680Play:this.$style.videosType1Play},monType1ClassPlay(){const t=this.elementSize.width;return t<=680?this.$style.monType1680Play:t<=960?this.$style.monType1960Play:this.$style.monType1Play},block02TitlesType1ClassPlay(){const t=this.elementSize.width;return t<=350?this.$style.block02TitlesType1350Play:t<=680?this.$style.block02TitlesType1680Play:this.$style.block02TitlesType1Play},containesOptionsTitlesType1ClassPlay(){const t=this.elementSize.width;return t<=400?this.$style.containesOptionsTitlesType1400Play:t<=690?this.$style.containesOptionsTitlesType1690Play:t<=730?this.$style.containesOptionsTitlesType1730Play:t<=768?this.$style.containesOptionsTitlesType1768Play:this.$style.containesOptionsTitlesType1Play},partidosJugadosWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=770?this.$style.promedioPartidosWrapperType1770Play:t<=790?this.$style.partidosJugadosWrapperType1790Play:t<=830?this.$style.partidosJugadosWrapperType1830Play:t<=860?this.$style.partidosJugadosWrapperType1860Play:t<=880?this.$style.partidosJugadosWrapperType1880Play:t<=930?this.$style.partidosJugadosWrapperType1930Play:t<=960?this.$style.partidosJugadosWrapperType1960Play:t<=1086?this.$style.partidosJugadosWrapperType11086Play:t<=1140?this.$style.partidosJugadosWrapperType11140Play:t<=1170?this.$style.partidosJugadosWrapperType11170Play:t<=1180?this.$style.partidosJugadosWrapperType11180Play:t<=1200?this.$style.partidosJugadosWrapperType11200Play:this.$style.partidosJugadosWrapperType1Play},promedioPartidosWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=960?this.$style.promedioPartidosWrapperType1960Play:t<=1086?this.$style.promedioPartidosWrapperType11086Play:this.$style.promedioPartidosWrapperType1Play},partidosJugadosType1ClassPlay(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960Play:this.$style.partidosJugadosType1Play},templateTablaProductividadType1ClassPlay(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400Play:this.$style.templateTablaProductividadType1Play},promedioEstePartidoType1ClassPlay(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960Play:this.$style.promedioEstePartidoType1Play},headTitlesType1ClassPlay(){const t=this.elementSize.width;return t<=350?this.$style.headTitlesType1350Play:t<=400?this.$style.headTitlesType1400Play:t<=420?this.$style.headTitlesType1420Play:t<=460?this.$style.headTitlesType1460Play:t<=540?this.$style.headTitlesType1540Play:t<=680?this.$style.headTitlesType1680Play:this.$style.headTitlesType1Play},headTitlesClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.headTitles420Play:t<=460?this.$style.headTitles460Play:t<=540?this.$style.headTitles540Play:t<=620?this.$style.headTitles620Play:t<=960?this.$style.headTitles960Play:this.$style.headTitlesPlay},containerLeftTitlesClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitles420Play:t<=620?this.$style.containerLeftTitles620Play:this.$style.containerLeftTitlesPlay},containerLeftTitlesClassTeamPlay(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitlesTeam420Play:t<=620?this.$style.containerLeftTitlesTeam620Play:t<=680?this.$style.containerLeftTitlesTeam680Play:t<=768?this.$style.containerLeftTitlesTeam768Play:t<=860?this.$style.containerLeftTitlesTeam860Play:t<=960?this.$style.containerLeftTitlesTeam960Play:t<=1090?this.$style.containerLeftTitlesTeam1090Play:t<=1180?this.$style.containerLeftTitlesTeam1180Play:this.$style.containerLeftTitlesTeamPlay},icnIconClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.icnIcon420Play:t<=960?this.$style.icnIcon960Play:this.$style.icnIconPlay},mon1ClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.mon1420Play:t<=620?this.$style.mon1620Play:this.$style.mon1Play},mon1ScoutingClassPlay(){const t=this.elementSize.width;return t<=420?this.$style.mon1420Play:t<=960?this.$style.mon1Scouting960Play:this.$style.mon1ScoutingPlay},promedioEstePartidoWrapperType1ClassPlay(){const t=this.elementSize.width;return t<=1086?this.$style.promedioEstePartidoWrapperType11086Play:t<=1090?this.$style.promedioEstePartidoWrapperType11090Play:t<=1200?this.$style.promedioEstePartidoWrapperType11200Play:this.$style.promedioEstePartidoWrapperType1Play},frecuenciaWrapperType1ClassPlay(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680Play:this.$style.frecuenciaWrapperType1Play},frecuenciaType1ClassPlay(){return this.elementSize.width<=540?this.$style.frecuenciaType1540Play:this.$style.frecuenciaType1Play},positionType1ClassPlay(){return this.elementSize.width<=400?this.$style.positionType1400Play:this.$style.positionType1Play},containerRightType1ClassPlay(){return this.elementSize.width<=420?this.$style.containerRightType1420Play:this.$style.containerRightType1Play},containerRightTitlesType1ClassPlay(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420Play:this.$style.containerRightTitlesType1Play},teamType1ClassPlay(){return this.elementSize.width<=400?this.$style.teamType1400Play:this.$style.teamType1Play},playerClassPlay(){return this.elementSize.width<=420?this.$style.player420Play:this.$style.playerPlay},positionClassPlay(){return this.elementSize.width<=420?this.$style.position420Play:this.$style.positionPlay},containerRightTitlesClassPlay(){return this.elementSize.width<=960?this.$style.containerRightTitles960Play:this.$style.containerRightTitlesPlay},block02TitlesClassPlay(){return this.elementSize.width<=620?this.$style.block02Titles960Play:this.$style.block02TitlesPlay}},setup(){const t=e.ref("myDivRef"),{elementSize:o}=Wt(t);return{myDivRef:t,elementSize:o}},props:{type:{type:Number,default:0},isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"total"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},o4=()=>{e.useCssVars(t=>({"8d117076":t.background,"39ae673e":t.height,"5bb96572":t.fontSize,"71676add":t.fontColor,"8040e1ac":t.fontFamily,"61b44ebb":t.heightTeam}))},i4=Xm.setup;Xm.setup=i4?(t,o)=>(o4(),i4(t,o)):o4;const qve={ref:"myDivRef"},Jve=e.createElementVNode("br",null,null,-1),Zve=e.createElementVNode("br",null,null,-1),Yve=e.createElementVNode("br",null,null,-1);function Kve(t,o,a,i,s,r){return e.openBlock(),e.createElementBlock("div",qve,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.playerClassPlay)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.monPlay)},[a.typeStats==="total"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Total")],64)):e.createCommentVNode("",!0),a.typeStats==="average"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("PPP")],64)):e.createCommentVNode("",!0),a.typeStats==="every90"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Cada "),Jve,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.mon1ClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.templateTablaProductividadType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.headTitlesType1ClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassTeamPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionType1ClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.teamType1ClassPlay)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.frecuenciaWrapperType1ClassPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.frecuenciaType1ClassPlay)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.promedioEstePartidoWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.promedioEstePartidoType1ClassPlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},"Promedio partido",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},"este Torneo",2)],2)],2)):e.createCommentVNode("",!0),i.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(r.promedioPartidosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Promedio partido"),Zve,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),i.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.partidosJugadosWrapperType1ClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1Play)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1Play)},[e.createTextVNode("Partidos "),Yve,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containesOptionsTitlesType1ClassPlay)},[i.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.monType1ClassPlay)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(r.videosType1ClassPlay)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(r.headTitlesClassPlay),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.containerLeftTitlesClassPlay),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(r.positionClassPlay)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(r.playerClassPlay)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(r.containerRightTitlesClassPlay),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesPlay)},[i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitlePlay)},"Equipo",2)):e.createCommentVNode("",!0),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitlePlay)},"Posición",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitlePlay)},"edad",2)):e.createCommentVNode("",!0),i.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitlePlay)},"País",2)):e.createCommentVNode("",!0),i.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Jugados",2)],2)):e.createCommentVNode("",!0),i.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutesTitlePlay)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidosPlay)},"Liga",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(r.block02TitlesClassPlay)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitlesPlay)},[e.createElementVNode("div",{class:e.normalizeClass(r.mon1ScoutingClassPlay)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const Xve={$style:Gve},Qve=it(Xm,[["render",Kve],["__cssModules",Xve]]),eje="_equipo_1lpaa_38",tje="_atlasSeleccin_1lpaa_43",aje="_equipoAtlasSeleccinMexi_1lpaa_47",oje="_aos_1lpaa_51",ije="_span12_1lpaa_55",sje="_nacionalidadMex_1lpaa_58",rje="_manchesterUnited_1lpaa_61",lje="_manchesterUnited12_1lpaa_68",nje="_containerInfo_1lpaa_78",dje="_verPerfil12_1lpaa_87",cje="_btnProfile_1lpaa_96",pje="_containerButton_1lpaa_112",mje="_containerButton2_1lpaa_119",uje="_dataContainer_1lpaa_125",fje="_expandedInfoPlayer_1lpaa_135",hje="_containerDataBg_1lpaa_225",yje="_containerDataSm_1lpaa_236",gje="_span_1lpaa_55",bje="_manchesterUnited14_1lpaa_247",Sje="_filter_1lpaa_252",_je="_verPerfil_1lpaa_87",Cje="_manchesterUnited8_1lpaa_273",wje="_manchesterUnitedParent1_1lpaa_279",kje="_manchesterUnited1_1lpaa_68",Eje="_manchesterUnitedParent_1lpaa_279",Vje="_frameDiv_1lpaa_301",xje="_infoExpanded_1lpaa_309",Nje="_countryFlag_1lpaa_462",Tje={equipo:eje,atlasSeleccin:tje,equipoAtlasSeleccinMexi:aje,aos:oje,span12:ije,nacionalidadMex:sje,manchesterUnited:rje,manchesterUnited12:lje,containerInfo:nje,verPerfil12:dje,btnProfile:cje,containerButton:pje,containerButton2:mje,dataContainer:uje,expandedInfoPlayer:fje,containerDataBg:hje,containerDataSm:yje,span:gje,manchesterUnited14:bje,filter:Sje,verPerfil:_je,manchesterUnited8:Cje,manchesterUnitedParent1:wje,manchesterUnited1:kje,manchesterUnitedParent:Eje,frameDiv:Vje,infoExpanded:xje,countryFlag:Nje},Qm={components:{GSCButton:W2},props:{isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"totals"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const t=e.ref("myDivRef"),{elementSize:o}=Wt(t);return{myDivRef:t,elementSize:o}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},s4=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},r4=Qm.setup;Qm.setup=r4?(t,o)=>(s4(),r4(t,o)):s4;const jt=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),Bje={ref:"myDivRef"},Fje=["src"],Pje=jt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),$je=jt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),Aje=jt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),Ije=jt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),zje=jt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Mje=jt(()=>e.createElementVNode("span",null,"xG: ",-1)),Oje=jt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Rje=jt(()=>e.createElementVNode("span",null,"xG: ",-1)),Lje=jt(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),Dje=jt(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),vje=jt(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),jje=jt(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),Uje=jt(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),Wje=jt(()=>e.createElementVNode("span",null,"xG: ",-1));function Hje(t,o,a,i,s,r){const l=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Bje,[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,Fje)],2)],2)],2)):e.createCommentVNode("",!0),a.viewPosition?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Posición: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.isFemale?a.data.position.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):a.data.position),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited12)},[a.viewGames?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"partidos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.games),3)],2)):e.createCommentVNode("",!0),a.viewMin?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Minutos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.min),3)],2)):e.createCommentVNode("",!0),a.viewGoals?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},e.toDisplayString(a.data.category)+": ",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.goals),3)],2)):e.createCommentVNode("",!0),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Efectividad de pases: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(i.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(l,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:o[0]||(o[0]=n=>r.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(l,{key:1,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/add-list-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Agregar","font-size":"10px",onClick:o[1]||(o[1]=n=>r.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(l,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&i.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Ver grafica","font-size":"10px",onClick:o[2]||(o[2]=n=>r.showGraph(a.data))},null,8,["style"])):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.infoExpanded)},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerDataBg,a.additionalClass])},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[Pje,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)},[$je,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)},[Aje,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)},[Ije,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)},[zje,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)},[Mje,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)},[Oje,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)},[Rje,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)},[Lje,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)},[Dje,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)},[vje,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)},[jje,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)},[Uje,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)},[Wje,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2)],2)],2),a.viewButton?(e.openBlock(),e.createBlock(l,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&i.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:o[3]||(o[3]=n=>r.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const e1={components:{GSCCarousel:Y2,GSCLeaders:QMe,GSCRowTable:ULe,GSCTableHeader:Qve,GSCExpandedInfo:it(Qm,[["render",Hje],["__cssModules",{$style:Tje}],["__scopeId","data-v-83d82c67"]])},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:o}=Wt(t);return{myDivRef:t,elementSize:o}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,o){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(o)||this.sonConjuntosDistintos(t.setNationalitiesIds,o.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,o){t.length>0&&JSON.stringify(t)!==JSON.stringify(o)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},o={},a=[],i=[],s=[];return this.formatFilterStats.map(r=>{t[r.team_id]?(t[r.team_id].total+=r.total,t[r.team_id].uniqueGames.has(r.game_id)||t[r.team_id].uniqueGames.add(r.game_id)):this.teamInfo[r.team_id]&&(t[r.team_id]=this.initializeTeamData(r,this.teamInfo[r.team_id])),r.player_id!==0&&r.player_id!==62117&&(o[r.player_id]?(o[r.player_id].total+=r.total,o[r.player_id].uniqueGames.has(r.game_id)||o[r.player_id].uniqueGames.add(r.game_id)):o[r.player_id]=this.initializePlayerData(r,this.playersInfo[r.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,o),a=this.processTeamData(t),i=this.processPlayerData(o),this.filterTeam!==0&&!this.isTeam&&(s=i.filter(r=>r.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:i)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,o){return t.total>o.total?-1:t.total<o.total?1:t.minutes<o.minutes?-1:t.minutes>o.minutes?1:0},sonConjuntosDistintos(t,o){const a=Array.from(t),i=Array.from(o);if(a.length!==i.length)return!0;for(let s=0;s<a.length;s++)if(!o.has(a[s]))return!0;return!1},getnameshort(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,o){return t.total<o.total?-1:t.total>o.total?1:t.name<o.name?-1:t.name>o.name?1:0},sortAndSlice(t,o){return t.sort((a,i)=>(a.name<i.name?1:-1)&&(a.total<i.total?1:-1)).slice(0,o)},getCategoryName(t){let o="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(o=this.categories[a].name);return o},translateTopCategories(t){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[t]||[]},getCoordinatePointPerCategory(t){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[t]||0},emitEventMedia(t,o,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,r=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,r=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const c=1,d=2,u=3,p=this.isTeam?u:d,y=t.player_id;let m=[],h=this.isTeam?t.id:this.filterTeam;y?this.isTeam?h=y:(m=[y],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?h=t.id:(m=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:p,gameIds:null,playerIds:m,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:h||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:r,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",f)},emitEventMediaFullTable(t,o,a){let i=this.filtersValues.matchResult,s=this.filtersValues.playingAs,r=this.filtersValues.sections,l=this.filtersValues.zone,n=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(i=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,r=this.filterEmitAux.sections,l=this.filterEmitAux.zone);const c=1,d=2,u=3,p=this.isTeam?u:d;let y=[],m=this.isTeam?t.id:this.filterTeam;this.isTeam?m=t.id:(y=[t.id],n=n.filter(f=>!f.toString().includes("_r")));const h={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:p,gameIds:null,playerIds:y,goalkeeperIds:[],categoryIds:n,teamId:m||0,matchResult:i,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:r,fieldSections:l,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",h)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,o){this.$emit("clickprofile",{id:t,teamId:o,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let o=[],a={},i={};this.arePlaysEmpty=!1;const s=await We.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){o=s.data.data.map(l=>this.formatStatsData(l)),s.data.teams.forEach(l=>{a[l[0]]={},a[l[0]].id=l[0],a[l[0]].name=l[1],a[l[0]].abrv=l[2],a[l[0]].img=l[3],a[l[0]].effectiveness=l[4],a[l[0]].games_played=l[5],a[l[0]].games_played_lastseason=l[6],a[l[0]].positiontable=l[7],a[l[0]].goals=l[8],a[l[0]].goalsrecived=l[9],a[l[0]].xg=l[10],a[l[0]].frecuency=l[11],a[l[0]].game_avg=l[12],a[l[0]].game_avg_last_season=l[13]});const r=new Set;s.data.players.forEach(l=>{const n=this.getObjectPlayer(l);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,d=n.teamName[0].acronym,u=a[n.teamName[0].team_id].name,p=n.teamName[0].team_id,y=this.positions[n.numberPositionId-1].fullname,m=this.positions[n.numberPositionId-1].name,h=n.countryId[0].nationality_id,f=n.effectiveness,g=n.min,b=n.games,S=n.date;n.arrayNationalities.forEach(F=>{r.add(F.numberId)}),i[l[0]]={id:l[0],name:l[1],img:l[2],age:c,team:d,teamname:u,teamid:p,position:y,positionfull:m,effectiveness:f,country:h,games_played:b,minutes_played:g,nationalityId:g,date:S,nationality:l[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=r,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=i,this.formatStats=o,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(o){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(o)}}},filterRecords(t){if(!this.formatStats.length)return[];const o={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!o.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),o.setNationalitiesIds=!0),!Object.values(o).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),i=new Set(t.setPositionsIds),[s,r]=t.arrayAgeRange||[0,100],l=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(this.typeTable!=1&&!c||o.playingAs&&!t.playingAs.includes(n.playing_as)||o.matchResult&&!t.matchResult.includes(n.match_result)||o.sections&&!t.sections.includes(n.section)||o.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino)))return!1;if(this.typeTable!=1){if(o.setNationalitiesIds&&!c.arrayNationalitiesIds.some(d=>a.has(d))||o.setPositionsIds&&!i.has(c.numberPositionId))return!1;if(o.arrayAgeRange){const d=c.numberAge;if(d<s||d>r)return!1}if(o.setYear&&c.date<l||o.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))return!1}return!0})},createFilterConfig(t){const o={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return o.hasFilters=this.checkActiveFilters(o),Object.freeze(o)},checkActiveFilters(t){const{basic:o,player:a}=t;return o.playingAs.size>0||o.matchResult.size>0||o.sections.size>0||o.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,o){return t.filter(a=>!(!this.passesBasicFilters(a,o.basic)||o.player&&!this.passesPlayerFilters(a,o.player)))},passesBasicFilters(t,o){const{playingAs:a,matchResult:i,sections:s,zone:r,typeZone:l}=o;if(a.size&&!a.has(t.playing_as)||i.size&&!i.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(r.size){const n=l===1?t.origen:t.destino;if(!r.has(n))return!1}return!0},passesPlayerFilters(t,o){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(o.nationalTeams.enabled){if(o.nationalTeams.players.size&&!o.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(r=>o.nationalities.has(r)))return!1;const{ageRange:i,yearLimit:s}=o;if(a.numberAge<i[0]||a.numberAge>i[1]||a.date<s||!o.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const o={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,i)=>{o[a]=t[i]}),o},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:La[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},formatArrayPaginate(t){const o=Math.ceil(t.length/this.numRows);return Array.from({length:o},(a,i)=>{const s=i*this.numRows,r=s+this.numRows;return t.slice(s,r)})},initializeTeamData(t,o){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:o.id,name:o.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:o.effectiveness,frecuency:o.frecuency,game_avg:o.game_avg,game_avg_last_season:o.game_avg_last_season,games_played:o.games_played,games_played_lastseason:o.games_played_lastseason,positiontable:o.positiontable,goals:o.goals,goalsrecived:o.goalsrecived,xg:o.xg};return this.typeStats==="every90"&&(a.minutes=o.minutes||0),a},initializePlayerData(t,o){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return o?Object.assign(a,{name:o.name,name_short:this.getnameshort(o.name),img:o.img,id:o.id,age:o.age,team:o.team,teamname:o.teamname,teamid:o.teamid,position:o.position,positionId:o.positionId,positionfull:o.positionfull,country:o.country,effectiveness:o.effectiveness,minutes:o.minutes_played,games:o.games_played,date:o.date,nationality:o.nationality,player_country_flag:o.player_country_flag,categoryName:this.categoryName,goals:o.goals||0,goalsrecived:o.goalsrecived||0,xg:o.xg||0,positiontable:o.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,o){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(o).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(o).forEach(a=>{o[a].minutes<90&&delete o[a]})},processTeamData(t){return Object.values(t).sort((o,a)=>a.total-o.total).slice(0,60).map((o,a)=>{const i=a+1;return{...o,top:i<10?`0${i}`:`${i}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((o,a)=>{const i=a+1;return{...o,top:i<10?`0${i}`:`${i}`}})},HandlerAddplayer(t){this.$emit("add-player",t)},HandlerShowGraph(t){this.$emit("show-graph",t)}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},l4=()=>{e.useCssVars(t=>({"075c6ad7":t.borderRadius,"0f765a3e":t.borderWidth,"11a45704":t.borderColor}))},n4=e1.setup;e1.setup=n4?(t,o)=>(l4(),n4(t,o)):l4;const An=t=>(e.pushScopeId("data-v-c8b0ccee"),t=t(),e.popScopeId(),t),Gje={ref:"myDivRef"},qje={class:"text"},Jje={class:"groupsLeague"},Zje={class:"row-table-carrousel"},Yje={key:1,class:"container-no-search-result"},Kje={key:0,class:"overlay-loading-top"},Xje=An(()=>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)),Qje=An(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),eUe=[Xje,Qje],tUe=An(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),aUe=An(()=>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 oUe(t,o,a,i,s,r){const l=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),d=e.resolveComponent("GSCCarousel"),u=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Gje,[r.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:o[0]||(o[0]=p=>r.clickMore(a.category))},[e.createElementVNode("div",qje,[e.createElementVNode("div",Jje,e.toDisplayString(a.categoryName)+" → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[r.displayData.length>0?(e.openBlock(),e.createBlock(d,{key:0,items:r.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:r.changeCarrousel},{default:e.withCtx(({item:p})=>[e.createElementVNode("div",Zje,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(y,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m},[y.top==="01"?(e.openBlock(),e.createBlock(l,{key:0,onAddPlayer:r.HandlerAddplayer,onMediadata:o[1]||(o[1]=h=>r.emitEventMedia(h,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==y.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:y.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",name:y.name,player_short:y.name_short,player_id:y.id,categoryId:a.category,total:y.total}:{top:"01",logo:y.img,total:y.total,name_team:y.name,player_id:y.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?i.elementSize.width>360?"210px":"130px":i.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:r.clickexpand,onMore:r.morestats},null,8,["onAddPlayer","type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==y.id&&t.expand,onAddPlayer:r.HandlerAddplayer,onMediadata:o[2]||(o[2]=h=>r.emitEventMedia(h,a.category,a.categoryName)),data:a.typeTable==0?{position:y.top,player_name:y.name,player_short:y.name_short,player_photo:y.img,total:y.total,id:y.id,player_age:y.age,team_abrev:y.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",player_position:y.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+y.country+".jpg",player_games:y.minutes,player_min:y.games,league_name:" Liga MX "}:{position:y.top,team_logo:y.img,team_abrev:y.name,frequency:y.frecuency,promthistournament:y.game_avg,promlasttournament:y.game_avg_last_season,teams_games:"-",category:a.category,total:y.total,id:y.id},height:"71px",background:m%2===0?a.backgroundEven:a.backgroundOdd,onExpand:r.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==y.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":y.positionId!==1,onAddPlayer:r.HandlerAddplayer,onShowGraph:r.HandlerShowGraph,data:a.typeTable==0?{teams:y.teamname,age:y.age,dataofbirth:y.date,nationality:y.nationality,countryFlag:y.player_country_flag,position:y.position,games:y.games,min:y.minutes,goals:y.originalTotal||y.total,effectiveness:y.effectiveness,category:a.categoryName,id:y.id}:{position:y.position,goals:y.goals,goals_received:y.goalsrecived,games_played:y.games_played,category:a.categoryName,effectiveness:y.effectiveness,xg:y.xg,total:y.originalTotal||y.total,attendance:"-",id:y.id},onViewprofile:h=>r.viewprofile(h,y.teamid),background:m%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",Yje,[t.isloading?(e.openBlock(),e.createElementBlock("div",Kje,eUe)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[tUe,aUe],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(u,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.displayData,(p,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==m.id&&t.expand,onMediadata:o[3]||(o[3]=f=>r.emitEventMediaFullTable(f,a.category,a.categoryName)),onAddPlayer:r.HandlerAddplayer,data:a.typeTable==0?{position:m.top,player_name:m.name,player_short:m.name_short,player_photo:m.img,total:m.total,id:m.id,player_age:m.age,team_abrev:m.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+m.teamid+".png",player_position:m.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+m.country+".jpg",player_games:m.games,player_min:m.minutes,league_name:" Liga MX "}:{position:m.positiontable,team_logo:m.img,team_abrev:m.name,frequency:m.frecuency,promthistournament:m.game_avg,promlasttournament:m.game_avg_last_season,category:a.category,team_games:m.games_played,total:m.total,id:m.id},height:"71px",background:((y+1)*5+h)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==m.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":m.positionId!==1,onAddPlayer:r.HandlerAddplayer,onShowGraph:r.HandlerShowGraph,data:a.typeTable==0?{teams:m.teamname,age:m.age,dataofbirth:m.date,nationality:m.nationality,countryFlag:m.player_country_flag,position:m.position,positionfull:m.positionfull,games:m.games,min:m.minutes,goals:m.originalTotal||m.total,effectiveness:m.effectiveness,category:r.getCategoryName(a.category),id:m.id}:{position:m.positiontable,goals:m.goals,goals_received:m.goalsrecived,games_played:m.games_played,category:a.categoryName,effectiveness:m.effectiveness,xg:m.xg,total:m.originalTotal||m.total,category:r.getCategoryName(a.category),attendance:"-",id:m.id},onViewprofile:f=>r.viewprofile(f,m.teamid),background:h%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const iUe=it(e1,[["render",oUe],["__scopeId","data-v-c8b0ccee"]]),sUe="_filtersContainer_b9wc6_1",rUe="_filtersContainer1232_b9wc6_1",lUe="_closeFiltersPc_b9wc6_1",nUe="_textleyemdmultipleleagues_b9wc6_1",dUe="_textleyemdmultipleleagues380_b9wc6_1",cUe="_filtersContainer760_b9wc6_1",pUe="_filtersContainer460_b9wc6_1",mUe="_containerSectionPlay_b9wc6_1",uUe="_containerSectionPlay1232_b9wc6_1",fUe="_containerSectionPlay960_b9wc6_1",hUe="_containerSectionPlay320_b9wc6_1",yUe="_containerSectionPlay350_b9wc6_1",gUe="_containerSection_b9wc6_1",bUe="_containerSection1232_b9wc6_1",SUe="_containerSection960_b9wc6_1",_Ue="_containerSection320_b9wc6_1",CUe="_containerSection350_b9wc6_1",wUe="_templateLosMejores_b9wc6_1",kUe="_templateLosMejores1232_b9wc6_1",EUe="_templateLosMejores960_b9wc6_1",VUe="_templateLosMejores420_b9wc6_1",xUe="_templateLosMejores320_b9wc6_1",NUe="_templateLosMejores540_b9wc6_1",TUe="_templateLosMejores350_b9wc6_1",BUe="_topFiltersParent_b9wc6_1",FUe="_topFiltersParent1232_b9wc6_1",PUe="_topFiltersParent960_b9wc6_1",$Ue="_topFiltersParent460_b9wc6_1",AUe="_topFiltersParent420_b9wc6_1",IUe="_containerTheBest_b9wc6_1",zUe="_containerTheBest1232_b9wc6_1",MUe="_containerTheBest960_b9wc6_1",OUe="_containerTheBest320_b9wc6_1",RUe="_titleSection_b9wc6_1",LUe="_titleSection540_b9wc6_1",DUe="_containerTables_b9wc6_1",vUe="_containerTables960_b9wc6_1",jUe="_containerTables760_b9wc6_1",UUe="_containerTables320_b9wc6_1",WUe="_toniKroosWrapper_b9wc6_1",HUe="_toniKroosWrapper1080_b9wc6_1",GUe="_toniKroosWrapper975_b9wc6_1",qUe="_toniKroosWrapper760_b9wc6_1",JUe="_toniKroosWrapper420_b9wc6_1",ZUe="_toniKroosWrapper320_b9wc6_1",YUe="_frameChild_b9wc6_1",KUe="_filtros_b9wc6_1",XUe="_groupParent_b9wc6_1",QUe="_shapeIcon_b9wc6_1",eWe="_btnFilters_b9wc6_1",tWe="_btnFiltersPC_b9wc6_1",aWe="_quitarFiltros_b9wc6_1",oWe="_quitarFiltros730_b9wc6_1",iWe="_quitarFiltros480_b9wc6_1",sWe="_quitarFiltros380_b9wc6_1",rWe="_btnCloseFilters_b9wc6_1",lWe="_mejoresJugadores_b9wc6_1",nWe="_mejoresJugadores730_b9wc6_1",dWe="_mejoresJugadores480_b9wc6_1",cWe="_mejoresJugadoresSM_b9wc6_1",pWe="_toniKroos_b9wc6_1",mWe="_teamBar_b9wc6_1",uWe="_menuSection_b9wc6_1",fWe="_menuSection960_b9wc6_1",hWe="_menuSectionPlay_b9wc6_1",yWe="_menuSectionPlay960_b9wc6_1",gWe="_containerMenu_b9wc6_1",bWe="_containerMenu760_b9wc6_1",SWe="_containerFilters_b9wc6_1",_We="_teamBarParent_b9wc6_1",CWe="_topFilters_b9wc6_1",wWe="_topFilters1232_b9wc6_1",kWe="_topFilters420_b9wc6_1",EWe="_topFilters460_b9wc6_1",VWe="_losMejores_b9wc6_1",xWe="_losMejores380_b9wc6_1",NWe="_losMejores530_b9wc6_1",TWe="_losMejores730_b9wc6_1",BWe="_menuSectionHeader_b9wc6_1",FWe="_menuSectionHeader1232_b9wc6_1",PWe="_menuSectionHeader960_b9wc6_1",$We="_menuSectionHeader730_b9wc6_1",AWe="_dropdown_b9wc6_1",IWe="_dropdown730_b9wc6_1",zWe="_dropdown1_b9wc6_1",MWe="_dropdown1730_b9wc6_1",OWe="_dropdownParent_b9wc6_1",RWe="_dropdownParent730_b9wc6_1",LWe="_menuSectionParentHeader_b9wc6_1",DWe="_menuSectionParentHeader1232_b9wc6_1",vWe="_menuSectionParentHeader960_b9wc6_1",jWe="_menuSectionParentHeader730_b9wc6_1",UWe="_menuSectionParentHeader430_b9wc6_1",WWe="_descubreVideos_b9wc6_1",HWe="_descubreVideos1232_b9wc6_1",GWe="_descubreVideos960_b9wc6_1",qWe="_allCategories_b9wc6_1",JWe="_containerScountingBtn_b9wc6_3",ZWe="_btnDeleteAplica_b9wc6_13",YWe="_SearchBtnBar_b9wc6_33",KWe="_btnLeyendTxt_b9wc6_52",XWe="_BtnSearchScounting_b9wc6_61",QWe="_containerPredefined_b9wc6_85",eHe="_containerPredefinedScounting_b9wc6_92",tHe="_titleContainerPredefined_b9wc6_100",aHe="_subtitleContainerPredefined_b9wc6_111",oHe={filtersContainer:sUe,filtersContainer1232:rUe,closeFiltersPc:lUe,textleyemdmultipleleagues:nUe,textleyemdmultipleleagues380:dUe,filtersContainer760:cUe,filtersContainer460:pUe,containerSectionPlay:mUe,containerSectionPlay1232:uUe,containerSectionPlay960:fUe,containerSectionPlay320:hUe,containerSectionPlay350:yUe,containerSection:gUe,containerSection1232:bUe,containerSection960:SUe,containerSection320:_Ue,containerSection350:CUe,templateLosMejores:wUe,templateLosMejores1232:kUe,templateLosMejores960:EUe,templateLosMejores420:VUe,templateLosMejores320:xUe,templateLosMejores540:NUe,templateLosMejores350:TUe,topFiltersParent:BUe,topFiltersParent1232:FUe,topFiltersParent960:PUe,topFiltersParent460:$Ue,topFiltersParent420:AUe,containerTheBest:IUe,containerTheBest1232:zUe,containerTheBest960:MUe,containerTheBest320:OUe,titleSection:RUe,titleSection540:LUe,containerTables:DUe,containerTables960:vUe,containerTables760:jUe,containerTables320:UUe,toniKroosWrapper:WUe,toniKroosWrapper1080:HUe,toniKroosWrapper975:GUe,toniKroosWrapper760:qUe,toniKroosWrapper420:JUe,toniKroosWrapper320:ZUe,frameChild:YUe,filtros:KUe,groupParent:XUe,shapeIcon:QUe,btnFilters:eWe,btnFiltersPC:tWe,quitarFiltros:aWe,quitarFiltros730:oWe,quitarFiltros480:iWe,quitarFiltros380:sWe,btnCloseFilters:rWe,mejoresJugadores:lWe,mejoresJugadores730:nWe,mejoresJugadores480:dWe,mejoresJugadoresSM:cWe,toniKroos:pWe,teamBar:mWe,menuSection:uWe,menuSection960:fWe,menuSectionPlay:hWe,menuSectionPlay960:yWe,containerMenu:gWe,containerMenu760:bWe,containerFilters:SWe,teamBarParent:_We,topFilters:CWe,topFilters1232:wWe,topFilters420:kWe,topFilters460:EWe,losMejores:VWe,losMejores380:xWe,losMejores530:NWe,losMejores730:TWe,menuSectionHeader:BWe,menuSectionHeader1232:FWe,menuSectionHeader960:PWe,menuSectionHeader730:$We,dropdown:AWe,dropdown730:IWe,dropdown1:zWe,dropdown1730:MWe,dropdownParent:OWe,dropdownParent730:RWe,menuSectionParentHeader:LWe,menuSectionParentHeader1232:DWe,menuSectionParentHeader960:vWe,menuSectionParentHeader730:jWe,menuSectionParentHeader430:UWe,descubreVideos:WWe,descubreVideos1232:HWe,descubreVideos960:GWe,allCategories:qWe,containerScountingBtn:JWe,btnDeleteAplica:ZWe,SearchBtnBar:YWe,btnLeyendTxt:KWe,BtnSearchScounting:XWe,containerPredefined:QWe,containerPredefinedScounting:eHe,titleContainerPredefined:tHe,subtitleContainerPredefined:aHe},iHe=e.ref(_b()),sHe=e.ref(vVe()),rHe=e.ref(Cb()),lHe={components:{GSCTableHeader:Np,GscSwitchComponent:jp,GSCFilterperteam:L2,DropdownYears:Sb,GSCFilters:gm,DropdownPositions:gb,GSCExpandedInfo:Mp,GSCLabel:Q2,GSCSeasonSelect:V2,GSCTopCategory:iUe,GSCTournamentSelect:T2,GSCRowTable:Fp},computed:{...Lze.computed,filterTournaments(){return this.isFemaleMode?this.tournamentsToFilterSelection.reduce((t,o)=>(o.is_female&&t.push({...o,isSelected:!0,propAux:!0}),t),[]):this.tournamentsToFilterSelection},filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},o=JSON.stringify(t);if(JSON.stringify(this.filters)!=o)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...iHe.value}},filterButtonPropsAux(){return{...sHe.value}},filterButtonPropsTournaments(){return{...rHe.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:""},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let o=0;o<t.teams.length;o++)this.teams.push({id:t.teams[o].team_id,team:t.teams[o].colloquial_name,logo:t.teams[o].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:o}=Wt(t);return{myDivRefTopsFull:t,elementSize:o}},data(){return{cachedPlayersMap:[],dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},isAvanced:!1,elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],fvTypeStats:"totals",seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:this.isFemaleMode,id:1001,show_logos:1,tournament_type:0,tournament_status:0,is_female:1,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:[],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",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:R,personalDataFilters:_i,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 P_e(this.seasonsArray,this.tokenFree)}catch(t){console.error("error",t)}},toggleAdvancedView(){this.isAvanced=!this.isAvanced},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const o=t.id===this.selectedTournament.id;t.isSelected=o,t.isDefaultTournament=o})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let i=0;i<this.detaildProductivityCategories.offensive.categories.length;i++)this.detaildProductivityCategories.offensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.defensive.categories.length;i++)this.detaildProductivityCategories.defensive.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.possession.categories.length;i++)this.detaildProductivityCategories.possession.categories[i].isSelected=!1;for(let i=0;i<this.detaildProductivityCategories.offensesConditions.length;i++)this.detaildProductivityCategories.offensesConditions[i]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters($e.All),o.clearFilters($e.AGE_RANGE),o.clearFilters($e.YEAR),o.clearFilters($e.NATIONALITY),o.clearFilters($e.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(i,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let i=0;i<a.teams.length;i++)this.teamsscouting.push({id:a.teams[i].team_id,team:a.teams[i].colloquial_name,logo:a.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(t){this.$emit("openmedia",t)},HandlerShowGraph(t){var o,a;const i=(o=this.cachedPlayersMap)==null?void 0:o.get(t.id);if(i){const s={id:t.id,player_name:i.stringFullName,position:t.position,is_female:(i==null?void 0:i.is_female)||0,team_id:(a=i==null?void 0:i.teamName[0])==null?void 0:a.team_id,nationality:i.stringNationalityName,photo:i.stringImageUrl,countryFlag:i.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var o,a;const i=(o=this.cachedPlayersMap)==null?void 0:o.get(t.id||t.player_id);if(i){const s={player_id:i.numberId,name:i.stringFullName,position:i.numberPositionId,is_female:(i==null?void 0:i.is_female)||0,dob:"",team_id:(a=i==null?void 0:i.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:i.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let o=[t.id],a=t.team_id;const i={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",i)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,o,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:o||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=We.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let s=0;s<o.length;s++){o[s];let r=o[s].dob.split("T")[0].split("-");var i={position:s+1,player_name:this.abrevName(o[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[s].player_id+".png",total:o[s].total.toFixed(0),id:o[s].player_id,player_age:this.calcularEdad(o[s].dob),team_abrev:o[s].teams[0].acronym,team_name:o[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o[s].teams[0].team_id+".png",player_position:o[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[s].nationality_id+".jpg",date:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:o[s].team_id,nationality_name:La[o[s].nationality_id],player_games:o[s].games_played,player_min:o[s].minutes_played,league_name:o[s].tournament_name,seasons:o[s].seasons,season_id:o[s].seasons[0]};this.rowScoutingData.push(i)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let r=0;r<s.teams.length;r++)this.teamsscouting.push({id:s.teams[r].team_id,team:s.teams[r].colloquial_name,logo:s.teams[r].logo})}this.loadingActive=!1},abrevName(t){var o=t.split(","),a=o[0].split(" "),i=o[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var r=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},calcularEdad(t){var o=new Date(t),a=new Date,i=a-o,s=Math.floor(i/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var o;const a=t.find(n=>n.isSelected),i=a?a.id:null,s=a?a.name:null,r=((o=a==null?void 0:a.seasons[0])==null?void 0:o.id)||null;var l=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");l!==-1?this.arrayFiltersPlays[l].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),i!==null&&r!==null&&(this.seasonActive=r,this.selectedTournament=i,this.tournamentSelectedObj={propName:"id",value:i,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",r),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.length;a++)t[a].isSelected&&o.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),o.length==0&&(o=[1]),o.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[i,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var o=[];if(t.hasOwnProperty("nationalities")){for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=o},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filterScounting.categories=o,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var o=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(a!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,o){return Math.floor(Math.random()*(o-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(t){var o=this.arrayFiltersPlays.findIndex(i=>i.type===t);if(o!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,r)=>r+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<i.teams.length;s++)this.teamsscouting.push({id:i.teams[s].team_id,team:i.teams[s].colloquial_name,logo:i.teams[s].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.categoriesPlaysTypes.offensive.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.categoriesPlaysTypes.defensive.categories[i].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.categoriesPlaysTypes.possession.categories[i].isSelected=!0;for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.categoriesPlaysTypes.offenses.categories[i].isSelected=!0}if(t=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters($e.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($e.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($e.AGE_RANGE)):t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters($e.YEAR),this.FVYear=1981,this.personalDataFilters.selectedYear=1981,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters($e.ELIGIBILITY)}this.arrayFiltersPlays.splice(o,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let l=0;l<t.playingAs.length;l++)if(t.playingAs[l].isSelected){const n=t.playingAs[l].name=="Local"?1:2;o.push(n)}for(let l=0;l<t.gameSections.length;l++)t.gameSections[l].isSelected&&a.push(t.gameSections[l].value);this.fVsections=a,this.fVplayingAs=o,this.fvTypeStats=t.statisticType;var i=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?i!=-1&&this.arrayFiltersPlays.splice(i,1):i!=-1?this.arrayFiltersPlays[i].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersDetailsTime"),r="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(r+=", 0-15"),this.fVsections.includes(2)&&(r+=", 15-30"),this.fVsections.includes(3)&&(r+=", 30-45"),this.fVsections.includes(4)&&(r+=", 45-60"),this.fVsections.includes(5)&&(r+=", 60-75"),this.fVsections.includes(6)&&(r+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=r:this.arrayFiltersPlays.push({name:r,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(s!=-1?this.arrayFiltersPlays[s].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,i)=>i+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters($e.All),a.clearFilters($e.AGE_RANGE),a.clearFilters($e.YEAR),a.clearFilters($e.NATIONALITY),a.clearFilters($e.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo})},onFiltersData(t){var o=0,a=0;t.ageByRange?(t.ageByRange.min==0?o=1:o=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[o,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let i="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let y=0;y<t.nationalities.length;y++)t.nationalities[y].isSelected&&this.fVnationalities.add(t.nationalities[y].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y])}else this.FVeligible=!1;for(let y=0;y<t.positions.length;y++)t.positions[y].isSelected&&this.fVsetPositionsIds.push(t.positions[y].id);if(t.hasOwnProperty("nationalities"))var r=t.nationalities.filter(y=>y.isSelected===!0);var l=t.positions.filter(y=>y.isSelected===!0);if(l.length==1&&(i=l[0].name),t.hasOwnProperty("nationalities")&&r.length==1&&(s=r[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var n=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var c=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersPosition");c!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[c].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i:this.arrayFiltersPlays.splice(c,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+i.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+i,type:"onFiltersPosition"})}if(t.hasOwnProperty("ageLimits")){if(this.arrayFiltersPlays=this.arrayFiltersPlays.filter(y=>y.type!=="onFiltersYear"),this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var d=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");d!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[d].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(d,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var d=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersAge");d!=-1&&this.arrayFiltersPlays.splice(d,1)}}else if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var u=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");u!=-1?this.arrayFiltersPlays[u].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var p=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");p!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[p].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(p,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.categoriesPlaysTypes={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},this.detailsObject={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},this.detailsObjectSelection={playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters($e.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<o.teams.length;a++)this.teamsscouting.push({id:o.teams[a].team_id,team:o.teams[a].colloquial_name,logo:o.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(o){console.error("Error changing tabs:",o),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var o=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(o!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.tournamentsToFilter=[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1933,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:this.isFemaleMode,id:1001,show_logos:1,tournament_type:0,tournament_status:0,is_female:1,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.fetchTournamentsForSelection()},async changeTabsSubmenu(t){t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournamentsForSelection(){try{const{data:t}=await We.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",{headers:{Authorization:this.token}}),o=new Set([1,43,1001,1071,1143,1155,1210]);this.tournamentsToFilterSelection=t.filter(a=>o.has(a.tournament.id)).map(a=>({...a.tournament,seasons:a.seasons,isSelected:a.tournament.id===1})).sort((a,i)=>a.order-i.order)}catch(t){console.error("fetchTournamentsForSelection error",t)}},async fetchTeams(){const t=We.create({headers:{Authorization:`${this.token}`}}),{data:o}=await t.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(t){const o=We.create({headers:{Authorization:`${this.token}`}}),{data:a}=await o.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";t.id==1?o=this.urlFilter:o=this.urlFilter;const a=We.create({headers:{Authorization:`${this.token}`}}),{data:i}=await a.get(o+t.id);if(Object.keys(i[0].match_lapse_combinations).forEach(p=>{this.predefinedFiltersMatchLapse[p.toString()]=i[0].match_lapse_combinations[p]}),Object.keys(i[0].playing_as_combinations).forEach(p=>{this.predefinedFiltersPlayingAs[p.toString()]=i[0].playing_as_combinations[p]}),Object.keys(i[0].field_sections_combinations).forEach(p=>{this.predefinedFiltersSections[p.toString()]=i[0].field_sections_combinations[p]}),i[0]){for(let p=0;p<i[0].filter_records.length;p++){var s=i[0].description;if(i[0].filter_records[p].field_sections!==void 0){const m=i[0].filter_records[p].field_sections.toString();(this.predefinedFiltersSections[m]||this.predefinedFiltersSections[m]=="")&&(this.predefinedFiltersSections[m]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[m]):s=s.replace("{field_sections}",this.predefinedFiltersSections[m]))}if(i[0].filter_records[p].match_lapse!==void 0){const m=i[0].filter_records[p].match_lapse.toString();(this.predefinedFiltersMatchLapse[m]||this.predefinedFiltersMatchLapse[m]=="")&&(this.predefinedFiltersMatchLapse[m]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[m]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[m]))}if(i[0].filter_records[p].playing_as!==void 0){const m=i[0].filter_records[p].playing_as.toString();(this.predefinedFiltersPlayingAs[m]||this.predefinedFiltersPlayingAs[m]=="")&&(this.predefinedFiltersPlayingAs[m]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[m]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[m]))}i[0].filter_records[p].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",i[0].category_name);const y=s.split(": ");var r=y[1];r.length>129&&this.windowWidth>1358&&(r=r.substring(0,129),r=r+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||i[0].filter_records[p].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:p,category_name:t.name,id_category:i[0].id,title:y[0]+":",text:y[1],textOrigin:i[0].description,titledots:r,filtersPredefined:{matchResult:i[0].filter_records[p].match_result,playingAs:i[0].filter_records[p].playing_as,sections:i[0].filter_records[p].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[p].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let p=0;p<this.arrayPredefinedFilters.length;p++){var n=0,c=new Set,d={},u=this.arrayPredefinedFilters[p].text.replace(/\*.*?\*/,"");if(u=u.replace(/\*/g,""),u=u.replace(/ +/g," "),this.arrayPredefinedFilters[p].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[p].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[p].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,this.arrayPredefinedFilters[p].filtersPredefined.end_age]:this.arrayPredefinedFilters[p].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[p].filtersPredefined.end_age],this.arrayPredefinedFilters[p].filtersPredefined.matchResult.length!=3&&(n+=1),d.matchResult=this.arrayPredefinedFilters[p].filtersPredefined.matchResult,this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length;y++)c.add(this.arrayPredefinedFilters[p].filtersPredefined.nationalities[y]);d.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),d.setNationalitiesIds=c;this.arrayPredefinedFilters[p].filtersPredefined.playingAs.length!=2&&(n+=1),d.playingAs=this.arrayPredefinedFilters[p].filtersPredefined.playingAs,this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[p].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[p].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[p].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[p].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[p].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[p].filtersPredefined.typeZone,l.push({id:p+1,name:u,isSelected:!1,value:n,filters:d})}this.FVfilterGolstats=l,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((u,p)=>u-p).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections[o]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[i]||this.predefinedFiltersMatchLapse[i]=="")this.predefinedFiltersMatchLapse[i]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";i.includes(1)&&(s=s+"0-15, "),i.includes(2)&&(s=s+"16-30, "),i.includes(3)&&(s=s+"31-45, "),i.includes(4)&&(s=s+"46-60, "),i.includes(5)&&(s=s+"61-75, "),i.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[r]||this.predefinedFiltersPlayingAs[r]=="")&&(this.predefinedFiltersPlayingAs[r]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[r]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[r])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const l=t.split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),c=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const d=c.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let u=1;u<=d.length;u++)u%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const o=[],a=t[7].map(s=>(o.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),i=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:La[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(i[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:o}},processPreloadedTops(t){const o={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),i=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=i,t.tops.forEach(s=>{const r=s.category;o[r]||(o[r]={teams:[],players:[]}),s.teams&&(o[r].teams=s.teams.map((l,n)=>{const c=a.get(l[0])||{};return{id:c.id,name:c.name,img:c.logo,total:l[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(o[r].players=s.players.map((l,n)=>{var c,d,u,p,y,m,h,f,g,b;const S=i.get(l[0])||{};return{age:S.numberAge,categoryName:s.name,country:(d=(c=S.countryId)==null?void 0:c[0])==null?void 0:d.nationality_id,date:S.date,effectiveness:S.effectiveness||0,games:S.games,id:l[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${l[0]}.png`,minutes:S.min,name:S.stringFullName,name_short:S.stringFullName,nationality:S.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(p=(u=S.countryId)==null?void 0:u[0])==null?void 0:p.nationality_id}.jpg`,position:S.position_short,positionId:S.numberPositionId,positionfull:this.positions[S.numberPositionId-1],team:((m=(y=S.teamName)==null?void 0:y[0])==null?void 0:m.acronym)||"",teamid:((f=(h=S.teamName)==null?void 0:h[0])==null?void 0:f.team_id)||"",teamname:((b=(g=S.teamName)==null?void 0:g[0])==null?void 0:b.acronym)||"",top:String(n+1).padStart(2,"0"),total:l[1]}}))}),o},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=We.create({headers:{Authorization:`${this.token}`}}),o=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(o);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,o){return`${t}-${o}`},async getTopData(t,o){const a=this.getCacheKey(t,o);if(this.topsCache.has(a))return this.topsCache.get(a);const i=We.create({headers:{Authorization:`${this.token}`}}),{data:s}=await i.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${o}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),o=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(o.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.fetchTournamentsForSelection(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadPreloadedTops();const t=await We.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.fillPersonalDataFilters()}catch(t){throw new Error(t)}}},nHe={ref:"myDivRefTopsFull",class:"play-tops"},dHe={key:0,class:"overlay-loading"},cHe=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),pHe=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),mHe=[cHe,pHe],uHe=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),fHe=[uHe],hHe={style:{display:"contents"}},yHe={style:{display:"contents"}},gHe={key:0,class:"cont-leyemd-multipleleagues"},bHe=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),SHe={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},_He={key:0,style:{"margin-left":"10px"}},CHe=e.createElementVNode("span",null,"Todas las categorías",-1),wHe=[CHe],kHe=e.createElementVNode("span",null,"Tipo de Jugada",-1),EHe=e.createElementVNode("span",null,"Filtro GolStats",-1),VHe={key:3,style:{width:"100%",height:"295px"}};function xHe(t,o,a,i,s,r){var l,n,c;const d=e.resolveComponent("GSCTournamentSelect"),u=e.resolveComponent("GSCSeasonSelect"),p=e.resolveComponent("GscSwitchComponent"),y=e.resolveComponent("GSCFilterperteam"),m=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),f=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),b=e.resolveComponent("GSCTopCategory"),S=e.resolveComponent("GSCTableHeader"),F=e.resolveComponent("GSCRowTable"),v=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",nHe,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",dHe,mHe)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[i.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[i.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(d,{width:"100%","list-height":"370px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,token:a.token,onInput:r.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","token","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(u,{width:"100%","list-height":"370px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[i.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(p,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),i.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[i.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(d,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,token:a.token,onInput:r.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","token","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(u,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:r.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(y,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:o[0]||(o[0]=(...T)=>r.clickOpenFilters&&r.clickOpenFilters(...T))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:nn},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":i.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[i.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...T)=>r.clickCloseFilters&&r.clickCloseFilters(...T))},fHe,2)):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:o[2]||(o[2]=(...T)=>r.openMenuFilters&&r.openMenuFilters(...T))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:nn},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:wb},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:o[3]||(o[3]=(...T)=>r.openMenuFilters&&r.openMenuFilters(...T))},null,6),[[e.vShow,i.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(i.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:o[4]||(o[4]=(...T)=>r.toggleAdvancedView&&r.toggleAdvancedView(...T))},[s.isAvanced?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ocultar avanzado")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ver avanzado")],64))],2),e.withDirectives(e.createElementVNode("div",null,"Liga:",512),[[e.vShow,!s.isAvanced]]),e.createElementVNode("div",{style:e.normalizeStyle(s.isAvanced?"width: auto;":i.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(m,e.mergeProps({key:0,"button-filter-props":s.isAvanced?r.filterButtonPropsTournaments:r.filterButtonProps,width:"100%"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,"default-tournament-id":a.isFemaleMode?1001:1,filters:r.filterTournaments,"onUpdate:filters":r.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","default-tournament-id","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",hHe,[e.createElementVNode("div",{style:e.normalizeStyle((i.elementSize.width>=768,"width: 61px;"))},"Posición:",4),e.createElementVNode("div",{style:e.normalizeStyle(i.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(h,{"dropdown-props":s.dropdownProps,positions:(l=s.personalDataFilters)==null?void 0:l.positions,onChangePositions:r.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((i.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(i.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(f,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(c=s.personalDataFilters)==null?void 0:c.selectedYear,onChangeYear:r.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",yHe,[e.withDirectives(e.createVNode(m,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:r.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(m,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(m,e.mergeProps({"button-filter-props":r.filterButtonPropsTournaments},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(m,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":r.filterButtonPropsTournaments,filters:s.personalDataFilters},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:a.token,"onUpdate:filters":r.onFiltersData}),null,16,["is-female","button-filter-props","filters","filter-type","season","token","onUpdate:filters"]),[[e.vShow,s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"]])],512),[[e.vShow,s.isAvanced]])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[i.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(m,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:r.filterTournaments,key:s.keyTournamentValue,"onUpdate:filters":r.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(m,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":r.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(m,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(m,e.mergeProps({"button-filter-props":r.filterButtonProps},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":r.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:o[5]||(o[5]=(...T)=>r.getScoutingData&&r.getScoutingData(...T))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(m,e.mergeProps({"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":r.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(m,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":r.filterButtonProps,modalHeight:"300px"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":r.onFiltersGolStats,filters:r.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,i.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",gHe,[bHe,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(y,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:r.clickTeamScouting,onClickAll:r.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",SHe," 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",_He,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(T,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":T.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.deleteLabelFilter,id:T.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:i.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(T=>T.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:o[6]||(o[6]=(...T)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...T))}," 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)},wHe,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,(T,M)=>(e.openBlock(),e.createElementBlock("div",{key:M,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(T.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(b,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,onMore:r.onShowFullTable,"border-width":0,preload:s.preloadedTops[T.id],"border-radius":"12px","filters-prop":r.filterChange,category:T.id,"type-table":s.typeTable,categoryName:T.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded","onShowGraph","onAddPlayer"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(T.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(b,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":!1,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":r.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(b,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":r.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.setOpenMedia,onShowGraph:r.HandlerShowGraph,onAddPlayer:r.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[kHe,e.createTextVNode(" y un "),EHe,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(S,{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,(T,M)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:M},[s.teamselectrec==0||s.teamselectrec==T.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(F,{type:2,"is-expanded":s.playerexpand==T.id&&s.expand,onMediadata:r.setMediaData,data:{position:T.position,player_name:T.player_name,player_photo:T.player_photo,total:T.total,id:T.id,player_age:T.player_age,team_abrev:T.team_abrev,team_logo:T.team_logo,player_position:s.positions[T.player_position-1].fullname,player_country_flag:T.player_country_flag,player_games:T.player_games,player_min:T.player_min,league_name:T.league_name,seasons:T.seasons,season_id:T.season_id},height:"71px",background:M%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==T.id?(e.openBlock(),e.createBlock(v,{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:T.team_name,age:T.player_age,dataofbirth:T.date,nationality:T.nationality_name,countryFlag:T.player_country_flag,position:s.positions[T.player_position-1].name,games:T.player_games,min:T.player_min,goals:T.total,effectiveness:"-",category:"total",id:T.id},onViewprofile:D=>r.viewprofile(D,T.season_id,T.team_id),background:M%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:o[7]||(o[7]=(...T)=>r.onClickDeleteFilter&&r.onClickDeleteFilter(...T))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:o[8]||(o[8]=(...T)=>r.getScoutingData&&r.getScoutingData(...T))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",VHe)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const NHe={$style:oHe},THe=it(lHe,[["render",xHe],["__cssModules",NHe]]),BHe=e.ref(_b()),FHe=e.ref(Cb()),PHe={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0},templates:{type:Array,default:()=>[]},templatesCreateList:{type:Array,default:()=>[]},hidePersonalizableVariables:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1},templatesUrl:{type:String,default:""},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},components:{GscSwitchComponent:jp,GSCRadioToggle:yTe,ModalAddPlayList:ZTe,DropdownTemplates:LVe,GSCTableScrollable:KIe,GSCFilters:gm,ModalAddLista:nBe,DropdownYears:Sb,DropdownPositions:gb,PlayTops:THe,ModalViewVarGolstats:Rze},computed:{isInfoGeneral(){return this.selectedRadioOption==="Info general"},filterButtonProps(){return{...BHe.value}},filterButtonPropsTournamentsAdvanced(){return{...FHe.value}},sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"90px":t<=330?"95px":t<=340||t<=350?"110px":t<=360?"120px":t<=470?"122px":"130px"},advancedText(){return this.showAdvanced?"Ocultar avanzado":"Ver avanzado"}},data(){return{showModal:!1,currentParameters:{},MobileFilterDesing:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},showtableType:!0,formattedPlayers:[],totalNationalities:0,defaultFiltersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:6,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},visibleModalAddPlaylist:!1,showCreatePlaylistModal:!1,filtersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:6,minutes_played:0,minutes_played_avg:0,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},positions:[{id:1,name:"Portero",fullname:"POR"},{id:2,name:"Defensa central",fullname:"DFC"},{id:3,name:"Lateral por izquierda",fullname:"LI"},{id:4,name:"Lateral por derecha",fullname:"LD"},{id:5,name:"Volante por izquierda",fullname:"VI"},{id:6,name:"Volante por derecha",fullname:"VD"},{id:7,name:"Volante defensivo",fullname:"VDF"},{id:8,name:"Volante ofensivo",fullname:"VO"},{id:9,name:"Delantero",fullname:"DEL"},{id:10,name:"Desconocida",fullname:"Desc"}],tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],filtersTypes:R,personalDataFilters:_i,personalDataSubFiltersTypes:$e,tournamentsToFilter:[],tournamentsToFilterVariables:dBe,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,o)=>o+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1},statisticsRadios:"total"},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"Poppins-Regular"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},optionSelected:"Los mejores",showVariables:!0,selectedRadioOption:"Variables propias",showAdvanced:!1,isSearchActive:!1,lastSearchFilters:null,seasonsArray:[],activeFilters:[],isLoading:!1,selectedPlayerToAdd:null}},setup(){const t=e.ref("myDivRefTopsBestPlay"),o=e.ref(null),a=e.ref(null),{elementSize:i}=Wt(t),{elementSize:s}=Wt(o),{elementSize:r}=Wt(a);return{myDivRefTopsBestPlay:t,midLayoutRef:o,filterBoxRef:a,elementSize:i,midLayoutSize:s,filterBoxSize:r}},created(){},async mounted(){try{await this.fetchTournamentsForSelection(),await this.fillPersonalDataFilters(),this.isSearchActive=!0,!this.hasTemplates||this.hidePersonalizableVariables?(this.selectedRadioOption="Info general",delete this.filtersObject.template_id,this.showVariables=!1,this.checkSearchButton()):await new Promise(t=>{const o=()=>{this.filtersObject.template_id?t(!0):setTimeout(o,100)};o()}),await this.toggleSearch()}catch(t){console.error("Error durante la inicialización:",t)}},methods:{onClickParameters(t){this.currentParameters=t,this.showModal=!0},closeModal(){this.showModal=!1},onViewProfile(t){this.$emit("open-profile-player",t)},onAddToList(t){this.selectedPlayerToAdd={player_id:t.objeto_player.player_id,name:t.objeto_player.name,position:t.objeto_player.position_id,is_female:t.objeto_player.is_female||0,dob:t.objeto_player.dob,team_id:t.objeto_player.teams[0].team_id,jersey:t.objeto_player.jersey||0,nationality:t.objeto_player.nationality,nationality_id:t.objeto_player.nationality_id},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",{data:t,templateId:this.selectedRadioOption==="Info general"||this.optionSelected==="Por jugada"?null:this.currentTemplateId})},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),o=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==o},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(o=>o.isSelected).map(o=>o.id),this.seasonsArray=t.filter(o=>o.isSelected).map(o=>({id:o.seasons[0].id,tournamentId:o.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const i=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[i,s],this.filtersObject.age_or_year=1}else t.hasOwnProperty("year")?(this.filtersObject.year=t.year,this.filtersObject.age_or_year=0,this.filtersObject.range_age=[]):this.filtersObject.year=0;var o=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let i=0;i<t.nationalities.length;i++)t.nationalities[i].isSelected&&o.push(t.nationalities[i].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let i=0;i<t.positions.length;i++)t.positions[i].isSelected&&a.push(t.positions[i].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=o,this.checkSearchButton()},onFiltersField(t){this.checkSearchButton()},onFiltersUniverse(t){this.filtersObject.minutes_played=Number(t.minutesPlayed),this.filtersObject.last_months=Number(t.lastMonths),this.filtersObject.minutes_played_avg=Number(t.percentMinutesPlayed),this.filtersObject.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1,t.statisticsRadios&&t.statisticsRadios==="every90"?(this.filtersObject.is_ppp=!0,this.filtersObject.ppp_default_minutes=90):this.filtersObject.is_ppp=!1,this.checkSearchButton()},onFiltersProductivity(t){var o=[];for(let a=0;a<t.productivityFilters.length;a++)o[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};o.length==0&&(o=[]),this.filtersObject.categories=o,this.filtersObject.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filtersObject.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filtersObject.red_cards=t.offensesConditions.areRedCardsSelected,this.checkSearchButton()},onChangePositions(t){this.filtersObject.positions=t.filter(o=>o.isSelected&&o.id!==0).map(o=>o.id),this.checkSearchButton()},onChangeYear(t){this.filtersObject.year=t,this.personalDataFilters.selectedYear=t,this.checkSearchButton()},async toggleSearch(){const t="https://1km387uzk3.execute-api.us-east-2.amazonaws.com/qa/players/productivity";if(this.isSearchActive)try{this.isLoading=!0;const o=await(await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...this.filtersObject,year:this.filtersObject.year==="Sin límite"?this.personalDataFilters.availableYears[this.personalDataFilters.availableYears.length-1]:this.filtersObject.year})})).json();this.showtableType=!this.filtersObject.template_id,this.formattedPlayers=o.map(a=>({objeto_player:a,player_photo:a.photo,player_name:a.acronym,player_age:this.calculateAge(a.dob),team_abrev:a.teams[0].acronym,jersey:a.jersey||"",nationality:a.nationality,team_name:a.team_name,is_female:a.is_female||0,parameters:a.internal_parameters,position_name:this.positions[a.position_id-1].fullname,player_position:this.positions[a.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+a.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${a.nationality_id}.jpg`,player_games:a.games_played,player_min:a.minutes_played,nationality_name:La[a.nationality_id],league_name:a.tournament_name,seasons:a.seasons,season_id:a.seasons[0],stats:a.stats?a.stats.map(i=>({category_id:i[4]||null,custom_category_id:i[0]||null,name:i[1]||"",total:i[2]||0,seasons:i[3]||null})):[]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(o){console.error("Error al realizar la búsqueda:",o)}finally{this.isLoading=!1}},calculateAge(t){if(!t)return"-";const o=new Date(t),a=new Date;let i=a.getFullYear()-o.getFullYear();const s=a.getMonth()-o.getMonth();return(s<0||s===0&&a.getDate()<o.getDate())&&i--,i},resetFilters(){this.filtersObject=JSON.parse(JSON.stringify(this.defaultFiltersObject)),this.lastSearchFilters=null,this.checkSearchButton()},async fillPersonalDataFilters(){this.seasonsArray,this.tokenFree},async fetchTournamentsForSelection(){try{const{data:t}=await We.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",{headers:{Authorization:this.token}}),o=new Set([1,43,1001,1071,1143,1155,1210]),a=t.filter(i=>o.has(i.tournament.id)).map(i=>({...i.tournament,seasons:i.seasons,isSelected:i.tournament.id===1})).sort((i,s)=>i.order-s.order);this.isFemaleMode?this.tournamentsToFilter=a.filter(i=>i.is_female).map(i=>({...i,isSelected:!0})):this.tournamentsToFilter=a}catch(t){console.error("fetchTournamentsForSelection error",t)}},async changeTabsGeneral(t){this.optionSelected=t},closeModalAddPlaylist(){this.visibleModalAddPlaylist=!1},ChangeRadio(t){if(!this.hasTemplates){this.selectedRadioOption="Info general";return}typeof t=="string"?(this.selectedRadioOption=t,this.showVariables=t==="Variables propias",t==="Info general"&&(delete this.filtersObject.template_id,this.checkSearchButton(),this.toggleSearch())):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t?(this.currentTemplateId=t.id,this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton(),this.toggleSearch()):this.currentTemplateId=null},updateActiveFilters(){const t=[];if(this.filtersObject.tournaments.length>0&&this.filtersObject.tournaments.length!=6)if(this.filtersObject.tournaments.length>1)t.push(`Ligas ${this.filtersObject.tournaments.length}`);else{const o=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));o&&t.push(o.name)}else t.push("Todas las ligas");if(this.filtersObject.nationalities.length>0&&this.filtersObject.nationalities.length!==this.totalNationalities&&this.filtersObject.nationalities.length!==231){const o=this.filtersObject.nationalities.length;o===1?t.push("Nacionalidad "+La[this.filtersObject.nationalities[0]]):t.push(`${o} nacionalidades`)}if(this.filtersObject.elegibles&&this.filtersObject.elegibles.length>0&&t.push("Nacionalidad Mexicana"),this.filtersObject.positions.length>0&&this.filtersObject.positions.length!==9)if(this.filtersObject.positions.length===1){const o=this.positions.find(a=>a.id===this.filtersObject.positions[0]);o&&t.push(o.name)}else t.push(`${this.filtersObject.positions.length} posiciones de juego`);if(this.filtersObject.year>0&&t.push(`A partir del ${this.filtersObject.year}`),this.filtersObject.range_age.length===2&&t.push(`${this.filtersObject.range_age[0]}-${this.filtersObject.range_age[1]} años`),this.filtersObject.last_months&&this.filtersObject.last_months!==6&&t.push(`Últimos ${this.filtersObject.last_months} meses`),this.filtersObject.minutes_played>0&&t.push(`Min. ${this.filtersObject.minutes_played} min`),this.filtersObject.minutes_played_avg>0&&t.push(`Min. ${this.filtersObject.minutes_played_avg}% min`),this.filtersObject.type_stats!==1){const o=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(o)}this.activeFilters=t},handleCreateList(){this.showCreatePlaylistModal=!0,this.visibleModalAddPlaylist=!1},closeCreatePlaylistModal(){this.showCreatePlaylistModal=!1},changeSeasonId(t){this.$emit("change-season-id",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},topsLoaded(t){this.$emit("tops-loaded",t)},handleCompareClick(){this.formattedPlayers.length>0&&this.$emit("compare-players",{data:this.formattedPlayers,templateId:this.selectedRadioOption==="Info general"||this.optionSelected==="Por jugada"?null:this.currentTemplateId})}}},Ba=t=>(e.pushScopeId("data-v-43017e2c"),t=t(),e.popScopeId(),t),$He={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},AHe={class:"overlay-loading"},IHe=Ba(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),zHe=Ba(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),MHe=[IHe,zHe],OHe={class:"strip-menu"},RHe={class:"strip-options-vars"},LHe={key:0,class:"desktop-layout"},DHe={class:"left-containers"},vHe={class:"filter-container filter-container-variables container-372"},jHe={key:0,class:"filter-container filter-container-variables container-291"},UHe=Ba(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),WHe={class:"variables-indicator"},HHe=Ba(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),GHe={class:"filter-container-box"},qHe=Ba(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),JHe={class:"filter-container-box-2"},ZHe=Ba(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),YHe={class:"filter-container-box-3"},KHe={class:"advanced-row-top"},XHe=Ba(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),QHe={class:"stats-section"},eGe={class:"filters-applied"},tGe=Ba(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),aGe={class:"filters-tags-wrapper"},oGe={class:"filters-tags"},iGe=Ba(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),sGe={key:0,class:"no-results"},rGe={key:1,class:"content-container"};function lGe(t,o,a,i,s,r){const l=e.resolveComponent("ModalViewVarGolstats"),n=e.resolveComponent("ModalAddPlayList"),c=e.resolveComponent("ModalAddLista"),d=e.resolveComponent("GscSwitchComponent"),u=e.resolveComponent("GSCRadioToggle"),p=e.resolveComponent("DropdownTemplates"),y=e.resolveComponent("GSCFilters"),m=e.resolveComponent("DropdownPositions"),h=e.resolveComponent("DropdownYears"),f=e.resolveComponent("GSCTableScrollable"),g=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(l,{isVisible:s.showModal,"onUpdate:isVisible":o[0]||(o[0]=b=>s.showModal=b),onClose:r.closeModal,parameters:s.currentParameters},null,8,["isVisible","onClose","parameters"]),e.createElementVNode("div",$He,[e.createVNode(n,{isVisible:s.visibleModalAddPlaylist,onClose:r.closeModalAddPlaylist,"user-id":a.userId,onCreateList:r.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(c,{isVisible:s.showCreatePlaylistModal,"user-id":a.userId,player:s.selectedPlayerToAdd,templates:a.templatesCreateList.data,onClose:r.closeCreatePlaylistModal},null,8,["isVisible","user-id","player","templates","onClose"]),e.withDirectives(e.createElementVNode("div",AHe,MHe,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",OHe,[e.createVNode(d,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":r.sizeTabsFontMP,width:r.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:r.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",RHe,[i.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",LHe,[e.createElementVNode("div",DHe,[e.createElementVNode("div",vHe,[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(u,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:r.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",jHe,[UHe,e.createElementVNode("div",WHe,[e.createVNode(p,{"templates-url":a.templatesUrl,"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:r.onChangeTemplate},null,8,["templates-url","dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.withDirectives(e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:o[1]||(o[1]=(...b)=>r.toggleAdvanced&&r.toggleAdvanced(...b))},e.toDisplayString(r.advancedText),513),[[e.vShow,r.isInfoGeneral]])])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":i.elementSize.width<=480,"mid-layout":i.elementSize.width<=780&&i.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":i.elementSize.width<=780&&i.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":i.elementSize.width<=480}])},[a.hasTemplates&&!a.hidePersonalizableVariables?(e.openBlock(),e.createBlock(u,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:r.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),i.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":i.elementSize.width<=480}]),onClick:o[2]||(o[2]=(...b)=>r.toggleAdvanced&&r.toggleAdvanced(...b))},e.toDisplayString(r.advancedText),3)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container container-291",{"mobile-container":i.elementSize.width<=480,"mid-container":i.elementSize.width<=780&&i.elementSize.width>480,"container-292":i.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":i.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":i.elementSize.width<=480}])},[e.createVNode(p,{"team-id":a.teamId,"templates-url":a.templatesUrl,onChangeTemplate:r.onChangeTemplate},null,8,["team-id","templates-url","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),i.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":i.elementSize.width<=480}]),onClick:o[3]||(o[3]=(...b)=>r.toggleAdvanced&&r.toggleAdvanced(...b))},e.toDisplayString(r.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var b,S;return[s.showAdvanced?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":i.elementSize.width<=890,"layout-480":i.elementSize.width<=480}])},[e.createElementVNode("div",KHe,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({width:"99.7%","button-filter-props":r.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":r.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"is-eligibility-visible":!1,"show-badge-on-filter-full":!1,"is-scouting":""},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":r.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":i.elementSize.width<=890}])},[e.createVNode(y,e.mergeProps({"button-filter-props":r.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},i.elementSize.width<420?s.expansionPanelModePropsMobil270:i.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":r.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-75",{"equal-width":i.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:o[5]||(o[5]=(...F)=>r.toggleSearch&&r.toggleSearch(...F))},"Buscar",2)],2)])],2)),[[e.vShow,r.isInfoGeneral]]):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":i.elementSize.width<=780,"gap-reduced-850":i.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":i.elementSize.width<=780,"stack-vertical":i.elementSize.width<=480,"gap-reduced-850":i.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced-tournament":i.elementSize.width<=1e3}])},[HHe,e.createElementVNode("div",GHe,[e.createVNode(y,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":r.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.tournamentsToFilter,"onUpdate:filters":r.onUpdateTournaments},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-2",{"filter-half-position":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced-position":i.elementSize.width<=1e3}])},[qHe,e.createElementVNode("div",JHe,[e.createVNode(m,{"dropdown-props":s.dropdownProps,positions:(b=s.personalDataFilters)==null?void 0:b.positions,onChangePositions:r.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":i.elementSize.width<=780,"stack-vertical":i.elementSize.width<=480,"gap-reduced-850":i.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480,"filter-vertical":i.elementSize.width<=1e3,"filter-reduced":i.elementSize.width<=1e3}])},[ZHe,e.createElementVNode("div",YHe,[e.createVNode(h,{"dropdown-props":s.dropdownProps,years:(S=s.personalDataFilters)==null?void 0:S.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:r.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":i.elementSize.width<=780&&i.elementSize.width>480,"filter-full":i.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:o[4]||(o[4]=(...F)=>r.toggleSearch&&r.toggleSearch(...F))},"Buscar",2)],2)],2)],2)),[[e.vShow,r.isInfoGeneral]])]}),_:1}),XHe,e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":i.elementSize.width<=780}])},[e.createElementVNode("div",QHe,[e.createElementVNode("div",eGe,[tGe,e.createElementVNode("div",aGe,[e.createElementVNode("div",oGe,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(b,S)=>(e.openBlock(),e.createElementBlock("span",{key:S,class:"filter-tag"},e.toDisplayString(b),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":i.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:o[6]||(o[6]=(...b)=>r.handleCompareClick&&r.handleCompareClick(...b))},[e.createTextVNode(" Comparar jugadores "),iGe])],2)],2),[[e.vShow,r.isInfoGeneral]]),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",sGe," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",rGe,[e.createVNode(f,{players:s.formattedPlayers,"is-general":s.showtableType,"is-graph-button-visible":r.isInfoGeneral,onViewProfile:r.onViewProfile,onAddToList:r.onAddToList,onShowGraph:r.onShowGraph,onOpenMedia:r.onOpenMedia,onClickParameters:r.onClickParameters},null,8,["players","is-general","is-graph-button-visible","onViewProfile","onAddToList","onShowGraph","onOpenMedia","onClickParameters"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(g,{key:1,"is-female-mode":a.isFemaleMode,token:a.token,onChangeSeasonId:r.changeSeasonId,onOpenmedia:r.onOpenMedia,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded,onShowGraph:r.onShowGraph,onAddPlayer:r.onAddPlayer},null,8,["is-female-mode","token","onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)],64)}const nGe=it(PHe,[["render",lGe],["__scopeId","data-v-43017e2c"]]),dGe={name:"SwitchTopsType",components:{TopsFull:pTe,TopsBestAndPlay:nGe},data(){return{templates:[],templatesCreateList:[],hasTemplates:!1,isTemplatesLoaded:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",templatesUrl:""}},created(){this.fetchTemplates(),this.fillTemplatesCreateList()},props:{type:{type:Number,default:1},userType:{type:String,required:!0},userId:{type:String,required:!0},isScout:{type:Boolean,default:!1},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0},isSelection:{type:Boolean,default:!1},hidePersonalizableVariables:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzQwNDcsIm5hbWUiOiJHb2xTdGF0cyBTYW50b3MiLCJ1c2VybmFtZSI6Imdzc2FudG9zIiwiZW1haWwiOiIiLCJwcm92aWRlcl9pZCI6MSwibG9naW5fZ29sc3RhdHMiOjEsImlhdCI6MTc0NjIyMjQ3NCwiZXhwIjoxNzc3NzU4NDc0fQ.fga__q8pm-HbeHeNPWOqz32n8xkE_zcVPiPu8NTAiOM"},tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0},isFemaleMode:{type:Boolean,default:!1}},methods:{async fetchTemplates(){var t;try{const o=We.create({headers:{Authorization:`${this.token}`}});this.templatesUrl=`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/teams/${this.teamId}/templates?&onlyPublic=1`;const a=await o.get(this.templatesUrl);(t=a.data)!=null&&t.data&&Array.isArray(a.data.data)&&a.data.data.length>0?(this.templates=a.data,this.hasTemplates=!0):(this.templates=[],this.hasTemplates=!1)}catch(o){console.error("Error al obtener templates:",o),this.templates=[],this.hasTemplates=!1}finally{this.isTemplatesLoaded=!0}},async fillTemplatesCreateList(){var t;try{const o=await We.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/v2/teams/${this.teamId}/templates?general=1&onlyPublic=1&infoGeneral=1`);(t=o.data)!=null&&t.data&&Array.isArray(o.data.data)&&o.data.data.length>0?this.templatesCreateList=o.data:this.templatesCreateList=[]}catch(o){console.error("Error al obtener templates:",o),this.templatesCreateList=[]}},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 cGe(t,o,a,i,s,r){const l=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(l,{key:0,onChangeSeasonId:r.changeSeasonId,onOpenMedia:r.onOpenMedia,onOpenmedia:r.onOpenMedia,"team-id":a.teamId,"is-scout":a.isScout,"user-type":a.userType,"is-clubes":a.isClubes,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,"tournaments-api-url":a.tournamentsApiUrl,"are-female-tournaments-visible":a.areFemaleTournamentsVisible,"is-female-mode":a.isFemaleMode,token:a.token,onOpenProfileTeam:r.openProfileTeam,onOpenProfilePlayer:r.openProfilePlayer,onTopsLoaded:r.topsLoaded},null,8,["onChangeSeasonId","onOpenMedia","onOpenmedia","team-id","is-scout","user-type","is-clubes","current-season-id","is-selection","tournaments-api-url","are-female-tournaments-visible","is-female-mode","token","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded"])):s.isTemplatesLoaded?(e.openBlock(),e.createBlock(n,{key:1,"team-id":a.teamId,"has-templates":s.hasTemplates,templates:s.templates,"templates-create-list":s.templatesCreateList,"user-type":a.userType,"is-female-mode":a.isFemaleMode,"templates-url":s.templatesUrl,token:a.token,onOpenMedia:r.onOpenMedia,onShowGraph:r.onShowGraph,onComparePlayers:r.comparePlayers,onOpenProfilePlayer:r.onOpenProfilePlayer,onAddToList:r.onAddToList,onChangeSeasonId:r.changeSeasonId,onOpenProfileTeam:r.openProfileTeam,onTopsLoaded:r.topsLoaded,"user-id":a.userId,"hide-personalizable-variables":a.hidePersonalizableVariables},null,8,["team-id","has-templates","templates","templates-create-list","user-type","is-female-mode","templates-url","token","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id","hide-personalizable-variables"])):e.createCommentVNode("",!0)])}const pGe=it(dGe,[["render",cGe]]),mGe={class:"elegibles"},d4=Bi(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1},hidePersonalizableVariables:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:o}){const a=t,i=u=>{o("openmedia",u)},s=u=>{o("open-profile-team",u)},r=u=>{o("open-profile-player",u)};function l(u){o("showGraph",u)}function n(u){o("change-season-id",u)}function c(u){o("tops-loaded",u)}function d(u){o("comparePlayers",u)}return(u,p)=>(e.openBlock(),e.createElementBlock("div",mGe,[e.createVNode(e.unref(pGe),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores","hide-personalizable-variables":t.hidePersonalizableVariables,"is-female-mode":t.isFemaleMode,token:t.token,onOpenmedia:i,onComparePlayers:d,onOpenMedia:i,onOpenProfileTeam:s,onOpenProfilePlayer:r,onShowGraph:l,onChangeSeasonId:n,onTopsLoaded:c},null,8,["user-id","team-id","hide-personalizable-variables","is-female-mode","token"])]))}}),[["__scopeId","data-v-433d86de"]]),uGe=(t=>(e.pushScopeId("data-v-fb7f69ad"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),fGe={class:""},hGe={class:""},yGe={class:"tabs"},gGe=Bi({__name:"PlayersTrackingMain",props:{tournamentsApiUrl:{type:String,default:""},tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},userType:{type:String,default:"presidents"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},isSeleccionUser:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},userId:{type:Number,default:24254,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0},areFemaleTeamsExcluded:{type:Boolean,default:!1},hidePersonalizableVariables:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:o}){const a=t,i={fontFamily:"Poppins-Light",logosUrl:"https://golstatsimages.blob.core.windows.net/todoelfut/",logoFileType:"png",height:"40px",width:"179px",borderRadius:8,arrowHeight:24,arrowWidth:24,borderType:"solid",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#0d1d29",color:"white",arrowColor:"#CBEE6B"},s=a.userType==="seleccion"?["Detección de jugadores","Listas de seguimiento","Última convocatoria"]:["Detección de jugadores","Listas de seguimiento"],r=e.ref("Detección de jugadores"),l=e.ref({width:0}),n=e.ref(null),c=e.ref(0),d=e.ref(0),u=e.ref([]),p=e.ref([]),y=e.ref(!1),m=e.ref(!1),h=e.ref({}),f=e.ref([]),g=e.ref({}),b=e.ref({});e.watch(()=>a.tournamentId,w=>{w&&v()},{immediate:!0}),e.watch(()=>a.teamId,async w=>{w&&(await F(),await v())},{immediate:!0});const S=w=>{r.value=w};async function F(){try{const w=[fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/last-call/teams/${a.teamId}/seasons`,{method:"GET",headers:{Authorization:a.token}}),fetch("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",{method:"GET",headers:{Authorization:a.token}})],[G,$]=await Promise.all(w);let J=await G.json();const fe=await $.json();a.areFemaleTeamsExcluded&&(J=J.filter(ye=>!ye.team_name.toLowerCase().includes("femenil"))),J.forEach(ye=>{ye.seasonsIds=new Set(ye.seasons.map(ge=>ge.id)),ye.availableTournaments=ye.seasonsIds?fe.reduce((ge,Z)=>{if(Z.seasons.some(_=>ye.seasonsIds.has(_.id))){const _=Z.seasons.filter(B=>ye.seasonsIds.has(B.id));ge.push({...Z.tournament,seasons:ye.seasons.reduce((B,A)=>(_.forEach(pe=>{pe.id===A.id&&B.push(A)}),B),[]),seasonsIds:ye.seasonsIds,teamId:ye.team_id})}return ge},[]):[]}),f.value=J.filter(ye=>ye.availableTournaments.length>0),g.value=f.value[0]}catch(w){console.error(w)}}async function v(){try{if(c.value!==a.tournamentId||d.value!==a.teamId){const w=[M()];c.value=a.tournamentId,d.value=a.teamId;const[G]=await Promise.all(w);p.value=G}}catch(w){console.error("Error filling data",w)}}function T(){D().then(w=>{u.value=w})}async function M(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/in-followed/teams/${a.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(w){console.error("Error fetching in followed",w)}}async function D(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${h.value.id}/teams/${h.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(w){console.error("Error fetching last called",w)}}const P=()=>{n.value&&(l.value.width=n.value.offsetWidth,y.value=l.value.width<700,m.value=l.value.width<420)};e.onMounted(()=>{P();const w=new ResizeObserver(P);n.value&&w.observe(n.value)});const Q=e.computed(()=>{const w=l.value.width;return w<=560?"170px":(w<=650||w<=768,"225px")}),O=e.computed(()=>{const w=l.value.width;return w<=460?"12px":w<=650?"13px":w<=768?"14px":"16px"});e.computed(()=>l.value.width<=380?"18px":"22px");const k=e.computed(()=>{switch(r.value){case"Detección de jugadores":return d4;case"Listas de seguimiento":return Wde;case"Última convocatoria":return X6;default:return d4}}),E=e.computed(()=>m.value||y.value?"100%":"179px"),V=w=>{o("openmedia",w)},N=w=>{o("showGraph",w)},Y=w=>{o("open-profile-team",w)},de=w=>{o("open-profile-player",w)},ue=w=>{o("open-profile-player",w)},C=w=>{o("compare-players",w)};function I(w){o("change-season-id",w)}function U(w){o("tops-loaded",w)}async function z(){if(h.value.friendlyGames&&h.value.friendlyGames.length>0)try{const G=await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/games/${b.value.game_id}/teams/${g.value.team_id}`,{method:"GET",headers:{Authorization:a.token}})).json();u.value=G.players||[]}catch(w){console.error("Error fetching last called players by game",w)}}function W(w){b.value=w,z()}async function ce(w){const G=w.name.toLowerCase();w.isFriendly=G.includes("friend"),w.isFriendly&&!w.friendlyGames&&(w.friendlyGames=w.seasons.reduce(($,J)=>(J.games&&($=[...$,...J.games]),$),[])),h.value=w,h.value.friendlyGames?(b.value=h.value.friendlyGames[0],await z()):T()}function j(w){g.value=w}function H(w){g.value=w}return(w,G)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":y.value}])},[uGe,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":y.value}])},[t.isSeleccionUser&&r.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[e.createVNode(e.unref(o1),e.mergeProps(i,{"model-value":g.value,items:f.value,onInput:j,"onUpdate:modelValue":H}),{default:e.withCtx(({selectedItem:$})=>[e.createElementVNode("div",fGe,e.toDisplayString($.team_name),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,e.toDisplayString($.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(f6),{key:0,items:g.value.availableTournaments,width:E.value,token:t.token,onInput:ce},null,8,["items","width","token"])):e.createCommentVNode("",!0)],2),h.value.friendlyGames?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["select-container",{"select-container-mobile":y.value}])},[e.createVNode(e.unref(o1),e.mergeProps(i,{width:"250px","model-value":b.value,items:h.value.friendlyGames,onInput:W}),{default:e.withCtx(({selectedItem:$})=>[e.createElementVNode("div",hGe,e.toDisplayString($.game),1)]),availableItem:e.withCtx(({item:$})=>[e.createElementVNode("div",null,e.toDisplayString($.game),1)]),_:1},16,["model-value","items"])],2)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",yGe,[e.createVNode(e.unref(M6),{type:2,buttons:e.unref(s),"font-family":"Poppins-Medium","selected-option":r.value,"font-size":O.value,width:Q.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:S},null,8,["buttons","selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":r.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{"parent-width":l.value.width,"user-id":a.userId,"team-id":a.teamId,"user-team-id":a.userTeamId,"last-called-players":u.value,"in-followed-players":p.value,"hide-personalizable-variables":t.hidePersonalizableVariables,"is-female-mode":t.isFemaleMode,token:t.token,onShowGraph:N,onShowProfile:ue,onOpenmedia:V,onOpenMedia:V,onOpenProfileTeam:Y,onOpenProfilePlayer:de,onChangeSeasonId:I,onTopsLoaded:U,onComparePlayers:C},null,40,["parent-width","user-id","team-id","user-team-id","last-called-players","in-followed-players","hide-personalizable-variables","is-female-mode","token"]))],2)],512))}},[["__scopeId","data-v-fb7f69ad"]]),bGe={class:"subcategory-group"},SGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",bGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(ze),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},_Ge=Oe(SGe,[["__scopeId","data-v-ae6f3d72"]]),CGe={class:"filter-subcategories"},wGe=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",CGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(_Ge,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),In=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),kGe={class:"details__header"},EGe=In(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),VGe={class:"details__header__checkbox"},xGe={class:"details__body"},NGe={class:"details__body__playing-as"},TGe=["onClick"],BGe={class:"details__header"},FGe=In(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),PGe={class:"details__header__checkbox"},$Ge={class:"details__body"},AGe=In(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),IGe={class:"details__body__game-section"},zGe=["onClick"],MGe={class:"details__body"},OGe=In(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),RGe={class:"details__body__game-section"},LGe=["onClick"],DGe=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const o=t;e.useCssVars(u=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>o.playingAs.every(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,p)=>(p.value<=3?u.firstHalf.push(p):u.secondHalf.push(p),u),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(u){u?o.playingAs.forEach(p=>{p.isSelected=!0}):o.playingAs.forEach((p,y)=>{p.isSelected=y===0})}function n(u){o.playingAs.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(p=>{p.isSelected=!0}):o.gameSections.forEach((p,y)=>{p.isSelected=y===0})}return(u,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",kGe,[EGe,e.createElementVNode("div",VGe,[e.createVNode(e.unref(ze),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",xGe,[e.createElementVNode("div",NGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,TGe))),128))])]),e.createElementVNode("div",BGe,[FGe,e.createElementVNode("div",PGe,[e.createVNode(e.unref(ze),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",$Ge,[AGe,e.createElementVNode("div",IGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,zGe))),128))])]),e.createElementVNode("div",MGe,[OGe,e.createElementVNode("div",RGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,LGe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),vGe={class:"filter-field"},jGe=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",vGe,[e.createVNode(e.unref(Bh),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),UGe={class:"subcategory-group"},WGe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",UGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(Be),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},HGe=Pe(WGe,[["__scopeId","data-v-ae6f3d72"]]),GGe={class:"filter-subcategories"},qGe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",GGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(HGe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),zn=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),JGe={class:"details__header"},ZGe=zn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),YGe={class:"details__header__checkbox"},KGe={class:"details__body"},XGe={class:"details__body__playing-as"},QGe=["onClick"],eqe={class:"details__header"},tqe=zn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),aqe={class:"details__header__checkbox"},oqe={class:"details__body"},iqe=zn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),sqe={class:"details__body__game-section"},rqe=["onClick"],lqe={class:"details__body"},nqe=zn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),dqe={class:"details__body__game-section"},cqe=["onClick"],pqe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const o=t;e.useCssVars(u=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>o.playingAs.every(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,p)=>(p.value<=3?u.firstHalf.push(p):u.secondHalf.push(p),u),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(u){u?o.playingAs.forEach(p=>{p.isSelected=!0}):o.playingAs.forEach((p,y)=>{p.isSelected=y===0})}function n(u){o.playingAs.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(p=>{p.isSelected=!0}):o.gameSections.forEach((p,y)=>{p.isSelected=y===0})}return(u,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",JGe,[ZGe,e.createElementVNode("div",YGe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",KGe,[e.createElementVNode("div",XGe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,QGe))),128))])]),e.createElementVNode("div",eqe,[tqe,e.createElementVNode("div",aqe,[e.createVNode(e.unref(Be),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",oqe,[iqe,e.createElementVNode("div",sqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,rqe))),128))])]),e.createElementVNode("div",lqe,[nqe,e.createElementVNode("div",dqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,cqe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),mqe={class:"filter-field"},uqe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",mqe,[e.createVNode(e.unref(z0),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),fqe={class:"subcategory-group"},hqe={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",fqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,i=>(e.openBlock(),e.createBlock(e.unref(Fe),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":s=>i.isSelected=s,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},yqe=Ae(hqe,[["__scopeId","data-v-ae6f3d72"]]),gqe={class:"filter-subcategories"},bqe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(o,a)=>(e.openBlock(),e.createElementBlock("div",gqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[e.createVNode(yqe,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Mn=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),Sqe={class:"details__header"},_qe=Mn(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Cqe={class:"details__header__checkbox"},wqe={class:"details__body"},kqe={class:"details__body__playing-as"},Eqe=["onClick"],Vqe={class:"details__header"},xqe=Mn(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Nqe={class:"details__header__checkbox"},Tqe={class:"details__body"},Bqe=Mn(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Fqe={class:"details__body__game-section"},Pqe=["onClick"],$qe={class:"details__body"},Aqe=Mn(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Iqe={class:"details__body__game-section"},zqe=["onClick"],Mqe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(t){const o=t;e.useCssVars(u=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>o.playingAs.every(u=>u.isSelected)),i=e.computed(()=>o.gameSections.every(u=>u.isSelected)),s=e.computed(()=>o.gameSections.reduce((u,p)=>(p.value<=3?u.firstHalf.push(p):u.secondHalf.push(p),u),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function l(u){u?o.playingAs.forEach(p=>{p.isSelected=!0}):o.playingAs.forEach((p,y)=>{p.isSelected=y===0})}function n(u){o.playingAs.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function c(u){o.gameSections.filter(p=>p.isSelected).length===1&&u.isSelected||(u.isSelected=!u.isSelected)}function d(u){u?o.gameSections.forEach(p=>{p.isSelected=!0}):o.gameSections.forEach((p,y)=>{p.isSelected=y===0})}return(u,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",Sqe,[_qe,e.createElementVNode("div",Cqe,[e.createVNode(e.unref(Fe),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",wqe,[e.createElementVNode("div",kqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.playingAs,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>n(y)},e.toDisplayString(y.name),11,Eqe))),128))])]),e.createElementVNode("div",Vqe,[xqe,e.createElementVNode("div",Nqe,[e.createVNode(e.unref(Fe),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",Tqe,[Bqe,e.createElementVNode("div",Fqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,Pqe))),128))])]),e.createElementVNode("div",$qe,[Aqe,e.createElementVNode("div",Iqe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${m}`,class:e.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:h=>c(y)},e.toDisplayString(y.text),11,zqe))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Oqe={class:"filter-field"},Rqe=Object.freeze(Object.defineProperty({__proto__:null,default:Ae({__name:"FilterField",setup(t){const o=e.ref(Array.from({length:16},(i,s)=>s+1));function a(){}return(i,s)=>(e.openBlock(),e.createElementBlock("div",Oqe,[e.createVNode(e.unref(S3),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Ga.GSCPlayersTracking=gGe,Object.defineProperty(Ga,Symbol.toStringTag,{value:"Module"})});
|