@golstats/gsc-top-player 1.0.4 → 1.0.5
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-55d68355-CV93P9Sw.js → FilterConditions-55d68355-D7c85b60.js} +1 -1
- package/dist/{FilterField-59a73e38-B4Ful9qZ.js → FilterField-59a73e38-DmiT50dq.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-DWTz1TY8.js → FilterSubcategories-a9b32cc9-kojMDEWU.js} +1 -1
- package/dist/gsc-top-player.es.js +1 -1
- package/dist/gsc-top-player.umd.js +1 -1
- package/dist/{index-E8WjPQaw.js → index-COswdySK.js} +60 -61
- package/package.json +1 -1
- package/src/components/comparative/gsc-tops-full.vue +0 -1
package/dist/{FilterConditions-55d68355-CV93P9Sw.js → FilterConditions-55d68355-D7c85b60.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as E, computed as c, createElementBlock as d, openBlock as i, normalizeStyle as $, createElementVNode as o, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as H, popScopeId as R } from "vue";
|
|
2
|
-
import { J as T, Z as m } from "./index-
|
|
2
|
+
import { J as T, Z as m } from "./index-COswdySK.js";
|
|
3
3
|
const n = (s) => (H("data-v-80d9c265"), s = s(), R(), s), V = { class: "details__header" }, W = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__header__title" }, "Jugando como", -1)), I = { class: "details__header__checkbox" }, J = { class: "details__body" }, z = { class: "details__body__playing-as" }, F = ["onClick"], L = { class: "details__header" }, N = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), U = { class: "details__header__checkbox" }, D = { class: "details__body" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__body__title" }, "1er tiempo", -1)), q = { class: "details__body__game-section" }, w = ["onClick"], G = { class: "details__body" }, K = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__body__title" }, "2do tiempo", -1)), M = { class: "details__body__game-section" }, O = ["onClick"], P = {
|
|
4
4
|
__name: "FilterConditions",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as r, createElementBlock as a, openBlock as n, createVNode as c, unref as u } from "vue";
|
|
2
|
-
import { J as d, q as i } from "./index-
|
|
2
|
+
import { J as d, q as i } from "./index-COswdySK.js";
|
|
3
3
|
const f = { class: "filter-field" }, m = {
|
|
4
4
|
__name: "FilterField",
|
|
5
5
|
setup(p) {
|
package/dist/{FilterSubcategories-a9b32cc9-DWTz1TY8.js → FilterSubcategories-a9b32cc9-kojMDEWU.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as o, openBlock as r, Fragment as a, renderList as u, createVNode as d, createBlock as n, unref as i } from "vue";
|
|
2
|
-
import { J as l, Z as g } from "./index-
|
|
2
|
+
import { J as l, Z as g } from "./index-COswdySK.js";
|
|
3
3
|
const y = { class: "subcategory-group" }, b = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...s){const i=new this(a);return s.forEach(o=>i.set(o)),i}static accessor(a){const s=(this[na]=this[na]={accessors:{}}).accessors,i=this.prototype;function o(n){const r=ue(n);s[r]||($l(i,n),s[r]=!0)}return h.isArray(a)?a.forEach(o):o(a),this}}Re.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.reduceDescriptors(Re.prototype,({value:e},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(i){this[s]=i}}}),h.freezeMethods(Re);const D=Re;function xt(e,a){const s=this||kt,i=a||s,o=D.from(i.headers);let n=i.data;return h.forEach(e,function(r){n=r.call(s,n,o.normalize(),a?a.status:void 0)}),o.normalize(),n}function oa(e){return!!(e&&e.__CANCEL__)}function ae(e,a,s){C.call(this,e??"canceled",C.ERR_CANCELED,a,s),this.name="CanceledError"}h.inherits(ae,C,{__CANCEL__:!0});function ra(e,a,s){const i=s.config.validateStatus;!s.status||!i||i(s.status)?e(s):a(new C("Request failed with status code "+s.status,[C.ERR_BAD_REQUEST,C.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function vl(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Ul(e,a){e=e||10;const s=new Array(e),i=new Array(e);let o=0,n=0,r;return a=a!==void 0?a:1e3,function(c){const p=Date.now(),d=i[n];r||(r=p),s[o]=c,i[o]=p;let l=n,m=0;for(;l!==o;)m+=s[l++],l=l%e;if(o=(o+1)%e,o===n&&(n=(n+1)%e),p-r<a)return;const f=d&&p-d;return f?Math.round(m*1e3/f):void 0}}function jl(e,a){let s=0,i=1e3/a,o,n;const r=(c,p=Date.now())=>{s=p,o=null,n&&(clearTimeout(n),n=null),e.apply(null,c)};return[(...c)=>{const p=Date.now(),d=p-s;d>=i?r(c,p):(o=c,n||(n=setTimeout(()=>{n=null,r(o)},i-d)))},()=>o&&r(o)]}const Oe=(e,a,s=3)=>{let i=0;const o=Ul(50,250);return jl(n=>{const r=n.loaded,c=n.lengthComputable?n.total:void 0,p=r-i,d=o(p),l=r<=c;i=r;const m={loaded:r,total:c,progress:c?r/c:void 0,bytes:p,rate:d||void 0,estimated:d&&c&&l?(c-r)/d:void 0,event:n,lengthComputable:c!=null,[a?"download":"upload"]:!0};e(m)},s)},la=(e,a)=>{const s=e!=null;return[i=>a[0]({lengthComputable:s,total:e,loaded:i}),a[1]]},ca=e=>(...a)=>h.asap(()=>e(...a)),Jl=B.hasStandardBrowserEnv?((e,a)=>s=>(s=new URL(s,B.origin),e.protocol===s.protocol&&e.host===s.host&&(a||e.port===s.port)))(new URL(B.origin),B.navigator&&/(msie|trident)/i.test(B.navigator.userAgent)):()=>!0,Hl=B.hasStandardBrowserEnv?{write(e,a,s,i,o,n){const r=[e+"="+encodeURIComponent(a)];h.isNumber(s)&&r.push("expires="+new Date(s).toGMTString()),h.isString(i)&&r.push("path="+i),h.isString(o)&&r.push("domain="+o),n===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ql(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Kl(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function da(e,a,s){let i=!ql(a);return e&&(i||s==!1)?Kl(e,a):a}const ma=e=>e instanceof D?{...e}:e;function X(e,a){a=a||{};const s={};function i(d,l,m,f){return h.isPlainObject(d)&&h.isPlainObject(l)?h.merge.call({caseless:f},d,l):h.isPlainObject(l)?h.merge({},l):h.isArray(l)?l.slice():l}function o(d,l,m,f){if(h.isUndefined(l)){if(!h.isUndefined(d))return i(void 0,d,m,f)}else return i(d,l,m,f)}function n(d,l){if(!h.isUndefined(l))return i(void 0,l)}function r(d,l){if(h.isUndefined(l)){if(!h.isUndefined(d))return i(void 0,d)}else return i(void 0,l)}function c(d,l,m){if(m in a)return i(d,l);if(m in e)return i(void 0,d)}const p={url:n,method:n,data:n,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:c,headers:(d,l,m)=>o(ma(d),ma(l),m,!0)};return h.forEach(Object.keys(Object.assign({},e,a)),function(d){const l=p[d]||o,m=l(e[d],a[d],d);h.isUndefined(m)&&l!==c||(s[d]=m)}),s}const pa=e=>{const a=X({},e);let{data:s,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:n,headers:r,auth:c}=a;a.headers=r=D.from(r),a.url=ta(da(a.baseURL,a.url,a.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&r.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let p;if(h.isFormData(s)){if(B.hasStandardBrowserEnv||B.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((p=r.getContentType())!==!1){const[d,...l]=p?p.split(";").map(m=>m.trim()).filter(Boolean):[];r.setContentType([d||"multipart/form-data",...l].join("; "))}}if(B.hasStandardBrowserEnv&&(i&&h.isFunction(i)&&(i=i(a)),i||i!==!1&&Jl(a.url))){const d=o&&n&&Hl.read(n);d&&r.set(o,d)}return a},Zl=typeof XMLHttpRequest<"u",Yl=Zl&&function(e){return new Promise(function(a,s){const i=pa(e);let o=i.data;const n=D.from(i.headers).normalize();let{responseType:r,onUploadProgress:c,onDownloadProgress:p}=i,d,l,m,f,g;function y(){f&&f(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function b(){if(!_)return;const T=D.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),E={data:!r||r==="text"||r==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:T,config:e,request:_};ra(function(V){a(V),y()},function(V){s(V),y()},E),_=null}"onloadend"in _?_.onloadend=b:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(b)},_.onabort=function(){_&&(s(new C("Request aborted",C.ECONNABORTED,e,_)),_=null)},_.onerror=function(){s(new C("Network Error",C.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let T=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||aa;i.timeoutErrorMessage&&(T=i.timeoutErrorMessage),s(new C(T,E.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,e,_)),_=null},o===void 0&&n.setContentType(null),"setRequestHeader"in _&&h.forEach(n.toJSON(),function(T,E){_.setRequestHeader(E,T)}),h.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),r&&r!=="json"&&(_.responseType=i.responseType),p&&([m,g]=Oe(p,!0),_.addEventListener("progress",m)),c&&_.upload&&([l,f]=Oe(c),_.upload.addEventListener("progress",l),_.upload.addEventListener("loadend",f)),(i.cancelToken||i.signal)&&(d=T=>{_&&(s(!T||T.type?new ae(null,e,_):T),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const S=vl(i.url);if(S&&B.protocols.indexOf(S)===-1){s(new C("Unsupported protocol "+S+":",C.ERR_BAD_REQUEST,e));return}_.send(o||null)})},Xl=(e,a)=>{const{length:s}=e=e?e.filter(Boolean):[];if(a||s){let i=new AbortController,o;const n=function(d){if(!o){o=!0,c();const l=d instanceof Error?d:this.reason;i.abort(l instanceof C?l:new ae(l instanceof Error?l.message:l))}};let r=a&&setTimeout(()=>{r=null,n(new C(`timeout ${a} of ms exceeded`,C.ETIMEDOUT))},a);const c=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(n):d.removeEventListener("abort",n)}),e=null)};e.forEach(d=>d.addEventListener("abort",n));const{signal:p}=i;return p.unsubscribe=()=>h.asap(c),p}},Ql=Xl,ec=function*(e,a){let s=e.byteLength;if(s<a){yield e;return}let i=0,o;for(;i<s;)o=i+a,yield e.slice(i,o),i=o},tc=async function*(e,a){for await(const s of sc(e))yield*ec(s,a)},sc=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const a=e.getReader();try{for(;;){const{done:s,value:i}=await a.read();if(s)break;yield i}}finally{await a.cancel()}},fa=(e,a,s,i)=>{const o=tc(e,a);let n=0,r,c=p=>{r||(r=!0,i&&i(p))};return new ReadableStream({async pull(p){try{const{done:d,value:l}=await o.next();if(d){c(),p.close();return}let m=l.byteLength;if(s){let f=n+=m;s(f)}p.enqueue(new Uint8Array(l))}catch(d){throw c(d),d}},cancel(p){return c(p),o.return()}},{highWaterMark:2})},Le=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ua=Le&&typeof ReadableStream=="function",ac=Le&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ha=(e,...a)=>{try{return!!e(...a)}catch{return!1}},ic=ua&&ha(()=>{let e=!1;const a=new Request(B.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a}),ya=64*1024,Vt=ua&&ha(()=>h.isReadableStream(new Response("").body)),Ge={stream:Vt&&(e=>e.body)};Le&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Ge[a]&&(Ge[a]=h.isFunction(e[a])?s=>s[a]():(s,i)=>{throw new C(`Response type '${a}' is not supported`,C.ERR_NOT_SUPPORT,i)})})})(new Response);const nc=async e=>{if(e==null)return 0;if(h.isBlob(e))return e.size;if(h.isSpecCompliantForm(e))return(await new Request(B.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(h.isArrayBufferView(e)||h.isArrayBuffer(e))return e.byteLength;if(h.isURLSearchParams(e)&&(e=e+""),h.isString(e))return(await ac(e)).byteLength},oc=async(e,a)=>h.toFiniteNumber(e.getContentLength())??nc(a),rc=Le&&(async e=>{let{url:a,method:s,data:i,signal:o,cancelToken:n,timeout:r,onDownloadProgress:c,onUploadProgress:p,responseType:d,headers:l,withCredentials:m="same-origin",fetchOptions:f}=pa(e);d=d?(d+"").toLowerCase():"text";let g=Ql([o,n&&n.toAbortSignal()],r),y;const _=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let b;try{if(p&&ic&&s!=="get"&&s!=="head"&&(b=await oc(l,i))!==0){let N=new Request(a,{method:"POST",body:i,duplex:"half"}),P;if(h.isFormData(i)&&(P=N.headers.get("content-type"))&&l.setContentType(P),N.body){const[L,U]=la(b,Oe(ca(p)));i=fa(N.body,ya,L,U)}}h.isString(m)||(m=m?"include":"omit");const S="credentials"in Request.prototype;y=new Request(a,{...f,signal:g,method:s.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:S?m:void 0});let T=await fetch(y);const E=Vt&&(d==="stream"||d==="response");if(Vt&&(c||E&&_)){const N={};["status","statusText","headers"].forEach(he=>{N[he]=T[he]});const P=h.toFiniteNumber(T.headers.get("content-length")),[L,U]=c&&la(P,Oe(ca(c),!0))||[];T=new Response(fa(T.body,ya,L,()=>{U&&U(),_&&_()}),N)}d=d||"text";let V=await Ge[h.findKey(Ge,d)||"text"](T,e);return!E&&_&&_(),await new Promise((N,P)=>{ra(N,P,{data:V,headers:D.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:y})})}catch(S){throw _&&_(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,e,y),{cause:S.cause||S}):C.from(S,S&&S.code,e,y)}}),Pt={http:Tl,xhr:Yl,fetch:rc};h.forEach(Pt,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const ga=e=>`- ${e}`,lc=e=>h.isFunction(e)||e===null||e===!1,_a={getAdapter:e=>{e=h.isArray(e)?e:[e];const{length:a}=e;let s,i;const o={};for(let n=0;n<a;n++){s=e[n];let r;if(i=s,!lc(s)&&(i=Pt[(r=String(s)).toLowerCase()],i===void 0))throw new C(`Unknown adapter '${r}'`);if(i)break;o[r||"#"+n]=i}if(!i){const n=Object.entries(o).map(([c,p])=>`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let r=a?n.length>1?`since :
|
|
9
9
|
`+n.map(ga).join(`
|
|
10
10
|
`):" "+ga(n[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:Pt};function Ft(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ae(null,e)}function ba(e){return Ft(e),e.headers=D.from(e.headers),e.data=xt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_a.getAdapter(e.adapter||kt.adapter)(e).then(function(a){return Ft(e),a.data=xt.call(e,e.transformResponse,a),a.headers=D.from(a.headers),a},function(a){return oa(a)||(Ft(e),a&&a.response&&(a.response.data=xt.call(e,e.transformResponse,a.response),a.response.headers=D.from(a.response.headers))),Promise.reject(a)})}const Ta="1.9.0",We={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{We[e]=function(s){return typeof s===e||"a"+(a<1?"n ":" ")+e}});const Sa={};We.transitional=function(e,a,s){function i(o,n){return"[Axios v"+Ta+"] Transitional option '"+o+"'"+n+(s?". "+s:"")}return(o,n,r)=>{if(e===!1)throw new C(i(n," has been removed"+(a?" in "+a:"")),C.ERR_DEPRECATED);return a&&!Sa[n]&&(Sa[n]=!0,console.warn(i(n," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(o,n,r):!0}},We.spelling=function(e){return(a,s)=>(console.warn(`${s} is likely a misspelling of ${e}`),!0)};function cc(e,a,s){if(typeof e!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;for(;o-- >0;){const n=i[o],r=a[n];if(r){const c=e[n],p=c===void 0||r(c,n,e);if(p!==!0)throw new C("option "+n+" must be "+p,C.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new C("Unknown option "+n,C.ERR_BAD_OPTION)}}const De={assertOptions:cc,validators:We},$=De.validators;class Me{constructor(a){this.defaults=a||{},this.interceptors={request:new sa,response:new sa}}async request(a,s){try{return await this._request(a,s)}catch(i){if(i instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const n=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?n&&!String(i.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
11
|
-
`+n):i.stack=n}catch{}}throw i}}_request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=X(this.defaults,s);const{transitional:i,paramsSerializer:o,headers:n}=s;i!==void 0&&De.assertOptions(i,{silentJSONParsing:$.transitional($.boolean),forcedJSONParsing:$.transitional($.boolean),clarifyTimeoutError:$.transitional($.boolean)},!1),o!=null&&(h.isFunction(o)?s.paramsSerializer={serialize:o}:De.assertOptions(o,{encode:$.function,serialize:$.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),De.assertOptions(s,{baseUrl:$.spelling("baseURL"),withXsrfToken:$.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let r=n&&h.merge(n.common,n[s.method]);n&&h.forEach(["delete","get","head","post","put","patch","common"],y=>{delete n[y]}),s.headers=D.concat(r,n);const c=[];let p=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(s)===!1||(p=p&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let l,m=0,f;if(!p){const y=[ba.bind(this),void 0];for(y.unshift.apply(y,c),y.push.apply(y,d),f=y.length,l=Promise.resolve(s);m<f;)l=l.then(y[m++],y[m++]);return l}f=c.length;let g=s;for(m=0;m<f;){const y=c[m++],_=c[m++];try{g=y(g)}catch(b){_.call(this,b);break}}try{l=ba.call(this,g)}catch(y){return Promise.reject(y)}for(m=0,f=d.length;m<f;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=X(this.defaults,a);const s=da(a.baseURL,a.url,a.allowAbsoluteUrls);return ta(s,a.params,a.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(e){Me.prototype[e]=function(a,s){return this.request(X(s||{},{method:e,url:a,data:(s||{}).data}))}}),h.forEach(["post","put","patch"],function(e){function a(s){return function(i,o,n){return this.request(X(n||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Me.prototype[e]=a(),Me.prototype[e+"Form"]=a(!0)});const $e=Me;class Bt{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});const i=this;this.promise.then(o=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](o);i._listeners=null}),this.promise.then=o=>{let n;const r=new Promise(c=>{i.subscribe(c),n=c}).then(o);return r.cancel=function(){i.unsubscribe(n)},r},a(function(o,n,r){i.reason||(i.reason=new ae(o,n,r),s(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const a=new AbortController,s=i=>{a.abort(i)};return this.subscribe(s),a.signal.unsubscribe=()=>this.unsubscribe(s),a.signal}static source(){let a;return{token:new Bt(function(s){a=s}),cancel:a}}}const dc=Bt;function mc(e){return function(a){return e.apply(null,a)}}function pc(e){return h.isObject(e)&&e.isAxiosError===!0}const At={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(At).forEach(([e,a])=>{At[a]=e});const fc=At;function wa(e){const a=new $e(e),s=Ds($e.prototype.request,a);return h.extend(s,$e.prototype,a,{allOwnKeys:!0}),h.extend(s,a,null,{allOwnKeys:!0}),s.create=function(i){return wa(X(e,i))},s}const x=wa(kt);x.Axios=$e,x.CanceledError=ae,x.CancelToken=dc,x.isCancel=oa,x.VERSION=Ta,x.toFormData=ze,x.AxiosError=C,x.Cancel=x.CanceledError,x.all=function(e){return Promise.all(e)},x.spread=mc,x.isAxiosError=pc,x.mergeConfig=X,x.AxiosHeaders=D,x.formToJSON=e=>ia(h.isHTMLForm(e)?new FormData(e):e),x.getAdapter=_a.getAdapter,x.HttpStatusCode=fc,x.default=x,Array.from({length:30},(e,a)=>1981+a).sort((e,a)=>a-e);const uc={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const s=e,i=t.ref(null);t.watch(()=>s.modelValue,()=>{o()},{immediate:!0});function o(){i.value&&(i.value.checked=s.modelValue)}function n(r){a("update:modelValue",r.target.checked)}return t.onMounted(()=>{o()}),(r,c)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:i,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:n},null,544))}},zt=I(uc,[["__scopeId","data-v-e3a6ae4e"]]),hc={__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(e,{emit:a}){const s=e,i=t.computed(()=>({"--height":s.height,"--width":s.width,"--padding":s.padding,"--border-radius":s.borderRadius,"--border":`solid ${s.borderWidth} ${s.borderColor}`,"--background-color":s.backgroundColor,"--font-color":s.fontColor,"--font-size":s.fontSize,"--font-family":s.fontFamily,"--active-background-color":s.activeBackgroundColor||s.backgroundColor,"--active-border-color":s.activeBorderColor||s.borderColor,"--active-font-color":s.activeFontColor||s.fontColor}));function o(){a("click")}return(n,r)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(i.value),onClick:o},t.toDisplayString(e.text),7))}},ve=I(hc,[["__scopeId","data-v-9688933e"]]),yc={class:"dropdown"},gc={class:"selected-item"},_c={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(e,{emit:a}){function s(i){a("input",i)}return(i,o)=>(t.openBlock(),t.createElementBlock("div",yc,[t.createVNode(t.unref(ut),t.mergeProps(t.unref(ht),{"is-list-same-width":e.isListSameWidth,items:e.items,onInput:s}),{default:t.withCtx(({selectedItem:n})=>[t.createElementVNode("div",gc,t.toDisplayString(e.itemTextKey?n[e.itemTextKey]:n),1)]),availableItem:t.withCtx(({item:n})=>[t.createElementVNode("div",null,t.toDisplayString(e.itemTextKey?n[e.itemTextKey]:n),1)]),_:1},16,["is-list-same-width","items"])]))}},O=I(_c,[["__scopeId","data-v-064d5f86"]]),bc={class:"dropdown"},Tc={class:"game-item"},Sc={key:0,class:"item-game"},wc={class:"match-day"},Cc={class:"team-logo"},Ec=["src"],kc={class:"text"},Nc={class:"text score"},xc={class:"text"},Vc={class:"team-logo"},Pc=["src"],Fc={class:"item-game"},Bc={class:"team-logo"},Ac=["src"],zc={class:"text"},Ic={class:"text score"},Rc={class:"text"},Oc={class:"team-logo"},Lc=["src"],Gc={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:a}){function s(i){a("input",i)}return(i,o)=>(t.openBlock(),t.createElementBlock("div",bc,[t.createVNode(t.unref(ut),t.mergeProps(t.unref(ht),{items:e.items,onInput:s}),{default:t.withCtx(({selectedItem:n})=>[t.createElementVNode("div",Tc,[n.homeTeam?(t.openBlock(),t.createElementBlock("div",Sc,[t.createElementVNode("div",wc,t.toDisplayString(n.roundAbbreviation),1),t.createElementVNode("div",Cc,[t.createElementVNode("img",{src:n.homeTeam.logo,alt:""},null,8,Ec)]),t.createElementVNode("div",kc,t.toDisplayString(n.homeTeam.acronym),1),t.createElementVNode("div",Nc,t.toDisplayString(n.score[0])+" - "+t.toDisplayString(n.score[1]),1),t.createElementVNode("div",xc,t.toDisplayString(n.awayTeam.acronym),1),t.createElementVNode("div",Vc,[t.createElementVNode("img",{src:n.awayTeam.logo,alt:""},null,8,Pc)])])):t.createCommentVNode("",!0)])]),availableItem:t.withCtx(({item:n})=>[t.createElementVNode("div",Fc,[t.createElementVNode("div",null,t.toDisplayString(n.roundAbbreviation),1),t.createElementVNode("div",Bc,[t.createElementVNode("img",{src:n.homeTeam.logo,alt:""},null,8,Ac)]),t.createElementVNode("div",zc,t.toDisplayString(n.homeTeam.acronym),1),t.createElementVNode("div",Ic,t.toDisplayString(n.score[0])+" - "+t.toDisplayString(n.score[1]),1),t.createElementVNode("div",Rc,t.toDisplayString(n.awayTeam.acronym),1),t.createElementVNode("div",Oc,[t.createElementVNode("img",{src:n.awayTeam.logo,alt:""},null,8,Lc)])])]),_:1},16,["items"])]))}},Ue=I(Gc,[["__scopeId","data-v-7883a91e"]]),je=e=>(t.pushScopeId("data-v-b63e9c84"),e=e(),t.popScopeId(),e),Wc={class:"container"},Dc={class:"container__row"},Mc={class:"container__row__wrapper"},$c=je(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),vc={class:"container__row__wrapper__input"},Uc={class:"container__row two-items"},jc={class:"container__row__wrapper"},Jc=je(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Hc={key:0,class:"container__row__wrapper__input"},qc={class:"container__row__wrapper"},Kc=je(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),Zc={key:0,class:"container__row__wrapper__input"},Yc={class:"container__row"},Xc={class:"container__row__wrapper"},Qc=je(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),ed={key:0,class:"container__row__wrapper__input"},td={class:"container__action"},sd={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(e,{emit:a}){const s={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},i=t.ref(null),o=t.ref(null),n=t.ref(null),r=t.ref(null);function c(m){i.value=m,a("update:tournament",m)}function p(m){o.value=m,a("update:season",m)}function d(m){n.value=m}function l(m){r.value=m}return(m,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Wc,[t.createElementVNode("div",Dc,[t.createElementVNode("div",Mc,[$c,t.createElementVNode("div",vc,[t.createVNode(O,{items:e.tournaments,itemTextKey:"name",onInput:c},null,8,["items"])])])]),t.createElementVNode("div",Uc,[t.createElementVNode("div",jc,[Jc,i.value&&i.value.seasons?(t.openBlock(),t.createElementBlock("div",Hc,[t.createVNode(O,{items:i.value.seasons,itemTextKey:"name",onInput:p},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",qc,[Kc,o.value&&o.value.arrayMatchDays?(t.openBlock(),t.createElementBlock("div",Zc,[t.createVNode(O,{items:o.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Yc,[t.createElementVNode("div",Xc,[Qc,n.value&&n.value.arrayGames?(t.openBlock(),t.createElementBlock("div",ed,[t.createVNode(Ue,{items:n.value.arrayGames,onInput:l},null,8,["items"])])):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",td,[t.createVNode(ve,t.normalizeProps(t.guardReactiveProps(s)),null,16)])],64))}},ad=I(sd,[["__scopeId","data-v-b63e9c84"]]),id={class:"dropdown"},nd={class:"item-team"},od={class:"team-logo"},rd=["src"],ld={class:"team-acronym"},cd={class:"item-team"},dd={class:"team-logo"},md=["src"],pd={class:"team-acronym"},fd={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:a}){function s(i){a("input",i)}return(i,o)=>(t.openBlock(),t.createElementBlock("div",id,[t.createVNode(t.unref(ut),t.mergeProps(t.unref(ht),{items:e.items,onInput:s}),{default:t.withCtx(({selectedItem:n})=>[t.createElementVNode("div",nd,[t.createElementVNode("div",od,[t.createElementVNode("img",{src:n.logo,alt:""},null,8,rd)]),t.createElementVNode("div",ld,t.toDisplayString(n.acronym),1)])]),availableItem:t.withCtx(({item:n})=>[t.createElementVNode("div",cd,[t.createElementVNode("div",dd,[t.createElementVNode("img",{src:n.logo,alt:""},null,8,md)]),t.createElementVNode("div",pd,t.toDisplayString(n.acronym),1)])]),_:1},16,["items"])]))}},Ca=I(fd,[["__scopeId","data-v-afd2bee8"]]),ud={class:"advanced-filters"},hd={class:"advanced-filters__buttons"},yd=["onClick"],gd={class:"advanced-filters__filters"},_d={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(e){const a=e,s=t.defineAsyncComponent(()=>Promise.resolve().then(()=>dp)),i=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Vp)),o=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Fp)),n=[{name:"Sub categorías",component:s},{name:"Cancha",component:o},{name:"Condiciones",component:i}],r=t.ref(n[0]),c=t.computed(()=>a.selectedCategory?a.selectedCategory.subcategoryGroups||[]:[]);function p(d){r.value=d}return(d,l)=>(t.openBlock(),t.createElementBlock("div",ud,[t.createElementVNode("div",hd,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,m=>t.createElementVNode("div",{key:m.name,role:"button",class:t.normalizeClass(["advanced-filters__buttons__button",{active:r.value.name===m.name}]),onClick:f=>p(m)},t.toDisplayString(m.name),11,yd)),64))]),t.createElementVNode("div",gd,[(t.openBlock(),t.createBlock(t.KeepAlive,null,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value.component),{"subcategory-groups":c.value},null,8,["subcategory-groups"]))],1024))])]))}},It=I(_d,[["__scopeId","data-v-c62c5b9c"]]),Q=e=>(t.pushScopeId("data-v-575b26b5"),e=e(),t.popScopeId(),e),bd={class:"container"},Td={class:"container__row"},Sd={class:"container__row__wrapper"},wd=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Cd={class:"container__row__wrapper__input"},Ed={class:"container__row two-items"},kd={class:"container__row__wrapper"},Nd=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),xd={key:0,class:"container__row__wrapper__input"},Vd={class:"container__row__wrapper"},Pd=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),Fd={key:0,class:"container__row__wrapper__input"},Bd={class:"container__row"},Ad={class:"container__row__wrapper"},zd=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),Id={key:0,class:"container__row__wrapper__input"},Rd={class:"container__row"},Od={class:"container__row__wrapper"},Ld=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),Gd={key:0,class:"container__row__wrapper__input"},Wd={class:"container__row type-and-advanced"},Dd={class:"container__row__wrapper"},Md=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),$d={class:"container__row__wrapper__input"},vd={class:"container__row__wrapper center"},Ud=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),jd={class:"container__row__wrapper__input"},Jd={class:"container__row"},Hd={class:"container__action"},qd={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(e,{emit:a}){const s=e,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=t.ref(null),n=t.ref(null);t.ref(null);const r=t.ref(null),c=t.ref(null),p=t.ref(null),d=t.ref(null),l=t.ref(!0),m=t.computed(()=>p.value?p.value.position_id===1?s.advancedFilterCategories.goalkeeper:s.advancedFilterCategories.player:[]);function f(T){o.value=T,a("update:tournament",T)}function g(T){n.value=T,a("update:season",T)}function y(T){c.value=T,a("update:team",T)}function _(T){p.value=T}function b(T){r.value=T}function S(T){d.value=T}return(T,E)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",bd,[t.createElementVNode("div",Td,[t.createElementVNode("div",Sd,[wd,t.createElementVNode("div",Cd,[t.createVNode(O,{items:e.tournaments,itemTextKey:"name",onInput:f},null,8,["items"])])])]),t.createElementVNode("div",Ed,[t.createElementVNode("div",kd,[Nd,o.value&&o.value.seasons?(t.openBlock(),t.createElementBlock("div",xd,[t.createVNode(O,{items:o.value.seasons,itemTextKey:"name",onInput:g},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Vd,[Pd,n.value&&n.value.arrayTeams?(t.openBlock(),t.createElementBlock("div",Fd,[t.createVNode(Ca,{items:n.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:y},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Bd,[t.createElementVNode("div",Ad,[zd,c.value&&c.value.arrayPlayers?(t.openBlock(),t.createElementBlock("div",Id,[t.createVNode(O,{items:c.value.arrayPlayers,itemTextKey:"player_name",onInput:_},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Rd,[t.createElementVNode("div",Od,[Ld,n.value&&n.value.mapGamesByTeam&&c.value?(t.openBlock(),t.createElementBlock("div",Gd,[t.createVNode(Ue,{items:n.value.mapGamesByTeam.get(c.value.team_id),onInput:b},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Wd,[t.createElementVNode("div",Dd,[Md,t.createElementVNode("div",$d,[t.createVNode(O,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:S},null,8,["items"])])]),t.createElementVNode("div",vd,[Ud,t.createElementVNode("div",jd,[t.createVNode(zt,{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=V=>l.value=V)},null,8,["modelValue"])])])]),t.createElementVNode("div",Jd,[t.createVNode(It,{"selected-category":d.value},null,8,["selected-category"])])]),t.createElementVNode("div",Hd,[t.createVNode(ve,t.normalizeProps(t.guardReactiveProps(i)),null,16)])],64))}},Kd=I(qd,[["__scopeId","data-v-575b26b5"]]),ie=e=>(t.pushScopeId("data-v-6d73d5e6"),e=e(),t.popScopeId(),e),Zd={class:"container"},Yd={class:"container__row"},Xd={class:"container__row__wrapper"},Qd=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),em={class:"container__row__wrapper__input"},tm={class:"container__row two-items"},sm={class:"container__row__wrapper"},am=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),im={key:0,class:"container__row__wrapper__input"},nm={class:"container__row__wrapper"},om=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),rm={key:0,class:"container__row__wrapper__input"},lm={class:"container__row"},cm={class:"container__row__wrapper"},dm=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),mm={key:0,class:"container__row__wrapper__input"},pm={class:"container__row type-and-advanced"},fm={class:"container__row__wrapper"},um=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),hm={class:"container__row__wrapper__input"},ym={class:"container__row__wrapper center"},gm=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),_m={class:"container__row__wrapper__input"},bm={class:"container__row"},Tm={class:"container__action"},Sm={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(e,{emit:a}){const s=e,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=t.ref(null),n=t.ref(null);t.ref(null);const r=t.ref(null),c=t.ref(null),p=t.ref(null),d=t.ref(!0),l=t.computed(()=>s.advancedFilterCategories.team);function m(b){o.value=b,a("update:tournament",b)}function f(b){n.value=b,a("update:season",b)}function g(b){c.value=b,a("update:team",b)}function y(b){r.value=b}function _(b){p.value=b}return(b,S)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Zd,[t.createElementVNode("div",Yd,[t.createElementVNode("div",Xd,[Qd,t.createElementVNode("div",em,[t.createVNode(O,{items:e.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),t.createElementVNode("div",tm,[t.createElementVNode("div",sm,[am,o.value&&o.value.seasons?(t.openBlock(),t.createElementBlock("div",im,[t.createVNode(O,{items:o.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",nm,[om,n.value&&n.value.arrayTeams?(t.openBlock(),t.createElementBlock("div",rm,[t.createVNode(Ca,{items:n.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:g},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",lm,[t.createElementVNode("div",cm,[dm,n.value&&n.value.mapGamesByTeam&&c.value?(t.openBlock(),t.createElementBlock("div",mm,[t.createVNode(Ue,{items:n.value.mapGamesByTeam.get(c.value.team_id),onInput:y},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",pm,[t.createElementVNode("div",fm,[um,t.createElementVNode("div",hm,[t.createVNode(O,{items:l.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),t.createElementVNode("div",ym,[gm,t.createElementVNode("div",_m,[t.createVNode(zt,{modelValue:d.value,"onUpdate:modelValue":S[0]||(S[0]=T=>d.value=T)},null,8,["modelValue"])])])]),t.createElementVNode("div",bm,[t.createVNode(It,{"selected-category":p.value},null,8,["selected-category"])])]),t.createElementVNode("div",Tm,[t.createVNode(ve,t.normalizeProps(t.guardReactiveProps(i)),null,16)])],64))}},wm=I(Sm,[["__scopeId","data-v-6d73d5e6"]]),ne=e=>(t.pushScopeId("data-v-6e904db8"),e=e(),t.popScopeId(),e),Cm={class:"container"},Em={class:"container__row"},km={class:"container__row__wrapper"},Nm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),xm={class:"container__row__wrapper__input"},Vm={class:"container__row two-items"},Pm={class:"container__row__wrapper"},Fm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Bm={key:0,class:"container__row__wrapper__input"},Am={class:"container__row__wrapper"},zm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),Im={key:0,class:"container__row__wrapper__input"},Rm={class:"container__row"},Om={class:"container__row__wrapper"},Lm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Gm={key:0,class:"container__row__wrapper__input"},Wm={class:"container__row type-and-advanced"},Dm={class:"container__row__wrapper"},Mm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),$m={class:"container__row__wrapper__input"},vm={class:"container__row__wrapper center"},Um=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),jm={class:"container__row__wrapper__input",style:{width:"fit-content"}},Jm={class:"container__row"},Hm={class:"container__action"},qm={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(e,{emit:a}){const s=e,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=t.ref(null),n=t.ref(null),r=t.ref(null),c=t.ref(null),p=t.ref(null),d=t.ref(!0),l=t.computed(()=>s.advancedFilterCategories.games);function m(b){o.value=b,a("update:tournament",b)}function f(b){n.value=b,a("update:season",b)}function g(b){r.value=b}function y(b){c.value=b}function _(b){p.value=b}return(b,S)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Cm,[t.createElementVNode("div",Em,[t.createElementVNode("div",km,[Nm,t.createElementVNode("div",xm,[t.createVNode(O,{items:e.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),t.createElementVNode("div",Vm,[t.createElementVNode("div",Pm,[Fm,o.value&&o.value.seasons?(t.openBlock(),t.createElementBlock("div",Bm,[t.createVNode(O,{items:o.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Am,[zm,n.value&&n.value.arrayMatchDays?(t.openBlock(),t.createElementBlock("div",Im,[t.createVNode(O,{items:n.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:g},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Rm,[t.createElementVNode("div",Om,[Lm,r.value&&r.value.arrayGames?(t.openBlock(),t.createElementBlock("div",Gm,[t.createVNode(Ue,{items:r.value.arrayGames,onInput:y},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Wm,[t.createElementVNode("div",Dm,[Mm,t.createElementVNode("div",$m,[t.createVNode(O,{items:l.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),t.createElementVNode("div",vm,[Um,t.createElementVNode("div",jm,[t.createVNode(zt,{modelValue:d.value,"onUpdate:modelValue":S[0]||(S[0]=T=>d.value=T)},null,8,["modelValue"])])])]),t.createElementVNode("div",Jm,[t.createVNode(It,{"selected-category":p.value},null,8,["selected-category"])])]),t.createElementVNode("div",Hm,[t.createVNode(ve,t.normalizeProps(t.guardReactiveProps(i)),null,16)])],64))}},Km=I(qm,[["__scopeId","data-v-6e904db8"]]);t.defineComponent({name:"TemplateVideos",components:{VideosGoals:ad,VideosPlayer:Kd,VideosTeam:wm,VideosGame:Km}}),Array.from({length:24},(e,a)=>a+1),v(2,Rt()),v(2,Rt()),v(1,J(1)),v(1,J(1)),v(1,J(2)),v(1,J(2)),v(1,J(3)),v(1,J(3)),v(1,J(4)),v(1,J(4));function Rt(){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 Ea(){return Array.from({length:16},(e,a)=>a+1)}function J(e){switch(e){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 v(e=1,a=null){return{origin_zones:e===1?Ea():Rt(),destiny_zones:a||Ea(),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:e}}function Zm(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const Ym={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},Xm=t.ref(Zm()),Qm={components:{GSCTopCategory:no},computed:{...Ki.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={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.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},a=JSON.stringify(e);return JSON.stringify(this.filters)!=a,a},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...Xm.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},carrousel:{type:Boolean,default:!1},arrow:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},seasonSelected:{type:Object,default:()=>({})},categoryView:{type:Array,default:()=>[]},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""},numRows:{type:Number,default:5},dummyData:{type:Array,default:null}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let a=0;a<e.teams.length;a++)this.teams.push({id:e.teams[a].team_id,team:e.teams[a].colloquial_name,logo:e.teams[a].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:a}=de(e);return{myDivRefTopsFull:e,elementSize:a}},data(){return{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"}],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},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}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],filtersTypes:go,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var a=e.split(","),s=a[0].split(" "),i=a[1].trim().split(" "),o="";s.length==2||s.length==1?s[0].length<4?o=s[0]+" "+s[1]:o=s[0]:s.length==3?o=s[0]+" "+s[1]:s.length==4&&(o=s[1]+" "+s[2]+" "+s[3]);var n=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return o=o.replace(",",""),n+". "+o},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const a=e.id===this.selectedTournament.id;e.isSelected=a,e.isDefaultTournament=a})},async onClickDeleteFilter(){this.optionSelectedSubmenu=="Predeterminados"?this.resetPredefinedTeamAll():(this.arrayFiltersPlays=[],setTimeout(()=>{},200))},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[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(e){this.$emit("openmedia",e)},setMediaData(e){let o=[e.id],n=e.team_id;const r={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:n||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",r)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,a,s){this.$emit("openProfilePlayer",{playerId:e,teamId:s,seasonId:a||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(){},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=k.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.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 s=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");s!==-1?this.arrayFiltersPlays[s].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 o=0;o<a.length;o++){a[o];let r=a[o].dob.split("T")[0].split("-");var i={position:o+1,player_name:this.abrevName(a[o].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+a[o].player_id+".png",total:a[o].total.toFixed(0),id:a[o].player_id,player_age:this.calcularEdad(a[o].dob),team_abrev:a[o].teams[0].acronym,team_name:a[o].teams[0].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+a[o].teams[0].team_id+".png",player_position:a[o].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+a[o].nationality_id+".jpg",date:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:a[o].team_id,nationality_name:Bs[a[o].nationality_id],player_games:a[o].games_played,player_min:a[o].minutes_played,league_name:a[o].tournament_name,seasons:a[o].seasons,season_id:a[o].seasons[0]};this.rowScoutingData.push(i)}if(this.seasonsFilterSelected!=0){const o=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let n=0;n<o.teams.length;n++)this.teamsscouting.push({id:o.teams[n].team_id,team:o.teams[n].colloquial_name,logo:o.teams[n].logo})}this.loadingActive=!1},abrevName(e){var a=e.split(","),s=a[0].split(" "),i=a[1].trim().split(" "),o="";s.length==2||s.length==1?s[0].length<4?o=s[0]+" "+s[1]:o=s[0]:s.length==3?o=s[0]+" "+s[1]:s.length==4&&(o=s[1]+" "+s[2]+" "+s[3]);var n=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";o=o.replace(",","");var r=n+". "+o;return r},calcularEdad(e){var a=new Date(e),s=new Date,i=s-a,o=Math.floor(i/(1e3*60*60*24*365.25));return o},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var a=[];for(let s=0;s<e.length;s++)e[s].isSelected&&a.push(e[s].id);if(a.length==0&&(a=[1]),a.length==1)for(let s=0;s<e.length;s++)e[s].isSelected&&(this.nameLeagueSelected=e[s].name,this.seasonsFilterSelected=e[s].seasons[0].id);else this.seasonsFilterSelected=0,a.length>0&&(this.nameLeagueSelected=a.length+" Ligas");this.filterScounting.tournaments=a,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const i=e.ageByRange.min==0?10:e.ageByRange.min,o=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[i,o],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var a=[];if(e.hasOwnProperty("nationalities")){for(let i=0;i<e.nationalities.length;i++)e.nationalities[i].isSelected&&a.push(e.nationalities[i].id);a.length==0&&(a=[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=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var s=[];for(let i=0;i<e.positions.length;i++)e.positions[i].isSelected&&s.push(e.positions[i].id);s.length==0&&(s=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=s,this.filterScounting.nationalities=a},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var a=[];for(let s=0;s<e.productivityFilters.length;s++)a[e.productivityFilters[s].priority-1]={name:e.productivityFilters[s].name,ids:e.productivityFilters[s].id};a.length==0&&(a=[]),this.filterScounting.categories=a,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");a!==-1?this.arrayFiltersPlays[a].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var s=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;var s=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&a!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(a,1);var s=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(s!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&a!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(a,1);for(let n=0;n<this.categoriesDefault.length;n++)this.categoriesDefault[n].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var s=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){for(let n=0;n<this.FVfilterGolstats.length;n++)this.FVfilterGolstats[n].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.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(e,a){return Math.floor(Math.random()*(a-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let s=0;s<this.categoriesPlaysTypes.offensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.defensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.possession.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.offenses.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s])}else for(let s=0;s<e.playsCategories.length;s++)e.playsCategories[s].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[s].id),this.arrayCategoryFilterFull.push(e.playsCategories[s]));var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?a!=-1?this.arrayFiltersPlays[a].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):a!=-1?this.arrayFiltersPlays[a].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):a!==-1&&this.arrayFiltersPlays.splice(a,1)},async deleteLabelFilter(e){var a=this.arrayFiltersPlays.findIndex(i=>i.type===e);if(a!==-1){if(e=="onFiltersTournaments"&&(this.arrayFiltersPlays=[],setTimeout(()=>{},200)),e=="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(e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="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(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var s=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(me.NATIONALITY)),e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(me.POSITION)),e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(me.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(me.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(me.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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(a,1)},clickAll(){},clickAllAll(){},clickTeam(){},clickTeamScouting(){},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}},async changeTabsGeneral(e){this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.resetFilterTeamAndPlayers())},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let s=0;s<this.categoriesDefault.length;s++)this.categoriesDefault[s].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(a!==-1){for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=k.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a},async fetchTeams(){const e=k.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.teamsUrl+this.seasonActive);return a},async fetchTeamsScouting(e){const a=k.create({headers:{Authorization:`${this.token}`}}),{data:s}=await a.get(this.teamsUrl+e);return s},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var a="";e.id==1?a=this.urlFilter:a=this.urlFilter;const s=k.create({headers:{Authorization:`${this.token}`}}),{data:i}=await s.get(a+e.id);if(Object.keys(i[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=i[0].match_lapse_combinations[m]}),Object.keys(i[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=i[0].playing_as_combinations[m]}),Object.keys(i[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=i[0].field_sections_combinations[m]}),i[0]){for(let m=0;m<i[0].filter_records.length;m++){var o=i[0].description;if(i[0].filter_records[m].field_sections!==void 0){const g=i[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[g]||this.predefinedFiltersSections[g]=="")&&(this.predefinedFiltersSections[g]==""?o=o.replace(" [en {field_sections}]",this.predefinedFiltersSections[g]):o=o.replace("{field_sections}",this.predefinedFiltersSections[g]))}if(i[0].filter_records[m].match_lapse!==void 0){const g=i[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[g]||this.predefinedFiltersMatchLapse[g]=="")&&(this.predefinedFiltersMatchLapse[g]==""?o=o.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[g]):o=o.replace("{match_lapse}",this.predefinedFiltersMatchLapse[g]))}if(i[0].filter_records[m].playing_as!==void 0){const g=i[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[g]||this.predefinedFiltersPlayingAs[g]=="")&&(this.predefinedFiltersPlayingAs[g]==""?o=o.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[g]):o=o.replace("{playing_as}",this.predefinedFiltersPlayingAs[g]))}i[0].filter_records[m].section_type!==void 0&&(this.optionSelected=="Jugadores"?o=o.replace("{section_type}","Jugadores"):o=o.replace("{section_type}","Equipos")),o=o.replace(/\[/g,""),o=o.replace(/\]/g,""),o=o.replace("{category_name}",i[0].category_name);const f=o.split(": ");var n=f[1];n.length>129&&this.windowWidth>1358&&(n=n.substring(0,129),n=n+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||i[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:e.name,id_category:i[0].id,title:f[0]+":",text:f[1],textOrigin:i[0].description,titledots:n,filtersPredefined:{matchResult:i[0].filter_records[m].match_result,playingAs:i[0].filter_records[m].playing_as,sections:i[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var c=0,p=new Set,d={},l=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(l=l.replace(/\*/g,""),l=l.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(c+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(c+=1),d.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let f=0;f<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;f++)p.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[f]);d.setNationalitiesIds=p}else p.add(138),p.add(222),p.add(163),p.add(51),p.add(226),p.add(10),p.add(223),p.add(96),p.add(171),p.add(198),p.add(105),p.add(80),p.add(29),p.add(74),p.add(216),p.add(196),p.add(64),p.add(155),p.add(156),p.add(89),p.add(106),p.add(81),p.add(233),p.add(204),d.setNationalitiesIds=p;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(c+=1),d.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,r.push({id:m+1,name:l,isSelected:!1,value:c,filters:d})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const a=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((l,m)=>l-m).toString();this.predefinedFiltersSections[a]||this.predefinedFiltersSections[a]==""?this.predefinedFiltersSections[a]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[a]):e=e.replace("{field_sections}",this.predefinedFiltersSections[a]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var s=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(s=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(s||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.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?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.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?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.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]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.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]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var o="";i.includes(1)&&(o=o+"0-15, "),i.includes(2)&&(o=o+"16-30, "),i.includes(3)&&(o=o+"31-45, "),i.includes(4)&&(o=o+"46-60, "),i.includes(5)&&(o=o+"61-75, "),i.includes(6)&&(o=o+"76-90, "),o=o.slice(0,-2),o=o.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",o)}const n=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[n]||this.predefinedFiltersPlayingAs[n]=="")&&(this.predefinedFiltersPlayingAs[n]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[n]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[n])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=e.split(": ");let c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),p=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=c,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const d=p.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let l=1;l<=d.length;l++)l%2===0||(p=p.replace("*",'<span style="color: #ffff03" >'));else p=p.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=p},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&this.changeTabsGeneral(this.defaultSection)},async created(){try{const e=k.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(s=>(delete s.headers.Authorization,s));const a=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});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(e){throw new Error(e)}}},ep={ref:"myDivRefTopsFull",style:{width:"100%","max-width":"100%","box-sizing":"border-box"}};function tp(e,a,s,i,o,n){const r=t.resolveComponent("GSCTopCategory");return t.openBlock(),t.createElementBlock("div",ep,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.categoryView,(c,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(e.toniKroosWrapperClass)},[t.createTextVNode(t.toDisplayString(s.game)+" ",1),(t.openBlock(),t.createBlock(r,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":o.isTeam,carrousel:s.carrousel,arrow:s.arrow,"border-width":0,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:0,category:c.id,"type-table":o.typeTable,categoryName:c.name,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,"num-rows":s.numRows,key:o.updateTables,"dummy-data":c.id===0?s.dummyData:null},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","carrousel","arrow","can-play-videos","game-id","game","category","type-table","categoryName","season-selected","season","filter-team","num-rows","dummy-data"]))],2))),128))],512)}const sp=j(Qm,[["render",tp],["__cssModules",{$style:Ym}]]),ap=[{top:"01",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow@2x.png",id:9991,age:25,team:"DUM",teamid:1,position:"DEL",positionId:9,positionfull:"Delantero",country:138,effectiveness:100,minutes:90,games:1,date:"01-01-1999",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0},{top:"02",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",id:9992,age:27,team:"DUM",teamname:"Dummy FC",teamid:1,position:"MED",positionId:7,positionfull:"Medio",country:138,effectiveness:95,minutes:85,games:1,date:"02-02-1998",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0},{top:"03",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",id:9993,age:22,team:"DUM",teamname:"Dummy FC",teamid:1,position:"DEF",positionId:2,positionfull:"Defensa",country:138,effectiveness:90,minutes:80,games:1,date:"03-03-2000",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0},{top:"04",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",id:9994,age:24,team:"DUM",teamname:"Dummy FC",teamid:1,position:"POR",positionId:1,positionfull:"Portero",country:138,effectiveness:88,minutes:70,games:1,date:"04-04-1997",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0},{top:"05",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",id:9995,age:28,team:"DUM",teamname:"Dummy FC",teamid:1,position:"LAT",positionId:3,positionfull:"Lateral",country:138,effectiveness:85,minutes:60,games:1,date:"05-05-1995",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0}],ip={class:"gsc-top-player"},np=j({__name:"gsc-top-player",props:{categoryView:{type:Array,default:()=>[]},canPlayVideos:{type:Boolean,default:!0},carrousel:{type:Boolean,default:!1},arrow:{type:Boolean,default:!1},type:{type:Number,default:1},game:{type:Object,default:()=>({})},gamed:{type:Number,default:90209},season:{type:Number,default:1909},teamView:{type:Number,default:0},numRows:{type:Number,default:5}},setup(e){const a=e,s=a.categoryView.length===1&&a.categoryView[0].id===0?ap:null;return(i,o)=>(t.openBlock(),t.createElementBlock("div",ip,[t.createVNode(sp,{"can-play-videos":e.canPlayVideos,carrousel:e.carrousel,arrow:e.arrow,"type-data":e.type,"game-id":e.gamed,game:e.game,"season-active":e.season,teamselect:e.teamView,"category-view":e.categoryView,"num-rows":e.numRows,"dummy-data":t.unref(s)},null,8,["can-play-videos","carrousel","arrow","type-data","game-id","game","season-active","teamselect","category-view","num-rows","dummy-data"])]))}},[["__scopeId","data-v-e448af41"]]),op={class:"subcategory-group"},rp={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(a,s)=>(t.openBlock(),t.createElementBlock("div",op,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,i=>(t.openBlock(),t.createBlock(t.unref(pt),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":o=>i.isSelected=o,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},lp=I(rp,[["__scopeId","data-v-ae6f3d72"]]),cp={class:"filter-subcategories"},dp=Object.freeze(Object.defineProperty({__proto__:null,default:I({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(a,s)=>(t.openBlock(),t.createElementBlock("div",cp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[t.createVNode(lp,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Je=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),mp={class:"details__header"},pp=Je(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),fp={class:"details__header__checkbox"},up={class:"details__body"},hp={class:"details__body__playing-as"},yp=["onClick"],gp={class:"details__header"},_p=Je(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),bp={class:"details__header__checkbox"},Tp={class:"details__body"},Sp=Je(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),wp={class:"details__body__game-section"},Cp=["onClick"],Ep={class:"details__body"},kp=Je(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Np={class:"details__body__game-section"},xp=["onClick"],Vp=Object.freeze(Object.defineProperty({__proto__:null,default:I({__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(e){const a=e;t.useCssVars(l=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const s=t.computed(()=>a.playingAs.every(l=>l.isSelected)),i=t.computed(()=>a.gameSections.every(l=>l.isSelected)),o=t.computed(()=>a.gameSections.reduce((l,m)=>(m.value<=3?l.firstHalf.push(m):l.secondHalf.push(m),l),{firstHalf:[],secondHalf:[]})),n=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function r(l){l?a.playingAs.forEach(m=>{m.isSelected=!0}):a.playingAs.forEach((m,f)=>{m.isSelected=f===0})}function c(l){a.playingAs.filter(m=>m.isSelected).length===1&&l.isSelected||(l.isSelected=!l.isSelected)}function p(l){a.gameSections.filter(m=>m.isSelected).length===1&&l.isSelected||(l.isSelected=!l.isSelected)}function d(l){l?a.gameSections.forEach(m=>{m.isSelected=!0}):a.gameSections.forEach((m,f)=>{m.isSelected=f===0})}return(l,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",mp,[pp,t.createElementVNode("div",fp,[t.createVNode(t.unref(pt),{label:"Todos","model-value":s.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),t.createElementVNode("div",up,[t.createElementVNode("div",hp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(f,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:y=>c(f)},t.toDisplayString(f.name),11,yp))),128))])]),t.createElementVNode("div",gp,[_p,t.createElementVNode("div",bp,[t.createVNode(t.unref(pt),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",Tp,[Sp,t.createElementVNode("div",wp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value.firstHalf,(f,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:y=>p(f)},t.toDisplayString(f.text),11,Cp))),128))])]),t.createElementVNode("div",Ep,[kp,t.createElementVNode("div",Np,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value.secondHalf,(f,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:y=>p(f)},t.toDisplayString(f.text),11,xp))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Pp={class:"filter-field"},Fp=Object.freeze(Object.defineProperty({__proto__:null,default:I({__name:"FilterField",setup(e){const a=t.ref(Array.from({length:16},(i,o)=>o+1));function s(){}return(i,o)=>(t.openBlock(),t.createElementBlock("div",Pp,[t.createVNode(t.unref(Ir),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));H.GscTopPlayer=np,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
|
11
|
+
`+n):i.stack=n}catch{}}throw i}}_request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=X(this.defaults,s);const{transitional:i,paramsSerializer:o,headers:n}=s;i!==void 0&&De.assertOptions(i,{silentJSONParsing:$.transitional($.boolean),forcedJSONParsing:$.transitional($.boolean),clarifyTimeoutError:$.transitional($.boolean)},!1),o!=null&&(h.isFunction(o)?s.paramsSerializer={serialize:o}:De.assertOptions(o,{encode:$.function,serialize:$.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),De.assertOptions(s,{baseUrl:$.spelling("baseURL"),withXsrfToken:$.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let r=n&&h.merge(n.common,n[s.method]);n&&h.forEach(["delete","get","head","post","put","patch","common"],y=>{delete n[y]}),s.headers=D.concat(r,n);const c=[];let p=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(s)===!1||(p=p&&y.synchronous,c.unshift(y.fulfilled,y.rejected))});const d=[];this.interceptors.response.forEach(function(y){d.push(y.fulfilled,y.rejected)});let l,m=0,f;if(!p){const y=[ba.bind(this),void 0];for(y.unshift.apply(y,c),y.push.apply(y,d),f=y.length,l=Promise.resolve(s);m<f;)l=l.then(y[m++],y[m++]);return l}f=c.length;let g=s;for(m=0;m<f;){const y=c[m++],_=c[m++];try{g=y(g)}catch(b){_.call(this,b);break}}try{l=ba.call(this,g)}catch(y){return Promise.reject(y)}for(m=0,f=d.length;m<f;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=X(this.defaults,a);const s=da(a.baseURL,a.url,a.allowAbsoluteUrls);return ta(s,a.params,a.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(e){Me.prototype[e]=function(a,s){return this.request(X(s||{},{method:e,url:a,data:(s||{}).data}))}}),h.forEach(["post","put","patch"],function(e){function a(s){return function(i,o,n){return this.request(X(n||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Me.prototype[e]=a(),Me.prototype[e+"Form"]=a(!0)});const $e=Me;class Bt{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(o){s=o});const i=this;this.promise.then(o=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](o);i._listeners=null}),this.promise.then=o=>{let n;const r=new Promise(c=>{i.subscribe(c),n=c}).then(o);return r.cancel=function(){i.unsubscribe(n)},r},a(function(o,n,r){i.reason||(i.reason=new ae(o,n,r),s(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const a=new AbortController,s=i=>{a.abort(i)};return this.subscribe(s),a.signal.unsubscribe=()=>this.unsubscribe(s),a.signal}static source(){let a;return{token:new Bt(function(s){a=s}),cancel:a}}}const dc=Bt;function mc(e){return function(a){return e.apply(null,a)}}function pc(e){return h.isObject(e)&&e.isAxiosError===!0}const At={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(At).forEach(([e,a])=>{At[a]=e});const fc=At;function wa(e){const a=new $e(e),s=Ds($e.prototype.request,a);return h.extend(s,$e.prototype,a,{allOwnKeys:!0}),h.extend(s,a,null,{allOwnKeys:!0}),s.create=function(i){return wa(X(e,i))},s}const x=wa(kt);x.Axios=$e,x.CanceledError=ae,x.CancelToken=dc,x.isCancel=oa,x.VERSION=Ta,x.toFormData=ze,x.AxiosError=C,x.Cancel=x.CanceledError,x.all=function(e){return Promise.all(e)},x.spread=mc,x.isAxiosError=pc,x.mergeConfig=X,x.AxiosHeaders=D,x.formToJSON=e=>ia(h.isHTMLForm(e)?new FormData(e):e),x.getAdapter=_a.getAdapter,x.HttpStatusCode=fc,x.default=x,Array.from({length:30},(e,a)=>1981+a).sort((e,a)=>a-e);const uc={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const s=e,i=t.ref(null);t.watch(()=>s.modelValue,()=>{o()},{immediate:!0});function o(){i.value&&(i.value.checked=s.modelValue)}function n(r){a("update:modelValue",r.target.checked)}return t.onMounted(()=>{o()}),(r,c)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:i,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:n},null,544))}},zt=I(uc,[["__scopeId","data-v-e3a6ae4e"]]),hc={__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(e,{emit:a}){const s=e,i=t.computed(()=>({"--height":s.height,"--width":s.width,"--padding":s.padding,"--border-radius":s.borderRadius,"--border":`solid ${s.borderWidth} ${s.borderColor}`,"--background-color":s.backgroundColor,"--font-color":s.fontColor,"--font-size":s.fontSize,"--font-family":s.fontFamily,"--active-background-color":s.activeBackgroundColor||s.backgroundColor,"--active-border-color":s.activeBorderColor||s.borderColor,"--active-font-color":s.activeFontColor||s.fontColor}));function o(){a("click")}return(n,r)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(i.value),onClick:o},t.toDisplayString(e.text),7))}},ve=I(hc,[["__scopeId","data-v-9688933e"]]),yc={class:"dropdown"},gc={class:"selected-item"},_c={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(e,{emit:a}){function s(i){a("input",i)}return(i,o)=>(t.openBlock(),t.createElementBlock("div",yc,[t.createVNode(t.unref(ut),t.mergeProps(t.unref(ht),{"is-list-same-width":e.isListSameWidth,items:e.items,onInput:s}),{default:t.withCtx(({selectedItem:n})=>[t.createElementVNode("div",gc,t.toDisplayString(e.itemTextKey?n[e.itemTextKey]:n),1)]),availableItem:t.withCtx(({item:n})=>[t.createElementVNode("div",null,t.toDisplayString(e.itemTextKey?n[e.itemTextKey]:n),1)]),_:1},16,["is-list-same-width","items"])]))}},O=I(_c,[["__scopeId","data-v-064d5f86"]]),bc={class:"dropdown"},Tc={class:"game-item"},Sc={key:0,class:"item-game"},wc={class:"match-day"},Cc={class:"team-logo"},Ec=["src"],kc={class:"text"},Nc={class:"text score"},xc={class:"text"},Vc={class:"team-logo"},Pc=["src"],Fc={class:"item-game"},Bc={class:"team-logo"},Ac=["src"],zc={class:"text"},Ic={class:"text score"},Rc={class:"text"},Oc={class:"team-logo"},Lc=["src"],Gc={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:a}){function s(i){a("input",i)}return(i,o)=>(t.openBlock(),t.createElementBlock("div",bc,[t.createVNode(t.unref(ut),t.mergeProps(t.unref(ht),{items:e.items,onInput:s}),{default:t.withCtx(({selectedItem:n})=>[t.createElementVNode("div",Tc,[n.homeTeam?(t.openBlock(),t.createElementBlock("div",Sc,[t.createElementVNode("div",wc,t.toDisplayString(n.roundAbbreviation),1),t.createElementVNode("div",Cc,[t.createElementVNode("img",{src:n.homeTeam.logo,alt:""},null,8,Ec)]),t.createElementVNode("div",kc,t.toDisplayString(n.homeTeam.acronym),1),t.createElementVNode("div",Nc,t.toDisplayString(n.score[0])+" - "+t.toDisplayString(n.score[1]),1),t.createElementVNode("div",xc,t.toDisplayString(n.awayTeam.acronym),1),t.createElementVNode("div",Vc,[t.createElementVNode("img",{src:n.awayTeam.logo,alt:""},null,8,Pc)])])):t.createCommentVNode("",!0)])]),availableItem:t.withCtx(({item:n})=>[t.createElementVNode("div",Fc,[t.createElementVNode("div",null,t.toDisplayString(n.roundAbbreviation),1),t.createElementVNode("div",Bc,[t.createElementVNode("img",{src:n.homeTeam.logo,alt:""},null,8,Ac)]),t.createElementVNode("div",zc,t.toDisplayString(n.homeTeam.acronym),1),t.createElementVNode("div",Ic,t.toDisplayString(n.score[0])+" - "+t.toDisplayString(n.score[1]),1),t.createElementVNode("div",Rc,t.toDisplayString(n.awayTeam.acronym),1),t.createElementVNode("div",Oc,[t.createElementVNode("img",{src:n.awayTeam.logo,alt:""},null,8,Lc)])])]),_:1},16,["items"])]))}},Ue=I(Gc,[["__scopeId","data-v-7883a91e"]]),je=e=>(t.pushScopeId("data-v-b63e9c84"),e=e(),t.popScopeId(),e),Wc={class:"container"},Dc={class:"container__row"},Mc={class:"container__row__wrapper"},$c=je(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),vc={class:"container__row__wrapper__input"},Uc={class:"container__row two-items"},jc={class:"container__row__wrapper"},Jc=je(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Hc={key:0,class:"container__row__wrapper__input"},qc={class:"container__row__wrapper"},Kc=je(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),Zc={key:0,class:"container__row__wrapper__input"},Yc={class:"container__row"},Xc={class:"container__row__wrapper"},Qc=je(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),ed={key:0,class:"container__row__wrapper__input"},td={class:"container__action"},sd={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(e,{emit:a}){const s={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},i=t.ref(null),o=t.ref(null),n=t.ref(null),r=t.ref(null);function c(m){i.value=m,a("update:tournament",m)}function p(m){o.value=m,a("update:season",m)}function d(m){n.value=m}function l(m){r.value=m}return(m,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Wc,[t.createElementVNode("div",Dc,[t.createElementVNode("div",Mc,[$c,t.createElementVNode("div",vc,[t.createVNode(O,{items:e.tournaments,itemTextKey:"name",onInput:c},null,8,["items"])])])]),t.createElementVNode("div",Uc,[t.createElementVNode("div",jc,[Jc,i.value&&i.value.seasons?(t.openBlock(),t.createElementBlock("div",Hc,[t.createVNode(O,{items:i.value.seasons,itemTextKey:"name",onInput:p},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",qc,[Kc,o.value&&o.value.arrayMatchDays?(t.openBlock(),t.createElementBlock("div",Zc,[t.createVNode(O,{items:o.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Yc,[t.createElementVNode("div",Xc,[Qc,n.value&&n.value.arrayGames?(t.openBlock(),t.createElementBlock("div",ed,[t.createVNode(Ue,{items:n.value.arrayGames,onInput:l},null,8,["items"])])):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",td,[t.createVNode(ve,t.normalizeProps(t.guardReactiveProps(s)),null,16)])],64))}},ad=I(sd,[["__scopeId","data-v-b63e9c84"]]),id={class:"dropdown"},nd={class:"item-team"},od={class:"team-logo"},rd=["src"],ld={class:"team-acronym"},cd={class:"item-team"},dd={class:"team-logo"},md=["src"],pd={class:"team-acronym"},fd={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:a}){function s(i){a("input",i)}return(i,o)=>(t.openBlock(),t.createElementBlock("div",id,[t.createVNode(t.unref(ut),t.mergeProps(t.unref(ht),{items:e.items,onInput:s}),{default:t.withCtx(({selectedItem:n})=>[t.createElementVNode("div",nd,[t.createElementVNode("div",od,[t.createElementVNode("img",{src:n.logo,alt:""},null,8,rd)]),t.createElementVNode("div",ld,t.toDisplayString(n.acronym),1)])]),availableItem:t.withCtx(({item:n})=>[t.createElementVNode("div",cd,[t.createElementVNode("div",dd,[t.createElementVNode("img",{src:n.logo,alt:""},null,8,md)]),t.createElementVNode("div",pd,t.toDisplayString(n.acronym),1)])]),_:1},16,["items"])]))}},Ca=I(fd,[["__scopeId","data-v-afd2bee8"]]),ud={class:"advanced-filters"},hd={class:"advanced-filters__buttons"},yd=["onClick"],gd={class:"advanced-filters__filters"},_d={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(e){const a=e,s=t.defineAsyncComponent(()=>Promise.resolve().then(()=>dp)),i=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Vp)),o=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Fp)),n=[{name:"Sub categorías",component:s},{name:"Cancha",component:o},{name:"Condiciones",component:i}],r=t.ref(n[0]),c=t.computed(()=>a.selectedCategory?a.selectedCategory.subcategoryGroups||[]:[]);function p(d){r.value=d}return(d,l)=>(t.openBlock(),t.createElementBlock("div",ud,[t.createElementVNode("div",hd,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,m=>t.createElementVNode("div",{key:m.name,role:"button",class:t.normalizeClass(["advanced-filters__buttons__button",{active:r.value.name===m.name}]),onClick:f=>p(m)},t.toDisplayString(m.name),11,yd)),64))]),t.createElementVNode("div",gd,[(t.openBlock(),t.createBlock(t.KeepAlive,null,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.value.component),{"subcategory-groups":c.value},null,8,["subcategory-groups"]))],1024))])]))}},It=I(_d,[["__scopeId","data-v-c62c5b9c"]]),Q=e=>(t.pushScopeId("data-v-575b26b5"),e=e(),t.popScopeId(),e),bd={class:"container"},Td={class:"container__row"},Sd={class:"container__row__wrapper"},wd=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),Cd={class:"container__row__wrapper__input"},Ed={class:"container__row two-items"},kd={class:"container__row__wrapper"},Nd=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),xd={key:0,class:"container__row__wrapper__input"},Vd={class:"container__row__wrapper"},Pd=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),Fd={key:0,class:"container__row__wrapper__input"},Bd={class:"container__row"},Ad={class:"container__row__wrapper"},zd=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),Id={key:0,class:"container__row__wrapper__input"},Rd={class:"container__row"},Od={class:"container__row__wrapper"},Ld=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),Gd={key:0,class:"container__row__wrapper__input"},Wd={class:"container__row type-and-advanced"},Dd={class:"container__row__wrapper"},Md=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),$d={class:"container__row__wrapper__input"},vd={class:"container__row__wrapper center"},Ud=Q(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),jd={class:"container__row__wrapper__input"},Jd={class:"container__row"},Hd={class:"container__action"},qd={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(e,{emit:a}){const s=e,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=t.ref(null),n=t.ref(null);t.ref(null);const r=t.ref(null),c=t.ref(null),p=t.ref(null),d=t.ref(null),l=t.ref(!0),m=t.computed(()=>p.value?p.value.position_id===1?s.advancedFilterCategories.goalkeeper:s.advancedFilterCategories.player:[]);function f(T){o.value=T,a("update:tournament",T)}function g(T){n.value=T,a("update:season",T)}function y(T){c.value=T,a("update:team",T)}function _(T){p.value=T}function b(T){r.value=T}function S(T){d.value=T}return(T,E)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",bd,[t.createElementVNode("div",Td,[t.createElementVNode("div",Sd,[wd,t.createElementVNode("div",Cd,[t.createVNode(O,{items:e.tournaments,itemTextKey:"name",onInput:f},null,8,["items"])])])]),t.createElementVNode("div",Ed,[t.createElementVNode("div",kd,[Nd,o.value&&o.value.seasons?(t.openBlock(),t.createElementBlock("div",xd,[t.createVNode(O,{items:o.value.seasons,itemTextKey:"name",onInput:g},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Vd,[Pd,n.value&&n.value.arrayTeams?(t.openBlock(),t.createElementBlock("div",Fd,[t.createVNode(Ca,{items:n.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:y},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Bd,[t.createElementVNode("div",Ad,[zd,c.value&&c.value.arrayPlayers?(t.openBlock(),t.createElementBlock("div",Id,[t.createVNode(O,{items:c.value.arrayPlayers,itemTextKey:"player_name",onInput:_},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Rd,[t.createElementVNode("div",Od,[Ld,n.value&&n.value.mapGamesByTeam&&c.value?(t.openBlock(),t.createElementBlock("div",Gd,[t.createVNode(Ue,{items:n.value.mapGamesByTeam.get(c.value.team_id),onInput:b},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Wd,[t.createElementVNode("div",Dd,[Md,t.createElementVNode("div",$d,[t.createVNode(O,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:S},null,8,["items"])])]),t.createElementVNode("div",vd,[Ud,t.createElementVNode("div",jd,[t.createVNode(zt,{modelValue:l.value,"onUpdate:modelValue":E[0]||(E[0]=V=>l.value=V)},null,8,["modelValue"])])])]),t.createElementVNode("div",Jd,[t.createVNode(It,{"selected-category":d.value},null,8,["selected-category"])])]),t.createElementVNode("div",Hd,[t.createVNode(ve,t.normalizeProps(t.guardReactiveProps(i)),null,16)])],64))}},Kd=I(qd,[["__scopeId","data-v-575b26b5"]]),ie=e=>(t.pushScopeId("data-v-6d73d5e6"),e=e(),t.popScopeId(),e),Zd={class:"container"},Yd={class:"container__row"},Xd={class:"container__row__wrapper"},Qd=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),em={class:"container__row__wrapper__input"},tm={class:"container__row two-items"},sm={class:"container__row__wrapper"},am=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),im={key:0,class:"container__row__wrapper__input"},nm={class:"container__row__wrapper"},om=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),rm={key:0,class:"container__row__wrapper__input"},lm={class:"container__row"},cm={class:"container__row__wrapper"},dm=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),mm={key:0,class:"container__row__wrapper__input"},pm={class:"container__row type-and-advanced"},fm={class:"container__row__wrapper"},um=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),hm={class:"container__row__wrapper__input"},ym={class:"container__row__wrapper center"},gm=ie(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),_m={class:"container__row__wrapper__input"},bm={class:"container__row"},Tm={class:"container__action"},Sm={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(e,{emit:a}){const s=e,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=t.ref(null),n=t.ref(null);t.ref(null);const r=t.ref(null),c=t.ref(null),p=t.ref(null),d=t.ref(!0),l=t.computed(()=>s.advancedFilterCategories.team);function m(b){o.value=b,a("update:tournament",b)}function f(b){n.value=b,a("update:season",b)}function g(b){c.value=b,a("update:team",b)}function y(b){r.value=b}function _(b){p.value=b}return(b,S)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Zd,[t.createElementVNode("div",Yd,[t.createElementVNode("div",Xd,[Qd,t.createElementVNode("div",em,[t.createVNode(O,{items:e.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),t.createElementVNode("div",tm,[t.createElementVNode("div",sm,[am,o.value&&o.value.seasons?(t.openBlock(),t.createElementBlock("div",im,[t.createVNode(O,{items:o.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",nm,[om,n.value&&n.value.arrayTeams?(t.openBlock(),t.createElementBlock("div",rm,[t.createVNode(Ca,{items:n.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:g},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",lm,[t.createElementVNode("div",cm,[dm,n.value&&n.value.mapGamesByTeam&&c.value?(t.openBlock(),t.createElementBlock("div",mm,[t.createVNode(Ue,{items:n.value.mapGamesByTeam.get(c.value.team_id),onInput:y},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",pm,[t.createElementVNode("div",fm,[um,t.createElementVNode("div",hm,[t.createVNode(O,{items:l.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),t.createElementVNode("div",ym,[gm,t.createElementVNode("div",_m,[t.createVNode(zt,{modelValue:d.value,"onUpdate:modelValue":S[0]||(S[0]=T=>d.value=T)},null,8,["modelValue"])])])]),t.createElementVNode("div",bm,[t.createVNode(It,{"selected-category":p.value},null,8,["selected-category"])])]),t.createElementVNode("div",Tm,[t.createVNode(ve,t.normalizeProps(t.guardReactiveProps(i)),null,16)])],64))}},wm=I(Sm,[["__scopeId","data-v-6d73d5e6"]]),ne=e=>(t.pushScopeId("data-v-6e904db8"),e=e(),t.popScopeId(),e),Cm={class:"container"},Em={class:"container__row"},km={class:"container__row__wrapper"},Nm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),xm={class:"container__row__wrapper__input"},Vm={class:"container__row two-items"},Pm={class:"container__row__wrapper"},Fm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),Bm={key:0,class:"container__row__wrapper__input"},Am={class:"container__row__wrapper"},zm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),Im={key:0,class:"container__row__wrapper__input"},Rm={class:"container__row"},Om={class:"container__row__wrapper"},Lm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),Gm={key:0,class:"container__row__wrapper__input"},Wm={class:"container__row type-and-advanced"},Dm={class:"container__row__wrapper"},Mm=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),$m={class:"container__row__wrapper__input"},vm={class:"container__row__wrapper center"},Um=ne(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),jm={class:"container__row__wrapper__input",style:{width:"fit-content"}},Jm={class:"container__row"},Hm={class:"container__action"},qm={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(e,{emit:a}){const s=e,i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=t.ref(null),n=t.ref(null),r=t.ref(null),c=t.ref(null),p=t.ref(null),d=t.ref(!0),l=t.computed(()=>s.advancedFilterCategories.games);function m(b){o.value=b,a("update:tournament",b)}function f(b){n.value=b,a("update:season",b)}function g(b){r.value=b}function y(b){c.value=b}function _(b){p.value=b}return(b,S)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Cm,[t.createElementVNode("div",Em,[t.createElementVNode("div",km,[Nm,t.createElementVNode("div",xm,[t.createVNode(O,{items:e.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),t.createElementVNode("div",Vm,[t.createElementVNode("div",Pm,[Fm,o.value&&o.value.seasons?(t.openBlock(),t.createElementBlock("div",Bm,[t.createVNode(O,{items:o.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Am,[zm,n.value&&n.value.arrayMatchDays?(t.openBlock(),t.createElementBlock("div",Im,[t.createVNode(O,{items:n.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:g},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Rm,[t.createElementVNode("div",Om,[Lm,r.value&&r.value.arrayGames?(t.openBlock(),t.createElementBlock("div",Gm,[t.createVNode(Ue,{items:r.value.arrayGames,onInput:y},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Wm,[t.createElementVNode("div",Dm,[Mm,t.createElementVNode("div",$m,[t.createVNode(O,{items:l.value,itemTextKey:"name","is-list-same-width":!1,onInput:_},null,8,["items"])])]),t.createElementVNode("div",vm,[Um,t.createElementVNode("div",jm,[t.createVNode(zt,{modelValue:d.value,"onUpdate:modelValue":S[0]||(S[0]=T=>d.value=T)},null,8,["modelValue"])])])]),t.createElementVNode("div",Jm,[t.createVNode(It,{"selected-category":p.value},null,8,["selected-category"])])]),t.createElementVNode("div",Hm,[t.createVNode(ve,t.normalizeProps(t.guardReactiveProps(i)),null,16)])],64))}},Km=I(qm,[["__scopeId","data-v-6e904db8"]]);t.defineComponent({name:"TemplateVideos",components:{VideosGoals:ad,VideosPlayer:Kd,VideosTeam:wm,VideosGame:Km}}),Array.from({length:24},(e,a)=>a+1),v(2,Rt()),v(2,Rt()),v(1,J(1)),v(1,J(1)),v(1,J(2)),v(1,J(2)),v(1,J(3)),v(1,J(3)),v(1,J(4)),v(1,J(4));function Rt(){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 Ea(){return Array.from({length:16},(e,a)=>a+1)}function J(e){switch(e){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 v(e=1,a=null){return{origin_zones:e===1?Ea():Rt(),destiny_zones:a||Ea(),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:e}}function Zm(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const Ym={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},Xm=t.ref(Zm()),Qm={components:{GSCTopCategory:no},computed:{...Ki.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={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.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},a=JSON.stringify(e);return JSON.stringify(this.filters)!=a,a},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...Xm.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},carrousel:{type:Boolean,default:!1},arrow:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},seasonSelected:{type:Object,default:()=>({})},categoryView:{type:Array,default:()=>[]},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""},numRows:{type:Number,default:5},dummyData:{type:Array,default:null}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let a=0;a<e.teams.length;a++)this.teams.push({id:e.teams[a].team_id,team:e.teams[a].colloquial_name,logo:e.teams[a].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:a}=de(e);return{myDivRefTopsFull:e,elementSize:a}},data(){return{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"}],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},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}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],filtersTypes:go,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var a=e.split(","),s=a[0].split(" "),i=a[1].trim().split(" "),o="";s.length==2||s.length==1?s[0].length<4?o=s[0]+" "+s[1]:o=s[0]:s.length==3?o=s[0]+" "+s[1]:s.length==4&&(o=s[1]+" "+s[2]+" "+s[3]);var n=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";return o=o.replace(",",""),n+". "+o},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const a=e.id===this.selectedTournament.id;e.isSelected=a,e.isDefaultTournament=a})},async onClickDeleteFilter(){this.optionSelectedSubmenu=="Predeterminados"?this.resetPredefinedTeamAll():(this.arrayFiltersPlays=[],setTimeout(()=>{},200))},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[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(e){this.$emit("openmedia",e)},setMediaData(e){let o=[e.id],n=e.team_id;const r={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:o,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:n||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",r)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,a,s){this.$emit("openProfilePlayer",{playerId:e,teamId:s,seasonId:a||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(){},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=k.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.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 s=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");s!==-1?this.arrayFiltersPlays[s].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 o=0;o<a.length;o++){a[o];let r=a[o].dob.split("T")[0].split("-");var i={position:o+1,player_name:this.abrevName(a[o].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+a[o].player_id+".png",total:a[o].total.toFixed(0),id:a[o].player_id,player_age:this.calcularEdad(a[o].dob),team_abrev:a[o].teams[0].acronym,team_name:a[o].teams[0].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+a[o].teams[0].team_id+".png",player_position:a[o].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+a[o].nationality_id+".jpg",date:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:a[o].team_id,nationality_name:Bs[a[o].nationality_id],player_games:a[o].games_played,player_min:a[o].minutes_played,league_name:a[o].tournament_name,seasons:a[o].seasons,season_id:a[o].seasons[0]};this.rowScoutingData.push(i)}if(this.seasonsFilterSelected!=0){const o=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let n=0;n<o.teams.length;n++)this.teamsscouting.push({id:o.teams[n].team_id,team:o.teams[n].colloquial_name,logo:o.teams[n].logo})}this.loadingActive=!1},abrevName(e){var a=e.split(","),s=a[0].split(" "),i=a[1].trim().split(" "),o="";s.length==2||s.length==1?s[0].length<4?o=s[0]+" "+s[1]:o=s[0]:s.length==3?o=s[0]+" "+s[1]:s.length==4&&(o=s[1]+" "+s[2]+" "+s[3]);var n=i[i.length-1]!=""?i[i.length-1].charAt(0):i[i.length-2]?i[i.length-2].charAt(0):"";o=o.replace(",","");var r=n+". "+o;return r},calcularEdad(e){var a=new Date(e),s=new Date,i=s-a,o=Math.floor(i/(1e3*60*60*24*365.25));return o},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var a=[];for(let s=0;s<e.length;s++)e[s].isSelected&&a.push(e[s].id);if(a.length==0&&(a=[1]),a.length==1)for(let s=0;s<e.length;s++)e[s].isSelected&&(this.nameLeagueSelected=e[s].name,this.seasonsFilterSelected=e[s].seasons[0].id);else this.seasonsFilterSelected=0,a.length>0&&(this.nameLeagueSelected=a.length+" Ligas");this.filterScounting.tournaments=a,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const i=e.ageByRange.min==0?10:e.ageByRange.min,o=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[i,o],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var a=[];if(e.hasOwnProperty("nationalities")){for(let i=0;i<e.nationalities.length;i++)e.nationalities[i].isSelected&&a.push(e.nationalities[i].id);a.length==0&&(a=[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=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var s=[];for(let i=0;i<e.positions.length;i++)e.positions[i].isSelected&&s.push(e.positions[i].id);s.length==0&&(s=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=s,this.filterScounting.nationalities=a},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var a=[];for(let s=0;s<e.productivityFilters.length;s++)a[e.productivityFilters[s].priority-1]={name:e.productivityFilters[s].name,ids:e.productivityFilters[s].id};a.length==0&&(a=[]),this.filterScounting.categories=a,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");a!==-1?this.arrayFiltersPlays[a].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var s=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;var s=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var a=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&a!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(a,1);var s=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(s!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&a!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(a,1);for(let n=0;n<this.categoriesDefault.length;n++)this.categoriesDefault[n].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var s=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){for(let n=0;n<this.FVfilterGolstats.length;n++)this.FVfilterGolstats[n].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.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(e,a){return Math.floor(Math.random()*(a-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let s=0;s<this.categoriesPlaysTypes.offensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.defensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.possession.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.offenses.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s])}else for(let s=0;s<e.playsCategories.length;s++)e.playsCategories[s].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[s].id),this.arrayCategoryFilterFull.push(e.playsCategories[s]));var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?a!=-1?this.arrayFiltersPlays[a].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):a!=-1?this.arrayFiltersPlays[a].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):a!==-1&&this.arrayFiltersPlays.splice(a,1)},async deleteLabelFilter(e){var a=this.arrayFiltersPlays.findIndex(i=>i.type===e);if(a!==-1){if(e=="onFiltersTournaments"&&(this.arrayFiltersPlays=[],setTimeout(()=>{},200)),e=="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(e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="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(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var s=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1);for(let i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(me.NATIONALITY)),e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(me.POSITION)),e=="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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(me.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(me.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(me.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:!1,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(a,1)},clickAll(){},clickAllAll(){},clickTeam(){},clickTeamScouting(){},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}},async changeTabsGeneral(e){this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.resetFilterTeamAndPlayers())},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let s=0;s<this.categoriesDefault.length;s++)this.categoriesDefault[s].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(a!==-1){for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=k.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.tournamentsUrl);return a},async fetchTeams(){const e=k.create({headers:{Authorization:`${this.token}`}}),{data:a}=await e.get(this.teamsUrl+this.seasonActive);return a},async fetchTeamsScouting(e){const a=k.create({headers:{Authorization:`${this.token}`}}),{data:s}=await a.get(this.teamsUrl+e);return s},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var a="";e.id==1?a=this.urlFilter:a=this.urlFilter;const s=k.create({headers:{Authorization:`${this.token}`}}),{data:i}=await s.get(a+e.id);if(Object.keys(i[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=i[0].match_lapse_combinations[m]}),Object.keys(i[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=i[0].playing_as_combinations[m]}),Object.keys(i[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=i[0].field_sections_combinations[m]}),i[0]){for(let m=0;m<i[0].filter_records.length;m++){var o=i[0].description;if(i[0].filter_records[m].field_sections!==void 0){const g=i[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[g]||this.predefinedFiltersSections[g]=="")&&(this.predefinedFiltersSections[g]==""?o=o.replace(" [en {field_sections}]",this.predefinedFiltersSections[g]):o=o.replace("{field_sections}",this.predefinedFiltersSections[g]))}if(i[0].filter_records[m].match_lapse!==void 0){const g=i[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[g]||this.predefinedFiltersMatchLapse[g]=="")&&(this.predefinedFiltersMatchLapse[g]==""?o=o.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[g]):o=o.replace("{match_lapse}",this.predefinedFiltersMatchLapse[g]))}if(i[0].filter_records[m].playing_as!==void 0){const g=i[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[g]||this.predefinedFiltersPlayingAs[g]=="")&&(this.predefinedFiltersPlayingAs[g]==""?o=o.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[g]):o=o.replace("{playing_as}",this.predefinedFiltersPlayingAs[g]))}i[0].filter_records[m].section_type!==void 0&&(this.optionSelected=="Jugadores"?o=o.replace("{section_type}","Jugadores"):o=o.replace("{section_type}","Equipos")),o=o.replace(/\[/g,""),o=o.replace(/\]/g,""),o=o.replace("{category_name}",i[0].category_name);const f=o.split(": ");var n=f[1];n.length>129&&this.windowWidth>1358&&(n=n.substring(0,129),n=n+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||i[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:e.name,id_category:i[0].id,title:f[0]+":",text:f[1],textOrigin:i[0].description,titledots:n,filtersPredefined:{matchResult:i[0].filter_records[m].match_result,playingAs:i[0].filter_records[m].playing_as,sections:i[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:i[0].type_zone,zone:i[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var c=0,p=new Set,d={},l=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(l=l.replace(/\*/g,""),l=l.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(c+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(c+=1),d.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let f=0;f<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;f++)p.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[f]);d.setNationalitiesIds=p}else p.add(138),p.add(222),p.add(163),p.add(51),p.add(226),p.add(10),p.add(223),p.add(96),p.add(171),p.add(198),p.add(105),p.add(80),p.add(29),p.add(74),p.add(216),p.add(196),p.add(64),p.add(155),p.add(156),p.add(89),p.add(106),p.add(81),p.add(233),p.add(204),d.setNationalitiesIds=p;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(c+=1),d.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(c+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,r.push({id:m+1,name:l,isSelected:!1,value:c,filters:d})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const a=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((l,m)=>l-m).toString();this.predefinedFiltersSections[a]||this.predefinedFiltersSections[a]==""?this.predefinedFiltersSections[a]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[a]):e=e.replace("{field_sections}",this.predefinedFiltersSections[a]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var s=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(s=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(s||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.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?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.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?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.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]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.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]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[i]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[i]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var o="";i.includes(1)&&(o=o+"0-15, "),i.includes(2)&&(o=o+"16-30, "),i.includes(3)&&(o=o+"31-45, "),i.includes(4)&&(o=o+"46-60, "),i.includes(5)&&(o=o+"61-75, "),i.includes(6)&&(o=o+"76-90, "),o=o.slice(0,-2),o=o.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",o)}const n=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[n]||this.predefinedFiltersPlayingAs[n]=="")&&(this.predefinedFiltersPlayingAs[n]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[n]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[n])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=e.split(": ");let c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),p=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=c,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const d=p.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let l=1;l<=d.length;l++)l%2===0||(p=p.replace("*",'<span style="color: #ffff03" >'));else p=p.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=p},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&this.changeTabsGeneral(this.defaultSection)},async created(){try{const e=k.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(s=>(delete s.headers.Authorization,s));const a=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});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(e){throw new Error(e)}}},ep={ref:"myDivRefTopsFull",style:{width:"100%","max-width":"100%","box-sizing":"border-box"}};function tp(e,a,s,i,o,n){const r=t.resolveComponent("GSCTopCategory");return t.openBlock(),t.createElementBlock("div",ep,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.categoryView,(c,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(r,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":o.isTeam,carrousel:s.carrousel,arrow:s.arrow,"border-width":0,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:0,category:c.id,"type-table":o.typeTable,categoryName:c.name,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,"num-rows":s.numRows,key:o.updateTables,"dummy-data":c.id===0?s.dummyData:null},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","carrousel","arrow","can-play-videos","game-id","game","category","type-table","categoryName","season-selected","season","filter-team","num-rows","dummy-data"]))],2))),128))],512)}const sp=j(Qm,[["render",tp],["__cssModules",{$style:Ym}]]),ap=[{top:"01",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow@2x.png",id:9991,age:25,team:"DUM",teamid:1,position:"DEL",positionId:9,positionfull:"Delantero",country:138,effectiveness:100,minutes:90,games:1,date:"01-01-1999",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0},{top:"02",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",id:9992,age:27,team:"DUM",teamname:"Dummy FC",teamid:1,position:"MED",positionId:7,positionfull:"Medio",country:138,effectiveness:95,minutes:85,games:1,date:"02-02-1998",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0},{top:"03",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",id:9993,age:22,team:"DUM",teamname:"Dummy FC",teamid:1,position:"DEF",positionId:2,positionfull:"Defensa",country:138,effectiveness:90,minutes:80,games:1,date:"03-03-2000",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0},{top:"04",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",id:9994,age:24,team:"DUM",teamname:"Dummy FC",teamid:1,position:"POR",positionId:1,positionfull:"Portero",country:138,effectiveness:88,minutes:70,games:1,date:"04-04-1997",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0},{top:"05",name:"Nombre Jugador",name_short:"Nombre Jugador",img:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",id:9995,age:28,team:"DUM",teamname:"Dummy FC",teamid:1,position:"LAT",positionId:3,positionfull:"Lateral",country:138,effectiveness:85,minutes:60,games:1,date:"05-05-1995",nationality:"Mexicano",player_country_flag:"https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png",categoryName:"Pases acertados",total:0}],ip={class:"gsc-top-player"},np=j({__name:"gsc-top-player",props:{categoryView:{type:Array,default:()=>[]},canPlayVideos:{type:Boolean,default:!0},carrousel:{type:Boolean,default:!1},arrow:{type:Boolean,default:!1},type:{type:Number,default:1},game:{type:Object,default:()=>({})},gamed:{type:Number,default:90209},season:{type:Number,default:1909},teamView:{type:Number,default:0},numRows:{type:Number,default:5}},setup(e){const a=e,s=a.categoryView.length===1&&a.categoryView[0].id===0?ap:null;return(i,o)=>(t.openBlock(),t.createElementBlock("div",ip,[t.createVNode(sp,{"can-play-videos":e.canPlayVideos,carrousel:e.carrousel,arrow:e.arrow,"type-data":e.type,"game-id":e.gamed,game:e.game,"season-active":e.season,teamselect:e.teamView,"category-view":e.categoryView,"num-rows":e.numRows,"dummy-data":t.unref(s)},null,8,["can-play-videos","carrousel","arrow","type-data","game-id","game","season-active","teamselect","category-view","num-rows","dummy-data"])]))}},[["__scopeId","data-v-e448af41"]]),op={class:"subcategory-group"},rp={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(a,s)=>(t.openBlock(),t.createElementBlock("div",op,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,i=>(t.openBlock(),t.createBlock(t.unref(pt),{key:i.id,modelValue:i.isSelected,"onUpdate:modelValue":o=>i.isSelected=o,label:i.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},lp=I(rp,[["__scopeId","data-v-ae6f3d72"]]),cp={class:"filter-subcategories"},dp=Object.freeze(Object.defineProperty({__proto__:null,default:I({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(a,s)=>(t.openBlock(),t.createElementBlock("div",cp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,i=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"filter-subcategories__group"},[t.createVNode(lp,{subcategoryGroup:i},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Je=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),mp={class:"details__header"},pp=Je(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),fp={class:"details__header__checkbox"},up={class:"details__body"},hp={class:"details__body__playing-as"},yp=["onClick"],gp={class:"details__header"},_p=Je(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),bp={class:"details__header__checkbox"},Tp={class:"details__body"},Sp=Je(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),wp={class:"details__body__game-section"},Cp=["onClick"],Ep={class:"details__body"},kp=Je(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Np={class:"details__body__game-section"},xp=["onClick"],Vp=Object.freeze(Object.defineProperty({__proto__:null,default:I({__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(e){const a=e;t.useCssVars(l=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const s=t.computed(()=>a.playingAs.every(l=>l.isSelected)),i=t.computed(()=>a.gameSections.every(l=>l.isSelected)),o=t.computed(()=>a.gameSections.reduce((l,m)=>(m.value<=3?l.firstHalf.push(m):l.secondHalf.push(m),l),{firstHalf:[],secondHalf:[]})),n=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function r(l){l?a.playingAs.forEach(m=>{m.isSelected=!0}):a.playingAs.forEach((m,f)=>{m.isSelected=f===0})}function c(l){a.playingAs.filter(m=>m.isSelected).length===1&&l.isSelected||(l.isSelected=!l.isSelected)}function p(l){a.gameSections.filter(m=>m.isSelected).length===1&&l.isSelected||(l.isSelected=!l.isSelected)}function d(l){l?a.gameSections.forEach(m=>{m.isSelected=!0}):a.gameSections.forEach((m,f)=>{m.isSelected=f===0})}return(l,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",mp,[pp,t.createElementVNode("div",fp,[t.createVNode(t.unref(pt),{label:"Todos","model-value":s.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),t.createElementVNode("div",up,[t.createElementVNode("div",hp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(f,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:y=>c(f)},t.toDisplayString(f.name),11,yp))),128))])]),t.createElementVNode("div",gp,[_p,t.createElementVNode("div",bp,[t.createVNode(t.unref(pt),{label:"Todos","model-value":i.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",Tp,[Sp,t.createElementVNode("div",wp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value.firstHalf,(f,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:y=>p(f)},t.toDisplayString(f.text),11,Cp))),128))])]),t.createElementVNode("div",Ep,[kp,t.createElementVNode("div",Np,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value.secondHalf,(f,g)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${g}`,class:t.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:y=>p(f)},t.toDisplayString(f.text),11,xp))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Pp={class:"filter-field"},Fp=Object.freeze(Object.defineProperty({__proto__:null,default:I({__name:"FilterField",setup(e){const a=t.ref(Array.from({length:16},(i,o)=>o+1));function s(){}return(i,o)=>(t.openBlock(),t.createElementBlock("div",Pp,[t.createVNode(t.unref(Ir),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));H.GscTopPlayer=np,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as E, onMounted as Nt, onUnmounted as Yi, createElementBlock as h, openBlock as m, createCommentVNode as S, normalizeStyle as I, normalizeClass as u, toDisplayString as C, createElementVNode as o, useCssVars as H, resolveComponent as ae, Fragment as O, createVNode as F, createTextVNode as
|
|
1
|
+
import { ref as E, onMounted as Nt, onUnmounted as Yi, createElementBlock as h, openBlock as m, createCommentVNode as S, normalizeStyle as I, normalizeClass as u, toDisplayString as C, createElementVNode as o, useCssVars as H, resolveComponent as ae, Fragment as O, createVNode as F, createTextVNode as te, pushScopeId as me, popScopeId as he, createBlock as M, renderList as ge, defineComponent as Xi, computed as q, normalizeProps as qe, guardReactiveProps as He, unref as re, mergeProps as Bt, withCtx as ue, watch as ke, defineAsyncComponent as ft, KeepAlive as Qi, resolveDynamicComponent as ea, onBeforeMount as ta, renderSlot as as, Transition as sa, withDirectives as ns, vShow as rs } from "vue";
|
|
2
2
|
function ei(e, s) {
|
|
3
3
|
return function() {
|
|
4
4
|
return e.apply(s, arguments);
|
|
@@ -7,11 +7,11 @@ function ei(e, s) {
|
|
|
7
7
|
const { toString: ia } = Object.prototype, { getPrototypeOf: Ot } = Object, { iterator: Ke, toStringTag: ti } = Symbol, Ze = /* @__PURE__ */ ((e) => (s) => {
|
|
8
8
|
const t = ia.call(s);
|
|
9
9
|
return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), Z = (e) => (e = e.toLowerCase(), (s) => Ze(s) === e), Ye = (e) => (s) => typeof s === e, { isArray: _e } = Array, Ae = Ye("undefined");
|
|
11
11
|
function aa(e) {
|
|
12
12
|
return e !== null && !Ae(e) && e.constructor !== null && !Ae(e.constructor) && $(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
13
|
}
|
|
14
|
-
const si =
|
|
14
|
+
const si = Z("ArrayBuffer");
|
|
15
15
|
function na(e) {
|
|
16
16
|
let s;
|
|
17
17
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? s = ArrayBuffer.isView(e) : s = e && e.buffer && si(e.buffer), s;
|
|
@@ -21,11 +21,11 @@ const ra = Ye("string"), $ = Ye("function"), ii = Ye("number"), Xe = (e) => e !=
|
|
|
21
21
|
return !1;
|
|
22
22
|
const s = Ot(e);
|
|
23
23
|
return (s === null || s === Object.prototype || Object.getPrototypeOf(s) === null) && !(ti in e) && !(Ke in e);
|
|
24
|
-
}, la =
|
|
24
|
+
}, la = Z("Date"), da = Z("File"), ca = Z("Blob"), ua = Z("FileList"), pa = (e) => Xe(e) && $(e.pipe), fa = (e) => {
|
|
25
25
|
let s;
|
|
26
26
|
return e && (typeof FormData == "function" && e instanceof FormData || $(e.append) && ((s = Ze(e)) === "formdata" || // detect form-data instance
|
|
27
27
|
s === "object" && $(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
-
}, ma =
|
|
28
|
+
}, ma = Z("URLSearchParams"), [ha, ya, ga, _a] = ["ReadableStream", "Request", "Response", "Headers"].map(Z), ba = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
29
|
function Re(e, s, { allOwnKeys: t = !1 } = {}) {
|
|
30
30
|
if (e === null || typeof e > "u")
|
|
31
31
|
return;
|
|
@@ -101,12 +101,12 @@ const va = (e, s, t, { allOwnKeys: i } = {}) => (Re(s, (n, a) => {
|
|
|
101
101
|
for (; (t = e.exec(s)) !== null; )
|
|
102
102
|
i.push(t);
|
|
103
103
|
return i;
|
|
104
|
-
}, Aa =
|
|
104
|
+
}, Aa = Z("HTMLFormElement"), Ea = (e) => e.toLowerCase().replace(
|
|
105
105
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
106
106
|
function(t, i, n) {
|
|
107
107
|
return i.toUpperCase() + n;
|
|
108
108
|
}
|
|
109
|
-
), os = (({ hasOwnProperty: e }) => (s, t) => e.call(s, t))(Object.prototype), Ra =
|
|
109
|
+
), os = (({ hasOwnProperty: e }) => (s, t) => e.call(s, t))(Object.prototype), Ra = Z("RegExp"), ri = (e, s) => {
|
|
110
110
|
const t = Object.getOwnPropertyDescriptors(e), i = {};
|
|
111
111
|
Re(t, (n, a) => {
|
|
112
112
|
let r;
|
|
@@ -156,7 +156,7 @@ const La = (e) => {
|
|
|
156
156
|
return i;
|
|
157
157
|
};
|
|
158
158
|
return t(e, 0);
|
|
159
|
-
}, Ga =
|
|
159
|
+
}, Ga = Z("AsyncFunction"), za = (e) => e && (Xe(e) || $(e)) && $(e.then) && $(e.catch), oi = ((e, s) => e ? setImmediate : s ? ((t, i) => (le.addEventListener("message", ({ source: n, data: a }) => {
|
|
160
160
|
n === le && a === t && i.length && i.shift()();
|
|
161
161
|
}, !1), (n) => {
|
|
162
162
|
i.push(n), le.postMessage(t, "*");
|
|
@@ -196,7 +196,7 @@ const La = (e) => {
|
|
|
196
196
|
inherits: wa,
|
|
197
197
|
toFlatObject: Sa,
|
|
198
198
|
kindOf: Ze,
|
|
199
|
-
kindOfTest:
|
|
199
|
+
kindOfTest: Z,
|
|
200
200
|
endsWith: Ca,
|
|
201
201
|
toArray: xa,
|
|
202
202
|
forEachEntry: Fa,
|
|
@@ -1382,7 +1382,7 @@ function En(e, s, t) {
|
|
|
1382
1382
|
const Le = {
|
|
1383
1383
|
assertOptions: En,
|
|
1384
1384
|
validators: tt
|
|
1385
|
-
},
|
|
1385
|
+
}, X = Le.validators;
|
|
1386
1386
|
let ce = class {
|
|
1387
1387
|
constructor(s) {
|
|
1388
1388
|
this.defaults = s || {}, this.interceptors = {
|
|
@@ -1419,17 +1419,17 @@ let ce = class {
|
|
|
1419
1419
|
typeof s == "string" ? (t = t || {}, t.url = s) : t = s || {}, t = pe(this.defaults, t);
|
|
1420
1420
|
const { transitional: i, paramsSerializer: n, headers: a } = t;
|
|
1421
1421
|
i !== void 0 && Le.assertOptions(i, {
|
|
1422
|
-
silentJSONParsing:
|
|
1423
|
-
forcedJSONParsing:
|
|
1424
|
-
clarifyTimeoutError:
|
|
1422
|
+
silentJSONParsing: X.transitional(X.boolean),
|
|
1423
|
+
forcedJSONParsing: X.transitional(X.boolean),
|
|
1424
|
+
clarifyTimeoutError: X.transitional(X.boolean)
|
|
1425
1425
|
}, !1), n != null && (y.isFunction(n) ? t.paramsSerializer = {
|
|
1426
1426
|
serialize: n
|
|
1427
1427
|
} : Le.assertOptions(n, {
|
|
1428
|
-
encode:
|
|
1429
|
-
serialize:
|
|
1428
|
+
encode: X.function,
|
|
1429
|
+
serialize: X.function
|
|
1430
1430
|
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), Le.assertOptions(t, {
|
|
1431
|
-
baseUrl:
|
|
1432
|
-
withXsrfToken:
|
|
1431
|
+
baseUrl: X.spelling("baseURL"),
|
|
1432
|
+
withXsrfToken: X.spelling("withXSRFToken")
|
|
1433
1433
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1434
1434
|
let r = a && y.merge(
|
|
1435
1435
|
a.common,
|
|
@@ -2761,9 +2761,9 @@ function Id(e, s, t, i, n, a) {
|
|
|
2761
2761
|
class: u(a.manchesterUnitedClass)
|
|
2762
2762
|
}, [
|
|
2763
2763
|
i.elementSize.width <= 420 ? (m(), h(O, { key: 0 }, [
|
|
2764
|
-
|
|
2764
|
+
te(C(t.data.player_short), 1)
|
|
2765
2765
|
], 64)) : (m(), h(O, { key: 1 }, [
|
|
2766
|
-
|
|
2766
|
+
te(C(t.data.player_name), 1)
|
|
2767
2767
|
], 64))
|
|
2768
2768
|
], 2)
|
|
2769
2769
|
], 2)
|
|
@@ -3364,9 +3364,9 @@ function zu(e, s, t, i, n, a) {
|
|
|
3364
3364
|
o("p", {
|
|
3365
3365
|
class: u(e.$style.promedioPartidoType1)
|
|
3366
3366
|
}, s[0] || (s[0] = [
|
|
3367
|
-
|
|
3367
|
+
te("Promedio partido"),
|
|
3368
3368
|
o("br", null, null, -1),
|
|
3369
|
-
|
|
3369
|
+
te("Torneo anterior")
|
|
3370
3370
|
]), 2)
|
|
3371
3371
|
], 2)
|
|
3372
3372
|
], 2)) : S("", !0),
|
|
@@ -3380,9 +3380,9 @@ function zu(e, s, t, i, n, a) {
|
|
|
3380
3380
|
o("p", {
|
|
3381
3381
|
class: u(e.$style.promedioPartidoType1)
|
|
3382
3382
|
}, s[1] || (s[1] = [
|
|
3383
|
-
|
|
3383
|
+
te("Partidos "),
|
|
3384
3384
|
o("br", null, null, -1),
|
|
3385
|
-
|
|
3385
|
+
te("Jugados")
|
|
3386
3386
|
]), 2)
|
|
3387
3387
|
], 2)
|
|
3388
3388
|
], 2)) : S("", !0)
|
|
@@ -3763,7 +3763,7 @@ function Ap(e, s, t, i, n, a) {
|
|
|
3763
3763
|
o("span", {
|
|
3764
3764
|
class: u(e.$style.aosGames)
|
|
3765
3765
|
}, [
|
|
3766
|
-
|
|
3766
|
+
te(C(t.data.nationality.substring(0, 3).toUpperCase()) + " ", 1),
|
|
3767
3767
|
o("div", {
|
|
3768
3768
|
class: u(e.$style.countryFlag)
|
|
3769
3769
|
}, [
|
|
@@ -5064,11 +5064,11 @@ function Gp(e, s, t, i, n, a) {
|
|
|
5064
5064
|
]))) : (m(), h(O, { key: 1 }, [
|
|
5065
5065
|
s[4] || (s[4] = o("div", { class: "container-no-search-result-title" }, "No existen resultados", -1)),
|
|
5066
5066
|
s[5] || (s[5] = o("div", { class: "container-no-search-result-subtitle" }, [
|
|
5067
|
-
|
|
5067
|
+
te(" No existen resultados para este tipo de"),
|
|
5068
5068
|
o("br"),
|
|
5069
|
-
|
|
5069
|
+
te(" jugada, considerando el torneo y otros"),
|
|
5070
5070
|
o("br"),
|
|
5071
|
-
|
|
5071
|
+
te(" filtros que has seleccionado. ")
|
|
5072
5072
|
], -1))
|
|
5073
5073
|
], 64))
|
|
5074
5074
|
]))
|
|
@@ -6771,11 +6771,11 @@ function Pi(e, s) {
|
|
|
6771
6771
|
const { toString: mm } = Object.prototype, { getPrototypeOf: Zt } = Object, { iterator: st, toStringTag: Fi } = Symbol, it = /* @__PURE__ */ ((e) => (s) => {
|
|
6772
6772
|
const t = mm.call(s);
|
|
6773
6773
|
return e[t] || (e[t] = t.slice(8, -1).toLowerCase());
|
|
6774
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
6774
|
+
})(/* @__PURE__ */ Object.create(null)), Y = (e) => (e = e.toLowerCase(), (s) => it(s) === e), at = (e) => (s) => typeof s === e, { isArray: ve } = Array, Ee = at("undefined");
|
|
6775
6775
|
function hm(e) {
|
|
6776
6776
|
return e !== null && !Ee(e) && e.constructor !== null && !Ee(e.constructor) && j(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
6777
6777
|
}
|
|
6778
|
-
const ki =
|
|
6778
|
+
const ki = Y("ArrayBuffer");
|
|
6779
6779
|
function ym(e) {
|
|
6780
6780
|
let s;
|
|
6781
6781
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? s = ArrayBuffer.isView(e) : s = e && e.buffer && ki(e.buffer), s;
|
|
@@ -6785,11 +6785,11 @@ const gm = at("string"), j = at("function"), Ai = at("number"), nt = (e) => e !=
|
|
|
6785
6785
|
return !1;
|
|
6786
6786
|
const s = Zt(e);
|
|
6787
6787
|
return (s === null || s === Object.prototype || Object.getPrototypeOf(s) === null) && !(Fi in e) && !(st in e);
|
|
6788
|
-
}, bm =
|
|
6788
|
+
}, bm = Y("Date"), vm = Y("File"), Tm = Y("Blob"), wm = Y("FileList"), Sm = (e) => nt(e) && j(e.pipe), Cm = (e) => {
|
|
6789
6789
|
let s;
|
|
6790
6790
|
return e && (typeof FormData == "function" && e instanceof FormData || j(e.append) && ((s = it(e)) === "formdata" || // detect form-data instance
|
|
6791
6791
|
s === "object" && j(e.toString) && e.toString() === "[object FormData]"));
|
|
6792
|
-
}, xm =
|
|
6792
|
+
}, xm = Y("URLSearchParams"), [Pm, Fm, km, Am] = ["ReadableStream", "Request", "Response", "Headers"].map(Y), Em = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
6793
6793
|
function Be(e, s, { allOwnKeys: t = !1 } = {}) {
|
|
6794
6794
|
if (e === null || typeof e > "u")
|
|
6795
6795
|
return;
|
|
@@ -6869,12 +6869,12 @@ const Rm = (e, s, t, { allOwnKeys: i } = {}) => (Be(s, (n, a) => {
|
|
|
6869
6869
|
for (; (t = e.exec(s)) !== null; )
|
|
6870
6870
|
i.push(t);
|
|
6871
6871
|
return i;
|
|
6872
|
-
}, Wm =
|
|
6872
|
+
}, Wm = Y("HTMLFormElement"), Mm = (e) => e.toLowerCase().replace(
|
|
6873
6873
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
6874
6874
|
function(s, t, i) {
|
|
6875
6875
|
return t.toUpperCase() + i;
|
|
6876
6876
|
}
|
|
6877
|
-
), Ws = (({ hasOwnProperty: e }) => (s, t) => e.call(s, t))(Object.prototype), Dm =
|
|
6877
|
+
), Ws = (({ hasOwnProperty: e }) => (s, t) => e.call(s, t))(Object.prototype), Dm = Y("RegExp"), Ii = (e, s) => {
|
|
6878
6878
|
const t = Object.getOwnPropertyDescriptors(e), i = {};
|
|
6879
6879
|
Be(t, (n, a) => {
|
|
6880
6880
|
let r;
|
|
@@ -6924,7 +6924,7 @@ const Hm = (e) => {
|
|
|
6924
6924
|
return i;
|
|
6925
6925
|
};
|
|
6926
6926
|
return t(e, 0);
|
|
6927
|
-
}, Km =
|
|
6927
|
+
}, Km = Y("AsyncFunction"), Zm = (e) => e && (nt(e) || j(e)) && j(e.then) && j(e.catch), Ni = ((e, s) => e ? setImmediate : s ? ((t, i) => (de.addEventListener("message", ({ source: n, data: a }) => {
|
|
6928
6928
|
n === de && a === t && i.length && i.shift()();
|
|
6929
6929
|
}, !1), (n) => {
|
|
6930
6930
|
i.push(n), de.postMessage(t, "*");
|
|
@@ -6964,7 +6964,7 @@ const Hm = (e) => {
|
|
|
6964
6964
|
inherits: Nm,
|
|
6965
6965
|
toFlatObject: Bm,
|
|
6966
6966
|
kindOf: it,
|
|
6967
|
-
kindOfTest:
|
|
6967
|
+
kindOfTest: Y,
|
|
6968
6968
|
endsWith: Om,
|
|
6969
6969
|
toArray: Vm,
|
|
6970
6970
|
forEachEntry: Gm,
|
|
@@ -7560,9 +7560,9 @@ g.reduceDescriptors(ot.prototype, ({ value: e }, s) => {
|
|
|
7560
7560
|
};
|
|
7561
7561
|
});
|
|
7562
7562
|
g.freezeMethods(ot);
|
|
7563
|
-
const
|
|
7563
|
+
const K = ot;
|
|
7564
7564
|
function _t(e, s) {
|
|
7565
|
-
const t = this || es, i = s || t, n =
|
|
7565
|
+
const t = this || es, i = s || t, n = K.from(i.headers);
|
|
7566
7566
|
let a = i.data;
|
|
7567
7567
|
return g.forEach(e, function(r) {
|
|
7568
7568
|
a = r.call(t, a, n.normalize(), s ? s.status : void 0);
|
|
@@ -7685,7 +7685,7 @@ function $i(e, s, t) {
|
|
|
7685
7685
|
let i = !Fh(s);
|
|
7686
7686
|
return e && (i || t == !1) ? kh(e, s) : s;
|
|
7687
7687
|
}
|
|
7688
|
-
const qs = (e) => e instanceof
|
|
7688
|
+
const qs = (e) => e instanceof K ? { ...e } : e;
|
|
7689
7689
|
function fe(e, s) {
|
|
7690
7690
|
s = s || {};
|
|
7691
7691
|
const t = {};
|
|
@@ -7755,7 +7755,7 @@ function fe(e, s) {
|
|
|
7755
7755
|
const Ui = (e) => {
|
|
7756
7756
|
const s = fe({}, e);
|
|
7757
7757
|
let { data: t, withXSRFToken: i, xsrfHeaderName: n, xsrfCookieName: a, headers: r, auth: d } = s;
|
|
7758
|
-
s.headers = r =
|
|
7758
|
+
s.headers = r = K.from(r), s.url = Gi($i(s.baseURL, s.url, s.allowAbsoluteUrls), e.params, e.paramsSerializer), d && r.set(
|
|
7759
7759
|
"Authorization",
|
|
7760
7760
|
"Basic " + btoa((d.username || "") + ":" + (d.password ? unescape(encodeURIComponent(d.password)) : ""))
|
|
7761
7761
|
);
|
|
@@ -7777,7 +7777,7 @@ const Ui = (e) => {
|
|
|
7777
7777
|
return new Promise(function(s, t) {
|
|
7778
7778
|
const i = Ui(e);
|
|
7779
7779
|
let n = i.data;
|
|
7780
|
-
const a =
|
|
7780
|
+
const a = K.from(i.headers).normalize();
|
|
7781
7781
|
let { responseType: r, onUploadProgress: d, onDownloadProgress: f } = i, c, l, p, _, T;
|
|
7782
7782
|
function b() {
|
|
7783
7783
|
_ && _(), T && T(), i.cancelToken && i.cancelToken.unsubscribe(c), i.signal && i.signal.removeEventListener("abort", c);
|
|
@@ -7787,7 +7787,7 @@ const Ui = (e) => {
|
|
|
7787
7787
|
function w() {
|
|
7788
7788
|
if (!v)
|
|
7789
7789
|
return;
|
|
7790
|
-
const x =
|
|
7790
|
+
const x = K.from(
|
|
7791
7791
|
"getAllResponseHeaders" in v && v.getAllResponseHeaders()
|
|
7792
7792
|
), R = {
|
|
7793
7793
|
data: !r || r === "text" || r === "json" ? v.responseText : v.response,
|
|
@@ -8020,7 +8020,7 @@ const Gh = async (e) => {
|
|
|
8020
8020
|
return !R && v && v(), await new Promise((B, G) => {
|
|
8021
8021
|
Di(B, G, {
|
|
8022
8022
|
data: V,
|
|
8023
|
-
headers:
|
|
8023
|
+
headers: K.from(x.headers),
|
|
8024
8024
|
status: x.status,
|
|
8025
8025
|
statusText: x.statusText,
|
|
8026
8026
|
config: e,
|
|
@@ -8085,7 +8085,7 @@ function bt(e) {
|
|
|
8085
8085
|
throw new Te(null, e);
|
|
8086
8086
|
}
|
|
8087
8087
|
function Ys(e) {
|
|
8088
|
-
return bt(e), e.headers =
|
|
8088
|
+
return bt(e), e.headers = K.from(e.headers), e.data = _t.call(
|
|
8089
8089
|
e,
|
|
8090
8090
|
e.transformRequest
|
|
8091
8091
|
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), qi.getAdapter(e.adapter || es.adapter)(e).then(function(s) {
|
|
@@ -8093,13 +8093,13 @@ function Ys(e) {
|
|
|
8093
8093
|
e,
|
|
8094
8094
|
e.transformResponse,
|
|
8095
8095
|
s
|
|
8096
|
-
), s.headers =
|
|
8096
|
+
), s.headers = K.from(s.headers), s;
|
|
8097
8097
|
}, function(s) {
|
|
8098
8098
|
return Mi(s) || (bt(e), s && s.response && (s.response.data = _t.call(
|
|
8099
8099
|
e,
|
|
8100
8100
|
e.transformResponse,
|
|
8101
8101
|
s.response
|
|
8102
|
-
), s.response.headers =
|
|
8102
|
+
), s.response.headers = K.from(s.response.headers))), Promise.reject(s);
|
|
8103
8103
|
});
|
|
8104
8104
|
}
|
|
8105
8105
|
const Hi = "1.9.0", dt = {};
|
|
@@ -8150,7 +8150,7 @@ function Dh(e, s, t) {
|
|
|
8150
8150
|
const We = {
|
|
8151
8151
|
assertOptions: Dh,
|
|
8152
8152
|
validators: dt
|
|
8153
|
-
},
|
|
8153
|
+
}, Q = We.validators;
|
|
8154
8154
|
class Je {
|
|
8155
8155
|
constructor(s) {
|
|
8156
8156
|
this.defaults = s || {}, this.interceptors = {
|
|
@@ -8187,17 +8187,17 @@ class Je {
|
|
|
8187
8187
|
typeof s == "string" ? (t = t || {}, t.url = s) : t = s || {}, t = fe(this.defaults, t);
|
|
8188
8188
|
const { transitional: i, paramsSerializer: n, headers: a } = t;
|
|
8189
8189
|
i !== void 0 && We.assertOptions(i, {
|
|
8190
|
-
silentJSONParsing:
|
|
8191
|
-
forcedJSONParsing:
|
|
8192
|
-
clarifyTimeoutError:
|
|
8190
|
+
silentJSONParsing: Q.transitional(Q.boolean),
|
|
8191
|
+
forcedJSONParsing: Q.transitional(Q.boolean),
|
|
8192
|
+
clarifyTimeoutError: Q.transitional(Q.boolean)
|
|
8193
8193
|
}, !1), n != null && (g.isFunction(n) ? t.paramsSerializer = {
|
|
8194
8194
|
serialize: n
|
|
8195
8195
|
} : We.assertOptions(n, {
|
|
8196
|
-
encode:
|
|
8197
|
-
serialize:
|
|
8196
|
+
encode: Q.function,
|
|
8197
|
+
serialize: Q.function
|
|
8198
8198
|
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : t.allowAbsoluteUrls = !0), We.assertOptions(t, {
|
|
8199
|
-
baseUrl:
|
|
8200
|
-
withXsrfToken:
|
|
8199
|
+
baseUrl: Q.spelling("baseURL"),
|
|
8200
|
+
withXsrfToken: Q.spelling("withXSRFToken")
|
|
8201
8201
|
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
8202
8202
|
let r = a && g.merge(
|
|
8203
8203
|
a.common,
|
|
@@ -8208,7 +8208,7 @@ class Je {
|
|
|
8208
8208
|
(b) => {
|
|
8209
8209
|
delete a[b];
|
|
8210
8210
|
}
|
|
8211
|
-
), t.headers =
|
|
8211
|
+
), t.headers = K.concat(r, a);
|
|
8212
8212
|
const d = [];
|
|
8213
8213
|
let f = !0;
|
|
8214
8214
|
this.interceptors.request.forEach(function(b) {
|
|
@@ -8449,7 +8449,7 @@ L.all = function(e) {
|
|
|
8449
8449
|
L.spread = Uh;
|
|
8450
8450
|
L.isAxiosError = jh;
|
|
8451
8451
|
L.mergeConfig = fe;
|
|
8452
|
-
L.AxiosHeaders =
|
|
8452
|
+
L.AxiosHeaders = K;
|
|
8453
8453
|
L.formToJSON = (e) => Wi(g.isHTMLForm(e) ? new FormData(e) : e);
|
|
8454
8454
|
L.getAdapter = qi.getAdapter;
|
|
8455
8455
|
L.HttpStatusCode = Jh;
|
|
@@ -8832,11 +8832,11 @@ const qh = {
|
|
|
8832
8832
|
},
|
|
8833
8833
|
setup(e) {
|
|
8834
8834
|
const s = e, t = ft(
|
|
8835
|
-
() => import("./FilterSubcategories-a9b32cc9-
|
|
8835
|
+
() => import("./FilterSubcategories-a9b32cc9-kojMDEWU.js")
|
|
8836
8836
|
), i = ft(
|
|
8837
|
-
() => import("./FilterConditions-55d68355-
|
|
8837
|
+
() => import("./FilterConditions-55d68355-D7c85b60.js")
|
|
8838
8838
|
), n = ft(
|
|
8839
|
-
() => import("./FilterField-59a73e38-
|
|
8839
|
+
() => import("./FilterField-59a73e38-DmiT50dq.js")
|
|
8840
8840
|
), a = [
|
|
8841
8841
|
{
|
|
8842
8842
|
name: "Sub categorías",
|
|
@@ -9288,7 +9288,7 @@ Xi({
|
|
|
9288
9288
|
}
|
|
9289
9289
|
});
|
|
9290
9290
|
Array.from({ length: 24 }, (e, s) => s + 1);
|
|
9291
|
-
|
|
9291
|
+
ee(2, It()), ee(2, It()), ee(1, ne(1)), ee(1, ne(1)), ee(1, ne(2)), ee(1, ne(2)), ee(1, ne(3)), ee(1, ne(3)), ee(1, ne(4)), ee(1, ne(4));
|
|
9292
9292
|
function It() {
|
|
9293
9293
|
return [
|
|
9294
9294
|
[337, 1],
|
|
@@ -9329,7 +9329,7 @@ function ne(e) {
|
|
|
9329
9329
|
return [13, 14, 15, 16];
|
|
9330
9330
|
}
|
|
9331
9331
|
}
|
|
9332
|
-
function
|
|
9332
|
+
function ee(e = 1, s = null) {
|
|
9333
9333
|
return {
|
|
9334
9334
|
origin_zones: e === 1 ? Qs() : It(),
|
|
9335
9335
|
destiny_zones: s || Qs(),
|
|
@@ -11127,7 +11127,6 @@ function x_(e, s, t, i, n, a) {
|
|
|
11127
11127
|
key: f,
|
|
11128
11128
|
class: u(e.toniKroosWrapperClass)
|
|
11129
11129
|
}, [
|
|
11130
|
-
K(C(t.game) + " ", 1),
|
|
11131
11130
|
(m(), M(r, {
|
|
11132
11131
|
"is-widget": t.isWidget,
|
|
11133
11132
|
"team-widget": t.teamWidget,
|
package/package.json
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<div ref="myDivRefTopsFull" style="width: 100%; max-width: 100%; box-sizing: border-box">
|
|
3
3
|
<template v-for="(category, index) in categoryView" :key="index">
|
|
4
4
|
<div :class="toniKroosWrapperClass">
|
|
5
|
-
{{ game }}
|
|
6
5
|
<GSCTopCategory
|
|
7
6
|
:is-widget="isWidget"
|
|
8
7
|
:team-widget="teamWidget"
|