@golstats/gsc-game-data 1.0.252 → 1.0.253
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-67a56ee9-DJHnVsu6-ae14227b.js → FilterConditions-67a56ee9-DJHnVsu6-c23c2991.js} +1 -1
- package/dist/{FilterConditions-67a56ee9-5fe1dba2.js → FilterConditions-67a56ee9-f1f2815e.js} +1 -1
- package/dist/{FilterField-1d2345af-DKrCxsxc-5ae92f6c.js → FilterField-1d2345af-DKrCxsxc-ff312fe7.js} +1 -1
- package/dist/{FilterField-1d2345af-5e5882ac.js → FilterField-1d2345af-fc054644.js} +1 -1
- package/dist/{FilterSubcategories-92dfe0dc-d18aa458.js → FilterSubcategories-92dfe0dc-1b8379cf.js} +1 -1
- package/dist/{FilterSubcategories-92dfe0dc-kpy809mL-92f860b9.js → FilterSubcategories-92dfe0dc-kpy809mL-b246bab0.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +5 -5
- package/dist/{index-fe77ff7f.js → index-f3c12930.js} +105 -90
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[cO]=this[cO]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=g2(c);i[g]||(fke(B,c),i[g]=!0)}return hr.isArray(r)?r.forEach(D):D(r),this}};b3.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),hr.reduceDescriptors(b3.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),hr.freezeMethods(b3);const $p=b3;function f7(e,r){const i=this||h7,B=r||i,D=$p.from(B.headers);let c=B.data;return hr.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function dO(e){return!!(e&&e.__CANCEL__)}function ly(e,r,i){Yo.call(this,e??"canceled",Yo.ERR_CANCELED,r,i),this.name="CanceledError"}hr.inherits(ly,Yo,{__CANCEL__:!0});function uO(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Yo("Request failed with status code "+i.status,[Yo.ERR_BAD_REQUEST,Yo.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function mke(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function gke(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function yke(e,r){let i=0,B=1e3/r,D,c;const g=(a,y=Date.now())=>{i=y,D=null,c&&(clearTimeout(c),c=null),e.apply(null,a)};return[(...a)=>{const y=Date.now(),f=y-i;f>=B?g(a,y):(D=a,c||(c=setTimeout(()=>{c=null,g(D)},B-f)))},()=>D&&g(D)]}const x3=(e,r,i=3)=>{let B=0;const D=gke(50,250);return yke(c=>{const g=c.loaded,a=c.lengthComputable?c.total:void 0,y=g-B,f=D(y),n=g<=a;B=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&n?(a-g)/f:void 0,event:c,lengthComputable:a!=null,[r?"download":"upload"]:!0};e(v)},i)},hO=(e,r)=>{const i=e!=null;return[B=>r[0]({lengthComputable:i,total:e,loaded:B}),r[1]]},pO=e=>(...r)=>hr.asap(()=>e(...r)),vke=Vp.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=hr.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),_ke=Vp.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];hr.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),hr.isString(B)&&g.push("path="+B),hr.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bke(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xke(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function fO(e,r){return e&&!bke(r)?xke(e,r):r}const mO=e=>e instanceof $p?{...e}:e;function o1(e,r){r=r||{};const i={};function B(f,n,v){return hr.isPlainObject(f)&&hr.isPlainObject(n)?hr.merge.call({caseless:v},f,n):hr.isPlainObject(n)?hr.merge({},n):hr.isArray(n)?n.slice():n}function D(f,n,v){if(hr.isUndefined(n)){if(!hr.isUndefined(f))return B(void 0,f,v)}else return B(f,n,v)}function c(f,n){if(!hr.isUndefined(n))return B(void 0,n)}function g(f,n){if(hr.isUndefined(n)){if(!hr.isUndefined(f))return B(void 0,f)}else return B(void 0,n)}function a(f,n,v){if(v in r)return B(f,n);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(f,n)=>D(mO(f),mO(n),!0)};return hr.forEach(Object.keys(Object.assign({},e,r)),function(f){const n=y[f]||D,v=n(e[f],r[f],f);hr.isUndefined(v)&&n!==a||(i[f]=v)}),i}const gO=e=>{const r=o1({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:D,xsrfCookieName:c,headers:g,auth:a}=r;r.headers=g=$p.from(g),r.url=iO(fO(r.baseURL,r.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(hr.isFormData(i)){if(Vp.hasStandardBrowserEnv||Vp.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((y=g.getContentType())!==!1){const[f,...n]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([f||"multipart/form-data",...n].join("; "))}}if(Vp.hasStandardBrowserEnv&&(B&&hr.isFunction(B)&&(B=B(r)),B||B!==!1&&vke(r.url))){const f=D&&c&&_ke.read(c);f&&g.set(D,f)}return r},wke=typeof XMLHttpRequest<"u",kke=wke&&function(e){return new Promise(function(r,i){const B=gO(e);let D=B.data;const c=$p.from(B.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:y}=B,f,n,v,_,p;function l(){_&&_(),p&&p(),B.cancelToken&&B.cancelToken.unsubscribe(f),B.signal&&B.signal.removeEventListener("abort",f)}let o=new XMLHttpRequest;o.open(B.method.toUpperCase(),B.url,!0),o.timeout=B.timeout;function s(){if(!o)return;const d=$p.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:d,config:e,request:o};uO(function(m){r(m),l()},function(m){i(m),l()},h),o=null}"onloadend"in o?o.onloadend=s:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(s)},o.onabort=function(){o&&(i(new Yo("Request aborted",Yo.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new Yo("Network Error",Yo.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let d=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const h=B.transitional||sO;B.timeoutErrorMessage&&(d=B.timeoutErrorMessage),i(new Yo(d,h.clarifyTimeoutError?Yo.ETIMEDOUT:Yo.ECONNABORTED,e,o)),o=null},D===void 0&&c.setContentType(null),"setRequestHeader"in o&&hr.forEach(c.toJSON(),function(d,h){o.setRequestHeader(h,d)}),hr.isUndefined(B.withCredentials)||(o.withCredentials=!!B.withCredentials),g&&g!=="json"&&(o.responseType=B.responseType),y&&([v,p]=x3(y,!0),o.addEventListener("progress",v)),a&&o.upload&&([n,_]=x3(a),o.upload.addEventListener("progress",n),o.upload.addEventListener("loadend",_)),(B.cancelToken||B.signal)&&(f=d=>{o&&(i(!d||d.type?new ly(null,e,o):d),o.abort(),o=null)},B.cancelToken&&B.cancelToken.subscribe(f),B.signal&&(B.signal.aborted?f():B.signal.addEventListener("abort",f)));const u=mke(B.url);if(u&&Vp.protocols.indexOf(u)===-1){i(new Yo("Unsupported protocol "+u+":",Yo.ERR_BAD_REQUEST,e));return}o.send(D||null)})},Cke=(e,r)=>{let i=new AbortController,B;const D=function(y){if(!B){B=!0,g();const f=y instanceof Error?y:this.reason;i.abort(f instanceof Yo?f:new ly(f instanceof Error?f.message:f))}};let c=r&&setTimeout(()=>{D(new Yo(`timeout ${r} of ms exceeded`,Yo.ETIMEDOUT))},r);const g=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",D):y.unsubscribe(D))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",D));const{signal:a}=i;return a.unsubscribe=g,[a,()=>{c&&clearTimeout(c),c=null}]},Ske=Cke,Tke=function*(e,r){let i=e.byteLength;if(!r||i<r){yield e;return}let B=0,D;for(;B<i;)D=B+r,yield e.slice(B,D),B=D},Eke=async function*(e,r,i){for await(const B of e)yield*Tke(ArrayBuffer.isView(B)?B:await i(String(B)),r)},yO=(e,r,i,B,D)=>{const c=Eke(e,r,D);let g=0,a,y=f=>{a||(a=!0,B&&B(f))};return new ReadableStream({async pull(f){try{const{done:n,value:v}=await c.next();if(n){y(),f.close();return}let _=v.byteLength;if(i){let p=g+=_;i(p)}f.enqueue(new Uint8Array(v))}catch(n){throw y(n),n}},cancel(f){return y(f),c.return()}},{highWaterMark:2})},w3=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vO=w3&&typeof ReadableStream=="function",m7=w3&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_O=(e,...r)=>{try{return!!e(...r)}catch{return!1}},Ake=vO&&_O(()=>{let e=!1;const r=new Request(Vp.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),bO=64*1024,g7=vO&&_O(()=>hr.isReadableStream(new Response("").body)),k3={stream:g7&&(e=>e.body)};w3&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!k3[r]&&(k3[r]=hr.isFunction(e[r])?i=>i[r]():(i,B)=>{throw new Yo(`Response type '${r}' is not supported`,Yo.ERR_NOT_SUPPORT,B)})})})(new Response);const Mke=async e=>{if(e==null)return 0;if(hr.isBlob(e))return e.size;if(hr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(hr.isArrayBufferView(e)||hr.isArrayBuffer(e))return e.byteLength;if(hr.isURLSearchParams(e)&&(e=e+""),hr.isString(e))return(await m7(e)).byteLength},Ike=async(e,r)=>hr.toFiniteNumber(e.getContentLength())??Mke(r),Pke=w3&&(async e=>{let{url:r,method:i,data:B,signal:D,cancelToken:c,timeout:g,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:n,withCredentials:v="same-origin",fetchOptions:_}=gO(e);f=f?(f+"").toLowerCase():"text";let[p,l]=D||c||g?Ske([D,c],g):[],o,s;const u=()=>{!o&&setTimeout(()=>{p&&p.unsubscribe()}),o=!0};let d;try{if(y&&Ake&&i!=="get"&&i!=="head"&&(d=await Ike(n,B))!==0){let w=new Request(r,{method:"POST",body:B,duplex:"half"}),x;if(hr.isFormData(B)&&(x=w.headers.get("content-type"))&&n.setContentType(x),w.body){const[S,C]=hO(d,x3(pO(y)));B=yO(w.body,bO,S,C,m7)}}hr.isString(v)||(v=v?"include":"omit"),s=new Request(r,{..._,signal:p,method:i.toUpperCase(),headers:n.normalize().toJSON(),body:B,duplex:"half",credentials:v});let h=await fetch(s);const m=g7&&(f==="stream"||f==="response");if(g7&&(a||m)){const w={};["status","statusText","headers"].forEach(T=>{w[T]=h[T]});const x=hr.toFiniteNumber(h.headers.get("content-length")),[S,C]=a&&hO(x,x3(pO(a),!0))||[];h=new Response(yO(h.body,bO,S,()=>{C&&C(),m&&u()},m7),w)}f=f||"text";let b=await k3[hr.findKey(k3,f)||"text"](h,e);return!m&&u(),l&&l(),await new Promise((w,x)=>{uO(w,x,{data:b,headers:$p.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:s})})}catch(h){throw u(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new Yo("Network Error",Yo.ERR_NETWORK,e,s),{cause:h.cause||h}):Yo.from(h,h&&h.code,e,s)}}),y7={http:q8e,xhr:kke,fetch:Pke};hr.forEach(y7,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const xO=e=>`- ${e}`,Bke=e=>hr.isFunction(e)||e===null||e===!1,wO={getAdapter:e=>{e=hr.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!Bke(i)&&(B=y7[(g=String(i)).toLowerCase()],B===void 0))throw new Yo(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
|
|
47
47
|
`+c.map(xO).join(`
|
|
48
48
|
`):" "+xO(c[0]):"as no adapter specified";throw new Yo("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return B},adapters:y7};function v7(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ly(null,e)}function kO(e){return v7(e),e.headers=$p.from(e.headers),e.data=f7.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wO.getAdapter(e.adapter||h7.adapter)(e).then(function(r){return v7(e),r.data=f7.call(e,e.transformResponse,r),r.headers=$p.from(r.headers),r},function(r){return dO(r)||(v7(e),r&&r.response&&(r.response.data=f7.call(e,e.transformResponse,r.response),r.response.headers=$p.from(r.response.headers))),Promise.reject(r)})}const CO="1.7.4",_7={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{_7[e]=function(i){return typeof i===e||"a"+(r<1?"n ":" ")+e}});const SO={};_7.transitional=function(e,r,i){function B(D,c){return"[Axios v"+CO+"] Transitional option '"+D+"'"+c+(i?". "+i:"")}return(D,c,g)=>{if(e===!1)throw new Yo(B(c," has been removed"+(r?" in "+r:"")),Yo.ERR_DEPRECATED);return r&&!SO[c]&&(SO[c]=!0,console.warn(B(c," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(D,c,g):!0}};function Nke(e,r,i){if(typeof e!="object")throw new Yo("options must be an object",Yo.ERR_BAD_OPTION_VALUE);const B=Object.keys(e);let D=B.length;for(;D-- >0;){const c=B[D],g=r[c];if(g){const a=e[c],y=a===void 0||g(a,c,e);if(y!==!0)throw new Yo("option "+c+" must be "+y,Yo.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Yo("Unknown option "+c,Yo.ERR_BAD_OPTION)}}const b7={assertOptions:Nke,validators:_7},Xm=b7.validators;let C3=class{constructor(r){this.defaults=r,this.interceptors={request:new oO,response:new oO}}async request(r,i){try{return await this._request(r,i)}catch(B){if(B instanceof Error){let D;Error.captureStackTrace?Error.captureStackTrace(D={}):D=new Error;const c=D.stack?D.stack.replace(/^.+\n/,""):"";try{B.stack?c&&!String(B.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(B.stack+=`
|
|
49
|
-
`+c):B.stack=c}catch{}}throw B}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=o1(this.defaults,i);const{transitional:B,paramsSerializer:D,headers:c}=i;B!==void 0&&b7.assertOptions(B,{silentJSONParsing:Xm.transitional(Xm.boolean),forcedJSONParsing:Xm.transitional(Xm.boolean),clarifyTimeoutError:Xm.transitional(Xm.boolean)},!1),D!=null&&(hr.isFunction(D)?i.paramsSerializer={serialize:D}:b7.assertOptions(D,{encode:Xm.function,serialize:Xm.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let g=c&&hr.merge(c.common,c[i.method]);c&&hr.forEach(["delete","get","head","post","put","patch","common"],l=>{delete c[l]}),i.headers=$p.concat(g,c);const a=[];let y=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(i)===!1||(y=y&&l.synchronous,a.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let n,v=0,_;if(!y){const l=[kO.bind(this),void 0];for(l.unshift.apply(l,a),l.push.apply(l,f),_=l.length,n=Promise.resolve(i);v<_;)n=n.then(l[v++],l[v++]);return n}_=a.length;let p=i;for(v=0;v<_;){const l=a[v++],o=a[v++];try{p=l(p)}catch(s){o.call(this,s);break}}try{n=kO.call(this,p)}catch(l){return Promise.reject(l)}for(v=0,_=f.length;v<_;)n=n.then(f[v++],f[v++]);return n}getUri(r){r=o1(this.defaults,r);const i=fO(r.baseURL,r.url);return iO(i,r.params,r.paramsSerializer)}};hr.forEach(["delete","get","head","options"],function(e){C3.prototype[e]=function(r,i){return this.request(o1(i||{},{method:e,url:r,data:(i||{}).data}))}}),hr.forEach(["post","put","patch"],function(e){function r(i){return function(B,D,c){return this.request(o1(c||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:B,data:D}))}}C3.prototype[e]=r(),C3.prototype[e+"Form"]=r(!0)});const S3=C3,zke=class LJ{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(D){i=D});const B=this;this.promise.then(D=>{if(!B._listeners)return;let c=B._listeners.length;for(;c-- >0;)B._listeners[c](D);B._listeners=null}),this.promise.then=D=>{let c;const g=new Promise(a=>{B.subscribe(a),c=a}).then(D);return g.cancel=function(){B.unsubscribe(c)},g},r(function(D,c,g){B.reason||(B.reason=new ly(D,c,g),i(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}static source(){let r;return{token:new LJ(function(i){r=i}),cancel:r}}};function Oke(e){return function(r){return e.apply(null,r)}}function Fke(e){return hr.isObject(e)&&e.isAxiosError===!0}const x7={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(x7).forEach(([e,r])=>{x7[r]=e});const Lke=x7;function TO(e){const r=new S3(e),i=Uz(S3.prototype.request,r);return hr.extend(i,S3.prototype,r,{allOwnKeys:!0}),hr.extend(i,r,null,{allOwnKeys:!0}),i.create=function(B){return TO(o1(e,B))},i}const zd=TO(h7);zd.Axios=S3,zd.CanceledError=ly,zd.CancelToken=zke,zd.isCancel=dO,zd.VERSION=CO,zd.toFormData=v3,zd.AxiosError=Yo,zd.Cancel=zd.CanceledError,zd.all=function(e){return Promise.all(e)},zd.spread=Oke,zd.isAxiosError=Fke,zd.mergeConfig=o1,zd.AxiosHeaders=$p,zd.formToJSON=e=>lO(hr.isHTMLForm(e)?new FormData(e):e),zd.getAdapter=wO.getAdapter,zd.HttpStatusCode=Lke,zd.default=zd;const Dke=zd;function Rke(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const T3="/contorno-escudo.svg",Vke="_item_1j4br_7",$ke="_cardDgs_1j4br_29",jke="_teams_1j4br_65",Uke="_homeTeam_1j4br_83",Gke="_vectorStrokeIcon_1j4br_101",Hke="_homeTeamChild_1j4br_115",Wke="_centrosParent_1j4br_137",qke="_centros_1j4br_137",Yke="_chivasYAtlas_1j4br_173",Xke="_logoHomeTeamIcon_1j4br_205",Zke="_logoHomeTeamIcon1_1j4br_233",Jke={item:Vke,"item-game":"_item-game_1j4br_19",cardDgs:$ke,teams:jke,homeTeam:Uke,vectorStrokeIcon:Gke,homeTeamChild:Hke,centrosParent:Wke,centros:qke,chivasYAtlas:Yke,logoHomeTeamIcon:Xke,logoHomeTeamIcon1:Zke},EO=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Kke={components:{},props:{data:{type:Object,default:()=>{}},isSlider:{type:Boolean,default:!1}},data(){return{}},computed:{},methods:{},mounted(){}},Qke=["src"],e7e=["src"],t7e=["src"],a7e=["src"],n7e=["src"],r7e=["src"],i7e=["src"],o7e=["src"];function s7e(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.item),style:t.normalizeStyle(i.isSlider?"margin: 0 25px 0 0":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.item-e.game)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardDgs),style:t.normalizeStyle(e.index%2==0?"background: #193346;":"background: #122736;")},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teams),id:"container-teams"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[i.data.mention_type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.data.tops[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("img",{style:t.normalizeStyle(i.data.mention_type==1?"visibility: hidden;":""),class:t.normalizeClass(e.$style.vectorStrokeIcon),alt:"",src:T3},null,6),t.createElementVNode("img",{class:t.normalizeClass(e.$style.homeTeamChild),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.tops[0]+".png"},null,10,Qke)],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.data.bottoms[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("img",{style:t.normalizeStyle(i.data.mention_type==1?"visibility: hidden;":""),class:t.normalizeClass(e.$style.vectorStrokeIcon),alt:"",src:T3},null,6),t.createElementVNode("img",{class:t.normalizeClass(e.$style.homeTeamChild),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.bottoms[0]+".png"},null,10,e7e)],64)):t.createCommentVNode("",!0)],64))],2),i.data.mention_type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.data.tops[1]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{style:t.normalizeStyle(i.data.mention_type==1?"visibility: hidden;":""),class:t.normalizeClass(e.$style.vectorStrokeIcon),alt:"",src:T3},null,6),t.createElementVNode("img",{class:t.normalizeClass(e.$style.homeTeamChild),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.tops[1]+".png"},null,10,t7e)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.data.bottoms[1]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{style:t.normalizeStyle(i.data.mention_type==1?"visibility: hidden;":""),class:t.normalizeClass(e.$style.vectorStrokeIcon),alt:"",src:T3},null,6),t.createElementVNode("img",{class:t.normalizeClass(e.$style.homeTeamChild),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.bottoms[1]+".png"},null,10,a7e)],2)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.centrosParent),id:"container-info"},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.centros),id:"title-card"},t.toDisplayString(i.data.title),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.chivasYAtlas),style:t.normalizeStyle(i.isSlider?"width: 280px; padding: 0 10px;":"")},t.toDisplayString(i.data.mention),7)],2),i.data.mention_type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.data.tops[0]?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.logoHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.tops[0]+".png"},null,10,n7e)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.data.bottoms[0]?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.logoHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.bottoms[0]+".png"},null,10,r7e)):t.createCommentVNode("",!0)],64)),i.data.mention_type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[i.data.tops[1]?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.logoHomeTeamIcon1),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.tops[1]+".png"},null,10,i7e)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[i.data.bottoms[1]?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.logoHomeTeamIcon1),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.bottoms[1]+".png"},null,10,o7e)):t.createCommentVNode("",!0)],64))],6)],2)],6)}const l7e={$style:Jke},c7e=EO(Kke,[["render",s7e],["__cssModules",l7e],["__scopeId","data-v-bf1d0a8b"]]);function AO(e,r){return function(){return e.apply(r,arguments)}}const{toString:d7e}=Object.prototype,{getPrototypeOf:w7}=Object,E3=(e=>r=>{const i=d7e.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),jp=e=>(e=e.toLowerCase(),r=>E3(r)===e),A3=e=>r=>typeof r===e,{isArray:cy}=Array,y2=A3("undefined");function u7e(e){return e!==null&&!y2(e)&&e.constructor!==null&&!y2(e.constructor)&&xh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const MO=jp("ArrayBuffer");function h7e(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&MO(e.buffer),r}const p7e=A3("string"),xh=A3("function"),IO=A3("number"),M3=e=>e!==null&&typeof e=="object",f7e=e=>e===!0||e===!1,I3=e=>{if(E3(e)!=="object")return!1;const r=w7(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m7e=jp("Date"),g7e=jp("File"),y7e=jp("Blob"),v7e=jp("FileList"),_7e=e=>M3(e)&&xh(e.pipe),b7e=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||xh(e.append)&&((r=E3(e))==="formdata"||r==="object"&&xh(e.toString)&&e.toString()==="[object FormData]"))},x7e=jp("URLSearchParams"),[w7e,k7e,C7e,S7e]=["ReadableStream","Request","Response","Headers"].map(jp),T7e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function v2(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),cy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function PO(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const s1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),BO=e=>!y2(e)&&e!==s1;function k7(){const{caseless:e}=BO(this)&&this||{},r={},i=(B,D)=>{const c=e&&PO(r,D)||D;I3(r[c])&&I3(B)?r[c]=k7(r[c],B):I3(B)?r[c]=k7({},B):cy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&v2(arguments[B],i);return r}const E7e=(e,r,i,{allOwnKeys:B}={})=>(v2(r,(D,c)=>{i&&xh(D)?e[c]=AO(D,i):e[c]=D},{allOwnKeys:B}),e),A7e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),M7e=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},I7e=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&w7(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},P7e=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},B7e=e=>{if(!e)return null;if(cy(e))return e;let r=e.length;if(!IO(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},N7e=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&w7(Uint8Array)),z7e=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},O7e=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},F7e=jp("HTMLFormElement"),L7e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),NO=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),D7e=jp("RegExp"),zO=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};v2(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},R7e=e=>{zO(e,(r,i)=>{if(xh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(xh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},V7e=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return cy(e)?B(e):B(String(e).split(r)),i},$7e=()=>{},j7e=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,C7="abcdefghijklmnopqrstuvwxyz",OO="0123456789",FO={DIGIT:OO,ALPHA:C7,ALPHA_DIGIT:C7+C7.toUpperCase()+OO},U7e=(e=16,r=FO.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function G7e(e){return!!(e&&xh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const H7e=e=>{const r=new Array(10),i=(B,D)=>{if(M3(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=cy(B)?[]:{};return v2(B,(g,a)=>{const y=i(g,D+1);!y2(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},W7e=jp("AsyncFunction"),q7e=e=>e&&(M3(e)||xh(e))&&xh(e.then)&&xh(e.catch),LO=((e,r)=>e?setImmediate:r?((i,B)=>(s1.addEventListener("message",({source:D,data:c})=>{D===s1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),s1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",xh(s1.postMessage)),Y7e=typeof queueMicrotask<"u"?queueMicrotask.bind(s1):typeof process<"u"&&process.nextTick||LO,pr={isArray:cy,isArrayBuffer:MO,isBuffer:u7e,isFormData:b7e,isArrayBufferView:h7e,isString:p7e,isNumber:IO,isBoolean:f7e,isObject:M3,isPlainObject:I3,isReadableStream:w7e,isRequest:k7e,isResponse:C7e,isHeaders:S7e,isUndefined:y2,isDate:m7e,isFile:g7e,isBlob:y7e,isRegExp:D7e,isFunction:xh,isStream:_7e,isURLSearchParams:x7e,isTypedArray:N7e,isFileList:v7e,forEach:v2,merge:k7,extend:E7e,trim:T7e,stripBOM:A7e,inherits:M7e,toFlatObject:I7e,kindOf:E3,kindOfTest:jp,endsWith:P7e,toArray:B7e,forEachEntry:z7e,matchAll:O7e,isHTMLForm:F7e,hasOwnProperty:NO,hasOwnProp:NO,reduceDescriptors:zO,freezeMethods:R7e,toObjectSet:V7e,toCamelCase:L7e,noop:$7e,toFiniteNumber:j7e,findKey:PO,global:s1,isContextDefined:BO,ALPHABET:FO,generateString:U7e,isSpecCompliantForm:G7e,toJSONObject:H7e,isAsyncFn:W7e,isThenable:q7e,setImmediate:LO,asap:Y7e};function Xo(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}pr.inherits(Xo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const DO=Xo.prototype,RO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{RO[e]={value:e}}),Object.defineProperties(Xo,RO),Object.defineProperty(DO,"isAxiosError",{value:!0}),Xo.from=(e,r,i,B,D,c)=>{const g=Object.create(DO);return pr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Xo.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const X7e=null;function S7(e){return pr.isPlainObject(e)||pr.isArray(e)}function VO(e){return pr.endsWith(e,"[]")?e.slice(0,-2):e}function $O(e,r,i){return e?e.concat(r).map(function(B,D){return B=VO(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function Z7e(e){return pr.isArray(e)&&!e.some(S7)}const J7e=pr.toFlatObject(pr,{},null,function(e){return/^is[A-Z]/.test(e)});function P3(e,r,i){if(!pr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=pr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!pr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&pr.isSpecCompliantForm(r);if(!pr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(pr.isDate(p))return p.toISOString();if(!a&&pr.isBlob(p))throw new Xo("Blob is not supported. Use a Buffer instead.");return pr.isArrayBuffer(p)||pr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(pr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(pr.isArray(p)&&Z7e(p)||(pr.isFileList(p)||pr.endsWith(l,"[]"))&&(s=pr.toArray(p)))return l=VO(l),s.forEach(function(u,d){!(pr.isUndefined(u)||u===null)&&r.append(g===!0?$O([l],d,c):g===null?l:l+"[]",y(u))}),!1}return S7(p)?!0:(r.append($O(o,l,c),y(p)),!1)}const n=[],v=Object.assign(J7e,{defaultVisitor:f,convertValue:y,isVisitable:S7});function _(p,l){if(!pr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),pr.forEach(p,function(o,s){(!(pr.isUndefined(o)||o===null)&&D.call(r,o,pr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!pr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function jO(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function T7(e,r){this._pairs=[],e&&P3(e,this,r)}const UO=T7.prototype;UO.append=function(e,r){this._pairs.push([e,r])},UO.toString=function(e){const r=e?function(i){return e.call(this,i,jO)}:jO;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function K7e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GO(e,r,i){if(!r)return e;const B=i&&i.encode||K7e,D=i&&i.serialize;let c;if(D?c=D(r,i):c=pr.isURLSearchParams(r)?r.toString():new T7(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const HO=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){pr.forEach(this.handlers,function(i){i!==null&&r(i)})}},WO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q7e=typeof URLSearchParams<"u"?URLSearchParams:T7,e9e=typeof FormData<"u"?FormData:null,t9e=typeof Blob<"u"?Blob:null,a9e={isBrowser:!0,classes:{URLSearchParams:Q7e,FormData:e9e,Blob:t9e},protocols:["http","https","file","blob","url","data"]},E7=typeof window<"u"&&typeof document<"u",n9e=(e=>E7&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),r9e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),i9e=E7&&window.location.href||"http://localhost",o9e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:E7,hasStandardBrowserEnv:n9e,hasStandardBrowserWebWorkerEnv:r9e,origin:i9e},Symbol.toStringTag,{value:"Module"})),Up={...o9e,...a9e};function s9e(e,r){return P3(e,new Up.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Up.isNode&&pr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function l9e(e){return pr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function c9e(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function qO(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&pr.isArray(D)?D.length:g,y?(pr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!pr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&pr.isArray(D[g])&&(D[g]=c9e(D[g])),!a)}if(pr.isFormData(e)&&pr.isFunction(e.entries)){const i={};return pr.forEachEntry(e,(B,D)=>{r(l9e(B),D,i,0)}),i}return null}function d9e(e,r,i){if(pr.isString(e))try{return(r||JSON.parse)(e),pr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const A7={transitional:WO,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=pr.isObject(e);if(D&&pr.isHTMLForm(e)&&(e=new FormData(e)),pr.isFormData(e))return B?JSON.stringify(qO(e)):e;if(pr.isArrayBuffer(e)||pr.isBuffer(e)||pr.isStream(e)||pr.isFile(e)||pr.isBlob(e)||pr.isReadableStream(e))return e;if(pr.isArrayBufferView(e))return e.buffer;if(pr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return s9e(e,this.formSerializer).toString();if((c=pr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return P3(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),d9e(e)):e}],transformResponse:[function(e){const r=this.transitional||A7.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(pr.isResponse(e)||pr.isReadableStream(e))return e;if(e&&pr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Xo.from(c,Xo.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Up.classes.FormData,Blob:Up.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pr.forEach(["delete","get","head","post","put","patch"],e=>{A7.headers[e]={}});const M7=A7,u9e=pr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),h9e=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
49
|
+
`+c):B.stack=c}catch{}}throw B}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=o1(this.defaults,i);const{transitional:B,paramsSerializer:D,headers:c}=i;B!==void 0&&b7.assertOptions(B,{silentJSONParsing:Xm.transitional(Xm.boolean),forcedJSONParsing:Xm.transitional(Xm.boolean),clarifyTimeoutError:Xm.transitional(Xm.boolean)},!1),D!=null&&(hr.isFunction(D)?i.paramsSerializer={serialize:D}:b7.assertOptions(D,{encode:Xm.function,serialize:Xm.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let g=c&&hr.merge(c.common,c[i.method]);c&&hr.forEach(["delete","get","head","post","put","patch","common"],l=>{delete c[l]}),i.headers=$p.concat(g,c);const a=[];let y=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(i)===!1||(y=y&&l.synchronous,a.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let n,v=0,_;if(!y){const l=[kO.bind(this),void 0];for(l.unshift.apply(l,a),l.push.apply(l,f),_=l.length,n=Promise.resolve(i);v<_;)n=n.then(l[v++],l[v++]);return n}_=a.length;let p=i;for(v=0;v<_;){const l=a[v++],o=a[v++];try{p=l(p)}catch(s){o.call(this,s);break}}try{n=kO.call(this,p)}catch(l){return Promise.reject(l)}for(v=0,_=f.length;v<_;)n=n.then(f[v++],f[v++]);return n}getUri(r){r=o1(this.defaults,r);const i=fO(r.baseURL,r.url);return iO(i,r.params,r.paramsSerializer)}};hr.forEach(["delete","get","head","options"],function(e){C3.prototype[e]=function(r,i){return this.request(o1(i||{},{method:e,url:r,data:(i||{}).data}))}}),hr.forEach(["post","put","patch"],function(e){function r(i){return function(B,D,c){return this.request(o1(c||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:B,data:D}))}}C3.prototype[e]=r(),C3.prototype[e+"Form"]=r(!0)});const S3=C3,zke=class LJ{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(D){i=D});const B=this;this.promise.then(D=>{if(!B._listeners)return;let c=B._listeners.length;for(;c-- >0;)B._listeners[c](D);B._listeners=null}),this.promise.then=D=>{let c;const g=new Promise(a=>{B.subscribe(a),c=a}).then(D);return g.cancel=function(){B.unsubscribe(c)},g},r(function(D,c,g){B.reason||(B.reason=new ly(D,c,g),i(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}static source(){let r;return{token:new LJ(function(i){r=i}),cancel:r}}};function Oke(e){return function(r){return e.apply(null,r)}}function Fke(e){return hr.isObject(e)&&e.isAxiosError===!0}const x7={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(x7).forEach(([e,r])=>{x7[r]=e});const Lke=x7;function TO(e){const r=new S3(e),i=Uz(S3.prototype.request,r);return hr.extend(i,S3.prototype,r,{allOwnKeys:!0}),hr.extend(i,r,null,{allOwnKeys:!0}),i.create=function(B){return TO(o1(e,B))},i}const zd=TO(h7);zd.Axios=S3,zd.CanceledError=ly,zd.CancelToken=zke,zd.isCancel=dO,zd.VERSION=CO,zd.toFormData=v3,zd.AxiosError=Yo,zd.Cancel=zd.CanceledError,zd.all=function(e){return Promise.all(e)},zd.spread=Oke,zd.isAxiosError=Fke,zd.mergeConfig=o1,zd.AxiosHeaders=$p,zd.formToJSON=e=>lO(hr.isHTMLForm(e)?new FormData(e):e),zd.getAdapter=wO.getAdapter,zd.HttpStatusCode=Lke,zd.default=zd;const Dke=zd;function Rke(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const T3="/contorno-escudo.svg",Vke="_item_1i31d_4",$ke="_cardDgs_1i31d_15",jke="_teams_1i31d_33",Uke="_homeTeam_1i31d_42",Gke="_vectorStrokeIcon_1i31d_51",Hke="_homeTeamChild_1i31d_58",Wke="_centrosParent_1i31d_69",qke="_centros_1i31d_69",Yke="_chivasYAtlas_1i31d_87",Xke="_logoHomeTeamIcon_1i31d_103",Zke="_logoHomeTeamIcon1_1i31d_117",Jke={item:Vke,"item-game":"_item-game_1i31d_10",cardDgs:$ke,teams:jke,homeTeam:Uke,vectorStrokeIcon:Gke,homeTeamChild:Hke,centrosParent:Wke,centros:qke,chivasYAtlas:Yke,logoHomeTeamIcon:Xke,logoHomeTeamIcon1:Zke},EO=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Kke={components:{},props:{data:{type:Object,default:()=>{}},isSlider:{type:Boolean,default:!1}},data(){return{}},computed:{},methods:{},mounted(){}},Qke=["src"],e7e=["src"],t7e=["src"],a7e=["src"],n7e=["src"],r7e=["src"],i7e=["src"],o7e=["src"];function s7e(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.item),style:t.normalizeStyle(i.isSlider?"margin: 0 25px 0 0":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.item-e.game)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardDgs),style:t.normalizeStyle(e.index%2==0?"background: #193346;":"background: #122736;")},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teams),id:"container-teams"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[i.data.mention_type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.data.tops[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("img",{style:t.normalizeStyle(i.data.mention_type==1?"visibility: hidden;":""),class:t.normalizeClass(e.$style.vectorStrokeIcon),alt:"",src:T3},null,6),t.createElementVNode("img",{class:t.normalizeClass(e.$style.homeTeamChild),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.tops[0]+".png"},null,10,Qke)],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.data.bottoms[0]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("img",{style:t.normalizeStyle(i.data.mention_type==1?"visibility: hidden;":""),class:t.normalizeClass(e.$style.vectorStrokeIcon),alt:"",src:T3},null,6),t.createElementVNode("img",{class:t.normalizeClass(e.$style.homeTeamChild),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.bottoms[0]+".png"},null,10,e7e)],64)):t.createCommentVNode("",!0)],64))],2),i.data.mention_type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.data.tops[1]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{style:t.normalizeStyle(i.data.mention_type==1?"visibility: hidden;":""),class:t.normalizeClass(e.$style.vectorStrokeIcon),alt:"",src:T3},null,6),t.createElementVNode("img",{class:t.normalizeClass(e.$style.homeTeamChild),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.tops[1]+".png"},null,10,t7e)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.data.bottoms[1]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{style:t.normalizeStyle(i.data.mention_type==1?"visibility: hidden;":""),class:t.normalizeClass(e.$style.vectorStrokeIcon),alt:"",src:T3},null,6),t.createElementVNode("img",{class:t.normalizeClass(e.$style.homeTeamChild),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.bottoms[1]+".png"},null,10,a7e)],2)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.centrosParent),id:"container-info"},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.centros),id:"title-card"},t.toDisplayString(i.data.title),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.chivasYAtlas),style:t.normalizeStyle(i.isSlider?"width: 280px; padding: 0 10px;":"")},t.toDisplayString(i.data.mention),7)],2),i.data.mention_type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.data.tops[0]?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.logoHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.tops[0]+".png"},null,10,n7e)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.data.bottoms[0]?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.logoHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.bottoms[0]+".png"},null,10,r7e)):t.createCommentVNode("",!0)],64)),i.data.mention_type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[i.data.tops[1]?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.logoHomeTeamIcon1),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.tops[1]+".png"},null,10,i7e)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[i.data.bottoms[1]?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.logoHomeTeamIcon1),alt:"",src:"https://az755631.vo.msecnd.net/teams-150/"+i.data.bottoms[1]+".png"},null,10,o7e)):t.createCommentVNode("",!0)],64))],6)],2)],6)}const l7e={$style:Jke},c7e=EO(Kke,[["render",s7e],["__cssModules",l7e],["__scopeId","data-v-4a99b853"]]);function AO(e,r){return function(){return e.apply(r,arguments)}}const{toString:d7e}=Object.prototype,{getPrototypeOf:w7}=Object,E3=(e=>r=>{const i=d7e.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),jp=e=>(e=e.toLowerCase(),r=>E3(r)===e),A3=e=>r=>typeof r===e,{isArray:cy}=Array,y2=A3("undefined");function u7e(e){return e!==null&&!y2(e)&&e.constructor!==null&&!y2(e.constructor)&&xh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const MO=jp("ArrayBuffer");function h7e(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&MO(e.buffer),r}const p7e=A3("string"),xh=A3("function"),IO=A3("number"),M3=e=>e!==null&&typeof e=="object",f7e=e=>e===!0||e===!1,I3=e=>{if(E3(e)!=="object")return!1;const r=w7(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},m7e=jp("Date"),g7e=jp("File"),y7e=jp("Blob"),v7e=jp("FileList"),_7e=e=>M3(e)&&xh(e.pipe),b7e=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||xh(e.append)&&((r=E3(e))==="formdata"||r==="object"&&xh(e.toString)&&e.toString()==="[object FormData]"))},x7e=jp("URLSearchParams"),[w7e,k7e,C7e,S7e]=["ReadableStream","Request","Response","Headers"].map(jp),T7e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function v2(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),cy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function PO(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const s1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),BO=e=>!y2(e)&&e!==s1;function k7(){const{caseless:e}=BO(this)&&this||{},r={},i=(B,D)=>{const c=e&&PO(r,D)||D;I3(r[c])&&I3(B)?r[c]=k7(r[c],B):I3(B)?r[c]=k7({},B):cy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&v2(arguments[B],i);return r}const E7e=(e,r,i,{allOwnKeys:B}={})=>(v2(r,(D,c)=>{i&&xh(D)?e[c]=AO(D,i):e[c]=D},{allOwnKeys:B}),e),A7e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),M7e=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},I7e=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&w7(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},P7e=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},B7e=e=>{if(!e)return null;if(cy(e))return e;let r=e.length;if(!IO(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},N7e=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&w7(Uint8Array)),z7e=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},O7e=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},F7e=jp("HTMLFormElement"),L7e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),NO=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),D7e=jp("RegExp"),zO=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};v2(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},R7e=e=>{zO(e,(r,i)=>{if(xh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(xh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},V7e=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return cy(e)?B(e):B(String(e).split(r)),i},$7e=()=>{},j7e=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,C7="abcdefghijklmnopqrstuvwxyz",OO="0123456789",FO={DIGIT:OO,ALPHA:C7,ALPHA_DIGIT:C7+C7.toUpperCase()+OO},U7e=(e=16,r=FO.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function G7e(e){return!!(e&&xh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const H7e=e=>{const r=new Array(10),i=(B,D)=>{if(M3(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=cy(B)?[]:{};return v2(B,(g,a)=>{const y=i(g,D+1);!y2(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},W7e=jp("AsyncFunction"),q7e=e=>e&&(M3(e)||xh(e))&&xh(e.then)&&xh(e.catch),LO=((e,r)=>e?setImmediate:r?((i,B)=>(s1.addEventListener("message",({source:D,data:c})=>{D===s1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),s1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",xh(s1.postMessage)),Y7e=typeof queueMicrotask<"u"?queueMicrotask.bind(s1):typeof process<"u"&&process.nextTick||LO,pr={isArray:cy,isArrayBuffer:MO,isBuffer:u7e,isFormData:b7e,isArrayBufferView:h7e,isString:p7e,isNumber:IO,isBoolean:f7e,isObject:M3,isPlainObject:I3,isReadableStream:w7e,isRequest:k7e,isResponse:C7e,isHeaders:S7e,isUndefined:y2,isDate:m7e,isFile:g7e,isBlob:y7e,isRegExp:D7e,isFunction:xh,isStream:_7e,isURLSearchParams:x7e,isTypedArray:N7e,isFileList:v7e,forEach:v2,merge:k7,extend:E7e,trim:T7e,stripBOM:A7e,inherits:M7e,toFlatObject:I7e,kindOf:E3,kindOfTest:jp,endsWith:P7e,toArray:B7e,forEachEntry:z7e,matchAll:O7e,isHTMLForm:F7e,hasOwnProperty:NO,hasOwnProp:NO,reduceDescriptors:zO,freezeMethods:R7e,toObjectSet:V7e,toCamelCase:L7e,noop:$7e,toFiniteNumber:j7e,findKey:PO,global:s1,isContextDefined:BO,ALPHABET:FO,generateString:U7e,isSpecCompliantForm:G7e,toJSONObject:H7e,isAsyncFn:W7e,isThenable:q7e,setImmediate:LO,asap:Y7e};function Xo(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}pr.inherits(Xo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:pr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const DO=Xo.prototype,RO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{RO[e]={value:e}}),Object.defineProperties(Xo,RO),Object.defineProperty(DO,"isAxiosError",{value:!0}),Xo.from=(e,r,i,B,D,c)=>{const g=Object.create(DO);return pr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Xo.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const X7e=null;function S7(e){return pr.isPlainObject(e)||pr.isArray(e)}function VO(e){return pr.endsWith(e,"[]")?e.slice(0,-2):e}function $O(e,r,i){return e?e.concat(r).map(function(B,D){return B=VO(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function Z7e(e){return pr.isArray(e)&&!e.some(S7)}const J7e=pr.toFlatObject(pr,{},null,function(e){return/^is[A-Z]/.test(e)});function P3(e,r,i){if(!pr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=pr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!pr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&pr.isSpecCompliantForm(r);if(!pr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(pr.isDate(p))return p.toISOString();if(!a&&pr.isBlob(p))throw new Xo("Blob is not supported. Use a Buffer instead.");return pr.isArrayBuffer(p)||pr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(pr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(pr.isArray(p)&&Z7e(p)||(pr.isFileList(p)||pr.endsWith(l,"[]"))&&(s=pr.toArray(p)))return l=VO(l),s.forEach(function(u,d){!(pr.isUndefined(u)||u===null)&&r.append(g===!0?$O([l],d,c):g===null?l:l+"[]",y(u))}),!1}return S7(p)?!0:(r.append($O(o,l,c),y(p)),!1)}const n=[],v=Object.assign(J7e,{defaultVisitor:f,convertValue:y,isVisitable:S7});function _(p,l){if(!pr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),pr.forEach(p,function(o,s){(!(pr.isUndefined(o)||o===null)&&D.call(r,o,pr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!pr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function jO(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function T7(e,r){this._pairs=[],e&&P3(e,this,r)}const UO=T7.prototype;UO.append=function(e,r){this._pairs.push([e,r])},UO.toString=function(e){const r=e?function(i){return e.call(this,i,jO)}:jO;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function K7e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GO(e,r,i){if(!r)return e;const B=i&&i.encode||K7e,D=i&&i.serialize;let c;if(D?c=D(r,i):c=pr.isURLSearchParams(r)?r.toString():new T7(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const HO=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){pr.forEach(this.handlers,function(i){i!==null&&r(i)})}},WO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Q7e=typeof URLSearchParams<"u"?URLSearchParams:T7,e9e=typeof FormData<"u"?FormData:null,t9e=typeof Blob<"u"?Blob:null,a9e={isBrowser:!0,classes:{URLSearchParams:Q7e,FormData:e9e,Blob:t9e},protocols:["http","https","file","blob","url","data"]},E7=typeof window<"u"&&typeof document<"u",n9e=(e=>E7&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),r9e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),i9e=E7&&window.location.href||"http://localhost",o9e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:E7,hasStandardBrowserEnv:n9e,hasStandardBrowserWebWorkerEnv:r9e,origin:i9e},Symbol.toStringTag,{value:"Module"})),Up={...o9e,...a9e};function s9e(e,r){return P3(e,new Up.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Up.isNode&&pr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function l9e(e){return pr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function c9e(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function qO(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&pr.isArray(D)?D.length:g,y?(pr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!pr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&pr.isArray(D[g])&&(D[g]=c9e(D[g])),!a)}if(pr.isFormData(e)&&pr.isFunction(e.entries)){const i={};return pr.forEachEntry(e,(B,D)=>{r(l9e(B),D,i,0)}),i}return null}function d9e(e,r,i){if(pr.isString(e))try{return(r||JSON.parse)(e),pr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const A7={transitional:WO,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=pr.isObject(e);if(D&&pr.isHTMLForm(e)&&(e=new FormData(e)),pr.isFormData(e))return B?JSON.stringify(qO(e)):e;if(pr.isArrayBuffer(e)||pr.isBuffer(e)||pr.isStream(e)||pr.isFile(e)||pr.isBlob(e)||pr.isReadableStream(e))return e;if(pr.isArrayBufferView(e))return e.buffer;if(pr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return s9e(e,this.formSerializer).toString();if((c=pr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return P3(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),d9e(e)):e}],transformResponse:[function(e){const r=this.transitional||A7.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(pr.isResponse(e)||pr.isReadableStream(e))return e;if(e&&pr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Xo.from(c,Xo.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Up.classes.FormData,Blob:Up.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pr.forEach(["delete","get","head","post","put","patch"],e=>{A7.headers[e]={}});const M7=A7,u9e=pr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),h9e=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
50
50
|
`).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&u9e[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},YO=Symbol("internals");function _2(e){return e&&String(e).trim().toLowerCase()}function B3(e){return e===!1||e==null?e:pr.isArray(e)?e.map(B3):String(e)}function p9e(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const f9e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function I7(e,r,i,B,D){if(pr.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!pr.isString(r)){if(pr.isString(B))return r.indexOf(B)!==-1;if(pr.isRegExp(B))return B.test(r)}}function m9e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function g9e(e,r){const i=pr.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,g){return this[B].call(this,r,D,c,g)},configurable:!0})})}let N3=class{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=_2(y);if(!n)throw new Error("header name must be a non-empty string");const v=pr.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=B3(a))}const g=(a,y)=>pr.forEach(a,(f,n)=>c(f,n,y));if(pr.isPlainObject(r)||r instanceof this.constructor)g(r,i);else if(pr.isString(r)&&(r=r.trim())&&!f9e(r))g(h9e(r),i);else if(pr.isHeaders(r))for(const[a,y]of r.entries())c(y,a,B);else r!=null&&c(i,r,B);return this}get(r,i){if(r=_2(r),r){const B=pr.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return p9e(D);if(pr.isFunction(i))return i.call(this,D,B);if(pr.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=_2(r),r){const B=pr.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||I7(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(g){if(g=_2(g),g){const a=pr.findKey(B,g);a&&(!i||I7(B,B[a],a,i))&&(delete B[a],D=!0)}}return pr.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||I7(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return pr.forEach(this,(D,c)=>{const g=pr.findKey(B,c);if(g){i[g]=B3(D),delete i[c];return}const a=r?m9e(c):String(c).trim();a!==c&&delete i[c],i[a]=B3(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return pr.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&pr.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
51
51
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[YO]=this[YO]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=_2(c);i[g]||(g9e(B,c),i[g]=!0)}return pr.isArray(r)?r.forEach(D):D(r),this}};N3.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pr.reduceDescriptors(N3.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),pr.freezeMethods(N3);const Gp=N3;function P7(e,r){const i=this||M7,B=r||i,D=Gp.from(B.headers);let c=B.data;return pr.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function XO(e){return!!(e&&e.__CANCEL__)}function dy(e,r,i){Xo.call(this,e??"canceled",Xo.ERR_CANCELED,r,i),this.name="CanceledError"}pr.inherits(dy,Xo,{__CANCEL__:!0});function ZO(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Xo("Request failed with status code "+i.status,[Xo.ERR_BAD_REQUEST,Xo.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function y9e(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function v9e(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function _9e(e,r){let i=0,B=1e3/r,D,c;const g=(a,y=Date.now())=>{i=y,D=null,c&&(clearTimeout(c),c=null),e.apply(null,a)};return[(...a)=>{const y=Date.now(),f=y-i;f>=B?g(a,y):(D=a,c||(c=setTimeout(()=>{c=null,g(D)},B-f)))},()=>D&&g(D)]}const z3=(e,r,i=3)=>{let B=0;const D=v9e(50,250);return _9e(c=>{const g=c.loaded,a=c.lengthComputable?c.total:void 0,y=g-B,f=D(y),n=g<=a;B=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&n?(a-g)/f:void 0,event:c,lengthComputable:a!=null,[r?"download":"upload"]:!0};e(v)},i)},JO=(e,r)=>{const i=e!=null;return[B=>r[0]({lengthComputable:i,total:e,loaded:B}),r[1]]},KO=e=>(...r)=>pr.asap(()=>e(...r)),b9e=Up.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=pr.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),x9e=Up.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];pr.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),pr.isString(B)&&g.push("path="+B),pr.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function w9e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k9e(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function QO(e,r){return e&&!w9e(r)?k9e(e,r):r}const eF=e=>e instanceof Gp?{...e}:e;function l1(e,r){r=r||{};const i={};function B(f,n,v){return pr.isPlainObject(f)&&pr.isPlainObject(n)?pr.merge.call({caseless:v},f,n):pr.isPlainObject(n)?pr.merge({},n):pr.isArray(n)?n.slice():n}function D(f,n,v){if(pr.isUndefined(n)){if(!pr.isUndefined(f))return B(void 0,f,v)}else return B(f,n,v)}function c(f,n){if(!pr.isUndefined(n))return B(void 0,n)}function g(f,n){if(pr.isUndefined(n)){if(!pr.isUndefined(f))return B(void 0,f)}else return B(void 0,n)}function a(f,n,v){if(v in r)return B(f,n);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(f,n)=>D(eF(f),eF(n),!0)};return pr.forEach(Object.keys(Object.assign({},e,r)),function(f){const n=y[f]||D,v=n(e[f],r[f],f);pr.isUndefined(v)&&n!==a||(i[f]=v)}),i}const tF=e=>{const r=l1({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:D,xsrfCookieName:c,headers:g,auth:a}=r;r.headers=g=Gp.from(g),r.url=GO(QO(r.baseURL,r.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(pr.isFormData(i)){if(Up.hasStandardBrowserEnv||Up.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((y=g.getContentType())!==!1){const[f,...n]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([f||"multipart/form-data",...n].join("; "))}}if(Up.hasStandardBrowserEnv&&(B&&pr.isFunction(B)&&(B=B(r)),B||B!==!1&&b9e(r.url))){const f=D&&c&&x9e.read(c);f&&g.set(D,f)}return r},C9e=typeof XMLHttpRequest<"u",S9e=C9e&&function(e){return new Promise(function(r,i){const B=tF(e);let D=B.data;const c=Gp.from(B.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:y}=B,f,n,v,_,p;function l(){_&&_(),p&&p(),B.cancelToken&&B.cancelToken.unsubscribe(f),B.signal&&B.signal.removeEventListener("abort",f)}let o=new XMLHttpRequest;o.open(B.method.toUpperCase(),B.url,!0),o.timeout=B.timeout;function s(){if(!o)return;const d=Gp.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:d,config:e,request:o};ZO(function(m){r(m),l()},function(m){i(m),l()},h),o=null}"onloadend"in o?o.onloadend=s:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(s)},o.onabort=function(){o&&(i(new Xo("Request aborted",Xo.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new Xo("Network Error",Xo.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let d=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const h=B.transitional||WO;B.timeoutErrorMessage&&(d=B.timeoutErrorMessage),i(new Xo(d,h.clarifyTimeoutError?Xo.ETIMEDOUT:Xo.ECONNABORTED,e,o)),o=null},D===void 0&&c.setContentType(null),"setRequestHeader"in o&&pr.forEach(c.toJSON(),function(d,h){o.setRequestHeader(h,d)}),pr.isUndefined(B.withCredentials)||(o.withCredentials=!!B.withCredentials),g&&g!=="json"&&(o.responseType=B.responseType),y&&([v,p]=z3(y,!0),o.addEventListener("progress",v)),a&&o.upload&&([n,_]=z3(a),o.upload.addEventListener("progress",n),o.upload.addEventListener("loadend",_)),(B.cancelToken||B.signal)&&(f=d=>{o&&(i(!d||d.type?new dy(null,e,o):d),o.abort(),o=null)},B.cancelToken&&B.cancelToken.subscribe(f),B.signal&&(B.signal.aborted?f():B.signal.addEventListener("abort",f)));const u=y9e(B.url);if(u&&Up.protocols.indexOf(u)===-1){i(new Xo("Unsupported protocol "+u+":",Xo.ERR_BAD_REQUEST,e));return}o.send(D||null)})},T9e=(e,r)=>{let i=new AbortController,B;const D=function(y){if(!B){B=!0,g();const f=y instanceof Error?y:this.reason;i.abort(f instanceof Xo?f:new dy(f instanceof Error?f.message:f))}};let c=r&&setTimeout(()=>{D(new Xo(`timeout ${r} of ms exceeded`,Xo.ETIMEDOUT))},r);const g=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",D):y.unsubscribe(D))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",D));const{signal:a}=i;return a.unsubscribe=g,[a,()=>{c&&clearTimeout(c),c=null}]},E9e=T9e,A9e=function*(e,r){let i=e.byteLength;if(!r||i<r){yield e;return}let B=0,D;for(;B<i;)D=B+r,yield e.slice(B,D),B=D},M9e=async function*(e,r,i){for await(const B of e)yield*A9e(ArrayBuffer.isView(B)?B:await i(String(B)),r)},aF=(e,r,i,B,D)=>{const c=M9e(e,r,D);let g=0,a,y=f=>{a||(a=!0,B&&B(f))};return new ReadableStream({async pull(f){try{const{done:n,value:v}=await c.next();if(n){y(),f.close();return}let _=v.byteLength;if(i){let p=g+=_;i(p)}f.enqueue(new Uint8Array(v))}catch(n){throw y(n),n}},cancel(f){return y(f),c.return()}},{highWaterMark:2})},O3=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nF=O3&&typeof ReadableStream=="function",B7=O3&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),rF=(e,...r)=>{try{return!!e(...r)}catch{return!1}},I9e=nF&&rF(()=>{let e=!1;const r=new Request(Up.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),iF=64*1024,N7=nF&&rF(()=>pr.isReadableStream(new Response("").body)),F3={stream:N7&&(e=>e.body)};O3&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!F3[r]&&(F3[r]=pr.isFunction(e[r])?i=>i[r]():(i,B)=>{throw new Xo(`Response type '${r}' is not supported`,Xo.ERR_NOT_SUPPORT,B)})})})(new Response);const P9e=async e=>{if(e==null)return 0;if(pr.isBlob(e))return e.size;if(pr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(pr.isArrayBufferView(e)||pr.isArrayBuffer(e))return e.byteLength;if(pr.isURLSearchParams(e)&&(e=e+""),pr.isString(e))return(await B7(e)).byteLength},B9e=async(e,r)=>pr.toFiniteNumber(e.getContentLength())??P9e(r),N9e=O3&&(async e=>{let{url:r,method:i,data:B,signal:D,cancelToken:c,timeout:g,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:n,withCredentials:v="same-origin",fetchOptions:_}=tF(e);f=f?(f+"").toLowerCase():"text";let[p,l]=D||c||g?E9e([D,c],g):[],o,s;const u=()=>{!o&&setTimeout(()=>{p&&p.unsubscribe()}),o=!0};let d;try{if(y&&I9e&&i!=="get"&&i!=="head"&&(d=await B9e(n,B))!==0){let w=new Request(r,{method:"POST",body:B,duplex:"half"}),x;if(pr.isFormData(B)&&(x=w.headers.get("content-type"))&&n.setContentType(x),w.body){const[S,C]=JO(d,z3(KO(y)));B=aF(w.body,iF,S,C,B7)}}pr.isString(v)||(v=v?"include":"omit"),s=new Request(r,{..._,signal:p,method:i.toUpperCase(),headers:n.normalize().toJSON(),body:B,duplex:"half",credentials:v});let h=await fetch(s);const m=N7&&(f==="stream"||f==="response");if(N7&&(a||m)){const w={};["status","statusText","headers"].forEach(T=>{w[T]=h[T]});const x=pr.toFiniteNumber(h.headers.get("content-length")),[S,C]=a&&JO(x,z3(KO(a),!0))||[];h=new Response(aF(h.body,iF,S,()=>{C&&C(),m&&u()},B7),w)}f=f||"text";let b=await F3[pr.findKey(F3,f)||"text"](h,e);return!m&&u(),l&&l(),await new Promise((w,x)=>{ZO(w,x,{data:b,headers:Gp.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:s})})}catch(h){throw u(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new Xo("Network Error",Xo.ERR_NETWORK,e,s),{cause:h.cause||h}):Xo.from(h,h&&h.code,e,s)}}),z7={http:X7e,xhr:S9e,fetch:N9e};pr.forEach(z7,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const oF=e=>`- ${e}`,z9e=e=>pr.isFunction(e)||e===null||e===!1,sF={getAdapter:e=>{e=pr.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!z9e(i)&&(B=z7[(g=String(i)).toLowerCase()],B===void 0))throw new Xo(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
|
|
52
52
|
`+c.map(oF).join(`
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
* Vue 3 Carousel 0.3.1
|
|
56
56
|
* (c) 2023
|
|
57
57
|
* @license MIT
|
|
58
|
-
*/const bu={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},hF={itemsToShow:{default:bu.itemsToShow,type:Number},itemsToScroll:{default:bu.itemsToScroll,type:Number},wrapAround:{default:bu.wrapAround,type:Boolean},throttle:{default:bu.throttle,type:Number},snapAlign:{default:bu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:bu.transition,type:Number},breakpoints:{default:bu.breakpoints,type:Object},autoplay:{default:bu.autoplay,type:Number},pauseAutoplayOnHover:{default:bu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:bu.mouseDrag,type:Boolean},touchDrag:{default:bu.touchDrag,type:Boolean},dir:{default:bu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:bu.i18n,type:Object},settings:{default(){return{}},type:Object}};function $9e({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function j9e({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function R7({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function U9e({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:R7({val:g,max:i-c,min:0})}function pF(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...pF(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function V7({val:e,max:r,min:i=0}){return e>r?V7({val:e-(r+1),max:r,min:i}):e<i?V7({val:e+(r+1),max:r,min:i}):e}function G9e(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function H9e(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function W9e(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var q9e=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},bu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},W9e(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Y9e=t.defineComponent({name:"Carousel",props:hF,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},bu));let n=Object.assign({},bu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=H9e(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=$9e({config:f,slidesCount:y.value}),s.value=j9e({config:f,slidesCount:y.value}),f.wrapAround||(_.value=R7({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=G9e(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:R7({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=V7({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>U9e({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(hF).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=pF(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(q9e)])}}}),fF;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(fF||(fF={}));var X9e=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},bu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Z9e=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},J9e=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),K9e={class:"gsc-carousel"},Q9e={key:0},eCe=J9e(()=>t.createElementVNode("div",null,"no hay",-1)),tCe=[eCe],aCe={class:"gsc-carousel__2d__slides"},nCe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rCe=["fill"],iCe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oCe=["fill"],sCe={class:"gsc-carousel__2d__navigation"},lCe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cCe=["stroke"],dCe={key:1,class:"gsc-carousel__2d__navigation__pagination"},uCe=["onClick"],hCe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pCe=["stroke"],fCe={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",K9e,[B.is3d?(t.openBlock(),t.createElementBlock("div",Q9e,tCe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",aCe,[t.createVNode(t.unref(Y9e),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(X9e),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",nCe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,rCe)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",iCe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,oCe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",sCe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",lCe,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,cCe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",dCe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,uCe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",hCe,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,pCe)]))])):t.createCommentVNode("",!0)])],2))]))}},mCe=Z9e(fCe,[["__scopeId","data-v-54620d25"]]);function gCe(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const yCe="_tarjetaDatosGsDesktoptype4_146od_107",vCe="_tarjetaDatosGsDesktop500type4_146od_127",_Ce="_tarjetaDatosGs414type4_146od_135",bCe="_tarjetaDatosGs414500type4_146od_159",xCe="_tarjetaDatosGs414380type4_146od_183",wCe="_tarjetaDatosGs320type4_146od_191",kCe="_tarjetaDatosGs320380type4_146od_215",CCe="_dataBox8type4_146od_239",SCe="_dataBox8380type4_146od_277",TCe="_dataBoxtype4_146od_317",ECe="_dataBox520type4_146od_365",ACe="_dataBox480type4_146od_415",MCe="_dataBox3type4_146od_463",ICe="_dataBox3520type4_146od_509",PCe="_dataBox4type4_146od_517",BCe="_dataBox4500type4_146od_567",NCe="_dataBox6type4_146od_621",zCe="_dataBox6500type4_146od_673",OCe="_dataContainertype4_146od_733",FCe="_dataContainer520type4_146od_761",LCe="_dataContainer1type4_146od_793",DCe="_dataContainer1500type4_146od_821",RCe="_dataBox7type4_146od_851",VCe="_dataBox7380type4_146od_889",$Ce="_div15type4_146od_933",jCe="_div15380type4_146od_951",UCe="_btnShareIcontype4_146od_969",GCe="_btnSharetype4_146od_981",HCe="_bakgBaseIcontype4_146od_1011",WCe="_roleCharacterIcontype4_146od_1035",qCe="_verVideostype4_146od_1051",YCe="_btnVideostype4_146od_1071",XCe="_playerNametype4_146od_1127",ZCe="_elJugadortype4_146od_1145",JCe="_aSeguirtype4_146od_1153",KCe="_elJugadorAContainertype4_146od_1163",QCe="_titletype4_146od_1183",eSe="_baseCardtype4_146od_1211",tSe="_imagePlayerIcontype4_146od_1241",aSe="_arrowGraphIcontype4_146od_1269",nSe="_divtype4_146od_1281",rSe="_totaltype4_146od_1295",iSe="_div1type4_146od_1311",oSe="_btnShareIcon1type4_146od_1333",sSe="_btnShare1type4_146od_1345",lSe="_bakgBaseIcon1type4_146od_1373",cSe="_bakgBaseIcon2type4_146od_1397",dSe="_roleCharacterIcon1type4_146od_1421",uSe="_btnVideos1type4_146od_1437",hSe="_playerName1type4_146od_1481",pSe="_elJugadorAContainer1type4_146od_1491",fSe="_title1type4_146od_1511",mSe="_baseCard1type4_146od_1537",gSe="_imagePlayerIcon1type4_146od_1565",ySe="_total4type4_146od_1587",vSe="_div9type4_146od_1603",_Se="_roleCharacterIcon2type4_146od_1619",bSe="_btnVideos2type4_146od_1635",xSe="_elJugadorAContainer2type4_146od_1675",wSe="_title2type4_146od_1695",kSe="_imagePlayerIcon2type4_146od_1723",CSe="_dataContainer2type4_146od_1745",SSe="_tarjetaDatosGstype4_146od_1775",TSe={tarjetaDatosGsDesktoptype4:yCe,tarjetaDatosGsDesktop500type4:vCe,tarjetaDatosGs414type4:_Ce,tarjetaDatosGs414500type4:bCe,tarjetaDatosGs414380type4:xCe,tarjetaDatosGs320type4:wCe,tarjetaDatosGs320380type4:kCe,dataBox8type4:CCe,dataBox8380type4:SCe,dataBoxtype4:TCe,dataBox520type4:ECe,dataBox480type4:ACe,dataBox3type4:MCe,dataBox3520type4:ICe,dataBox4type4:PCe,dataBox4500type4:BCe,dataBox6type4:NCe,dataBox6500type4:zCe,dataContainertype4:OCe,dataContainer520type4:FCe,dataContainer1type4:LCe,dataContainer1500type4:DCe,dataBox7type4:RCe,dataBox7380type4:VCe,div15type4:$Ce,div15380type4:jCe,btnShareIcontype4:UCe,btnSharetype4:GCe,bakgBaseIcontype4:HCe,roleCharacterIcontype4:WCe,verVideostype4:qCe,btnVideostype4:YCe,playerNametype4:XCe,elJugadortype4:ZCe,aSeguirtype4:JCe,elJugadorAContainertype4:KCe,titletype4:QCe,baseCardtype4:eSe,imagePlayerIcontype4:tSe,arrowGraphIcontype4:aSe,divtype4:nSe,totaltype4:rSe,div1type4:iSe,btnShareIcon1type4:oSe,btnShare1type4:sSe,bakgBaseIcon1type4:lSe,bakgBaseIcon2type4:cSe,roleCharacterIcon1type4:dSe,btnVideos1type4:uSe,playerName1type4:hSe,elJugadorAContainer1type4:pSe,title1type4:fSe,baseCard1type4:mSe,imagePlayerIcon1type4:gSe,total4type4:ySe,div9type4:vSe,roleCharacterIcon2type4:_Se,btnVideos2type4:bSe,elJugadorAContainer2type4:xSe,title2type4:wSe,imagePlayerIcon2type4:kSe,dataContainer2type4:CSe,tarjetaDatosGstype4:SSe},mF=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},$7={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},colorcard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},computed:{tarjetaDatosGsDesktopClass(){return this.elementSize.width<=500?this.$style.tarjetaDatosGsDesktop500type4:this.$style.tarjetaDatosGsDesktoptype4},tarjetaDatosGs414Class(){const e=this.elementSize.width;return e<=380?this.$style.tarjetaDatosGs414380type4:e<=500?this.$style.tarjetaDatosGs414500type4:this.$style.tarjetaDatosGs414type4},tarjetaDatosGs320Class(){return this.elementSize.width<=380?this.$style.tarjetaDatosGs320380type4:this.$style.tarjetaDatosGs320type4},dataBox8Class(){return this.elementSize.width<=380?this.$style.dataBox8380type4:this.$style.dataBox8type4},dataBoxClass(){const e=this.elementSize.width;return e<=480?this.$style.dataBox480type4:e<=520?this.$style.dataBox520type4:this.$style.dataBoxtype4},dataBox3Class(){return this.elementSize.width<=520?this.$style.dataBox3520type4:this.$style.dataBox3type4},dataBox4Class(){return this.elementSize.width<=500?this.$style.dataBox4500type4:this.$style.dataBox4type4},dataBox6Class(){return this.elementSize.width<=500?this.$style.dataBox6500type4:this.$style.dataBox6type4},dataBox7Class(){return this.elementSize.width<=380?this.$style.dataBox7380type4:this.$style.dataBox7type4},dataContainerClass(){return this.elementSize.width<=520?this.$style.dataContainer520type4:this.$style.dataContainertype4},dataContainer1Class(){return this.elementSize.width<=500?this.$style.dataContainer1500type4:this.$style.dataContainer1type4},div15Class(){return this.elementSize.width<=380?this.$style.div15380type4:this.$style.div15type4}},setup(){const e=t.ref("myDivRefCardtype4"),{elementSize:r}=gCe(e);return{myDivRefCardtype4:e,elementSize:r}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)},clickCategory(e){this.clickCard||this.$emit("onClickCategory",e)}}},gF=()=>{t.useCssVars(e=>({d44c2cb2:e.data.background_color_cards!=null&&e.customizeColors?e.data.background_color_cards:"#1b3649","8abc24c4":e.data.font_color_card!=null&&e.customizeColors?e.data.font_color_card:"#fff","9da2271e":e.data.background_color_buttons!=null&&e.customizeColors?e.data.background_color_buttons:"#293744","3aa595b3":e.customizeColors?"":"#cbee6b","5c719b3e":e.colorcard,ec41cfb8:e.data.font_color!=null&&e.customizeColors?e.data.font_color:"#fff"}))},yF=$7.setup;$7.setup=yF?(e,r)=>(gF(),yF(e,r)):gF;const ESe=t.createElementVNode("path",{d:"M14.886 14.0466C14.1404 14.0466 13.4733 14.3409 12.9632 14.8019L5.96863 10.7308C6.01768 10.5052 6.05692 10.2795 6.05692 10.0441C6.05692 9.80867 6.01768 9.58304 5.96863 9.35741L12.8847 5.32551C13.4145 5.81601 14.111 6.12012 14.886 6.12012C15.6665 6.12012 16.4151 5.81005 16.967 5.25814C17.5189 4.70622 17.829 3.95765 17.829 3.17712C17.829 2.39659 17.5189 1.64803 16.967 1.09611C16.4151 0.544195 15.6665 0.234131 14.886 0.234131C14.1054 0.234131 13.3569 0.544195 12.8049 1.09611C12.253 1.64803 11.9429 2.39659 11.9429 3.17712C11.9429 3.41256 11.9822 3.63819 12.0312 3.86382L5.11516 7.89572C4.58542 7.40523 3.8889 7.10112 3.11391 7.10112C2.33337 7.10112 1.58481 7.41118 1.03289 7.9631C0.480965 8.51502 0.170898 9.26358 0.170898 10.0441C0.170898 10.8246 0.480965 11.5732 1.03289 12.1251C1.58481 12.677 2.33337 12.9871 3.11391 12.9871C3.8889 12.9871 4.58542 12.683 5.11516 12.1925L12.0999 16.2636C12.0509 16.4696 12.0214 16.6855 12.0214 16.9111C12.0214 18.4905 13.3065 19.7658 14.886 19.7658C16.4654 19.7658 17.7505 18.4905 17.7505 16.9111C17.7505 16.1514 17.4487 15.4228 16.9115 14.8856C16.3743 14.3484 15.6457 14.0466 14.886 14.0466Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),ASe=[ESe],MSe=["src"],ISe={"clip-path":"url(#clip0_59_831)"},PSe=["fill"],BSe=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),NSe=["src"],zSe=["fill"],OSe=["fill"],FSe=["fill"],LSe=t.createElementVNode("path",{d:"M10.2126 9.10136C9.73332 9.10136 9.30448 9.29055 8.97655 9.58695L4.48004 6.96979C4.51158 6.82474 4.5368 6.67969 4.5368 6.52834C4.5368 6.37699 4.51158 6.23194 4.48004 6.08689L8.92609 3.49495C9.26664 3.81027 9.7144 4.00577 10.2126 4.00577C10.7144 4.00577 11.1956 3.80645 11.5504 3.45164C11.9052 3.09684 12.1045 2.61562 12.1045 2.11385C12.1045 1.61208 11.9052 1.13086 11.5504 0.776056C11.1956 0.421251 10.7144 0.221924 10.2126 0.221924C9.71084 0.221924 9.22962 0.421251 8.87481 0.776056C8.52 1.13086 8.32067 1.61208 8.32067 2.11385C8.32067 2.2652 8.3459 2.41025 8.37743 2.5553L3.93138 5.14723C3.59083 4.83191 3.14308 4.63641 2.64487 4.63641C2.14309 4.63641 1.66187 4.83574 1.30706 5.19055C0.952258 5.54535 0.75293 6.02657 0.75293 6.52834C0.75293 7.03011 0.952258 7.51133 1.30706 7.86613C1.66187 8.22094 2.14309 8.42026 2.64487 8.42026C3.14308 8.42026 3.59083 8.22476 3.93138 7.90944L8.42158 10.5266C8.39004 10.659 8.37113 10.7978 8.37113 10.9428C8.37113 11.9582 9.19727 12.778 10.2126 12.778C11.2279 12.778 12.0541 11.9582 12.0541 10.9428C12.0541 10.4544 11.8601 9.98605 11.5147 9.64071C11.1694 9.29537 10.701 9.10136 10.2126 9.10136Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),DSe=[LSe],RSe=["src"],VSe=["fill"],$Se=["src"],jSe=["fill"],USe=["fill"],GSe=["fill"],HSe=t.createElementVNode("path",{d:"M10.2126 9.10111C9.73332 9.10111 9.30448 9.2903 8.97655 9.58671L4.48004 6.96954C4.51158 6.8245 4.5368 6.67945 4.5368 6.52809C4.5368 6.37674 4.51158 6.23169 4.48004 6.08665L8.92609 3.49471C9.26664 3.81003 9.7144 4.00553 10.2126 4.00553C10.7144 4.00553 11.1956 3.8062 11.5504 3.4514C11.9052 3.09659 12.1045 2.61537 12.1045 2.1136C12.1045 1.61183 11.9052 1.13062 11.5504 0.775812C11.1956 0.421007 10.7144 0.22168 10.2126 0.22168C9.71084 0.22168 9.22962 0.421007 8.87481 0.775812C8.52 1.13062 8.32067 1.61183 8.32067 2.1136C8.32067 2.26496 8.3459 2.41001 8.37743 2.55505L3.93138 5.14699C3.59083 4.83167 3.14308 4.63617 2.64487 4.63617C2.14309 4.63617 1.66187 4.8355 1.30706 5.1903C0.952258 5.54511 0.75293 6.02633 0.75293 6.52809C0.75293 7.02986 0.952258 7.51108 1.30706 7.86589C1.66187 8.22069 2.14309 8.42002 2.64487 8.42002C3.14308 8.42002 3.59083 8.22452 3.93138 7.9092L8.42158 10.5264C8.39004 10.6588 8.37113 10.7975 8.37113 10.9426C8.37113 11.9579 9.19727 12.7778 10.2126 12.7778C11.2279 12.7778 12.0541 11.9579 12.0541 10.9426C12.0541 10.4542 11.8601 9.98581 11.5147 9.64047C11.1694 9.29512 10.701 9.10111 10.2126 9.10111Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),WSe=[HSe],qSe=["src"],YSe=["fill"],XSe=["src"],ZSe=["fill"],JSe=["fill"],KSe=["fill"];function QSe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.tarjetaDatosGstype4),ref:"myDivRefCardtype4",onClick:r[12]||(r[12]=g=>c.clickPlayer({season_id:i.data.id_season,player_id:i.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGsDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCardtype4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnSharetype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcontype4),width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ASe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcontype4),alt:"",src:i.data.background},null,10,MSe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideostype4),onClick:r[0]||(r[0]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,category:"games_played",type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",ISe,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,PSe)]),BSe],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titletype4),id:"title-info"},[t.createElementVNode("h4",{class:t.normalizeClass(e.$style.playerNametype4),id:"player-name"},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainertype4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcontype4),alt:"",src:i.data.player_photo},null,10,NSe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.dataContainerClass),id:"data-container"},[i.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBoxClass),onClick:r[1]||(r[1]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,zSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),i.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBoxClass),onClick:r[2]||(r[2]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,OSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_2),3)],6)):t.createCommentVNode("",!0),i.data.showlast_category&&i.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBoxClass),onClick:r[3]||(r[3]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,FSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGs414Class),id:"card-mobile-414"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},DSe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon1type4),alt:"",src:i.data.background},null,10,RSe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos1type4),onClick:r[4]||(r[4]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,category:"games_played",type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon1type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,VSe)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title1type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer1type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon1type4),alt:"",src:i.data.player_photo},null,10,$Se)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.dataContainer1Class),id:"data-container"},[i.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox4Class),onClick:r[5]||(r[5]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,jSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),i.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox4Class),onClick:r[6]||(r[6]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,USe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_2),3)],6)):t.createCommentVNode("",!0),i.data.showlast_category&&i.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox6Class),onClick:r[7]||(r[7]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,GSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGs320Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},WSe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon2type4),alt:"",src:i.data.background},null,10,qSe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos2type4),onClick:r[8]||(r[8]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,category:"games_played",type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon2type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,YSe)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title2type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer2type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon2type4),alt:"",src:i.data.player_photo},null,10,XSe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer2type4),id:"data-container"},[i.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox7Class),onClick:r[9]||(r[9]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,ZSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),i.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox8Class),onClick:r[10]||(r[10]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,JSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_2),3)],6)):t.createCommentVNode("",!0),i.data.showlast_category&&i.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox8Class),onClick:r[11]||(r[11]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.474421 8.8403C0.41722 8.80242 0.369409 8.74584 0.336143 8.67665C0.302877 8.60746 0.285418 8.52828 0.285647 8.44765V1.33719C0.285725 1.25684 0.303299 1.17801 0.3365 1.10909C0.369701 1.04018 0.417288 0.983741 0.474202 0.94579C0.531117 0.907838 0.595232 0.889787 0.659731 0.893556C0.72423 0.897325 0.786704 0.922773 0.84051 0.967195L5.12637 4.52284C5.17532 4.56335 5.21547 4.61829 5.24324 4.68277C5.271 4.74724 5.28554 4.81926 5.28554 4.89242C5.28554 4.96557 5.271 5.03759 5.24324 5.10207C5.21547 5.16655 5.17532 5.22149 5.12637 5.26199L0.84051 8.81848C0.786786 8.863 0.724361 8.88854 0.659889 8.89238C0.595418 8.89623 0.531318 8.87822 0.474421 8.8403V8.8403ZM0.64297 8.44849L4.92883 4.89284L0.64297 8.44849Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,KSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2)],2)}const eTe={$style:TSe},tTe=mF($7,[["render",QSe],["__cssModules",eTe]]),aTe={components:{GSCCarousel:mCe,GSCCardData:tTe},props:{type:{type:Number,default:0},data:{type:Object,default:()=>{}},wrapAround:{type:Boolean,default:!0},clickCard:{type:Boolean,default:!1},prematch:{type:Boolean,default:!1},teamSelected:{type:Number,default:0},colorCardByTeam:{type:Boolean,default:!1},showShareButton:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>({})},customizeColors:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",pages:[],homeTeam:[],awayTeam:[],playerInfo:{}}},computed:{},watch:{data:{immediate:!0,handler(e){this.getStats(e)}}},methods:{onclickPlayVideos(e,r){if(!r)return;var i=[];e.type==2?e.position_id==1?e.category==0?i=[55,324,323,608,39,774,802,52,53,40,54]:i=e.category:e.category==0?i=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:i=e.category:e.type==3?e.category==0?i=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:i=e.category:e.category!=0?i=e.category:i=[607,608,12,55,54,35,14,52,15,53,466,477];const B=[1,2,3];i==="minutes_played"&&(i=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]),i==="games_played"&&(i=[607,608,12,55,54,35,14,52,15,53,466,477]);let D={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,gameIds:e.game_id?[e.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?[e.team_id]:0,matchResult:e.matchResult?[e.matchResult]:B,playData:{},advancedFilter:{playListTitle:"",mainCategoryId:e.category||0}};this.$emit("openmedia",D)},async getStats(){const e=await V9e.create({headers:{Authorization:`${this.token}`}}).get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.data.season+"/games/"+this.data.game);this.playVideosPrivileges?this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e.data.games[0].players.forEach(r=>r.canPlayVideos=r.team_id===this.playVideosPrivileges.seasonAndPrivileges.teamId):e.data.games[0].players.forEach(r=>{r.canPlayVideos=!0}):e.data.games[0].players.forEach(r=>{r.canPlayVideos=!1}):e.data.games[0].players.forEach(r=>{r.canPlayVideos=!0});for(let r=0;r<e.data.games[0].players.length;r++)this.type==0?this.pages.push([{canPlayVideos:e.data.games[0].players[r].canPlayVideos,id_season:e.data.games[0].players[r].season_id,color:e.data.games[0].players[r].info_thumbnails.colors.background_color,player_id:e.data.games[0].players[r].player_id,player_name:e.data.games[0].players[r].player_name,game_id:e.data.games[0].game_status===4?null:e.data.games[0].game_id,background:e.data.games[0].players[r].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.background_default_players[0],player_photo:e.data.games[0].players[r].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${e.data.games[0].players[r].player_id}.png`,category_stats_1:this.prematch?e.data.games[0].players[r].games_played:e.data.games[0].players[r].minutes_played,category_stats_2:this.prematch?e.data.games[0].players[r].minutes_played:e.data.games[0].players[r].categories[0].total,category_stats_3:this.prematch?e.data.games[0].players[r].categories[0].total:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":e.data.games[0].players[r].categories[0].categories,category_id_3:this.prematch?e.data.games[0].players[r].categories[0].categories:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":e.data.games[0].players[r].categories[0].category_name,category_name_3:this.prematch?e.data.games[0].players[r].categories[0].category_name:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].category_name:"",showlast_category:!!e.data.games[0].players[r].categories[0],main_title:this.prematch?this.tournamentSelected.is_female==1?"Jugadora":"Jugador":this.tournamentSelected.is_female==1?"Jugadora":"Jugador",second_title:this.prematch?"A seguir":this.tournamentSelected.is_female==1?"Destacada":"Destacado",background_color_buttons:e.data.games[0].players[r].info_thumbnails.colors.background_color_buttons,background_color_cards:e.data.games[0].players[r].info_thumbnails.colors.background_color_cards,color_icon_play:e.data.games[0].players[r].info_thumbnails.colors.color_icon_play,color_next_back:e.data.games[0].players[r].info_thumbnails.colors.color_next_back,font_color:e.data.games[0].players[r].info_thumbnails.colors.font_color,font_color_card:e.data.games[0].players[r].info_thumbnails.colors.font_color_cards?e.data.games[0].players[r].info_thumbnails.colors.font_color_cards:"#FFFFFF"}]):this.teamSelected==e.data.games[0].players[r].team_id&&this.pages.push([{canPlayVideos:e.data.games[0].players[r].canPlayVideos,id_season:e.data.games[0].players[r].season_id,color:e.data.games[0].players[r].info_thumbnails.colors.background_color,player_id:e.data.games[0].players[r].player_id,player_name:e.data.games[0].players[r].player_name,game_id:e.data.games[0].game_status===4?null:e.data.games[0].game_id,background:e.data.games[0].players[r].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.background_default_players[0],player_photo:e.data.games[0].players[r].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${e.data.games[0].players[r].player_id}.png`,category_stats_1:this.prematch?e.data.games[0].players[r].games_played:e.data.games[0].players[r].minutes_played,category_stats_2:this.prematch?e.data.games[0].players[r].minutes_played:e.data.games[0].players[r].categories[0].total,category_stats_3:this.prematch?e.data.games[0].players[r].categories[0].total:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":e.data.games[0].players[r].categories[0].categories,category_id_3:this.prematch?e.data.games[0].players[r].categories[0].categories:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":e.data.games[0].players[r].categories[0].category_name,category_name_3:this.prematch?e.data.games[0].players[r].categories[0].category_name:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].category_name:"",showlast_category:!!e.data.games[0].players[r].categories[1],main_title:this.prematch?this.tournamentSelected.is_female==1?"Jugadora":"Jugador":this.tournamentSelected.is_female==1?"Jugadora":"Jugador",second_title:this.prematch?"A seguir":this.tournamentSelected.is_female==1?"Destacada":"Destacado",background_color_buttons:e.data.games[0].players[r].info_thumbnails.colors.background_color_buttons,background_color_cards:e.data.games[0].players[r].info_thumbnails.colors.background_color_cards,color_icon_play:e.data.games[0].players[r].info_thumbnails.colors.color_icon_play,color_next_back:e.data.games[0].players[r].info_thumbnails.colors.color_next_back,font_color:e.data.games[0].players[r].info_thumbnails.colors.font_color,font_color_card:e.data.games[0].players[r].info_thumbnails.colors.font_color_cards?e.data.games[0].players[r].info_thumbnails.colors.font_color_cards:"#FFFFFF"}])},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},onClickCategory(e){this.$emit("onClickCategory",e)},clickMore(){this.$emit("onViewMore",!0)}}},nTe=e=>(t.pushScopeId("data-v-a8d30466"),e=e(),t.popScopeId(),e),rTe={class:"gsdata"},iTe={class:"gsc-gsdata-carrousel"},oTe={key:0,class:"title-header"},sTe=nTe(()=>t.createElementVNode("div",{class:"title-header-title"},"Datos GolStats",-1)),lTe={class:"row-table-carrousel"};function cTe(e,r,i,B,D,c){const g=t.resolveComponent("GSCCardData"),a=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",rTe,[t.createElementVNode("div",iTe,[i.teamSelected==0?(t.openBlock(),t.createElementBlock("div",oTe,[sTe,t.createElementVNode("div",{class:"title-header-btn",onClick:r[0]||(r[0]=(...y)=>c.clickMore&&c.clickMore(...y))},"Ver más")])):t.createCommentVNode("",!0),t.createVNode(a,{items:D.pages,wrapAround:i.wrapAround,itemsToShow:1.1,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,isMainSlidePriority:!0,areSlidesArrowsRounded:!1,isPaginationVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",lTe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y,(f,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:n},[i.colorCardByTeam?(t.openBlock(),t.createBlock(g,{key:1,type:4,colorcard:f.color,"click-card":i.clickCard,"show-share-button":i.showShareButton,"customize-colors":i.customizeColors,data:f,"can-play-videos":f.canPlayVideos,onOnClickVideos:v=>c.onclickPlayVideos(v,f.canPlayVideos),onOnClickCategory:v=>c.onclickPlayVideos(v,f.canPlayVideos)},null,8,["colorcard","click-card","show-share-button","customize-colors","data","can-play-videos","onOnClickVideos","onOnClickCategory"])):(t.openBlock(),t.createBlock(g,{key:0,type:4,"click-card":i.clickCard,"show-share-button":i.showShareButton,"customize-colors":i.customizeColors,data:f,"can-play-videos":f.canPlayVideos,onOnClickVideos:v=>c.onclickPlayVideos(v,f.canPlayVideos),onOnClickCategory:v=>c.onclickPlayVideos(v,f.canPlayVideos)},null,8,["click-card","show-share-button","customize-colors","data","can-play-videos","onOnClickVideos","onOnClickCategory"]))],64))),128))])]),_:1},8,["items","wrapAround"])])])}const dTe=mF(aTe,[["render",cTe],["__scopeId","data-v-a8d30466"]]),uTe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},j7={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},vF=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},_F=j7.setup;j7.setup=_F?(e,r)=>(vF(),_F(e,r)):vF;const hTe=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),pTe=["src"],fTe={key:1,class:"text"},mTe=["src"],gTe={class:"stats"},yTe=hTe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),vTe={class:"numstats"},_Te={class:"leyend"};function bTe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,pTe)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",fTe,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,mTe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",gTe,[yTe,t.createElementVNode("div",vTe,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",_Te,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const xTe=uTe(j7,[["render",bTe],["__scopeId","data-v-fb269a1e"]]);function b2(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const wTe="_cardFrecuentConnectionstype0_1oswo_57",kTe="_cardFrecuentConnectionsDesktype0_1oswo_85",CTe="_cardFrecuentConnectionsDesk360type0_1oswo_103",STe="_imgPlayerParenttype0_1oswo_123",TTe="_imgPlayerIcontype0_1oswo_149",ETe="_imgPlayerIcon360type0_1oswo_163",ATe="_playerInfotype0_1oswo_177",MTe="_benjaminEvalenttype0_1oswo_195",ITe="_frameParenttype0_1oswo_207",PTe="_union9Wrappertype0_1oswo_223",BTe="_union9Icontype0_1oswo_251",NTe="_benjaminEvalent1type0_1oswo_263",zTe="_benjaminEvalent1360type0_1oswo_277",OTe={cardFrecuentConnectionstype0:wTe,cardFrecuentConnectionsDesktype0:kTe,cardFrecuentConnectionsDesk360type0:CTe,imgPlayerParenttype0:STe,imgPlayerIcontype0:TTe,imgPlayerIcon360type0:ETe,playerInfotype0:ATe,benjaminEvalenttype0:MTe,frameParenttype0:ITe,union9Wrappertype0:PTe,union9Icontype0:BTe,benjaminEvalent1type0:NTe,benjaminEvalent1360type0:zTe},uy=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},FTe={components:{GSCButton:xTe},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0}},computed:{cardFrecuentConnectionsDeskClass(){return this.elementSize.width<=360?this.$style.cardFrecuentConnectionsDesk360type0:this.$style.cardFrecuentConnectionsDesktype0},imgPlayerIconClass(){return this.elementSize.width<=360?this.$style.imgPlayerIcon360type0:this.$style.imgPlayerIcontype0},benjaminEvalent1Class(){return this.elementSize.width<=360?this.$style.benjaminEvalent1360type0:this.$style.benjaminEvalent1type0}},data(){return{}},setup(){const e=t.ref("myDivRefCardtype0"),{elementSize:r}=b2(e);return{myDivRefCardtype0:e,elementSize:r}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickPlayer",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},LTe={ref:"myDivRefCardtype0"},DTe=["alt","src"];function RTe(e,r,i,B,D,c){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",LTe,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardFrecuentConnectionstype0),onClick:r[1]||(r[1]=a=>c.clickPlayer({player_id:i.data.player_id}))},[t.createElementVNode("div",{class:t.normalizeClass(c.cardFrecuentConnectionsDeskClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgPlayerParenttype0)},[t.createElementVNode("img",{class:t.normalizeClass(c.imgPlayerIconClass),alt:i.data.player_name,src:i.data.player_photo},null,10,DTe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerInfotype0)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.benjaminEvalenttype0)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParenttype0)},[t.withDirectives(t.createVNode(g,{icon:"/play-icn.svg","icon-size":"9px","icon-position":"left",width:"18px",height:"18px","border-radius":"18px","border-width":"1","background-color":"transparent","border-color":"#FFFFFF",onClick:r[0]||(r[0]=a=>c.clickVideos({player_id:i.data.player_id}))},null,512),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(c.benjaminEvalent1Class)},t.toDisplayString(i.data.player_stat),3)],2)],2)],2)],2)],2)],512)}const VTe={$style:OTe},$Te=uy(FTe,[["render",RTe],["__cssModules",VTe]]),jTe="_cardVideosJugadorestype1_1fhwp_59",UTe="_cardDesktoptype1_1fhwp_87",GTe="_cardDesktop460type1_1fhwp_113",HTe="_backgroundImageParenttype1_1fhwp_137",WTe="_backgroundImageParent460type1_1fhwp_171",qTe="_backgroundImageIcontype1_1fhwp_205",YTe="_loMejorDeContainertype1_1fhwp_225",XTe="_loMejorDeContainer460type1_1fhwp_249",ZTe="_loMejorDeContainer420type1_1fhwp_273",JTe="_loMejorDetype1_1fhwp_297",KTe="_btnPlaytype1_1fhwp_303",QTe="_btnPlay460_1fhwp_361",eEe="_btnPlay460type1_1fhwp_367",tEe="_roleCharacterIcontype1_1fhwp_417",aEe="_reproducirtype1_1fhwp_431",nEe="_playerTeamDesktopIcontype1_1fhwp_445",rEe="_playerTeamDesktopIcon1200type1_1fhwp_465",iEe="_playerTeamDesktopIcon460type1_1fhwp_489",oEe={cardVideosJugadorestype1:jTe,cardDesktoptype1:UTe,cardDesktop460type1:GTe,backgroundImageParenttype1:HTe,backgroundImageParent460type1:WTe,backgroundImageIcontype1:qTe,loMejorDeContainertype1:YTe,loMejorDeContainer460type1:XTe,loMejorDeContainer420type1:ZTe,loMejorDetype1:JTe,btnPlaytype1:KTe,btnPlay460:QTe,btnPlay460type1:eEe,roleCharacterIcontype1:tEe,reproducirtype1:aEe,playerTeamDesktopIcontype1:nEe,playerTeamDesktopIcon1200type1:rEe,playerTeamDesktopIcon460type1:iEe},U7={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#000000"},colorTitle:{type:String,default:"#000000"},borderColor:{type:String,default:"#000000"},backgroundImg:{type:String,default:""},customizeColors:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},computed:{cardDesktopClass(){return this.elementSize.width<=460?this.$style.cardDesktop460type1:this.$style.cardDesktoptype1},backgroundImageParentClass(){return this.elementSize.width<=460?this.$style.backgroundImageParent460type1:this.$style.backgroundImageParenttype1},btnPlayClass(){return this.elementSize.width<=460?this.$style.btnPlay460type1:this.$style.btnPlaytype1},loMejorDeContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.loMejorDeContainer420type1:e<=460?this.$style.loMejorDeContainer460type1:this.$style.loMejorDeContainertype1},playerTeamDesktopIconClass(){const e=this.elementSize.width;return e<=460?this.$style.playerTeamDesktopIcon460type1:e<=1200?this.$style.playerTeamDesktopIcon1200type1:this.$style.playerTeamDesktopIcontype1}},setup(){const e=t.ref("myDivRefCardtype1"),{elementSize:r}=b2(e);return{myDivRefCardtype1:e,elementSize:r}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},bF=()=>{t.useCssVars(e=>({"13cfbb94":e.data.font_color!=null&&e.customizeColors?e.data.font_color:"#fff","5bd0af70":e.backgroundColor,"2573269e":e.data.background_color_buttons!=null&&e.customizeColors?e.data.background_color_buttons:"rgba(255, 255, 255, 0.08)","7c80c4b2":e.borderColor,"372c608e":e.data.font_color_card!=null?e.data.font_color_card:"#fff"}))},xF=U7.setup;U7.setup=xF?(e,r)=>(bF(),xF(e,r)):bF;const sEe={ref:"myDivRefCardtype1"},lEe=["src"],cEe={"clip-path":"url(#clip0_59_831)"},dEe=["fill"],uEe=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),hEe=["src"];function pEe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",sEe,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardVideosJugadorestype1),onClick:r[1]||(r[1]=g=>c.clickPlayer({player_id:i.data.player_id,team_id:i.data.team_id}))},[t.createElementVNode("div",{class:t.normalizeClass(c.cardDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(c.backgroundImageParentClass)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backgroundImageIcontype1),src:i.backgroundImg},null,10,lEe),t.createElementVNode("h2",{class:t.normalizeClass(c.loMejorDeContainerClass),id:"title-card"},[B.elementSize.width>380?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.loMejorDetype1)},"Lo mejor de",2)):t.createCommentVNode("",!0),B.elementSize.width<=380?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.loMejorDetype1)},"Lo mejor",2)):t.createCommentVNode("",!0),B.elementSize.width<=380?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.loMejorDetype1)},"de",2)):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass(e.$style.loMejorDetype1)},t.toDisplayString(i.data.team_name),3)],2),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(c.btnPlayClass),onClick:r[0]||(r[0]=g=>c.clickVideos({player_id:i.data.player_id,team_id:i.data.team_id}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",cEe,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,dEe)]),uEe],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.reproducirtype1)},"Reproducir",2)],2),[[t.vShow,i.canPlayVideos]])],2),t.createElementVNode("img",{class:t.normalizeClass(c.playerTeamDesktopIconClass),src:i.data.player_photo},null,10,hEe)],2)],2)],512)}const fEe={$style:oEe},mEe=uy(U7,[["render",pEe],["__cssModules",fEe]]),gEe="_tarjetaHighlightsPostmatchtype2_1islw_7",yEe="_tarjetaHighlightsPostmatch780type2_1islw_35",vEe="_tarjetaHighlightsPostmatch640type2_1islw_65",_Ee="_tarjetaHighlightsPostmatch520type2_1islw_97",bEe="_tarjetaHighlightsPostmatch350type2_1islw_131",xEe="_tarjetaHighlightsPostmatch420type2_1islw_161",wEe="_tarjetaHighlightsPostmatch320type2_1islw_195",kEe="_backgroundtype2_1islw_231",CEe="_background640type2_1islw_251",SEe="_btnPlaytype2_1islw_273",TEe="_btnPlay1_1islw_297",EEe="_btnPlay1type2_1islw_305",AEe="_icnPlaytype2_1islw_347",MEe="_union6Icontype2_1islw_365",IEe={tarjetaHighlightsPostmatchtype2:gEe,tarjetaHighlightsPostmatch780type2:yEe,tarjetaHighlightsPostmatch640type2:vEe,tarjetaHighlightsPostmatch520type2:_Ee,tarjetaHighlightsPostmatch350type2:bEe,tarjetaHighlightsPostmatch420type2:xEe,tarjetaHighlightsPostmatch320type2:wEe,backgroundtype2:kEe,background640type2:CEe,btnPlaytype2:SEe,btnPlay1:TEe,btnPlay1type2:EEe,icnPlaytype2:AEe,union6Icontype2:MEe},PEe={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},backgroundImg:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0}},computed:{tarjetaHighlightsPostmatchClass(){const e=this.elementSize.width;return e<=320?this.$style.tarjetaHighlightsPostmatch320type2:e<=350?this.$style.tarjetaHighlightsPostmatch350type2:e<=420?this.$style.tarjetaHighlightsPostmatch420type2:e<=520?this.$style.tarjetaHighlightsPostmatch520type2:e<=640?this.$style.tarjetaHighlightsPostmatch640type2:e<=780?this.$style.tarjetaHighlightsPostmatch780type2:this.$style.tarjetaHighlightsPostmatchtype2},backgroundClass(){return this.elementSize.width<=640?this.$style.background640type2:this.$style.backgroundtype2}},setup(){const e=t.ref("myDivRefCardtype2"),{elementSize:r}=b2(e);return{myDivRefCardtype2:e,elementSize:r}},data(){return{}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},BEe={ref:"myDivRefCardtype2"},NEe=t.createStaticVNode('<svg width="20" height="20" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_59_831)"><path d="M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z" fill="#CBEE6B"></path></g><defs><clipPath id="clip0_59_831"><rect width="12" height="12" fill="white" transform="translate(0.375 0.637695)"></rect></clipPath></defs></svg>',1),zEe=[NEe];function OEe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",BEe,[t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaHighlightsPostmatchClass),onClick:r[1]||(r[1]=g=>c.clickPlayer({game_id:i.data.game_id}))},[t.createElementVNode("div",{class:t.normalizeClass(c.backgroundClass),id:"image-video",style:t.normalizeStyle({"background-image":"url("+i.backgroundImg+")"})},null,6),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnPlaytype2)},[t.withDirectives(t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnPlay1type2),id:"btn-play",onClick:r[0]||(r[0]=g=>c.clickVideos({game_id:i.data.game_id}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.icnPlaytype2)},zEe,2)],2),[[t.vShow,i.canPlayVideos]])],2)],2)],512)}const FEe={$style:IEe},LEe=uy(PEe,[["render",OEe],["__cssModules",FEe]]),DEe="_tarjetaDatosGsDesktoptype4_4174v_107",REe="_tarjetaDatosGsDesktop500type4_4174v_127",VEe="_tarjetaDatosGs414type4_4174v_135",$Ee="_tarjetaDatosGs414500type4_4174v_159",jEe="_tarjetaDatosGs414380type4_4174v_183",UEe="_tarjetaDatosGs320type4_4174v_191",GEe="_tarjetaDatosGs320380type4_4174v_215",HEe="_dataBox8type4_4174v_239",WEe="_dataBox8380type4_4174v_279",qEe="_dataBoxtype4_4174v_321",YEe="_dataBox520type4_4174v_369",XEe="_dataBox480type4_4174v_419",ZEe="_dataBox3type4_4174v_469",JEe="_dataBox3520type4_4174v_517",KEe="_dataBox4type4_4174v_525",QEe="_dataBox4500type4_4174v_577",eAe="_dataBox6type4_4174v_633",tAe="_dataBox6500type4_4174v_687",aAe="_dataContainertype4_4174v_749",nAe="_dataContainer520type4_4174v_777",rAe="_dataContainer1type4_4174v_809",iAe="_dataContainer1500type4_4174v_837",oAe="_dataBox7type4_4174v_867",sAe="_dataBox7380type4_4174v_907",lAe="_div15type4_4174v_953",cAe="_div15380type4_4174v_971",dAe="_btnShareIcontype4_4174v_989",uAe="_btnSharetype4_4174v_1001",hAe="_bakgBaseIcontype4_4174v_1031",pAe="_roleCharacterIcontype4_4174v_1055",fAe="_verVideostype4_4174v_1071",mAe="_btnVideostype4_4174v_1087",gAe="_playerNametype4_4174v_1145",yAe="_elJugadortype4_4174v_1163",vAe="_aSeguirtype4_4174v_1171",_Ae="_elJugadorAContainertype4_4174v_1181",bAe="_titletype4_4174v_1201",xAe="_baseCardtype4_4174v_1229",wAe="_imagePlayerIcontype4_4174v_1259",kAe="_arrowGraphIcontype4_4174v_1285",CAe="_divtype4_4174v_1297",SAe="_totaltype4_4174v_1311",TAe="_div1type4_4174v_1327",EAe="_btnShareIcon1type4_4174v_1349",AAe="_btnShare1type4_4174v_1361",MAe="_bakgBaseIcon1type4_4174v_1389",IAe="_bakgBaseIcon2type4_4174v_1413",PAe="_roleCharacterIcon1type4_4174v_1437",BAe="_btnVideos1type4_4174v_1453",NAe="_playerName1type4_4174v_1499",zAe="_elJugadorAContainer1type4_4174v_1509",OAe="_title1type4_4174v_1529",FAe="_baseCard1type4_4174v_1555",LAe="_imagePlayerIcon1type4_4174v_1583",DAe="_total4type4_4174v_1605",RAe="_div9type4_4174v_1621",VAe="_roleCharacterIcon2type4_4174v_1637",$Ae="_btnVideos2type4_4174v_1653",jAe="_elJugadorAContainer2type4_4174v_1695",UAe="_title2type4_4174v_1715",GAe="_imagePlayerIcon2type4_4174v_1743",HAe="_dataContainer2type4_4174v_1765",WAe="_tarjetaDatosGstype4_4174v_1795",qAe={tarjetaDatosGsDesktoptype4:DEe,tarjetaDatosGsDesktop500type4:REe,tarjetaDatosGs414type4:VEe,tarjetaDatosGs414500type4:$Ee,tarjetaDatosGs414380type4:jEe,tarjetaDatosGs320type4:UEe,tarjetaDatosGs320380type4:GEe,dataBox8type4:HEe,dataBox8380type4:WEe,dataBoxtype4:qEe,dataBox520type4:YEe,dataBox480type4:XEe,dataBox3type4:ZEe,dataBox3520type4:JEe,dataBox4type4:KEe,dataBox4500type4:QEe,dataBox6type4:eAe,dataBox6500type4:tAe,dataContainertype4:aAe,dataContainer520type4:nAe,dataContainer1type4:rAe,dataContainer1500type4:iAe,dataBox7type4:oAe,dataBox7380type4:sAe,div15type4:lAe,div15380type4:cAe,btnShareIcontype4:dAe,btnSharetype4:uAe,bakgBaseIcontype4:hAe,roleCharacterIcontype4:pAe,verVideostype4:fAe,btnVideostype4:mAe,playerNametype4:gAe,elJugadortype4:yAe,aSeguirtype4:vAe,elJugadorAContainertype4:_Ae,titletype4:bAe,baseCardtype4:xAe,imagePlayerIcontype4:wAe,arrowGraphIcontype4:kAe,divtype4:CAe,totaltype4:SAe,div1type4:TAe,btnShareIcon1type4:EAe,btnShare1type4:AAe,bakgBaseIcon1type4:MAe,bakgBaseIcon2type4:IAe,roleCharacterIcon1type4:PAe,btnVideos1type4:BAe,playerName1type4:NAe,elJugadorAContainer1type4:zAe,title1type4:OAe,baseCard1type4:FAe,imagePlayerIcon1type4:LAe,total4type4:DAe,div9type4:RAe,roleCharacterIcon2type4:VAe,btnVideos2type4:$Ae,elJugadorAContainer2type4:jAe,title2type4:UAe,imagePlayerIcon2type4:GAe,dataContainer2type4:HAe,tarjetaDatosGstype4:WAe},G7={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},colorcard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},computed:{tarjetaDatosGsDesktopClass(){return this.elementSize.width<=500?this.$style.tarjetaDatosGsDesktop500type4:this.$style.tarjetaDatosGsDesktoptype4},tarjetaDatosGs414Class(){const e=this.elementSize.width;return e<=380?this.$style.tarjetaDatosGs414380type4:e<=500?this.$style.tarjetaDatosGs414500type4:this.$style.tarjetaDatosGs414type4},tarjetaDatosGs320Class(){return this.elementSize.width<=380?this.$style.tarjetaDatosGs320380type4:this.$style.tarjetaDatosGs320type4},dataBox8Class(){return this.elementSize.width<=380?this.$style.dataBox8380type4:this.$style.dataBox8type4},dataBoxClass(){const e=this.elementSize.width;return e<=480?this.$style.dataBox480type4:e<=520?this.$style.dataBox520type4:this.$style.dataBoxtype4},dataBox3Class(){return this.elementSize.width<=520?this.$style.dataBox3520type4:this.$style.dataBox3type4},dataBox4Class(){return this.elementSize.width<=500?this.$style.dataBox4500type4:this.$style.dataBox4type4},dataBox6Class(){return this.elementSize.width<=500?this.$style.dataBox6500type4:this.$style.dataBox6type4},dataBox7Class(){return this.elementSize.width<=380?this.$style.dataBox7380type4:this.$style.dataBox7type4},dataContainerClass(){return this.elementSize.width<=520?this.$style.dataContainer520type4:this.$style.dataContainertype4},dataContainer1Class(){return this.elementSize.width<=500?this.$style.dataContainer1500type4:this.$style.dataContainer1type4},div15Class(){return this.elementSize.width<=380?this.$style.div15380type4:this.$style.div15type4}},setup(){const e=t.ref("myDivRefCardtype4"),{elementSize:r}=b2(e);return{myDivRefCardtype4:e,elementSize:r}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)},clickCategory(e){this.clickCard||this.$emit("onClickCategory",e)}}},wF=()=>{t.useCssVars(e=>({"118d3d83":e.data.background_color_cards!=null?e.data.background_color_cards:"rgba(255, 255, 255, 0.16)","72929a50":e.data.font_color_card!=null?e.data.font_color_card:"#fff",aad4f1fa:e.data.background_color_buttons!=null?e.data.background_color_buttons:"rgba(255, 255, 255, 0.16)","3167c565":e.colorcard,"4ed6a66a":e.data.font_color!=null?e.data.font_color:"#fff"}))},kF=G7.setup;G7.setup=kF?(e,r)=>(wF(),kF(e,r)):wF;const YAe=t.createElementVNode("path",{d:"M14.886 14.0466C14.1404 14.0466 13.4733 14.3409 12.9632 14.8019L5.96863 10.7308C6.01768 10.5052 6.05692 10.2795 6.05692 10.0441C6.05692 9.80867 6.01768 9.58304 5.96863 9.35741L12.8847 5.32551C13.4145 5.81601 14.111 6.12012 14.886 6.12012C15.6665 6.12012 16.4151 5.81005 16.967 5.25814C17.5189 4.70622 17.829 3.95765 17.829 3.17712C17.829 2.39659 17.5189 1.64803 16.967 1.09611C16.4151 0.544195 15.6665 0.234131 14.886 0.234131C14.1054 0.234131 13.3569 0.544195 12.8049 1.09611C12.253 1.64803 11.9429 2.39659 11.9429 3.17712C11.9429 3.41256 11.9822 3.63819 12.0312 3.86382L5.11516 7.89572C4.58542 7.40523 3.8889 7.10112 3.11391 7.10112C2.33337 7.10112 1.58481 7.41118 1.03289 7.9631C0.480965 8.51502 0.170898 9.26358 0.170898 10.0441C0.170898 10.8246 0.480965 11.5732 1.03289 12.1251C1.58481 12.677 2.33337 12.9871 3.11391 12.9871C3.8889 12.9871 4.58542 12.683 5.11516 12.1925L12.0999 16.2636C12.0509 16.4696 12.0214 16.6855 12.0214 16.9111C12.0214 18.4905 13.3065 19.7658 14.886 19.7658C16.4654 19.7658 17.7505 18.4905 17.7505 16.9111C17.7505 16.1514 17.4487 15.4228 16.9115 14.8856C16.3743 14.3484 15.6457 14.0466 14.886 14.0466Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),XAe=[YAe],ZAe=["src"],JAe={"clip-path":"url(#clip0_59_831)"},KAe=["fill"],QAe=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),eMe=["src"],tMe=["fill"],aMe=["fill"],nMe=["fill"],rMe=t.createElementVNode("path",{d:"M10.2126 9.10136C9.73332 9.10136 9.30448 9.29055 8.97655 9.58695L4.48004 6.96979C4.51158 6.82474 4.5368 6.67969 4.5368 6.52834C4.5368 6.37699 4.51158 6.23194 4.48004 6.08689L8.92609 3.49495C9.26664 3.81027 9.7144 4.00577 10.2126 4.00577C10.7144 4.00577 11.1956 3.80645 11.5504 3.45164C11.9052 3.09684 12.1045 2.61562 12.1045 2.11385C12.1045 1.61208 11.9052 1.13086 11.5504 0.776056C11.1956 0.421251 10.7144 0.221924 10.2126 0.221924C9.71084 0.221924 9.22962 0.421251 8.87481 0.776056C8.52 1.13086 8.32067 1.61208 8.32067 2.11385C8.32067 2.2652 8.3459 2.41025 8.37743 2.5553L3.93138 5.14723C3.59083 4.83191 3.14308 4.63641 2.64487 4.63641C2.14309 4.63641 1.66187 4.83574 1.30706 5.19055C0.952258 5.54535 0.75293 6.02657 0.75293 6.52834C0.75293 7.03011 0.952258 7.51133 1.30706 7.86613C1.66187 8.22094 2.14309 8.42026 2.64487 8.42026C3.14308 8.42026 3.59083 8.22476 3.93138 7.90944L8.42158 10.5266C8.39004 10.659 8.37113 10.7978 8.37113 10.9428C8.37113 11.9582 9.19727 12.778 10.2126 12.778C11.2279 12.778 12.0541 11.9582 12.0541 10.9428C12.0541 10.4544 11.8601 9.98605 11.5147 9.64071C11.1694 9.29537 10.701 9.10136 10.2126 9.10136Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),iMe=[rMe],oMe=["src"],sMe=["fill"],lMe=["src"],cMe=["fill"],dMe=["fill"],uMe=["fill"],hMe=t.createElementVNode("path",{d:"M10.2126 9.10111C9.73332 9.10111 9.30448 9.2903 8.97655 9.58671L4.48004 6.96954C4.51158 6.8245 4.5368 6.67945 4.5368 6.52809C4.5368 6.37674 4.51158 6.23169 4.48004 6.08665L8.92609 3.49471C9.26664 3.81003 9.7144 4.00553 10.2126 4.00553C10.7144 4.00553 11.1956 3.8062 11.5504 3.4514C11.9052 3.09659 12.1045 2.61537 12.1045 2.1136C12.1045 1.61183 11.9052 1.13062 11.5504 0.775812C11.1956 0.421007 10.7144 0.22168 10.2126 0.22168C9.71084 0.22168 9.22962 0.421007 8.87481 0.775812C8.52 1.13062 8.32067 1.61183 8.32067 2.1136C8.32067 2.26496 8.3459 2.41001 8.37743 2.55505L3.93138 5.14699C3.59083 4.83167 3.14308 4.63617 2.64487 4.63617C2.14309 4.63617 1.66187 4.8355 1.30706 5.1903C0.952258 5.54511 0.75293 6.02633 0.75293 6.52809C0.75293 7.02986 0.952258 7.51108 1.30706 7.86589C1.66187 8.22069 2.14309 8.42002 2.64487 8.42002C3.14308 8.42002 3.59083 8.22452 3.93138 7.9092L8.42158 10.5264C8.39004 10.6588 8.37113 10.7975 8.37113 10.9426C8.37113 11.9579 9.19727 12.7778 10.2126 12.7778C11.2279 12.7778 12.0541 11.9579 12.0541 10.9426C12.0541 10.4542 11.8601 9.98581 11.5147 9.64047C11.1694 9.29512 10.701 9.10111 10.2126 9.10111Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),pMe=[hMe],fMe=["src"],mMe=["fill"],gMe=["src"],yMe=["fill"],vMe=["fill"],_Me=["fill"];function bMe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.tarjetaDatosGstype4),ref:"myDivRefCardtype4",onClick:r[12]||(r[12]=g=>c.clickPlayer({season_id:i.data.id_season,player_id:i.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGsDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCardtype4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnSharetype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcontype4),width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XAe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcontype4),alt:"",src:i.data.background},null,10,ZAe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideostype4),onClick:r[0]||(r[0]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,category:0,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",JAe,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,KAe)]),QAe],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titletype4),id:"title-info"},[t.createElementVNode("h4",{class:t.normalizeClass(e.$style.playerNametype4),id:"player-name"},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainertype4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcontype4),alt:"",src:i.data.player_photo},null,10,eMe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.dataContainerClass),id:"data-container"},[i.data.category_name_1=="Minutos Jugados"&&!i.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBoxClass),onClick:r[1]||(r[1]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,tMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBoxClass),onClick:r[2]||(r[2]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,aMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_2),3)],6),i.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBoxClass),onClick:r[3]||(r[3]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,nMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGs414Class),id:"card-mobile-414"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iMe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon1type4),alt:"",src:i.data.background},null,10,oMe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos1type4),onClick:r[4]||(r[4]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,category:0,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon1type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,sMe)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title1type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer1type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon1type4),alt:"",src:i.data.player_photo},null,10,lMe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.dataContainer1Class),id:"data-container"},[i.data.category_name_1=="Minutos Jugados"&&!i.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox4Class),onClick:r[5]||(r[5]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,cMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox4Class),onClick:r[6]||(r[6]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,dMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_2),3)],6),i.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox6Class),onClick:r[7]||(r[7]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,game_id:i.data.game_id?i.data.game_id:null,player_id:i.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,uMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGs320Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pMe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon2type4),alt:"",src:i.data.background},null,10,fMe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos2type4),onClick:r[8]||(r[8]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,category:0,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon2type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,mMe)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title2type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer2type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon2type4),alt:"",src:i.data.player_photo},null,10,gMe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer2type4),id:"data-container"},[i.data.category_name_1=="Minutos Jugados"&&!i.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox7Class),onClick:r[9]||(r[9]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,yMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox8Class),onClick:r[10]||(r[10]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,vMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_2),3)],6),i.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox8Class),onClick:r[11]||(r[11]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,game_id:i.data.game_id?i.data.game_id:null,player_id:i.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.474421 8.8403C0.41722 8.80242 0.369409 8.74584 0.336143 8.67665C0.302877 8.60746 0.285418 8.52828 0.285647 8.44765V1.33719C0.285725 1.25684 0.303299 1.17801 0.3365 1.10909C0.369701 1.04018 0.417288 0.983741 0.474202 0.94579C0.531117 0.907838 0.595232 0.889787 0.659731 0.893556C0.72423 0.897325 0.786704 0.922773 0.84051 0.967195L5.12637 4.52284C5.17532 4.56335 5.21547 4.61829 5.24324 4.68277C5.271 4.74724 5.28554 4.81926 5.28554 4.89242C5.28554 4.96557 5.271 5.03759 5.24324 5.10207C5.21547 5.16655 5.17532 5.22149 5.12637 5.26199L0.84051 8.81848C0.786786 8.863 0.724361 8.88854 0.659889 8.89238C0.595418 8.89623 0.531318 8.87822 0.474421 8.8403V8.8403ZM0.64297 8.44849L4.92883 4.89284L0.64297 8.44849Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,_Me)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2)],2)}const xMe={$style:qAe},wMe=uy(G7,[["render",bMe],["__cssModules",xMe]]),kMe="_cardVideotype3_1wydm_47",CMe="_cardVideo540type3_1wydm_73",SMe="_ligaMx2Icontype3_1wydm_101",TMe="_roleCharacterIcontype3_1wydm_121",EMe="_btnPlaytype3_1wydm_135",AMe="_videoThumbnailtype3_1wydm_183",MMe="_chivasIcontype3_1wydm_209",IMe="_teamtype3_1wydm_221",PMe="_playerChildtype3_1wydm_251",BMe="_playertype3_1wydm_265",NMe="_teamPlayertype3_1wydm_297",zMe="_mintype3_1wydm_309",OMe="_teamPlayerParenttype3_1wydm_317",FMe="_icnGoalsIcontype3_1wydm_333",LMe="_min1type3_1wydm_343",DMe="_actionstype3_1wydm_351",RMe="_footerCardVideotype3_1wydm_367",VMe={cardVideotype3:kMe,cardVideo540type3:CMe,ligaMx2Icontype3:SMe,roleCharacterIcontype3:TMe,btnPlaytype3:EMe,videoThumbnailtype3:AMe,chivasIcontype3:MMe,teamtype3:IMe,playerChildtype3:PMe,playertype3:BMe,teamPlayertype3:NMe,mintype3:zMe,teamPlayerParenttype3:OMe,icnGoalsIcontype3:FMe,min1type3:LMe,actionstype3:DMe,footerCardVideotype3:RMe},H7={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},categoryIcon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#000000"},playerPhoto:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},setup(){const e=t.ref("myDivRefCardtype3"),{elementSize:r}=b2(e);return{myDivRefCardtype3:e,elementSize:r}},computed:{cardVideoClass(){return this.elementSize.width<=540?this.$style.cardVideo540type3:this.$style.cardVideotype3}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},CF=()=>{t.useCssVars(e=>({e342e56e:e.backgroundColor}))},SF=H7.setup;H7.setup=SF?(e,r)=>(CF(),SF(e,r)):CF;const $Me=["src"],jMe=t.createElementVNode("g",{"clip-path":"url(#clip0_59_831)"},[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:"#CBEE6B"})],-1),UMe=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),GMe=[jMe,UMe],HMe=["src"],WMe=["src"],qMe=["src"];function YMe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(c.cardVideoClass),ref:"myDivRefCardtype3",onClick:r[1]||(r[1]=g=>c.clickPlayer({season_id:i.data.id_season,category_id:i.data.id_category,team_id:i.data.team_id,player_id:i.data.player_id}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.videoThumbnailtype3),id:"container-video"},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.ligaMx2Icontype3),alt:"",src:i.data.background_card},null,10,$Me),t.withDirectives(t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnPlaytype3),onClick:r[0]||(r[0]=g=>c.clickVideos({season_id:i.data.id_season,category_id:i.data.id_category,team_id:i.data.team_id,player_id:i.data.player_id})),id:"btn-play-video"},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype3),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GMe,2))],2),[[t.vShow,i.canPlayVideos]])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.footerCardVideotype3),id:"footer-card-video",style:t.normalizeStyle({background:i.backgroundColor})},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPlayerParenttype3)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPlayertype3)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamtype3)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.chivasIcontype3),alt:"",src:i.data.team_logo},null,10,HMe)],2),i.playerPhoto?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.playertype3)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.playerChildtype3),alt:"",src:i.data.player_photo},null,10,WMe)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.mintype3)},t.toDisplayString(i.data.player_name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.actionstype3)},[i.categoryIcon?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnGoalsIcontype3),alt:"",src:i.data.icon_stat},null,10,qMe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.min1type3)},t.toDisplayString(i.data.stat),3)],2)],6)],2)}const XMe={$style:VMe},ZMe=uy(H7,[["render",YMe],["__cssModules",XMe]]),JMe={components:{GSCCardFrecuentConnections:$Te,GSCCardVideosPlayers:mEe,GSCHighlightsPostmatch:LEe,GSCPlays:ZMe,GSCDataGS:wMe},props:{type:{type:Number,default:0},isLive:{type:Boolean,default:!1},data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},playerPhoto:{type:Boolean,default:!0},categoryIcon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#cf152d"},backgroundImg:{type:String,default:""},colorTitle:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},colorCard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},computed:{},methods:{onClickPlayer(e){this.$emit("onClickCard",e)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCategory(e){this.$emit("onClickCategory",e)}}};function KMe(e,r,i,B,D,c){const g=t.resolveComponent("GSCCardFrecuentConnections"),a=t.resolveComponent("GSCCardVideosPlayers"),y=t.resolveComponent("GSCHighlightsPostmatch"),f=t.resolveComponent("GSCPlays"),n=t.resolveComponent("GSCDataGS");return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createBlock(g,{key:0,data:i.data,"click-card":i.clickCard,"can-play-videos":i.canPlayVideos,onOnClickPlayer:c.onClickPlayer,onOnClickVideos:c.onClickVideos},null,8,["data","click-card","can-play-videos","onOnClickPlayer","onOnClickVideos"])):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createBlock(a,{key:1,data:i.data,"click-card":i.clickCard,"background-color":i.backgroundColor,"color-title":i.colorTitle,"border-color":i.borderColor,"background-img":i.backgroundImg,"customize-colors":i.customizeColors,"can-play-videos":i.canPlayVideos,onOnClickCard:c.onClickPlayer,onOnClickVideos:c.onClickVideos},null,8,["data","click-card","background-color","color-title","border-color","background-img","customize-colors","can-play-videos","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createBlock(y,{key:2,data:i.data,"click-card":i.clickCard,"background-img":i.backgroundImg,"can-play-videos":i.canPlayVideos,onOnClickCard:c.onClickPlayer,onOnClickVideos:c.onClickVideos},null,8,["data","click-card","background-img","can-play-videos","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),i.type==3?(t.openBlock(),t.createBlock(f,{key:3,data:i.data,"click-card":i.clickCard,"player-photo":i.playerPhoto,"category-icon":i.categoryIcon,"background-color":i.backgroundColor,"can-play-videos":i.canPlayVideos,onOnClickCard:c.onClickPlayer,onOnClickVideos:c.onClickVideos},null,8,["data","click-card","player-photo","category-icon","background-color","can-play-videos","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),i.type==4?(t.openBlock(),t.createBlock(n,{key:4,data:i.data,"show-share-button":i.showShareButton,"click-card":i.clickCard,colorcard:i.colorCard,"is-live":i.isLive,"can-play-videos":i.canPlayVideos,onOnClickCard:c.onClickPlayer,onOnClickVideos:c.onClickVideos,onOnClickCategory:c.onClickCategory},null,8,["data","show-share-button","click-card","colorcard","is-live","can-play-videos","onOnClickCard","onOnClickVideos","onOnClickCategory"])):t.createCommentVNode("",!0)])}const QMe=uy(JMe,[["render",KMe],["__scopeId","data-v-3aa2e998"]]),eIe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},W7={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},TF=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},EF=W7.setup;W7.setup=EF?(e,r)=>(TF(),EF(e,r)):TF;const tIe={ref:"gscScrollableContainer",class:"scrollable-container"},aIe={class:"scrollable-arrows"},nIe=["width","height","viewBox"],rIe=["stroke"],iIe={class:"scrollable-wrapper"},oIe={class:"scrollable-arrows"},sIe=["width","height","viewBox"],lIe=["stroke"];function cIe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",tIe,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...g)=>c.scrollLeft&&c.scrollLeft(...g))},[t.createElementVNode("div",aIe,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,rIe)],8,nIe))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...g)=>c.getScroll&&c.getScroll(...g))},[t.createElementVNode("div",iIe,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...g)=>c.scrollRight&&c.scrollRight(...g))},[t.createElementVNode("div",oIe,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,lIe)],8,sIe))])],2)):t.createCommentVNode("",!0)],512)}const dIe=eIe(W7,[["render",cIe],["__scopeId","data-v-b548a08d"]]),uIe="_templateDataGS_1n4df_7",hIe="_gridCompo480_1n4df_33",pIe="_gridCompo_1n4df_33",fIe="_grid_1n4df_33",mIe="_grid768_1n4df_109",gIe="_grid480_1n4df_131",yIe="_specialsMobile_1n4df_153",vIe="_gridClass_1n4df_169",_Ie={templateDataGS:uIe,gridCompo480:hIe,gridCompo:pIe,grid:fIe,grid768:mIe,grid480:gIe,specialsMobile:yIe,gridClass:vIe},bIe={components:{GSCData:dTe,GSCCard:QMe,GSCSlider:dIe,GSCMentionsCards:c7e},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},type:{type:Number,default:0},tournamentSelected:{type:Object,default:()=>({})},data:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null}},setup(){const e=t.ref("myDivRef2GSDa"),{elementSize:r}=Rke(e);return{myDivRef2GSDa:e,elementSize:r}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",pages:[],homeTeam:[],awayTeam:[],intervalidgs:null,playerInfo:{},specials:[]}},computed:{gridCompoClass(){return this.elementSize.width<=720?this.$style.gridCompo480:this.$style.gridCompo},gridClass(){const e=this.elementSize.width;return e<=620?this.$style.grid480:e<=900?this.$style.grid768:this.$style.grid}},watch:{type:{immediate:!0,handler(e){e==3&&this.data.game_status!=0&&(this.intervalidgs=setInterval(()=>{this.getStats(this.data)},this.timeLiveComparativeBestPlayers),this.$emit("intervalidgs",this.intervalidgs))}},data:{immediate:!0,handler(e){this.getStats(e)}}},methods:{openmedia(e){this.$emit("openmedia",e)},onclickPlayVideos(e,r){if(!r)return;var i=[];e.type==2?e.position_id==1?e.category==0?i=[39,55,41,42,264,304,306,608,324,323,362,371,380,355,49,50,267,308]:i=e.category:e.category==0?i=[12,19,31,32,13,25,6,11,23,4,5,24,15,607,10,27,216,217,155,164,173,30,98,101,104,105,109,112,115,116,17,2,20]:i=e.category:e.type==3?e.category==0?i=[12,55,"35_r","54_r",19,31,32,13,25,6,312,11,23,4,5,24,18,49,607,608,10,324,27,323,216,217,155,164,173,362,371,380,30,355,98,101,104,105,109,112,115,116,17,50,2,20,267,308]:i=e.category:e.category!=0?i=e.category:i=[12,55,"35_r","54_r",19,31,32,13,25,6,312,11,23,4,5,24,18,49,607,608,10,324,27,323,216,217,155,164,173,362,371,380,30,355,98,101,104,105,109,112,115,116,17,50,2,20,267,308],i==="minutes_played"&&(i=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]),i==="games_played"&&(i=[607,608,12,55,54,35,14,52,15,53,466,477]);const B=[1,2,3];let D={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,gameIds:e.game_id?[e.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?[e.team_id]:0,matchResult:e.matchResult?[e.matchResult]:B,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(D.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",D)},async getStats(e){this.homeTeam=[],this.awayTeam=[];const r=Dke.create({headers:{Authorization:`${this.token}`}});let i={},B={};this.isWidget&&this.teamWidget!=0?B=await r.get("https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/"+e.game+"?team="+this.teamWidget):B=await r.get("https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/"+e.game),this.specials=B.data.data,this.type==3?i=await r.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+e.season+"/games/"+e.game+"?limit=12"):i=await r.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game+"?limit=12"),this.playVideosPrivileges?this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?i.data.games[0].players.forEach(D=>D.canPlayVideos=D.team_id===this.playVideosPrivileges.seasonAndPrivileges.teamId):i.data.games[0].players.forEach(D=>{D.canPlayVideos=!0}):i.data.games[0].players.forEach(D=>{D.canPlayVideos=!1}):i.data.games[0].players.forEach(D=>{D.canPlayVideos=!0});for(let D=0;D<i.data.games[0].players.length;D++)e.home_team_id==i.data.games[0].players[D].team_id&&this.homeTeam.push({canPlayVideos:i.data.games[0].players[D].canPlayVideos,id_season:i.data.games[0].players[D].season_id,color:i.data.games[0].players[D].info_thumbnails.colors.background_color,player_id:i.data.games[0].players[D].player_id,player_name:i.data.games[0].players[D].player_name,game_id:i.data.games[0].game_status===4?null:i.data.games[0].game_id,background:i.data.games[0].players[D].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.background_default_players[0],player_photo:i.data.games[0].players[D].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${i.data.games[0].players[D].player_id}.png`,category_stats_1:this.prematch?i.data.games[0].players[D].games_played:i.data.games[0].players[D].minutes_played,category_stats_2:this.prematch?i.data.games[0].players[D].minutes_played:i.data.games[0].players[D].categories[0].total,category_stats_3:this.prematch?i.data.games[0].players[D].categories[0].total:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":i.data.games[0].players[D].categories[0].categories,category_id_3:this.prematch?i.data.games[0].players[D].categories[0].categories:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":i.data.games[0].players[D].categories[0].category_name,category_name_3:this.prematch?i.data.games[0].players[D].categories[0].category_name:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].category_name:"",showlast_category:!!i.data.games[0].players[D].categories[1],main_title:this.tournamentSelected.is_female==1?"Jugadora":"Jugador",second_title:this.tournamentSelected.is_female==1?"Destacada":"Destacado",background_color_buttons:i.data.games[0].players[D].info_thumbnails.colors.background_color_buttons,background_color_cards:i.data.games[0].players[D].info_thumbnails.colors.background_color_cards,color_icon_play:i.data.games[0].players[D].info_thumbnails.colors.color_icon_play,color_next_back:i.data.games[0].players[D].info_thumbnails.colors.color_next_back,font_color:i.data.games[0].players[D].info_thumbnails.colors.font_color,font_color_card:i.data.games[0].players[D].info_thumbnails.colors.font_color_cards?i.data.games[0].players[D].info_thumbnails.colors.font_color_cards:"#FFFFFF"}),e.away_team_id==i.data.games[0].players[D].team_id&&this.awayTeam.push({canPlayVideos:i.data.games[0].players[D].canPlayVideos,id_season:i.data.games[0].players[D].season_id,color:i.data.games[0].players[D].info_thumbnails.colors.background_color,player_id:i.data.games[0].players[D].player_id,player_name:i.data.games[0].players[D].player_name,game_id:i.data.games[0].game_status===4?null:i.data.games[0].game_id,background:i.data.games[0].players[D].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.background_default_players[0],player_photo:i.data.games[0].players[D].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${i.data.games[0].players[D].player_id}.png`,category_stats_1:this.prematch?i.data.games[0].players[D].games_played:i.data.games[0].players[D].minutes_played,category_stats_2:this.prematch?i.data.games[0].players[D].minutes_played:i.data.games[0].players[D].categories[0].total,category_stats_3:this.prematch?i.data.games[0].players[D].categories[0].total:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":i.data.games[0].players[D].categories[0].categories,category_id_3:this.prematch?i.data.games[0].players[D].categories[0].categories:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":i.data.games[0].players[D].categories[0].category_name,category_name_3:this.prematch?i.data.games[0].players[D].categories[0].category_name:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].category_name:"",showlast_category:!!i.data.games[0].players[D].categories[1],main_title:this.tournamentSelected.is_female==1?"Jugadora":"Jugador",second_title:this.tournamentSelected.is_female==1?"Destacada":"Destacado",background_color_buttons:i.data.games[0].players[D].info_thumbnails.colors.background_color_buttons,background_color_cards:i.data.games[0].players[D].info_thumbnails.colors.background_color_cards,color_icon_play:i.data.games[0].players[D].info_thumbnails.colors.color_icon_play,color_next_back:i.data.games[0].players[D].info_thumbnails.colors.color_next_back,font_color:i.data.games[0].players[D].info_thumbnails.colors.font_color,font_color_card:i.data.games[0].players[D].info_thumbnails.colors.font_color_cards?i.data.games[0].players[D].info_thumbnails.colors.font_color_cards:"#FFFFFF"})}}},xIe={style:{margin:"0 auto",width:"100%"}},wIe={style:{margin:"0 auto",width:"100%"}},kIe={style:{margin:"0 auto",width:"100%"}};function CIe(e,r,i,B,D,c){const g=t.resolveComponent("GSCData"),a=t.resolveComponent("GSCMentionsCards"),y=t.resolveComponent("GSCSlider"),f=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.templateDataGS),ref:"myDivRef2GSDa"},[i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(c.gridCompoClass)},[this.isWidget&&this.teamWidget!=0?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-80)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[t.createElementVNode("div",xIe,[i.data.home_team_id==this.teamWidget?(t.openBlock(),t.createBlock(g,{key:0,type:1,"tournament-selected":i.tournamentSelected,prematch:!0,"click-card":!1,"team-selected":i.data.home_team_id,data:i.data,colorCardByTeam:!0,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia},null,8,["tournament-selected","team-selected","data","play-videos-privileges","onOpenmedia"])):t.createCommentVNode("",!0),i.data.away_team_id==this.teamWidget?(t.openBlock(),t.createBlock(g,{key:1,"play-videos-privileges":i.playVideosPrivileges,type:1,"tournament-selected":i.tournamentSelected,prematch:!0,"click-card":!1,"team-selected":i.data.away_team_id,data:i.data,colorCardByTeam:!0,onOpenmedia:c.openmedia},null,8,["play-videos-privileges","tournament-selected","team-selected","data","onOpenmedia"])):t.createCommentVNode("",!0)])],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-80)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[t.createElementVNode("div",wIe,[t.createVNode(g,{type:1,"tournament-selected":i.tournamentSelected,prematch:!0,"click-card":!1,"team-selected":i.data.home_team_id,data:i.data,colorCardByTeam:!0,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia},null,8,["tournament-selected","team-selected","data","play-videos-privileges","onOpenmedia"])])],4),t.createElementVNode("div",{style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-80)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[t.createElementVNode("div",kIe,[t.createVNode(g,{"play-videos-privileges":i.playVideosPrivileges,type:1,"tournament-selected":i.tournamentSelected,prematch:!0,"click-card":!1,"team-selected":i.data.away_team_id,data:i.data,colorCardByTeam:!0,onOpenmedia:c.openmedia},null,8,["play-videos-privileges","tournament-selected","team-selected","data","onOpenmedia"])])],4)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.specialsMobile)},[t.createVNode(y,{"px-scroll":305,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd","background-color":"#172531"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.specials,(n,v)=>(t.openBlock(),t.createBlock(a,{key:v,data:n,"is-slider":!0},null,8,["data"]))),128))]),_:1})],2),t.createElementVNode("div",{class:t.normalizeClass([c.gridClass,e.$style.gridClass])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.specials,(n,v)=>(t.openBlock(),t.createBlock(a,{key:v,data:n},null,8,["data"]))),128))],2)],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.gridCompoClass)},[this.isWidget&&this.teamWidget!=0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.data.home_team_id==this.teamWidget?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(D.homeTeam,(n,v)=>(t.openBlock(),t.createBlock(f,{key:v,type:4,"tournament-selected":i.tournamentSelected,style:{"margin-top":"30px"},"click-card":!1,data:n,"is-live":i.type==3,colorCard:n.color,"can-play-videos":n.canPlayVideos,onOnClickVideos:_=>c.onclickPlayVideos(_,n.canPlayVideos),onOnClickCategory:_=>c.onclickPlayVideos(_,n.canPlayVideos)},null,8,["tournament-selected","data","is-live","colorCard","can-play-videos","onOnClickVideos","onOnClickCategory"]))),128)):t.createCommentVNode("",!0),i.data.away_team_id==this.teamWidget?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(D.awayTeam,(n,v)=>(t.openBlock(),t.createBlock(f,{key:v,type:4,"tournament-selected":i.tournamentSelected,style:{"margin-top":"30px"},"click-card":!1,data:n,"is-live":i.type==3,colorCard:n.color,"can-play-videos":n.canPlayVideos,onOnClickVideos:_=>c.onclickPlayVideos(_,n.canPlayVideos),onOnClickCategory:_=>c.onclickPlayVideos(_,n.canPlayVideos)},null,8,["tournament-selected","data","is-live","colorCard","can-play-videos","onOnClickVideos","onOnClickCategory"]))),128)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-50)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.homeTeam,(n,v)=>(t.openBlock(),t.createBlock(f,{key:v,type:4,"tournament-selected":i.tournamentSelected,style:{"margin-top":"30px"},"click-card":!1,data:n,"is-live":i.type==3,colorCard:n.color,"can-play-videos":n.canPlayVideos,onOnClickVideos:_=>c.onclickPlayVideos(_,n.canPlayVideos),onOnClickCategory:_=>c.onclickPlayVideos(_,n.canPlayVideos)},null,8,["tournament-selected","data","is-live","colorCard","can-play-videos","onOnClickVideos","onOnClickCategory"]))),128))],4),t.createElementVNode("div",{style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-50)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.awayTeam,(n,v)=>(t.openBlock(),t.createBlock(f,{key:v,type:4,"tournament-selected":i.tournamentSelected,style:{"margin-top":"30px"},"click-card":!1,data:n,"is-live":i.type==3,colorCard:n.color,"can-play-videos":n.canPlayVideos,onOnClickVideos:_=>c.onclickPlayVideos(_,n.canPlayVideos),onOnClickCategory:_=>c.onclickPlayVideos(_,n.canPlayVideos)},null,8,["tournament-selected","data","is-live","colorCard","can-play-videos","onOnClickVideos","onOnClickCategory"]))),128))],4)],64))],2))],2)}const SIe={$style:_Ie},x2=EO(bIe,[["render",CIe],["__cssModules",SIe],["__scopeId","data-v-7d090906"]]),gma="",yma="",TIe={class:"datagame-container"},EIe=$i({__name:"GSCDatosGSMain",props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:r}){const i=e,B=t.ref(0);t.watch(()=>i.game,c=>{B.value=c.gameId},{deep:!0,immediate:!0});function D(c){r("openmedia",c)}return(c,g)=>(t.openBlock(),t.createElementBlock("div",TIe,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(x2),{key:B.value,type:0,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:D},null,8,["is-widget","team-widget","data","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(x2),{"is-widget":e.isWidget,"team-widget":e.teamWidget,key:B.value,type:1,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:D},null,8,["is-widget","team-widget","data","play-videos-privileges"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-d3d2e6c7"]]);function AF(e,r){return function(){return e.apply(r,arguments)}}const{toString:AIe}=Object.prototype,{getPrototypeOf:q7}=Object,R3=(e=>r=>{const i=AIe.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Hp=e=>(e=e.toLowerCase(),r=>R3(r)===e),V3=e=>r=>typeof r===e,{isArray:hy}=Array,w2=V3("undefined");function MIe(e){return e!==null&&!w2(e)&&e.constructor!==null&&!w2(e.constructor)&&wh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const MF=Hp("ArrayBuffer");function IIe(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&MF(e.buffer),r}const PIe=V3("string"),wh=V3("function"),IF=V3("number"),$3=e=>e!==null&&typeof e=="object",BIe=e=>e===!0||e===!1,j3=e=>{if(R3(e)!=="object")return!1;const r=q7(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},NIe=Hp("Date"),zIe=Hp("File"),OIe=Hp("Blob"),FIe=Hp("FileList"),LIe=e=>$3(e)&&wh(e.pipe),DIe=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||wh(e.append)&&((r=R3(e))==="formdata"||r==="object"&&wh(e.toString)&&e.toString()==="[object FormData]"))},RIe=Hp("URLSearchParams"),[VIe,$Ie,jIe,UIe]=["ReadableStream","Request","Response","Headers"].map(Hp),GIe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function k2(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),hy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function PF(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const c1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),BF=e=>!w2(e)&&e!==c1;function Y7(){const{caseless:e}=BF(this)&&this||{},r={},i=(B,D)=>{const c=e&&PF(r,D)||D;j3(r[c])&&j3(B)?r[c]=Y7(r[c],B):j3(B)?r[c]=Y7({},B):hy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&k2(arguments[B],i);return r}const HIe=(e,r,i,{allOwnKeys:B}={})=>(k2(r,(D,c)=>{i&&wh(D)?e[c]=AF(D,i):e[c]=D},{allOwnKeys:B}),e),WIe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qIe=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},YIe=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&q7(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},XIe=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},ZIe=e=>{if(!e)return null;if(hy(e))return e;let r=e.length;if(!IF(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},JIe=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&q7(Uint8Array)),KIe=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},QIe=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},ePe=Hp("HTMLFormElement"),tPe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),NF=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),aPe=Hp("RegExp"),zF=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};k2(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},nPe=e=>{zF(e,(r,i)=>{if(wh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(wh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},rPe=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return hy(e)?B(e):B(String(e).split(r)),i},iPe=()=>{},oPe=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,X7="abcdefghijklmnopqrstuvwxyz",OF="0123456789",FF={DIGIT:OF,ALPHA:X7,ALPHA_DIGIT:X7+X7.toUpperCase()+OF},sPe=(e=16,r=FF.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function lPe(e){return!!(e&&wh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cPe=e=>{const r=new Array(10),i=(B,D)=>{if($3(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=hy(B)?[]:{};return k2(B,(g,a)=>{const y=i(g,D+1);!w2(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},dPe=Hp("AsyncFunction"),uPe=e=>e&&($3(e)||wh(e))&&wh(e.then)&&wh(e.catch),LF=((e,r)=>e?setImmediate:r?((i,B)=>(c1.addEventListener("message",({source:D,data:c})=>{D===c1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),c1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",wh(c1.postMessage)),hPe=typeof queueMicrotask<"u"?queueMicrotask.bind(c1):typeof process<"u"&&process.nextTick||LF,fr={isArray:hy,isArrayBuffer:MF,isBuffer:MIe,isFormData:DIe,isArrayBufferView:IIe,isString:PIe,isNumber:IF,isBoolean:BIe,isObject:$3,isPlainObject:j3,isReadableStream:VIe,isRequest:$Ie,isResponse:jIe,isHeaders:UIe,isUndefined:w2,isDate:NIe,isFile:zIe,isBlob:OIe,isRegExp:aPe,isFunction:wh,isStream:LIe,isURLSearchParams:RIe,isTypedArray:JIe,isFileList:FIe,forEach:k2,merge:Y7,extend:HIe,trim:GIe,stripBOM:WIe,inherits:qIe,toFlatObject:YIe,kindOf:R3,kindOfTest:Hp,endsWith:XIe,toArray:ZIe,forEachEntry:KIe,matchAll:QIe,isHTMLForm:ePe,hasOwnProperty:NF,hasOwnProp:NF,reduceDescriptors:zF,freezeMethods:nPe,toObjectSet:rPe,toCamelCase:tPe,noop:iPe,toFiniteNumber:oPe,findKey:PF,global:c1,isContextDefined:BF,ALPHABET:FF,generateString:sPe,isSpecCompliantForm:lPe,toJSONObject:cPe,isAsyncFn:dPe,isThenable:uPe,setImmediate:LF,asap:hPe};function Zo(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}fr.inherits(Zo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fr.toJSONObject(this.config),code:this.code,status:this.status}}});const DF=Zo.prototype,RF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{RF[e]={value:e}}),Object.defineProperties(Zo,RF),Object.defineProperty(DF,"isAxiosError",{value:!0}),Zo.from=(e,r,i,B,D,c)=>{const g=Object.create(DF);return fr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Zo.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const pPe=null;function Z7(e){return fr.isPlainObject(e)||fr.isArray(e)}function VF(e){return fr.endsWith(e,"[]")?e.slice(0,-2):e}function $F(e,r,i){return e?e.concat(r).map(function(B,D){return B=VF(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function fPe(e){return fr.isArray(e)&&!e.some(Z7)}const mPe=fr.toFlatObject(fr,{},null,function(e){return/^is[A-Z]/.test(e)});function U3(e,r,i){if(!fr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=fr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!fr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&fr.isSpecCompliantForm(r);if(!fr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(fr.isDate(p))return p.toISOString();if(!a&&fr.isBlob(p))throw new Zo("Blob is not supported. Use a Buffer instead.");return fr.isArrayBuffer(p)||fr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(fr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(fr.isArray(p)&&fPe(p)||(fr.isFileList(p)||fr.endsWith(l,"[]"))&&(s=fr.toArray(p)))return l=VF(l),s.forEach(function(u,d){!(fr.isUndefined(u)||u===null)&&r.append(g===!0?$F([l],d,c):g===null?l:l+"[]",y(u))}),!1}return Z7(p)?!0:(r.append($F(o,l,c),y(p)),!1)}const n=[],v=Object.assign(mPe,{defaultVisitor:f,convertValue:y,isVisitable:Z7});function _(p,l){if(!fr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),fr.forEach(p,function(o,s){(!(fr.isUndefined(o)||o===null)&&D.call(r,o,fr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!fr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function jF(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function J7(e,r){this._pairs=[],e&&U3(e,this,r)}const UF=J7.prototype;UF.append=function(e,r){this._pairs.push([e,r])},UF.toString=function(e){const r=e?function(i){return e.call(this,i,jF)}:jF;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function gPe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GF(e,r,i){if(!r)return e;const B=i&&i.encode||gPe,D=i&&i.serialize;let c;if(D?c=D(r,i):c=fr.isURLSearchParams(r)?r.toString():new J7(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const HF=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){fr.forEach(this.handlers,function(i){i!==null&&r(i)})}},WF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yPe=typeof URLSearchParams<"u"?URLSearchParams:J7,vPe=typeof FormData<"u"?FormData:null,_Pe=typeof Blob<"u"?Blob:null,bPe={isBrowser:!0,classes:{URLSearchParams:yPe,FormData:vPe,Blob:_Pe},protocols:["http","https","file","blob","url","data"]},K7=typeof window<"u"&&typeof document<"u",Q7=typeof navigator=="object"&&navigator||void 0,xPe=K7&&(!Q7||["ReactNative","NativeScript","NS"].indexOf(Q7.product)<0),wPe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kPe=K7&&window.location.href||"http://localhost",CPe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:K7,hasStandardBrowserEnv:xPe,hasStandardBrowserWebWorkerEnv:wPe,navigator:Q7,origin:kPe},Symbol.toStringTag,{value:"Module"})),kh={...CPe,...bPe};function SPe(e,r){return U3(e,new kh.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return kh.isNode&&fr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function TPe(e){return fr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function EPe(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function qF(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&fr.isArray(D)?D.length:g,y?(fr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!fr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&fr.isArray(D[g])&&(D[g]=EPe(D[g])),!a)}if(fr.isFormData(e)&&fr.isFunction(e.entries)){const i={};return fr.forEachEntry(e,(B,D)=>{r(TPe(B),D,i,0)}),i}return null}function APe(e,r,i){if(fr.isString(e))try{return(r||JSON.parse)(e),fr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const e9={transitional:WF,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=fr.isObject(e);if(D&&fr.isHTMLForm(e)&&(e=new FormData(e)),fr.isFormData(e))return B?JSON.stringify(qF(e)):e;if(fr.isArrayBuffer(e)||fr.isBuffer(e)||fr.isStream(e)||fr.isFile(e)||fr.isBlob(e)||fr.isReadableStream(e))return e;if(fr.isArrayBufferView(e))return e.buffer;if(fr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return SPe(e,this.formSerializer).toString();if((c=fr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return U3(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),APe(e)):e}],transformResponse:[function(e){const r=this.transitional||e9.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(fr.isResponse(e)||fr.isReadableStream(e))return e;if(e&&fr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Zo.from(c,Zo.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kh.classes.FormData,Blob:kh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fr.forEach(["delete","get","head","post","put","patch"],e=>{e9.headers[e]={}});const t9=e9,MPe=fr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),IPe=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
58
|
+
*/const bu={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},hF={itemsToShow:{default:bu.itemsToShow,type:Number},itemsToScroll:{default:bu.itemsToScroll,type:Number},wrapAround:{default:bu.wrapAround,type:Boolean},throttle:{default:bu.throttle,type:Number},snapAlign:{default:bu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:bu.transition,type:Number},breakpoints:{default:bu.breakpoints,type:Object},autoplay:{default:bu.autoplay,type:Number},pauseAutoplayOnHover:{default:bu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:bu.mouseDrag,type:Boolean},touchDrag:{default:bu.touchDrag,type:Boolean},dir:{default:bu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:bu.i18n,type:Object},settings:{default(){return{}},type:Object}};function $9e({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function j9e({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function R7({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function U9e({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:R7({val:g,max:i-c,min:0})}function pF(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...pF(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function V7({val:e,max:r,min:i=0}){return e>r?V7({val:e-(r+1),max:r,min:i}):e<i?V7({val:e+(r+1),max:r,min:i}):e}function G9e(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function H9e(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function W9e(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var q9e=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},bu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},W9e(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Y9e=t.defineComponent({name:"Carousel",props:hF,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},bu));let n=Object.assign({},bu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=H9e(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=$9e({config:f,slidesCount:y.value}),s.value=j9e({config:f,slidesCount:y.value}),f.wrapAround||(_.value=R7({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=G9e(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:R7({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=V7({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>U9e({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(hF).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=pF(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(q9e)])}}}),fF;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(fF||(fF={}));var X9e=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},bu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Z9e=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},J9e=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),K9e={class:"gsc-carousel"},Q9e={key:0},eCe=J9e(()=>t.createElementVNode("div",null,"no hay",-1)),tCe=[eCe],aCe={class:"gsc-carousel__2d__slides"},nCe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rCe=["fill"],iCe={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oCe=["fill"],sCe={class:"gsc-carousel__2d__navigation"},lCe={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cCe=["stroke"],dCe={key:1,class:"gsc-carousel__2d__navigation__pagination"},uCe=["onClick"],hCe={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pCe=["stroke"],fCe={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",K9e,[B.is3d?(t.openBlock(),t.createElementBlock("div",Q9e,tCe)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",aCe,[t.createVNode(t.unref(Y9e),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(X9e),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",nCe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,rCe)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",iCe,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,oCe)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",sCe,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",lCe,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,cCe)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",dCe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,uCe))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",hCe,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,pCe)]))])):t.createCommentVNode("",!0)])],2))]))}},mCe=Z9e(fCe,[["__scopeId","data-v-54620d25"]]);function gCe(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const yCe="_tarjetaDatosGsDesktoptype4_146od_107",vCe="_tarjetaDatosGsDesktop500type4_146od_127",_Ce="_tarjetaDatosGs414type4_146od_135",bCe="_tarjetaDatosGs414500type4_146od_159",xCe="_tarjetaDatosGs414380type4_146od_183",wCe="_tarjetaDatosGs320type4_146od_191",kCe="_tarjetaDatosGs320380type4_146od_215",CCe="_dataBox8type4_146od_239",SCe="_dataBox8380type4_146od_277",TCe="_dataBoxtype4_146od_317",ECe="_dataBox520type4_146od_365",ACe="_dataBox480type4_146od_415",MCe="_dataBox3type4_146od_463",ICe="_dataBox3520type4_146od_509",PCe="_dataBox4type4_146od_517",BCe="_dataBox4500type4_146od_567",NCe="_dataBox6type4_146od_621",zCe="_dataBox6500type4_146od_673",OCe="_dataContainertype4_146od_733",FCe="_dataContainer520type4_146od_761",LCe="_dataContainer1type4_146od_793",DCe="_dataContainer1500type4_146od_821",RCe="_dataBox7type4_146od_851",VCe="_dataBox7380type4_146od_889",$Ce="_div15type4_146od_933",jCe="_div15380type4_146od_951",UCe="_btnShareIcontype4_146od_969",GCe="_btnSharetype4_146od_981",HCe="_bakgBaseIcontype4_146od_1011",WCe="_roleCharacterIcontype4_146od_1035",qCe="_verVideostype4_146od_1051",YCe="_btnVideostype4_146od_1071",XCe="_playerNametype4_146od_1127",ZCe="_elJugadortype4_146od_1145",JCe="_aSeguirtype4_146od_1153",KCe="_elJugadorAContainertype4_146od_1163",QCe="_titletype4_146od_1183",eSe="_baseCardtype4_146od_1211",tSe="_imagePlayerIcontype4_146od_1241",aSe="_arrowGraphIcontype4_146od_1269",nSe="_divtype4_146od_1281",rSe="_totaltype4_146od_1295",iSe="_div1type4_146od_1311",oSe="_btnShareIcon1type4_146od_1333",sSe="_btnShare1type4_146od_1345",lSe="_bakgBaseIcon1type4_146od_1373",cSe="_bakgBaseIcon2type4_146od_1397",dSe="_roleCharacterIcon1type4_146od_1421",uSe="_btnVideos1type4_146od_1437",hSe="_playerName1type4_146od_1481",pSe="_elJugadorAContainer1type4_146od_1491",fSe="_title1type4_146od_1511",mSe="_baseCard1type4_146od_1537",gSe="_imagePlayerIcon1type4_146od_1565",ySe="_total4type4_146od_1587",vSe="_div9type4_146od_1603",_Se="_roleCharacterIcon2type4_146od_1619",bSe="_btnVideos2type4_146od_1635",xSe="_elJugadorAContainer2type4_146od_1675",wSe="_title2type4_146od_1695",kSe="_imagePlayerIcon2type4_146od_1723",CSe="_dataContainer2type4_146od_1745",SSe="_tarjetaDatosGstype4_146od_1775",TSe={tarjetaDatosGsDesktoptype4:yCe,tarjetaDatosGsDesktop500type4:vCe,tarjetaDatosGs414type4:_Ce,tarjetaDatosGs414500type4:bCe,tarjetaDatosGs414380type4:xCe,tarjetaDatosGs320type4:wCe,tarjetaDatosGs320380type4:kCe,dataBox8type4:CCe,dataBox8380type4:SCe,dataBoxtype4:TCe,dataBox520type4:ECe,dataBox480type4:ACe,dataBox3type4:MCe,dataBox3520type4:ICe,dataBox4type4:PCe,dataBox4500type4:BCe,dataBox6type4:NCe,dataBox6500type4:zCe,dataContainertype4:OCe,dataContainer520type4:FCe,dataContainer1type4:LCe,dataContainer1500type4:DCe,dataBox7type4:RCe,dataBox7380type4:VCe,div15type4:$Ce,div15380type4:jCe,btnShareIcontype4:UCe,btnSharetype4:GCe,bakgBaseIcontype4:HCe,roleCharacterIcontype4:WCe,verVideostype4:qCe,btnVideostype4:YCe,playerNametype4:XCe,elJugadortype4:ZCe,aSeguirtype4:JCe,elJugadorAContainertype4:KCe,titletype4:QCe,baseCardtype4:eSe,imagePlayerIcontype4:tSe,arrowGraphIcontype4:aSe,divtype4:nSe,totaltype4:rSe,div1type4:iSe,btnShareIcon1type4:oSe,btnShare1type4:sSe,bakgBaseIcon1type4:lSe,bakgBaseIcon2type4:cSe,roleCharacterIcon1type4:dSe,btnVideos1type4:uSe,playerName1type4:hSe,elJugadorAContainer1type4:pSe,title1type4:fSe,baseCard1type4:mSe,imagePlayerIcon1type4:gSe,total4type4:ySe,div9type4:vSe,roleCharacterIcon2type4:_Se,btnVideos2type4:bSe,elJugadorAContainer2type4:xSe,title2type4:wSe,imagePlayerIcon2type4:kSe,dataContainer2type4:CSe,tarjetaDatosGstype4:SSe},mF=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},$7={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},colorcard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},computed:{tarjetaDatosGsDesktopClass(){return this.elementSize.width<=500?this.$style.tarjetaDatosGsDesktop500type4:this.$style.tarjetaDatosGsDesktoptype4},tarjetaDatosGs414Class(){const e=this.elementSize.width;return e<=380?this.$style.tarjetaDatosGs414380type4:e<=500?this.$style.tarjetaDatosGs414500type4:this.$style.tarjetaDatosGs414type4},tarjetaDatosGs320Class(){return this.elementSize.width<=380?this.$style.tarjetaDatosGs320380type4:this.$style.tarjetaDatosGs320type4},dataBox8Class(){return this.elementSize.width<=380?this.$style.dataBox8380type4:this.$style.dataBox8type4},dataBoxClass(){const e=this.elementSize.width;return e<=480?this.$style.dataBox480type4:e<=520?this.$style.dataBox520type4:this.$style.dataBoxtype4},dataBox3Class(){return this.elementSize.width<=520?this.$style.dataBox3520type4:this.$style.dataBox3type4},dataBox4Class(){return this.elementSize.width<=500?this.$style.dataBox4500type4:this.$style.dataBox4type4},dataBox6Class(){return this.elementSize.width<=500?this.$style.dataBox6500type4:this.$style.dataBox6type4},dataBox7Class(){return this.elementSize.width<=380?this.$style.dataBox7380type4:this.$style.dataBox7type4},dataContainerClass(){return this.elementSize.width<=520?this.$style.dataContainer520type4:this.$style.dataContainertype4},dataContainer1Class(){return this.elementSize.width<=500?this.$style.dataContainer1500type4:this.$style.dataContainer1type4},div15Class(){return this.elementSize.width<=380?this.$style.div15380type4:this.$style.div15type4}},setup(){const e=t.ref("myDivRefCardtype4"),{elementSize:r}=gCe(e);return{myDivRefCardtype4:e,elementSize:r}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)},clickCategory(e){this.clickCard||this.$emit("onClickCategory",e)}}},gF=()=>{t.useCssVars(e=>({d44c2cb2:e.data.background_color_cards!=null&&e.customizeColors?e.data.background_color_cards:"#1b3649","8abc24c4":e.data.font_color_card!=null&&e.customizeColors?e.data.font_color_card:"#fff","9da2271e":e.data.background_color_buttons!=null&&e.customizeColors?e.data.background_color_buttons:"#293744","3aa595b3":e.customizeColors?"":"#cbee6b","5c719b3e":e.colorcard,ec41cfb8:e.data.font_color!=null&&e.customizeColors?e.data.font_color:"#fff"}))},yF=$7.setup;$7.setup=yF?(e,r)=>(gF(),yF(e,r)):gF;const ESe=t.createElementVNode("path",{d:"M14.886 14.0466C14.1404 14.0466 13.4733 14.3409 12.9632 14.8019L5.96863 10.7308C6.01768 10.5052 6.05692 10.2795 6.05692 10.0441C6.05692 9.80867 6.01768 9.58304 5.96863 9.35741L12.8847 5.32551C13.4145 5.81601 14.111 6.12012 14.886 6.12012C15.6665 6.12012 16.4151 5.81005 16.967 5.25814C17.5189 4.70622 17.829 3.95765 17.829 3.17712C17.829 2.39659 17.5189 1.64803 16.967 1.09611C16.4151 0.544195 15.6665 0.234131 14.886 0.234131C14.1054 0.234131 13.3569 0.544195 12.8049 1.09611C12.253 1.64803 11.9429 2.39659 11.9429 3.17712C11.9429 3.41256 11.9822 3.63819 12.0312 3.86382L5.11516 7.89572C4.58542 7.40523 3.8889 7.10112 3.11391 7.10112C2.33337 7.10112 1.58481 7.41118 1.03289 7.9631C0.480965 8.51502 0.170898 9.26358 0.170898 10.0441C0.170898 10.8246 0.480965 11.5732 1.03289 12.1251C1.58481 12.677 2.33337 12.9871 3.11391 12.9871C3.8889 12.9871 4.58542 12.683 5.11516 12.1925L12.0999 16.2636C12.0509 16.4696 12.0214 16.6855 12.0214 16.9111C12.0214 18.4905 13.3065 19.7658 14.886 19.7658C16.4654 19.7658 17.7505 18.4905 17.7505 16.9111C17.7505 16.1514 17.4487 15.4228 16.9115 14.8856C16.3743 14.3484 15.6457 14.0466 14.886 14.0466Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),ASe=[ESe],MSe=["src"],ISe={"clip-path":"url(#clip0_59_831)"},PSe=["fill"],BSe=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),NSe=["src"],zSe=["fill"],OSe=["fill"],FSe=["fill"],LSe=t.createElementVNode("path",{d:"M10.2126 9.10136C9.73332 9.10136 9.30448 9.29055 8.97655 9.58695L4.48004 6.96979C4.51158 6.82474 4.5368 6.67969 4.5368 6.52834C4.5368 6.37699 4.51158 6.23194 4.48004 6.08689L8.92609 3.49495C9.26664 3.81027 9.7144 4.00577 10.2126 4.00577C10.7144 4.00577 11.1956 3.80645 11.5504 3.45164C11.9052 3.09684 12.1045 2.61562 12.1045 2.11385C12.1045 1.61208 11.9052 1.13086 11.5504 0.776056C11.1956 0.421251 10.7144 0.221924 10.2126 0.221924C9.71084 0.221924 9.22962 0.421251 8.87481 0.776056C8.52 1.13086 8.32067 1.61208 8.32067 2.11385C8.32067 2.2652 8.3459 2.41025 8.37743 2.5553L3.93138 5.14723C3.59083 4.83191 3.14308 4.63641 2.64487 4.63641C2.14309 4.63641 1.66187 4.83574 1.30706 5.19055C0.952258 5.54535 0.75293 6.02657 0.75293 6.52834C0.75293 7.03011 0.952258 7.51133 1.30706 7.86613C1.66187 8.22094 2.14309 8.42026 2.64487 8.42026C3.14308 8.42026 3.59083 8.22476 3.93138 7.90944L8.42158 10.5266C8.39004 10.659 8.37113 10.7978 8.37113 10.9428C8.37113 11.9582 9.19727 12.778 10.2126 12.778C11.2279 12.778 12.0541 11.9582 12.0541 10.9428C12.0541 10.4544 11.8601 9.98605 11.5147 9.64071C11.1694 9.29537 10.701 9.10136 10.2126 9.10136Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),DSe=[LSe],RSe=["src"],VSe=["fill"],$Se=["src"],jSe=["fill"],USe=["fill"],GSe=["fill"],HSe=t.createElementVNode("path",{d:"M10.2126 9.10111C9.73332 9.10111 9.30448 9.2903 8.97655 9.58671L4.48004 6.96954C4.51158 6.8245 4.5368 6.67945 4.5368 6.52809C4.5368 6.37674 4.51158 6.23169 4.48004 6.08665L8.92609 3.49471C9.26664 3.81003 9.7144 4.00553 10.2126 4.00553C10.7144 4.00553 11.1956 3.8062 11.5504 3.4514C11.9052 3.09659 12.1045 2.61537 12.1045 2.1136C12.1045 1.61183 11.9052 1.13062 11.5504 0.775812C11.1956 0.421007 10.7144 0.22168 10.2126 0.22168C9.71084 0.22168 9.22962 0.421007 8.87481 0.775812C8.52 1.13062 8.32067 1.61183 8.32067 2.1136C8.32067 2.26496 8.3459 2.41001 8.37743 2.55505L3.93138 5.14699C3.59083 4.83167 3.14308 4.63617 2.64487 4.63617C2.14309 4.63617 1.66187 4.8355 1.30706 5.1903C0.952258 5.54511 0.75293 6.02633 0.75293 6.52809C0.75293 7.02986 0.952258 7.51108 1.30706 7.86589C1.66187 8.22069 2.14309 8.42002 2.64487 8.42002C3.14308 8.42002 3.59083 8.22452 3.93138 7.9092L8.42158 10.5264C8.39004 10.6588 8.37113 10.7975 8.37113 10.9426C8.37113 11.9579 9.19727 12.7778 10.2126 12.7778C11.2279 12.7778 12.0541 11.9579 12.0541 10.9426C12.0541 10.4542 11.8601 9.98581 11.5147 9.64047C11.1694 9.29512 10.701 9.10111 10.2126 9.10111Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),WSe=[HSe],qSe=["src"],YSe=["fill"],XSe=["src"],ZSe=["fill"],JSe=["fill"],KSe=["fill"];function QSe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.tarjetaDatosGstype4),ref:"myDivRefCardtype4",onClick:r[12]||(r[12]=g=>c.clickPlayer({season_id:i.data.id_season,player_id:i.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGsDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCardtype4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnSharetype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcontype4),width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ASe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcontype4),alt:"",src:i.data.background},null,10,MSe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideostype4),onClick:r[0]||(r[0]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,category:"games_played",type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",ISe,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,PSe)]),BSe],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titletype4),id:"title-info"},[t.createElementVNode("h4",{class:t.normalizeClass(e.$style.playerNametype4),id:"player-name"},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainertype4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcontype4),alt:"",src:i.data.player_photo},null,10,NSe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.dataContainerClass),id:"data-container"},[i.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBoxClass),onClick:r[1]||(r[1]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,zSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),i.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBoxClass),onClick:r[2]||(r[2]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,OSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_2),3)],6)):t.createCommentVNode("",!0),i.data.showlast_category&&i.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBoxClass),onClick:r[3]||(r[3]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,FSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGs414Class),id:"card-mobile-414"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},DSe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon1type4),alt:"",src:i.data.background},null,10,RSe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos1type4),onClick:r[4]||(r[4]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,category:"games_played",type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon1type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,VSe)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title1type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer1type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon1type4),alt:"",src:i.data.player_photo},null,10,$Se)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.dataContainer1Class),id:"data-container"},[i.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox4Class),onClick:r[5]||(r[5]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,jSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),i.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox4Class),onClick:r[6]||(r[6]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,USe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_2),3)],6)):t.createCommentVNode("",!0),i.data.showlast_category&&i.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox6Class),onClick:r[7]||(r[7]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,GSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGs320Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},WSe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon2type4),alt:"",src:i.data.background},null,10,qSe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos2type4),onClick:r[8]||(r[8]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,category:"games_played",type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon2type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,YSe)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title2type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer2type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon2type4),alt:"",src:i.data.player_photo},null,10,XSe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer2type4),id:"data-container"},[i.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox7Class),onClick:r[9]||(r[9]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,ZSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),i.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox8Class),onClick:r[10]||(r[10]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,JSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_2),3)],6)):t.createCommentVNode("",!0),i.data.showlast_category&&i.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle(i.customizeColors?"color:"+i.data.font_color_card+"!important":"color: #FFFFFF !important"),class:t.normalizeClass(c.dataBox8Class),onClick:r[11]||(r[11]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.474421 8.8403C0.41722 8.80242 0.369409 8.74584 0.336143 8.67665C0.302877 8.60746 0.285418 8.52828 0.285647 8.44765V1.33719C0.285725 1.25684 0.303299 1.17801 0.3365 1.10909C0.369701 1.04018 0.417288 0.983741 0.474202 0.94579C0.531117 0.907838 0.595232 0.889787 0.659731 0.893556C0.72423 0.897325 0.786704 0.922773 0.84051 0.967195L5.12637 4.52284C5.17532 4.56335 5.21547 4.61829 5.24324 4.68277C5.271 4.74724 5.28554 4.81926 5.28554 4.89242C5.28554 4.96557 5.271 5.03759 5.24324 5.10207C5.21547 5.16655 5.17532 5.22149 5.12637 5.26199L0.84051 8.81848C0.786786 8.863 0.724361 8.88854 0.659889 8.89238C0.595418 8.89623 0.531318 8.87822 0.474421 8.8403V8.8403ZM0.64297 8.44849L4.92883 4.89284L0.64297 8.44849Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,KSe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2)],2)}const eTe={$style:TSe},tTe=mF($7,[["render",QSe],["__cssModules",eTe]]),aTe={components:{GSCCarousel:mCe,GSCCardData:tTe},props:{type:{type:Number,default:0},data:{type:Object,default:()=>{}},wrapAround:{type:Boolean,default:!0},clickCard:{type:Boolean,default:!1},prematch:{type:Boolean,default:!1},teamSelected:{type:Number,default:0},colorCardByTeam:{type:Boolean,default:!1},showShareButton:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>({})},customizeColors:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0},playVideosPrivileges:{type:Object,default:null}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",pages:[],homeTeam:[],awayTeam:[],playerInfo:{}}},computed:{},watch:{data:{immediate:!0,handler(e){this.getStats(e)}}},methods:{onclickPlayVideos(e,r){if(!r)return;var i=[];e.type==2?e.position_id==1?e.category==0?i=[55,324,323,608,39,774,802,52,53,40,54]:i=e.category:e.category==0?i=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:i=e.category:e.type==3?e.category==0?i=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:i=e.category:e.category!=0?i=e.category:i=[607,608,12,55,54,35,14,52,15,53,466,477];const B=[1,2,3];i==="minutes_played"&&(i=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]),i==="games_played"&&(i=[607,608,12,55,54,35,14,52,15,53,466,477]);let D={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,gameIds:e.game_id?[e.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?[e.team_id]:0,matchResult:e.matchResult?[e.matchResult]:B,playData:{},advancedFilter:{playListTitle:"",mainCategoryId:e.category||0}};this.$emit("openmedia",D)},async getStats(){const e=await V9e.create({headers:{Authorization:`${this.token}`}}).get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.data.season+"/games/"+this.data.game);this.playVideosPrivileges?this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?e.data.games[0].players.forEach(r=>r.canPlayVideos=r.team_id===this.playVideosPrivileges.seasonAndPrivileges.teamId):e.data.games[0].players.forEach(r=>{r.canPlayVideos=!0}):e.data.games[0].players.forEach(r=>{r.canPlayVideos=!1}):e.data.games[0].players.forEach(r=>{r.canPlayVideos=!0});for(let r=0;r<e.data.games[0].players.length;r++)this.type==0?this.pages.push([{canPlayVideos:e.data.games[0].players[r].canPlayVideos,id_season:e.data.games[0].players[r].season_id,color:e.data.games[0].players[r].info_thumbnails.colors.background_color,player_id:e.data.games[0].players[r].player_id,player_name:e.data.games[0].players[r].player_name,game_id:e.data.games[0].game_status===4?null:e.data.games[0].game_id,background:e.data.games[0].players[r].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.background_default_players[0],player_photo:e.data.games[0].players[r].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${e.data.games[0].players[r].player_id}.png`,category_stats_1:this.prematch?e.data.games[0].players[r].games_played:e.data.games[0].players[r].minutes_played,category_stats_2:this.prematch?e.data.games[0].players[r].minutes_played:e.data.games[0].players[r].categories[0].total,category_stats_3:this.prematch?e.data.games[0].players[r].categories[0].total:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":e.data.games[0].players[r].categories[0].categories,category_id_3:this.prematch?e.data.games[0].players[r].categories[0].categories:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":e.data.games[0].players[r].categories[0].category_name,category_name_3:this.prematch?e.data.games[0].players[r].categories[0].category_name:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].category_name:"",showlast_category:!!e.data.games[0].players[r].categories[0],main_title:this.prematch?this.tournamentSelected.is_female==1?"Jugadora":"Jugador":this.tournamentSelected.is_female==1?"Jugadora":"Jugador",second_title:this.prematch?"A seguir":this.tournamentSelected.is_female==1?"Destacada":"Destacado",background_color_buttons:e.data.games[0].players[r].info_thumbnails.colors.background_color_buttons,background_color_cards:e.data.games[0].players[r].info_thumbnails.colors.background_color_cards,color_icon_play:e.data.games[0].players[r].info_thumbnails.colors.color_icon_play,color_next_back:e.data.games[0].players[r].info_thumbnails.colors.color_next_back,font_color:e.data.games[0].players[r].info_thumbnails.colors.font_color,font_color_card:e.data.games[0].players[r].info_thumbnails.colors.font_color_cards?e.data.games[0].players[r].info_thumbnails.colors.font_color_cards:"#FFFFFF"}]):this.teamSelected==e.data.games[0].players[r].team_id&&this.pages.push([{canPlayVideos:e.data.games[0].players[r].canPlayVideos,id_season:e.data.games[0].players[r].season_id,color:e.data.games[0].players[r].info_thumbnails.colors.background_color,player_id:e.data.games[0].players[r].player_id,player_name:e.data.games[0].players[r].player_name,game_id:e.data.games[0].game_status===4?null:e.data.games[0].game_id,background:e.data.games[0].players[r].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.background_default_players[0],player_photo:e.data.games[0].players[r].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[r].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${e.data.games[0].players[r].player_id}.png`,category_stats_1:this.prematch?e.data.games[0].players[r].games_played:e.data.games[0].players[r].minutes_played,category_stats_2:this.prematch?e.data.games[0].players[r].minutes_played:e.data.games[0].players[r].categories[0].total,category_stats_3:this.prematch?e.data.games[0].players[r].categories[0].total:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":e.data.games[0].players[r].categories[0].categories,category_id_3:this.prematch?e.data.games[0].players[r].categories[0].categories:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":e.data.games[0].players[r].categories[0].category_name,category_name_3:this.prematch?e.data.games[0].players[r].categories[0].category_name:e.data.games[0].players[r].categories[1]?e.data.games[0].players[r].categories[1].category_name:"",showlast_category:!!e.data.games[0].players[r].categories[1],main_title:this.prematch?this.tournamentSelected.is_female==1?"Jugadora":"Jugador":this.tournamentSelected.is_female==1?"Jugadora":"Jugador",second_title:this.prematch?"A seguir":this.tournamentSelected.is_female==1?"Destacada":"Destacado",background_color_buttons:e.data.games[0].players[r].info_thumbnails.colors.background_color_buttons,background_color_cards:e.data.games[0].players[r].info_thumbnails.colors.background_color_cards,color_icon_play:e.data.games[0].players[r].info_thumbnails.colors.color_icon_play,color_next_back:e.data.games[0].players[r].info_thumbnails.colors.color_next_back,font_color:e.data.games[0].players[r].info_thumbnails.colors.font_color,font_color_card:e.data.games[0].players[r].info_thumbnails.colors.font_color_cards?e.data.games[0].players[r].info_thumbnails.colors.font_color_cards:"#FFFFFF"}])},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},onClickCategory(e){this.$emit("onClickCategory",e)},clickMore(){this.$emit("onViewMore",!0)}}},nTe=e=>(t.pushScopeId("data-v-a8d30466"),e=e(),t.popScopeId(),e),rTe={class:"gsdata"},iTe={class:"gsc-gsdata-carrousel"},oTe={key:0,class:"title-header"},sTe=nTe(()=>t.createElementVNode("div",{class:"title-header-title"},"Datos GolStats",-1)),lTe={class:"row-table-carrousel"};function cTe(e,r,i,B,D,c){const g=t.resolveComponent("GSCCardData"),a=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",rTe,[t.createElementVNode("div",iTe,[i.teamSelected==0?(t.openBlock(),t.createElementBlock("div",oTe,[sTe,t.createElementVNode("div",{class:"title-header-btn",onClick:r[0]||(r[0]=(...y)=>c.clickMore&&c.clickMore(...y))},"Ver más")])):t.createCommentVNode("",!0),t.createVNode(a,{items:D.pages,wrapAround:i.wrapAround,itemsToShow:1.1,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,isMainSlidePriority:!0,areSlidesArrowsRounded:!1,isPaginationVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",lTe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y,(f,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:n},[i.colorCardByTeam?(t.openBlock(),t.createBlock(g,{key:1,type:4,colorcard:f.color,"click-card":i.clickCard,"show-share-button":i.showShareButton,"customize-colors":i.customizeColors,data:f,"can-play-videos":f.canPlayVideos,onOnClickVideos:v=>c.onclickPlayVideos(v,f.canPlayVideos),onOnClickCategory:v=>c.onclickPlayVideos(v,f.canPlayVideos)},null,8,["colorcard","click-card","show-share-button","customize-colors","data","can-play-videos","onOnClickVideos","onOnClickCategory"])):(t.openBlock(),t.createBlock(g,{key:0,type:4,"click-card":i.clickCard,"show-share-button":i.showShareButton,"customize-colors":i.customizeColors,data:f,"can-play-videos":f.canPlayVideos,onOnClickVideos:v=>c.onclickPlayVideos(v,f.canPlayVideos),onOnClickCategory:v=>c.onclickPlayVideos(v,f.canPlayVideos)},null,8,["click-card","show-share-button","customize-colors","data","can-play-videos","onOnClickVideos","onOnClickCategory"]))],64))),128))])]),_:1},8,["items","wrapAround"])])])}const dTe=mF(aTe,[["render",cTe],["__scopeId","data-v-a8d30466"]]),uTe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},j7={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},vF=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},_F=j7.setup;j7.setup=_F?(e,r)=>(vF(),_F(e,r)):vF;const hTe=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),pTe=["src"],fTe={key:1,class:"text"},mTe=["src"],gTe={class:"stats"},yTe=hTe(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),vTe={class:"numstats"},_Te={class:"leyend"};function bTe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,pTe)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",fTe,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,mTe)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",gTe,[yTe,t.createElementVNode("div",vTe,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",_Te,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const xTe=uTe(j7,[["render",bTe],["__scopeId","data-v-fb269a1e"]]);function b2(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const wTe="_cardFrecuentConnectionstype0_1oswo_57",kTe="_cardFrecuentConnectionsDesktype0_1oswo_85",CTe="_cardFrecuentConnectionsDesk360type0_1oswo_103",STe="_imgPlayerParenttype0_1oswo_123",TTe="_imgPlayerIcontype0_1oswo_149",ETe="_imgPlayerIcon360type0_1oswo_163",ATe="_playerInfotype0_1oswo_177",MTe="_benjaminEvalenttype0_1oswo_195",ITe="_frameParenttype0_1oswo_207",PTe="_union9Wrappertype0_1oswo_223",BTe="_union9Icontype0_1oswo_251",NTe="_benjaminEvalent1type0_1oswo_263",zTe="_benjaminEvalent1360type0_1oswo_277",OTe={cardFrecuentConnectionstype0:wTe,cardFrecuentConnectionsDesktype0:kTe,cardFrecuentConnectionsDesk360type0:CTe,imgPlayerParenttype0:STe,imgPlayerIcontype0:TTe,imgPlayerIcon360type0:ETe,playerInfotype0:ATe,benjaminEvalenttype0:MTe,frameParenttype0:ITe,union9Wrappertype0:PTe,union9Icontype0:BTe,benjaminEvalent1type0:NTe,benjaminEvalent1360type0:zTe},uy=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},FTe={components:{GSCButton:xTe},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0}},computed:{cardFrecuentConnectionsDeskClass(){return this.elementSize.width<=360?this.$style.cardFrecuentConnectionsDesk360type0:this.$style.cardFrecuentConnectionsDesktype0},imgPlayerIconClass(){return this.elementSize.width<=360?this.$style.imgPlayerIcon360type0:this.$style.imgPlayerIcontype0},benjaminEvalent1Class(){return this.elementSize.width<=360?this.$style.benjaminEvalent1360type0:this.$style.benjaminEvalent1type0}},data(){return{}},setup(){const e=t.ref("myDivRefCardtype0"),{elementSize:r}=b2(e);return{myDivRefCardtype0:e,elementSize:r}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickPlayer",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},LTe={ref:"myDivRefCardtype0"},DTe=["alt","src"];function RTe(e,r,i,B,D,c){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",LTe,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardFrecuentConnectionstype0),onClick:r[1]||(r[1]=a=>c.clickPlayer({player_id:i.data.player_id}))},[t.createElementVNode("div",{class:t.normalizeClass(c.cardFrecuentConnectionsDeskClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgPlayerParenttype0)},[t.createElementVNode("img",{class:t.normalizeClass(c.imgPlayerIconClass),alt:i.data.player_name,src:i.data.player_photo},null,10,DTe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerInfotype0)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.benjaminEvalenttype0)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParenttype0)},[t.withDirectives(t.createVNode(g,{icon:"/play-icn.svg","icon-size":"9px","icon-position":"left",width:"18px",height:"18px","border-radius":"18px","border-width":"1","background-color":"transparent","border-color":"#FFFFFF",onClick:r[0]||(r[0]=a=>c.clickVideos({player_id:i.data.player_id}))},null,512),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(c.benjaminEvalent1Class)},t.toDisplayString(i.data.player_stat),3)],2)],2)],2)],2)],2)],512)}const VTe={$style:OTe},$Te=uy(FTe,[["render",RTe],["__cssModules",VTe]]),jTe="_cardVideosJugadorestype1_1fhwp_59",UTe="_cardDesktoptype1_1fhwp_87",GTe="_cardDesktop460type1_1fhwp_113",HTe="_backgroundImageParenttype1_1fhwp_137",WTe="_backgroundImageParent460type1_1fhwp_171",qTe="_backgroundImageIcontype1_1fhwp_205",YTe="_loMejorDeContainertype1_1fhwp_225",XTe="_loMejorDeContainer460type1_1fhwp_249",ZTe="_loMejorDeContainer420type1_1fhwp_273",JTe="_loMejorDetype1_1fhwp_297",KTe="_btnPlaytype1_1fhwp_303",QTe="_btnPlay460_1fhwp_361",eEe="_btnPlay460type1_1fhwp_367",tEe="_roleCharacterIcontype1_1fhwp_417",aEe="_reproducirtype1_1fhwp_431",nEe="_playerTeamDesktopIcontype1_1fhwp_445",rEe="_playerTeamDesktopIcon1200type1_1fhwp_465",iEe="_playerTeamDesktopIcon460type1_1fhwp_489",oEe={cardVideosJugadorestype1:jTe,cardDesktoptype1:UTe,cardDesktop460type1:GTe,backgroundImageParenttype1:HTe,backgroundImageParent460type1:WTe,backgroundImageIcontype1:qTe,loMejorDeContainertype1:YTe,loMejorDeContainer460type1:XTe,loMejorDeContainer420type1:ZTe,loMejorDetype1:JTe,btnPlaytype1:KTe,btnPlay460:QTe,btnPlay460type1:eEe,roleCharacterIcontype1:tEe,reproducirtype1:aEe,playerTeamDesktopIcontype1:nEe,playerTeamDesktopIcon1200type1:rEe,playerTeamDesktopIcon460type1:iEe},U7={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#000000"},colorTitle:{type:String,default:"#000000"},borderColor:{type:String,default:"#000000"},backgroundImg:{type:String,default:""},customizeColors:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},computed:{cardDesktopClass(){return this.elementSize.width<=460?this.$style.cardDesktop460type1:this.$style.cardDesktoptype1},backgroundImageParentClass(){return this.elementSize.width<=460?this.$style.backgroundImageParent460type1:this.$style.backgroundImageParenttype1},btnPlayClass(){return this.elementSize.width<=460?this.$style.btnPlay460type1:this.$style.btnPlaytype1},loMejorDeContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.loMejorDeContainer420type1:e<=460?this.$style.loMejorDeContainer460type1:this.$style.loMejorDeContainertype1},playerTeamDesktopIconClass(){const e=this.elementSize.width;return e<=460?this.$style.playerTeamDesktopIcon460type1:e<=1200?this.$style.playerTeamDesktopIcon1200type1:this.$style.playerTeamDesktopIcontype1}},setup(){const e=t.ref("myDivRefCardtype1"),{elementSize:r}=b2(e);return{myDivRefCardtype1:e,elementSize:r}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},bF=()=>{t.useCssVars(e=>({"13cfbb94":e.data.font_color!=null&&e.customizeColors?e.data.font_color:"#fff","5bd0af70":e.backgroundColor,"2573269e":e.data.background_color_buttons!=null&&e.customizeColors?e.data.background_color_buttons:"rgba(255, 255, 255, 0.08)","7c80c4b2":e.borderColor,"372c608e":e.data.font_color_card!=null?e.data.font_color_card:"#fff"}))},xF=U7.setup;U7.setup=xF?(e,r)=>(bF(),xF(e,r)):bF;const sEe={ref:"myDivRefCardtype1"},lEe=["src"],cEe={"clip-path":"url(#clip0_59_831)"},dEe=["fill"],uEe=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),hEe=["src"];function pEe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",sEe,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardVideosJugadorestype1),onClick:r[1]||(r[1]=g=>c.clickPlayer({player_id:i.data.player_id,team_id:i.data.team_id}))},[t.createElementVNode("div",{class:t.normalizeClass(c.cardDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(c.backgroundImageParentClass)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backgroundImageIcontype1),src:i.backgroundImg},null,10,lEe),t.createElementVNode("h2",{class:t.normalizeClass(c.loMejorDeContainerClass),id:"title-card"},[B.elementSize.width>380?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.loMejorDetype1)},"Lo mejor de",2)):t.createCommentVNode("",!0),B.elementSize.width<=380?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.loMejorDetype1)},"Lo mejor",2)):t.createCommentVNode("",!0),B.elementSize.width<=380?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.loMejorDetype1)},"de",2)):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass(e.$style.loMejorDetype1)},t.toDisplayString(i.data.team_name),3)],2),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(c.btnPlayClass),onClick:r[0]||(r[0]=g=>c.clickVideos({player_id:i.data.player_id,team_id:i.data.team_id}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",cEe,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:i.data.color_icon_play!=null&&i.customizeColors?i.data.color_icon_play:"#CBEE6B"},null,8,dEe)]),uEe],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.reproducirtype1)},"Reproducir",2)],2),[[t.vShow,i.canPlayVideos]])],2),t.createElementVNode("img",{class:t.normalizeClass(c.playerTeamDesktopIconClass),src:i.data.player_photo},null,10,hEe)],2)],2)],512)}const fEe={$style:oEe},mEe=uy(U7,[["render",pEe],["__cssModules",fEe]]),gEe="_tarjetaHighlightsPostmatchtype2_1islw_7",yEe="_tarjetaHighlightsPostmatch780type2_1islw_35",vEe="_tarjetaHighlightsPostmatch640type2_1islw_65",_Ee="_tarjetaHighlightsPostmatch520type2_1islw_97",bEe="_tarjetaHighlightsPostmatch350type2_1islw_131",xEe="_tarjetaHighlightsPostmatch420type2_1islw_161",wEe="_tarjetaHighlightsPostmatch320type2_1islw_195",kEe="_backgroundtype2_1islw_231",CEe="_background640type2_1islw_251",SEe="_btnPlaytype2_1islw_273",TEe="_btnPlay1_1islw_297",EEe="_btnPlay1type2_1islw_305",AEe="_icnPlaytype2_1islw_347",MEe="_union6Icontype2_1islw_365",IEe={tarjetaHighlightsPostmatchtype2:gEe,tarjetaHighlightsPostmatch780type2:yEe,tarjetaHighlightsPostmatch640type2:vEe,tarjetaHighlightsPostmatch520type2:_Ee,tarjetaHighlightsPostmatch350type2:bEe,tarjetaHighlightsPostmatch420type2:xEe,tarjetaHighlightsPostmatch320type2:wEe,backgroundtype2:kEe,background640type2:CEe,btnPlaytype2:SEe,btnPlay1:TEe,btnPlay1type2:EEe,icnPlaytype2:AEe,union6Icontype2:MEe},PEe={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},backgroundImg:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0}},computed:{tarjetaHighlightsPostmatchClass(){const e=this.elementSize.width;return e<=320?this.$style.tarjetaHighlightsPostmatch320type2:e<=350?this.$style.tarjetaHighlightsPostmatch350type2:e<=420?this.$style.tarjetaHighlightsPostmatch420type2:e<=520?this.$style.tarjetaHighlightsPostmatch520type2:e<=640?this.$style.tarjetaHighlightsPostmatch640type2:e<=780?this.$style.tarjetaHighlightsPostmatch780type2:this.$style.tarjetaHighlightsPostmatchtype2},backgroundClass(){return this.elementSize.width<=640?this.$style.background640type2:this.$style.backgroundtype2}},setup(){const e=t.ref("myDivRefCardtype2"),{elementSize:r}=b2(e);return{myDivRefCardtype2:e,elementSize:r}},data(){return{}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},BEe={ref:"myDivRefCardtype2"},NEe=t.createStaticVNode('<svg width="20" height="20" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_59_831)"><path d="M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z" fill="#CBEE6B"></path></g><defs><clipPath id="clip0_59_831"><rect width="12" height="12" fill="white" transform="translate(0.375 0.637695)"></rect></clipPath></defs></svg>',1),zEe=[NEe];function OEe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",BEe,[t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaHighlightsPostmatchClass),onClick:r[1]||(r[1]=g=>c.clickPlayer({game_id:i.data.game_id}))},[t.createElementVNode("div",{class:t.normalizeClass(c.backgroundClass),id:"image-video",style:t.normalizeStyle({"background-image":"url("+i.backgroundImg+")"})},null,6),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnPlaytype2)},[t.withDirectives(t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnPlay1type2),id:"btn-play",onClick:r[0]||(r[0]=g=>c.clickVideos({game_id:i.data.game_id}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.icnPlaytype2)},zEe,2)],2),[[t.vShow,i.canPlayVideos]])],2)],2)],512)}const FEe={$style:IEe},LEe=uy(PEe,[["render",OEe],["__cssModules",FEe]]),DEe="_tarjetaDatosGsDesktoptype4_4174v_107",REe="_tarjetaDatosGsDesktop500type4_4174v_127",VEe="_tarjetaDatosGs414type4_4174v_135",$Ee="_tarjetaDatosGs414500type4_4174v_159",jEe="_tarjetaDatosGs414380type4_4174v_183",UEe="_tarjetaDatosGs320type4_4174v_191",GEe="_tarjetaDatosGs320380type4_4174v_215",HEe="_dataBox8type4_4174v_239",WEe="_dataBox8380type4_4174v_279",qEe="_dataBoxtype4_4174v_321",YEe="_dataBox520type4_4174v_369",XEe="_dataBox480type4_4174v_419",ZEe="_dataBox3type4_4174v_469",JEe="_dataBox3520type4_4174v_517",KEe="_dataBox4type4_4174v_525",QEe="_dataBox4500type4_4174v_577",eAe="_dataBox6type4_4174v_633",tAe="_dataBox6500type4_4174v_687",aAe="_dataContainertype4_4174v_749",nAe="_dataContainer520type4_4174v_777",rAe="_dataContainer1type4_4174v_809",iAe="_dataContainer1500type4_4174v_837",oAe="_dataBox7type4_4174v_867",sAe="_dataBox7380type4_4174v_907",lAe="_div15type4_4174v_953",cAe="_div15380type4_4174v_971",dAe="_btnShareIcontype4_4174v_989",uAe="_btnSharetype4_4174v_1001",hAe="_bakgBaseIcontype4_4174v_1031",pAe="_roleCharacterIcontype4_4174v_1055",fAe="_verVideostype4_4174v_1071",mAe="_btnVideostype4_4174v_1087",gAe="_playerNametype4_4174v_1145",yAe="_elJugadortype4_4174v_1163",vAe="_aSeguirtype4_4174v_1171",_Ae="_elJugadorAContainertype4_4174v_1181",bAe="_titletype4_4174v_1201",xAe="_baseCardtype4_4174v_1229",wAe="_imagePlayerIcontype4_4174v_1259",kAe="_arrowGraphIcontype4_4174v_1285",CAe="_divtype4_4174v_1297",SAe="_totaltype4_4174v_1311",TAe="_div1type4_4174v_1327",EAe="_btnShareIcon1type4_4174v_1349",AAe="_btnShare1type4_4174v_1361",MAe="_bakgBaseIcon1type4_4174v_1389",IAe="_bakgBaseIcon2type4_4174v_1413",PAe="_roleCharacterIcon1type4_4174v_1437",BAe="_btnVideos1type4_4174v_1453",NAe="_playerName1type4_4174v_1499",zAe="_elJugadorAContainer1type4_4174v_1509",OAe="_title1type4_4174v_1529",FAe="_baseCard1type4_4174v_1555",LAe="_imagePlayerIcon1type4_4174v_1583",DAe="_total4type4_4174v_1605",RAe="_div9type4_4174v_1621",VAe="_roleCharacterIcon2type4_4174v_1637",$Ae="_btnVideos2type4_4174v_1653",jAe="_elJugadorAContainer2type4_4174v_1695",UAe="_title2type4_4174v_1715",GAe="_imagePlayerIcon2type4_4174v_1743",HAe="_dataContainer2type4_4174v_1765",WAe="_tarjetaDatosGstype4_4174v_1795",qAe={tarjetaDatosGsDesktoptype4:DEe,tarjetaDatosGsDesktop500type4:REe,tarjetaDatosGs414type4:VEe,tarjetaDatosGs414500type4:$Ee,tarjetaDatosGs414380type4:jEe,tarjetaDatosGs320type4:UEe,tarjetaDatosGs320380type4:GEe,dataBox8type4:HEe,dataBox8380type4:WEe,dataBoxtype4:qEe,dataBox520type4:YEe,dataBox480type4:XEe,dataBox3type4:ZEe,dataBox3520type4:JEe,dataBox4type4:KEe,dataBox4500type4:QEe,dataBox6type4:eAe,dataBox6500type4:tAe,dataContainertype4:aAe,dataContainer520type4:nAe,dataContainer1type4:rAe,dataContainer1500type4:iAe,dataBox7type4:oAe,dataBox7380type4:sAe,div15type4:lAe,div15380type4:cAe,btnShareIcontype4:dAe,btnSharetype4:uAe,bakgBaseIcontype4:hAe,roleCharacterIcontype4:pAe,verVideostype4:fAe,btnVideostype4:mAe,playerNametype4:gAe,elJugadortype4:yAe,aSeguirtype4:vAe,elJugadorAContainertype4:_Ae,titletype4:bAe,baseCardtype4:xAe,imagePlayerIcontype4:wAe,arrowGraphIcontype4:kAe,divtype4:CAe,totaltype4:SAe,div1type4:TAe,btnShareIcon1type4:EAe,btnShare1type4:AAe,bakgBaseIcon1type4:MAe,bakgBaseIcon2type4:IAe,roleCharacterIcon1type4:PAe,btnVideos1type4:BAe,playerName1type4:NAe,elJugadorAContainer1type4:zAe,title1type4:OAe,baseCard1type4:FAe,imagePlayerIcon1type4:LAe,total4type4:DAe,div9type4:RAe,roleCharacterIcon2type4:VAe,btnVideos2type4:$Ae,elJugadorAContainer2type4:jAe,title2type4:UAe,imagePlayerIcon2type4:GAe,dataContainer2type4:HAe,tarjetaDatosGstype4:WAe},G7={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},colorcard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},computed:{tarjetaDatosGsDesktopClass(){return this.elementSize.width<=500?this.$style.tarjetaDatosGsDesktop500type4:this.$style.tarjetaDatosGsDesktoptype4},tarjetaDatosGs414Class(){const e=this.elementSize.width;return e<=380?this.$style.tarjetaDatosGs414380type4:e<=500?this.$style.tarjetaDatosGs414500type4:this.$style.tarjetaDatosGs414type4},tarjetaDatosGs320Class(){return this.elementSize.width<=380?this.$style.tarjetaDatosGs320380type4:this.$style.tarjetaDatosGs320type4},dataBox8Class(){return this.elementSize.width<=380?this.$style.dataBox8380type4:this.$style.dataBox8type4},dataBoxClass(){const e=this.elementSize.width;return e<=480?this.$style.dataBox480type4:e<=520?this.$style.dataBox520type4:this.$style.dataBoxtype4},dataBox3Class(){return this.elementSize.width<=520?this.$style.dataBox3520type4:this.$style.dataBox3type4},dataBox4Class(){return this.elementSize.width<=500?this.$style.dataBox4500type4:this.$style.dataBox4type4},dataBox6Class(){return this.elementSize.width<=500?this.$style.dataBox6500type4:this.$style.dataBox6type4},dataBox7Class(){return this.elementSize.width<=380?this.$style.dataBox7380type4:this.$style.dataBox7type4},dataContainerClass(){return this.elementSize.width<=520?this.$style.dataContainer520type4:this.$style.dataContainertype4},dataContainer1Class(){return this.elementSize.width<=500?this.$style.dataContainer1500type4:this.$style.dataContainer1type4},div15Class(){return this.elementSize.width<=380?this.$style.div15380type4:this.$style.div15type4}},setup(){const e=t.ref("myDivRefCardtype4"),{elementSize:r}=b2(e);return{myDivRefCardtype4:e,elementSize:r}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)},clickCategory(e){this.clickCard||this.$emit("onClickCategory",e)}}},wF=()=>{t.useCssVars(e=>({"118d3d83":e.data.background_color_cards!=null?e.data.background_color_cards:"rgba(255, 255, 255, 0.16)","72929a50":e.data.font_color_card!=null?e.data.font_color_card:"#fff",aad4f1fa:e.data.background_color_buttons!=null?e.data.background_color_buttons:"rgba(255, 255, 255, 0.16)","3167c565":e.colorcard,"4ed6a66a":e.data.font_color!=null?e.data.font_color:"#fff"}))},kF=G7.setup;G7.setup=kF?(e,r)=>(wF(),kF(e,r)):wF;const YAe=t.createElementVNode("path",{d:"M14.886 14.0466C14.1404 14.0466 13.4733 14.3409 12.9632 14.8019L5.96863 10.7308C6.01768 10.5052 6.05692 10.2795 6.05692 10.0441C6.05692 9.80867 6.01768 9.58304 5.96863 9.35741L12.8847 5.32551C13.4145 5.81601 14.111 6.12012 14.886 6.12012C15.6665 6.12012 16.4151 5.81005 16.967 5.25814C17.5189 4.70622 17.829 3.95765 17.829 3.17712C17.829 2.39659 17.5189 1.64803 16.967 1.09611C16.4151 0.544195 15.6665 0.234131 14.886 0.234131C14.1054 0.234131 13.3569 0.544195 12.8049 1.09611C12.253 1.64803 11.9429 2.39659 11.9429 3.17712C11.9429 3.41256 11.9822 3.63819 12.0312 3.86382L5.11516 7.89572C4.58542 7.40523 3.8889 7.10112 3.11391 7.10112C2.33337 7.10112 1.58481 7.41118 1.03289 7.9631C0.480965 8.51502 0.170898 9.26358 0.170898 10.0441C0.170898 10.8246 0.480965 11.5732 1.03289 12.1251C1.58481 12.677 2.33337 12.9871 3.11391 12.9871C3.8889 12.9871 4.58542 12.683 5.11516 12.1925L12.0999 16.2636C12.0509 16.4696 12.0214 16.6855 12.0214 16.9111C12.0214 18.4905 13.3065 19.7658 14.886 19.7658C16.4654 19.7658 17.7505 18.4905 17.7505 16.9111C17.7505 16.1514 17.4487 15.4228 16.9115 14.8856C16.3743 14.3484 15.6457 14.0466 14.886 14.0466Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),XAe=[YAe],ZAe=["src"],JAe={"clip-path":"url(#clip0_59_831)"},KAe=["fill"],QAe=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),eMe=["src"],tMe=["fill"],aMe=["fill"],nMe=["fill"],rMe=t.createElementVNode("path",{d:"M10.2126 9.10136C9.73332 9.10136 9.30448 9.29055 8.97655 9.58695L4.48004 6.96979C4.51158 6.82474 4.5368 6.67969 4.5368 6.52834C4.5368 6.37699 4.51158 6.23194 4.48004 6.08689L8.92609 3.49495C9.26664 3.81027 9.7144 4.00577 10.2126 4.00577C10.7144 4.00577 11.1956 3.80645 11.5504 3.45164C11.9052 3.09684 12.1045 2.61562 12.1045 2.11385C12.1045 1.61208 11.9052 1.13086 11.5504 0.776056C11.1956 0.421251 10.7144 0.221924 10.2126 0.221924C9.71084 0.221924 9.22962 0.421251 8.87481 0.776056C8.52 1.13086 8.32067 1.61208 8.32067 2.11385C8.32067 2.2652 8.3459 2.41025 8.37743 2.5553L3.93138 5.14723C3.59083 4.83191 3.14308 4.63641 2.64487 4.63641C2.14309 4.63641 1.66187 4.83574 1.30706 5.19055C0.952258 5.54535 0.75293 6.02657 0.75293 6.52834C0.75293 7.03011 0.952258 7.51133 1.30706 7.86613C1.66187 8.22094 2.14309 8.42026 2.64487 8.42026C3.14308 8.42026 3.59083 8.22476 3.93138 7.90944L8.42158 10.5266C8.39004 10.659 8.37113 10.7978 8.37113 10.9428C8.37113 11.9582 9.19727 12.778 10.2126 12.778C11.2279 12.778 12.0541 11.9582 12.0541 10.9428C12.0541 10.4544 11.8601 9.98605 11.5147 9.64071C11.1694 9.29537 10.701 9.10136 10.2126 9.10136Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),iMe=[rMe],oMe=["src"],sMe=["fill"],lMe=["src"],cMe=["fill"],dMe=["fill"],uMe=["fill"],hMe=t.createElementVNode("path",{d:"M10.2126 9.10111C9.73332 9.10111 9.30448 9.2903 8.97655 9.58671L4.48004 6.96954C4.51158 6.8245 4.5368 6.67945 4.5368 6.52809C4.5368 6.37674 4.51158 6.23169 4.48004 6.08665L8.92609 3.49471C9.26664 3.81003 9.7144 4.00553 10.2126 4.00553C10.7144 4.00553 11.1956 3.8062 11.5504 3.4514C11.9052 3.09659 12.1045 2.61537 12.1045 2.1136C12.1045 1.61183 11.9052 1.13062 11.5504 0.775812C11.1956 0.421007 10.7144 0.22168 10.2126 0.22168C9.71084 0.22168 9.22962 0.421007 8.87481 0.775812C8.52 1.13062 8.32067 1.61183 8.32067 2.1136C8.32067 2.26496 8.3459 2.41001 8.37743 2.55505L3.93138 5.14699C3.59083 4.83167 3.14308 4.63617 2.64487 4.63617C2.14309 4.63617 1.66187 4.8355 1.30706 5.1903C0.952258 5.54511 0.75293 6.02633 0.75293 6.52809C0.75293 7.02986 0.952258 7.51108 1.30706 7.86589C1.66187 8.22069 2.14309 8.42002 2.64487 8.42002C3.14308 8.42002 3.59083 8.22452 3.93138 7.9092L8.42158 10.5264C8.39004 10.6588 8.37113 10.7975 8.37113 10.9426C8.37113 11.9579 9.19727 12.7778 10.2126 12.7778C11.2279 12.7778 12.0541 11.9579 12.0541 10.9426C12.0541 10.4542 11.8601 9.98581 11.5147 9.64047C11.1694 9.29512 10.701 9.10111 10.2126 9.10111Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),pMe=[hMe],fMe=["src"],mMe=["fill"],gMe=["src"],yMe=["fill"],vMe=["fill"],_Me=["fill"];function bMe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.tarjetaDatosGstype4),ref:"myDivRefCardtype4",onClick:r[12]||(r[12]=g=>c.clickPlayer({season_id:i.data.id_season,player_id:i.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGsDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCardtype4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnSharetype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcontype4),width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XAe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcontype4),alt:"",src:i.data.background},null,10,ZAe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideostype4),onClick:r[0]||(r[0]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,category:0,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",JAe,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,KAe)]),QAe],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titletype4),id:"title-info"},[t.createElementVNode("h4",{class:t.normalizeClass(e.$style.playerNametype4),id:"player-name"},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainertype4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcontype4),alt:"",src:i.data.player_photo},null,10,eMe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.dataContainerClass),id:"data-container"},[i.data.category_name_1=="Minutos Jugados"&&!i.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBoxClass),onClick:r[1]||(r[1]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,tMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBoxClass),onClick:r[2]||(r[2]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,aMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_2),3)],6),i.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBoxClass),onClick:r[3]||(r[3]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,nMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGs414Class),id:"card-mobile-414"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iMe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon1type4),alt:"",src:i.data.background},null,10,oMe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos1type4),onClick:r[4]||(r[4]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,category:0,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon1type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,sMe)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title1type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer1type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon1type4),alt:"",src:i.data.player_photo},null,10,lMe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.dataContainer1Class),id:"data-container"},[i.data.category_name_1=="Minutos Jugados"&&!i.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox4Class),onClick:r[5]||(r[5]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,cMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox4Class),onClick:r[6]||(r[6]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,dMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_2),3)],6),i.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox6Class),onClick:r[7]||(r[7]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,game_id:i.data.game_id?i.data.game_id:null,player_id:i.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,uMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(c.tarjetaDatosGs320Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[i.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pMe,2))],2)):t.createCommentVNode("",!0),i.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon2type4),alt:"",src:i.data.background},null,10,fMe)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos2type4),onClick:r[8]||(r[8]=g=>c.clickVideos({season_id:i.data.id_season,player_id:i.data.player_id,category:0,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon2type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,mMe)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title2type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(i.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer2type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(i.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(i.data.second_title),3)],2)],2)],2),i.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon2type4),alt:"",src:i.data.player_photo},null,10,gMe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer2type4),id:"data-container"},[i.data.category_name_1=="Minutos Jugados"&&!i.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox7Class),onClick:r[9]||(r[9]=g=>c.clickCategory({category:i.data.category_id_1,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,yMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_1),3)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox8Class),onClick:r[10]||(r[10]=g=>c.clickCategory({category:i.data.category_id_2,season_id:i.data.id_season,player_id:i.data.player_id,game_id:i.data.game_id?i.data.game_id:null,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,vMe)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_2),3)],6),i.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:i.data.font_color_card+"!important"}),class:t.normalizeClass(c.dataBox8Class),onClick:r[11]||(r[11]=g=>c.clickCategory({category:i.data.category_id_3,season_id:i.data.id_season,game_id:i.data.game_id?i.data.game_id:null,player_id:i.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[t.withDirectives((t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.474421 8.8403C0.41722 8.80242 0.369409 8.74584 0.336143 8.67665C0.302877 8.60746 0.285418 8.52828 0.285647 8.44765V1.33719C0.285725 1.25684 0.303299 1.17801 0.3365 1.10909C0.369701 1.04018 0.417288 0.983741 0.474202 0.94579C0.531117 0.907838 0.595232 0.889787 0.659731 0.893556C0.72423 0.897325 0.786704 0.922773 0.84051 0.967195L5.12637 4.52284C5.17532 4.56335 5.21547 4.61829 5.24324 4.68277C5.271 4.74724 5.28554 4.81926 5.28554 4.89242C5.28554 4.96557 5.271 5.03759 5.24324 5.10207C5.21547 5.16655 5.17532 5.22149 5.12637 5.26199L0.84051 8.81848C0.786786 8.863 0.724361 8.88854 0.659889 8.89238C0.595418 8.89623 0.531318 8.87822 0.474421 8.8403V8.8403ZM0.64297 8.44849L4.92883 4.89284L0.64297 8.44849Z",fill:i.data.color_icon_play!=null?i.data.color_icon_play:"#CBEE6B"},null,8,_Me)],2)),[[t.vShow,i.canPlayVideos]]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(i.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.div15Class)},t.toDisplayString(i.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2)],2)}const xMe={$style:qAe},wMe=uy(G7,[["render",bMe],["__cssModules",xMe]]),kMe="_cardVideotype3_1wydm_47",CMe="_cardVideo540type3_1wydm_73",SMe="_ligaMx2Icontype3_1wydm_101",TMe="_roleCharacterIcontype3_1wydm_121",EMe="_btnPlaytype3_1wydm_135",AMe="_videoThumbnailtype3_1wydm_183",MMe="_chivasIcontype3_1wydm_209",IMe="_teamtype3_1wydm_221",PMe="_playerChildtype3_1wydm_251",BMe="_playertype3_1wydm_265",NMe="_teamPlayertype3_1wydm_297",zMe="_mintype3_1wydm_309",OMe="_teamPlayerParenttype3_1wydm_317",FMe="_icnGoalsIcontype3_1wydm_333",LMe="_min1type3_1wydm_343",DMe="_actionstype3_1wydm_351",RMe="_footerCardVideotype3_1wydm_367",VMe={cardVideotype3:kMe,cardVideo540type3:CMe,ligaMx2Icontype3:SMe,roleCharacterIcontype3:TMe,btnPlaytype3:EMe,videoThumbnailtype3:AMe,chivasIcontype3:MMe,teamtype3:IMe,playerChildtype3:PMe,playertype3:BMe,teamPlayertype3:NMe,mintype3:zMe,teamPlayerParenttype3:OMe,icnGoalsIcontype3:FMe,min1type3:LMe,actionstype3:DMe,footerCardVideotype3:RMe},H7={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},categoryIcon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#000000"},playerPhoto:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},setup(){const e=t.ref("myDivRefCardtype3"),{elementSize:r}=b2(e);return{myDivRefCardtype3:e,elementSize:r}},computed:{cardVideoClass(){return this.elementSize.width<=540?this.$style.cardVideo540type3:this.$style.cardVideotype3}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},CF=()=>{t.useCssVars(e=>({e342e56e:e.backgroundColor}))},SF=H7.setup;H7.setup=SF?(e,r)=>(CF(),SF(e,r)):CF;const $Me=["src"],jMe=t.createElementVNode("g",{"clip-path":"url(#clip0_59_831)"},[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:"#CBEE6B"})],-1),UMe=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),GMe=[jMe,UMe],HMe=["src"],WMe=["src"],qMe=["src"];function YMe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(c.cardVideoClass),ref:"myDivRefCardtype3",onClick:r[1]||(r[1]=g=>c.clickPlayer({season_id:i.data.id_season,category_id:i.data.id_category,team_id:i.data.team_id,player_id:i.data.player_id}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.videoThumbnailtype3),id:"container-video"},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.ligaMx2Icontype3),alt:"",src:i.data.background_card},null,10,$Me),t.withDirectives(t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnPlaytype3),onClick:r[0]||(r[0]=g=>c.clickVideos({season_id:i.data.id_season,category_id:i.data.id_category,team_id:i.data.team_id,player_id:i.data.player_id})),id:"btn-play-video"},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype3),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GMe,2))],2),[[t.vShow,i.canPlayVideos]])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.footerCardVideotype3),id:"footer-card-video",style:t.normalizeStyle({background:i.backgroundColor})},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPlayerParenttype3)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPlayertype3)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamtype3)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.chivasIcontype3),alt:"",src:i.data.team_logo},null,10,HMe)],2),i.playerPhoto?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.playertype3)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.playerChildtype3),alt:"",src:i.data.player_photo},null,10,WMe)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.mintype3)},t.toDisplayString(i.data.player_name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.actionstype3)},[i.categoryIcon?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnGoalsIcontype3),alt:"",src:i.data.icon_stat},null,10,qMe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.min1type3)},t.toDisplayString(i.data.stat),3)],2)],6)],2)}const XMe={$style:VMe},ZMe=uy(H7,[["render",YMe],["__cssModules",XMe]]),JMe={components:{GSCCardFrecuentConnections:$Te,GSCCardVideosPlayers:mEe,GSCHighlightsPostmatch:LEe,GSCPlays:ZMe,GSCDataGS:wMe},props:{type:{type:Number,default:0},isLive:{type:Boolean,default:!1},data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},playerPhoto:{type:Boolean,default:!0},categoryIcon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#cf152d"},backgroundImg:{type:String,default:""},colorTitle:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},colorCard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0}},data(){return{}},computed:{},methods:{onClickPlayer(e){this.$emit("onClickCard",e)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCategory(e){this.$emit("onClickCategory",e)}}};function KMe(e,r,i,B,D,c){const g=t.resolveComponent("GSCCardFrecuentConnections"),a=t.resolveComponent("GSCCardVideosPlayers"),y=t.resolveComponent("GSCHighlightsPostmatch"),f=t.resolveComponent("GSCPlays"),n=t.resolveComponent("GSCDataGS");return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createBlock(g,{key:0,data:i.data,"click-card":i.clickCard,"can-play-videos":i.canPlayVideos,onOnClickPlayer:c.onClickPlayer,onOnClickVideos:c.onClickVideos},null,8,["data","click-card","can-play-videos","onOnClickPlayer","onOnClickVideos"])):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createBlock(a,{key:1,data:i.data,"click-card":i.clickCard,"background-color":i.backgroundColor,"color-title":i.colorTitle,"border-color":i.borderColor,"background-img":i.backgroundImg,"customize-colors":i.customizeColors,"can-play-videos":i.canPlayVideos,onOnClickCard:c.onClickPlayer,onOnClickVideos:c.onClickVideos},null,8,["data","click-card","background-color","color-title","border-color","background-img","customize-colors","can-play-videos","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createBlock(y,{key:2,data:i.data,"click-card":i.clickCard,"background-img":i.backgroundImg,"can-play-videos":i.canPlayVideos,onOnClickCard:c.onClickPlayer,onOnClickVideos:c.onClickVideos},null,8,["data","click-card","background-img","can-play-videos","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),i.type==3?(t.openBlock(),t.createBlock(f,{key:3,data:i.data,"click-card":i.clickCard,"player-photo":i.playerPhoto,"category-icon":i.categoryIcon,"background-color":i.backgroundColor,"can-play-videos":i.canPlayVideos,onOnClickCard:c.onClickPlayer,onOnClickVideos:c.onClickVideos},null,8,["data","click-card","player-photo","category-icon","background-color","can-play-videos","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),i.type==4?(t.openBlock(),t.createBlock(n,{key:4,data:i.data,"show-share-button":i.showShareButton,"click-card":i.clickCard,colorcard:i.colorCard,"is-live":i.isLive,"can-play-videos":i.canPlayVideos,onOnClickCard:c.onClickPlayer,onOnClickVideos:c.onClickVideos,onOnClickCategory:c.onClickCategory},null,8,["data","show-share-button","click-card","colorcard","is-live","can-play-videos","onOnClickCard","onOnClickVideos","onOnClickCategory"])):t.createCommentVNode("",!0)])}const QMe=uy(JMe,[["render",KMe],["__scopeId","data-v-3aa2e998"]]),eIe=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},W7={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},TF=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},EF=W7.setup;W7.setup=EF?(e,r)=>(TF(),EF(e,r)):TF;const tIe={ref:"gscScrollableContainer",class:"scrollable-container"},aIe={class:"scrollable-arrows"},nIe=["width","height","viewBox"],rIe=["stroke"],iIe={class:"scrollable-wrapper"},oIe={class:"scrollable-arrows"},sIe=["width","height","viewBox"],lIe=["stroke"];function cIe(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",tIe,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...g)=>c.scrollLeft&&c.scrollLeft(...g))},[t.createElementVNode("div",aIe,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,rIe)],8,nIe))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...g)=>c.getScroll&&c.getScroll(...g))},[t.createElementVNode("div",iIe,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...g)=>c.scrollRight&&c.scrollRight(...g))},[t.createElementVNode("div",oIe,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,lIe)],8,sIe))])],2)):t.createCommentVNode("",!0)],512)}const dIe=eIe(W7,[["render",cIe],["__scopeId","data-v-b548a08d"]]),uIe="_templateDataGS_1lawj_4",hIe="_gridCompo480_1lawj_17",pIe="_gridCompo_1lawj_17",fIe="_grid_1lawj_17",mIe="_grid768_1lawj_55",gIe="_grid480_1lawj_66",yIe="_specialsMobile_1lawj_77",vIe="_gridClass_1lawj_85",_Ie={templateDataGS:uIe,gridCompo480:hIe,gridCompo:pIe,grid:fIe,grid768:mIe,grid480:gIe,specialsMobile:yIe,gridClass:vIe},bIe={components:{GSCData:dTe,GSCCard:QMe,GSCSlider:dIe,GSCMentionsCards:c7e},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},type:{type:Number,default:0},tournamentSelected:{type:Object,default:()=>({})},data:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null}},setup(){const e=t.ref("myDivRef2GSDa"),{elementSize:r}=Rke(e);return{myDivRef2GSDa:e,elementSize:r}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",pages:[],homeTeam:[],awayTeam:[],intervalidgs:null,playerInfo:{},specials:[],homeTeamCardsMap:new Map,awayTeamCardsMap:new Map}},computed:{gridCompoClass(){return this.elementSize.width<=720?this.$style.gridCompo480:this.$style.gridCompo},gridClass(){const e=this.elementSize.width;return e<=620?this.$style.grid480:e<=900?this.$style.grid768:this.$style.grid}},watch:{type:{immediate:!0,handler(e){e==3&&this.data.game_status!=0&&(this.clearCardsData(),this.intervalidgs=setInterval(()=>{this.getStats(this.data)},this.timeLiveComparativeBestPlayers),this.$emit("intervalidgs",this.intervalidgs))}},data:{immediate:!0,handler(e){this.clearCardsData(),this.getStats(e)}}},methods:{openmedia(e){this.$emit("openmedia",e)},onclickPlayVideos(e,r){if(!r)return;var i=[];e.type==2?e.position_id==1?e.category==0?i=[39,55,41,42,264,304,306,608,324,323,362,371,380,355,49,50,267,308]:i=e.category:e.category==0?i=[12,19,31,32,13,25,6,11,23,4,5,24,15,607,10,27,216,217,155,164,173,30,98,101,104,105,109,112,115,116,17,2,20]:i=e.category:e.type==3?e.category==0?i=[12,55,"35_r","54_r",19,31,32,13,25,6,312,11,23,4,5,24,18,49,607,608,10,324,27,323,216,217,155,164,173,362,371,380,30,355,98,101,104,105,109,112,115,116,17,50,2,20,267,308]:i=e.category:e.category!=0?i=e.category:i=[12,55,"35_r","54_r",19,31,32,13,25,6,312,11,23,4,5,24,18,49,607,608,10,324,27,323,216,217,155,164,173,362,371,380,30,355,98,101,104,105,109,112,115,116,17,50,2,20,267,308],i==="minutes_played"&&(i=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]),i==="games_played"&&(i=[607,608,12,55,54,35,14,52,15,53,466,477]);const B=[1,2,3];let D={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:i,gameIds:e.game_id?[e.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?[e.team_id]:0,matchResult:e.matchResult?[e.matchResult]:B,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(D.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",D)},async getStats(e){const r=Dke.create({headers:{Authorization:`${this.token}`}});let i={},B={};this.isWidget&&this.teamWidget!=0?B=await r.get("https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/"+e.game+"?team="+this.teamWidget):B=await r.get("https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/"+e.game),this.specials=B.data.data,this.type==3?i=await r.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/live/best-plays/seasons/"+e.season+"/games/"+e.game+"?limit=12"):i=await r.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game+"?limit=12"),this.playVideosPrivileges?this.playVideosPrivileges.canPrivilegesTeamPlayVideos?this.playVideosPrivileges.isPrivilegesTeamOnly?i.data.games[0].players.forEach(D=>D.canPlayVideos=D.team_id===this.playVideosPrivileges.seasonAndPrivileges.teamId):i.data.games[0].players.forEach(D=>{D.canPlayVideos=!0}):i.data.games[0].players.forEach(D=>{D.canPlayVideos=!1}):i.data.games[0].players.forEach(D=>{D.canPlayVideos=!0});for(let D=0;D<i.data.games[0].players.length;D++){if(e.home_team_id==i.data.games[0].players[D].team_id){const c={canPlayVideos:i.data.games[0].players[D].canPlayVideos,id_season:i.data.games[0].players[D].season_id,color:i.data.games[0].players[D].info_thumbnails.colors.background_color,player_id:i.data.games[0].players[D].player_id,player_name:i.data.games[0].players[D].player_name,game_id:i.data.games[0].game_status===4?null:i.data.games[0].game_id,background:i.data.games[0].players[D].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.background_default_players[0],player_photo:i.data.games[0].players[D].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${i.data.games[0].players[D].player_id}.png`,category_stats_1:this.prematch?i.data.games[0].players[D].games_played:i.data.games[0].players[D].minutes_played,category_stats_2:this.prematch?i.data.games[0].players[D].minutes_played:i.data.games[0].players[D].categories[0].total,category_stats_3:this.prematch?i.data.games[0].players[D].categories[0].total:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":i.data.games[0].players[D].categories[0].categories,category_id_3:this.prematch?i.data.games[0].players[D].categories[0].categories:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":i.data.games[0].players[D].categories[0].category_name,category_name_3:this.prematch?i.data.games[0].players[D].categories[0].category_name:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].category_name:"",showlast_category:!!i.data.games[0].players[D].categories[1],main_title:this.tournamentSelected.is_female==1?"Jugadora":"Jugador",second_title:this.tournamentSelected.is_female==1?"Destacada":"Destacado",background_color_buttons:i.data.games[0].players[D].info_thumbnails.colors.background_color_buttons,background_color_cards:i.data.games[0].players[D].info_thumbnails.colors.background_color_cards,color_icon_play:i.data.games[0].players[D].info_thumbnails.colors.color_icon_play,color_next_back:i.data.games[0].players[D].info_thumbnails.colors.color_next_back,font_color:i.data.games[0].players[D].info_thumbnails.colors.font_color,font_color_card:i.data.games[0].players[D].info_thumbnails.colors.font_color_cards?i.data.games[0].players[D].info_thumbnails.colors.font_color_cards:"#FFFFFF"},g=this.homeTeamCardsMap.get(c.player_id);g?Object.entries(c).forEach(([a,y])=>{g[a]=y}):(this.homeTeamCardsMap.set(c.player_id,c),this.homeTeam.push(c))}if(e.away_team_id==i.data.games[0].players[D].team_id){const c={canPlayVideos:i.data.games[0].players[D].canPlayVideos,id_season:i.data.games[0].players[D].season_id,color:i.data.games[0].players[D].info_thumbnails.colors.background_color,player_id:i.data.games[0].players[D].player_id,player_name:i.data.games[0].players[D].player_name,game_id:i.data.games[0].game_status===4?null:i.data.games[0].game_id,background:i.data.games[0].players[D].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.background_default_players[0],player_photo:i.data.games[0].players[D].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[D].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${i.data.games[0].players[D].player_id}.png`,category_stats_1:this.prematch?i.data.games[0].players[D].games_played:i.data.games[0].players[D].minutes_played,category_stats_2:this.prematch?i.data.games[0].players[D].minutes_played:i.data.games[0].players[D].categories[0].total,category_stats_3:this.prematch?i.data.games[0].players[D].categories[0].total:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":i.data.games[0].players[D].categories[0].categories,category_id_3:this.prematch?i.data.games[0].players[D].categories[0].categories:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":i.data.games[0].players[D].categories[0].category_name,category_name_3:this.prematch?i.data.games[0].players[D].categories[0].category_name:i.data.games[0].players[D].categories[1]?i.data.games[0].players[D].categories[1].category_name:"",showlast_category:!!i.data.games[0].players[D].categories[1],main_title:this.tournamentSelected.is_female==1?"Jugadora":"Jugador",second_title:this.tournamentSelected.is_female==1?"Destacada":"Destacado",background_color_buttons:i.data.games[0].players[D].info_thumbnails.colors.background_color_buttons,background_color_cards:i.data.games[0].players[D].info_thumbnails.colors.background_color_cards,color_icon_play:i.data.games[0].players[D].info_thumbnails.colors.color_icon_play,color_next_back:i.data.games[0].players[D].info_thumbnails.colors.color_next_back,font_color:i.data.games[0].players[D].info_thumbnails.colors.font_color,font_color_card:i.data.games[0].players[D].info_thumbnails.colors.font_color_cards?i.data.games[0].players[D].info_thumbnails.colors.font_color_cards:"#FFFFFF"},g=this.awayTeamCardsMap.get(c.player_id);g?Object.entries(c).forEach(([a,y])=>{g[a]=y}):(this.awayTeamCardsMap.set(c.player_id,c),this.awayTeam.push(c))}}},clearCardsData(){this.homeTeam=[],this.awayTeam=[],this.homeTeamCardsMap.clear(),this.awayTeamCardsMap.clear()}}},xIe={style:{margin:"0 auto",width:"100%"}},wIe={style:{margin:"0 auto",width:"100%"}},kIe={style:{margin:"0 auto",width:"100%"}};function CIe(e,r,i,B,D,c){const g=t.resolveComponent("GSCData"),a=t.resolveComponent("GSCMentionsCards"),y=t.resolveComponent("GSCSlider"),f=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.templateDataGS),ref:"myDivRef2GSDa"},[i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(c.gridCompoClass)},[this.isWidget&&this.teamWidget!=0?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-80)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[t.createElementVNode("div",xIe,[i.data.home_team_id==this.teamWidget?(t.openBlock(),t.createBlock(g,{key:0,type:1,"tournament-selected":i.tournamentSelected,prematch:!0,"click-card":!1,"team-selected":i.data.home_team_id,data:i.data,colorCardByTeam:!0,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia},null,8,["tournament-selected","team-selected","data","play-videos-privileges","onOpenmedia"])):t.createCommentVNode("",!0),i.data.away_team_id==this.teamWidget?(t.openBlock(),t.createBlock(g,{key:1,"play-videos-privileges":i.playVideosPrivileges,type:1,"tournament-selected":i.tournamentSelected,prematch:!0,"click-card":!1,"team-selected":i.data.away_team_id,data:i.data,colorCardByTeam:!0,onOpenmedia:c.openmedia},null,8,["play-videos-privileges","tournament-selected","team-selected","data","onOpenmedia"])):t.createCommentVNode("",!0)])],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-80)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[t.createElementVNode("div",wIe,[t.createVNode(g,{type:1,"tournament-selected":i.tournamentSelected,prematch:!0,"click-card":!1,"team-selected":i.data.home_team_id,data:i.data,colorCardByTeam:!0,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia},null,8,["tournament-selected","team-selected","data","play-videos-privileges","onOpenmedia"])])],4),t.createElementVNode("div",{style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-80)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[t.createElementVNode("div",kIe,[t.createVNode(g,{"play-videos-privileges":i.playVideosPrivileges,type:1,"tournament-selected":i.tournamentSelected,prematch:!0,"click-card":!1,"team-selected":i.data.away_team_id,data:i.data,colorCardByTeam:!0,onOpenmedia:c.openmedia},null,8,["play-videos-privileges","tournament-selected","team-selected","data","onOpenmedia"])])],4)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.specialsMobile)},[t.createVNode(y,{"px-scroll":305,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd","background-color":"#172531"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.specials,(n,v)=>(t.openBlock(),t.createBlock(a,{key:v,data:n,"is-slider":!0},null,8,["data"]))),128))]),_:1})],2),t.createElementVNode("div",{class:t.normalizeClass([c.gridClass,e.$style.gridClass])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.specials,(n,v)=>(t.openBlock(),t.createBlock(a,{key:v,data:n},null,8,["data"]))),128))],2)],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.gridCompoClass)},[this.isWidget&&this.teamWidget!=0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.data.home_team_id==this.teamWidget?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(D.homeTeam,(n,v)=>(t.openBlock(),t.createBlock(f,{key:v,type:4,"tournament-selected":i.tournamentSelected,style:{"margin-top":"30px"},"click-card":!1,data:n,"is-live":i.type==3,colorCard:n.color,"can-play-videos":n.canPlayVideos,onOnClickVideos:_=>c.onclickPlayVideos(_,n.canPlayVideos),onOnClickCategory:_=>c.onclickPlayVideos(_,n.canPlayVideos)},null,8,["tournament-selected","data","is-live","colorCard","can-play-videos","onOnClickVideos","onOnClickCategory"]))),128)):t.createCommentVNode("",!0),i.data.away_team_id==this.teamWidget?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(D.awayTeam,(n,v)=>(t.openBlock(),t.createBlock(f,{key:v,type:4,"tournament-selected":i.tournamentSelected,style:{"margin-top":"30px"},"click-card":!1,data:n,"is-live":i.type==3,colorCard:n.color,"can-play-videos":n.canPlayVideos,onOnClickVideos:_=>c.onclickPlayVideos(_,n.canPlayVideos),onOnClickCategory:_=>c.onclickPlayVideos(_,n.canPlayVideos)},null,8,["tournament-selected","data","is-live","colorCard","can-play-videos","onOnClickVideos","onOnClickCategory"]))),128)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-50)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.homeTeam,(n,v)=>(t.openBlock(),t.createBlock(f,{key:v,type:4,"tournament-selected":i.tournamentSelected,style:{"margin-top":"30px"},"click-card":!1,data:n,"is-live":i.type==3,colorCard:n.color,"can-play-videos":n.canPlayVideos,onOnClickVideos:_=>c.onclickPlayVideos(_,n.canPlayVideos),onOnClickCategory:_=>c.onclickPlayVideos(_,n.canPlayVideos)},null,8,["tournament-selected","data","is-live","colorCard","can-play-videos","onOnClickVideos","onOnClickCategory"]))),128))],4),t.createElementVNode("div",{style:t.normalizeStyle(B.elementSize.width>720?"width:"+(B.elementSize.width-50)/2+"px":"width:"+(B.elementSize.width-40)+"px")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.awayTeam,(n,v)=>(t.openBlock(),t.createBlock(f,{key:v,type:4,"tournament-selected":i.tournamentSelected,style:{"margin-top":"30px"},"click-card":!1,data:n,"is-live":i.type==3,colorCard:n.color,"can-play-videos":n.canPlayVideos,onOnClickVideos:_=>c.onclickPlayVideos(_,n.canPlayVideos),onOnClickCategory:_=>c.onclickPlayVideos(_,n.canPlayVideos)},null,8,["tournament-selected","data","is-live","colorCard","can-play-videos","onOnClickVideos","onOnClickCategory"]))),128))],4)],64))],2))],2)}const SIe={$style:_Ie},x2=EO(bIe,[["render",CIe],["__cssModules",SIe],["__scopeId","data-v-54cf4936"]]),gma="",yma="",TIe={class:"datagame-container"},EIe=$i({__name:"GSCDatosGSMain",props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:r}){const i=e,B=t.ref(0);t.watch(()=>i.game,c=>{B.value=c.gameId},{deep:!0,immediate:!0});function D(c){r("openmedia",c)}return(c,g)=>(t.openBlock(),t.createElementBlock("div",TIe,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(x2),{key:B.value,type:0,"is-widget":e.isWidget,"team-widget":e.teamWidget,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:D},null,8,["is-widget","team-widget","data","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(x2),{"is-widget":e.isWidget,"team-widget":e.teamWidget,key:B.value,type:1,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:D},null,8,["is-widget","team-widget","data","play-videos-privileges"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-d3d2e6c7"]]);function AF(e,r){return function(){return e.apply(r,arguments)}}const{toString:AIe}=Object.prototype,{getPrototypeOf:q7}=Object,R3=(e=>r=>{const i=AIe.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Hp=e=>(e=e.toLowerCase(),r=>R3(r)===e),V3=e=>r=>typeof r===e,{isArray:hy}=Array,w2=V3("undefined");function MIe(e){return e!==null&&!w2(e)&&e.constructor!==null&&!w2(e.constructor)&&wh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const MF=Hp("ArrayBuffer");function IIe(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&MF(e.buffer),r}const PIe=V3("string"),wh=V3("function"),IF=V3("number"),$3=e=>e!==null&&typeof e=="object",BIe=e=>e===!0||e===!1,j3=e=>{if(R3(e)!=="object")return!1;const r=q7(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},NIe=Hp("Date"),zIe=Hp("File"),OIe=Hp("Blob"),FIe=Hp("FileList"),LIe=e=>$3(e)&&wh(e.pipe),DIe=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||wh(e.append)&&((r=R3(e))==="formdata"||r==="object"&&wh(e.toString)&&e.toString()==="[object FormData]"))},RIe=Hp("URLSearchParams"),[VIe,$Ie,jIe,UIe]=["ReadableStream","Request","Response","Headers"].map(Hp),GIe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function k2(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),hy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function PF(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const c1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),BF=e=>!w2(e)&&e!==c1;function Y7(){const{caseless:e}=BF(this)&&this||{},r={},i=(B,D)=>{const c=e&&PF(r,D)||D;j3(r[c])&&j3(B)?r[c]=Y7(r[c],B):j3(B)?r[c]=Y7({},B):hy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&k2(arguments[B],i);return r}const HIe=(e,r,i,{allOwnKeys:B}={})=>(k2(r,(D,c)=>{i&&wh(D)?e[c]=AF(D,i):e[c]=D},{allOwnKeys:B}),e),WIe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qIe=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},YIe=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&q7(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},XIe=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},ZIe=e=>{if(!e)return null;if(hy(e))return e;let r=e.length;if(!IF(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},JIe=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&q7(Uint8Array)),KIe=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},QIe=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},ePe=Hp("HTMLFormElement"),tPe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),NF=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),aPe=Hp("RegExp"),zF=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};k2(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},nPe=e=>{zF(e,(r,i)=>{if(wh(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(wh(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},rPe=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return hy(e)?B(e):B(String(e).split(r)),i},iPe=()=>{},oPe=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,X7="abcdefghijklmnopqrstuvwxyz",OF="0123456789",FF={DIGIT:OF,ALPHA:X7,ALPHA_DIGIT:X7+X7.toUpperCase()+OF},sPe=(e=16,r=FF.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function lPe(e){return!!(e&&wh(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cPe=e=>{const r=new Array(10),i=(B,D)=>{if($3(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=hy(B)?[]:{};return k2(B,(g,a)=>{const y=i(g,D+1);!w2(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},dPe=Hp("AsyncFunction"),uPe=e=>e&&($3(e)||wh(e))&&wh(e.then)&&wh(e.catch),LF=((e,r)=>e?setImmediate:r?((i,B)=>(c1.addEventListener("message",({source:D,data:c})=>{D===c1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),c1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",wh(c1.postMessage)),hPe=typeof queueMicrotask<"u"?queueMicrotask.bind(c1):typeof process<"u"&&process.nextTick||LF,fr={isArray:hy,isArrayBuffer:MF,isBuffer:MIe,isFormData:DIe,isArrayBufferView:IIe,isString:PIe,isNumber:IF,isBoolean:BIe,isObject:$3,isPlainObject:j3,isReadableStream:VIe,isRequest:$Ie,isResponse:jIe,isHeaders:UIe,isUndefined:w2,isDate:NIe,isFile:zIe,isBlob:OIe,isRegExp:aPe,isFunction:wh,isStream:LIe,isURLSearchParams:RIe,isTypedArray:JIe,isFileList:FIe,forEach:k2,merge:Y7,extend:HIe,trim:GIe,stripBOM:WIe,inherits:qIe,toFlatObject:YIe,kindOf:R3,kindOfTest:Hp,endsWith:XIe,toArray:ZIe,forEachEntry:KIe,matchAll:QIe,isHTMLForm:ePe,hasOwnProperty:NF,hasOwnProp:NF,reduceDescriptors:zF,freezeMethods:nPe,toObjectSet:rPe,toCamelCase:tPe,noop:iPe,toFiniteNumber:oPe,findKey:PF,global:c1,isContextDefined:BF,ALPHABET:FF,generateString:sPe,isSpecCompliantForm:lPe,toJSONObject:cPe,isAsyncFn:dPe,isThenable:uPe,setImmediate:LF,asap:hPe};function Zo(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}fr.inherits(Zo,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fr.toJSONObject(this.config),code:this.code,status:this.status}}});const DF=Zo.prototype,RF={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{RF[e]={value:e}}),Object.defineProperties(Zo,RF),Object.defineProperty(DF,"isAxiosError",{value:!0}),Zo.from=(e,r,i,B,D,c)=>{const g=Object.create(DF);return fr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Zo.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const pPe=null;function Z7(e){return fr.isPlainObject(e)||fr.isArray(e)}function VF(e){return fr.endsWith(e,"[]")?e.slice(0,-2):e}function $F(e,r,i){return e?e.concat(r).map(function(B,D){return B=VF(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function fPe(e){return fr.isArray(e)&&!e.some(Z7)}const mPe=fr.toFlatObject(fr,{},null,function(e){return/^is[A-Z]/.test(e)});function U3(e,r,i){if(!fr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=fr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!fr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&fr.isSpecCompliantForm(r);if(!fr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(fr.isDate(p))return p.toISOString();if(!a&&fr.isBlob(p))throw new Zo("Blob is not supported. Use a Buffer instead.");return fr.isArrayBuffer(p)||fr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(fr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(fr.isArray(p)&&fPe(p)||(fr.isFileList(p)||fr.endsWith(l,"[]"))&&(s=fr.toArray(p)))return l=VF(l),s.forEach(function(u,d){!(fr.isUndefined(u)||u===null)&&r.append(g===!0?$F([l],d,c):g===null?l:l+"[]",y(u))}),!1}return Z7(p)?!0:(r.append($F(o,l,c),y(p)),!1)}const n=[],v=Object.assign(mPe,{defaultVisitor:f,convertValue:y,isVisitable:Z7});function _(p,l){if(!fr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),fr.forEach(p,function(o,s){(!(fr.isUndefined(o)||o===null)&&D.call(r,o,fr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!fr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function jF(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function J7(e,r){this._pairs=[],e&&U3(e,this,r)}const UF=J7.prototype;UF.append=function(e,r){this._pairs.push([e,r])},UF.toString=function(e){const r=e?function(i){return e.call(this,i,jF)}:jF;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function gPe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GF(e,r,i){if(!r)return e;const B=i&&i.encode||gPe,D=i&&i.serialize;let c;if(D?c=D(r,i):c=fr.isURLSearchParams(r)?r.toString():new J7(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const HF=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){fr.forEach(this.handlers,function(i){i!==null&&r(i)})}},WF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yPe=typeof URLSearchParams<"u"?URLSearchParams:J7,vPe=typeof FormData<"u"?FormData:null,_Pe=typeof Blob<"u"?Blob:null,bPe={isBrowser:!0,classes:{URLSearchParams:yPe,FormData:vPe,Blob:_Pe},protocols:["http","https","file","blob","url","data"]},K7=typeof window<"u"&&typeof document<"u",Q7=typeof navigator=="object"&&navigator||void 0,xPe=K7&&(!Q7||["ReactNative","NativeScript","NS"].indexOf(Q7.product)<0),wPe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kPe=K7&&window.location.href||"http://localhost",CPe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:K7,hasStandardBrowserEnv:xPe,hasStandardBrowserWebWorkerEnv:wPe,navigator:Q7,origin:kPe},Symbol.toStringTag,{value:"Module"})),kh={...CPe,...bPe};function SPe(e,r){return U3(e,new kh.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return kh.isNode&&fr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function TPe(e){return fr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function EPe(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function qF(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&fr.isArray(D)?D.length:g,y?(fr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!fr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&fr.isArray(D[g])&&(D[g]=EPe(D[g])),!a)}if(fr.isFormData(e)&&fr.isFunction(e.entries)){const i={};return fr.forEachEntry(e,(B,D)=>{r(TPe(B),D,i,0)}),i}return null}function APe(e,r,i){if(fr.isString(e))try{return(r||JSON.parse)(e),fr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const e9={transitional:WF,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=fr.isObject(e);if(D&&fr.isHTMLForm(e)&&(e=new FormData(e)),fr.isFormData(e))return B?JSON.stringify(qF(e)):e;if(fr.isArrayBuffer(e)||fr.isBuffer(e)||fr.isStream(e)||fr.isFile(e)||fr.isBlob(e)||fr.isReadableStream(e))return e;if(fr.isArrayBufferView(e))return e.buffer;if(fr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return SPe(e,this.formSerializer).toString();if((c=fr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return U3(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),APe(e)):e}],transformResponse:[function(e){const r=this.transitional||e9.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(fr.isResponse(e)||fr.isReadableStream(e))return e;if(e&&fr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Zo.from(c,Zo.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kh.classes.FormData,Blob:kh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fr.forEach(["delete","get","head","post","put","patch"],e=>{e9.headers[e]={}});const t9=e9,MPe=fr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),IPe=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
59
59
|
`).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&MPe[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},YF=Symbol("internals");function C2(e){return e&&String(e).trim().toLowerCase()}function G3(e){return e===!1||e==null?e:fr.isArray(e)?e.map(G3):String(e)}function PPe(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const BPe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function a9(e,r,i,B,D){if(fr.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!fr.isString(r)){if(fr.isString(B))return r.indexOf(B)!==-1;if(fr.isRegExp(B))return B.test(r)}}function NPe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function zPe(e,r){const i=fr.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,g){return this[B].call(this,r,D,c,g)},configurable:!0})})}let H3=class{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=C2(y);if(!n)throw new Error("header name must be a non-empty string");const v=fr.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=G3(a))}const g=(a,y)=>fr.forEach(a,(f,n)=>c(f,n,y));if(fr.isPlainObject(r)||r instanceof this.constructor)g(r,i);else if(fr.isString(r)&&(r=r.trim())&&!BPe(r))g(IPe(r),i);else if(fr.isHeaders(r))for(const[a,y]of r.entries())c(y,a,B);else r!=null&&c(i,r,B);return this}get(r,i){if(r=C2(r),r){const B=fr.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return PPe(D);if(fr.isFunction(i))return i.call(this,D,B);if(fr.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=C2(r),r){const B=fr.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||a9(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(g){if(g=C2(g),g){const a=fr.findKey(B,g);a&&(!i||a9(B,B[a],a,i))&&(delete B[a],D=!0)}}return fr.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||a9(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return fr.forEach(this,(D,c)=>{const g=fr.findKey(B,c);if(g){i[g]=G3(D),delete i[c];return}const a=r?NPe(c):String(c).trim();a!==c&&delete i[c],i[a]=G3(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return fr.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&fr.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
60
60
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[YF]=this[YF]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=C2(c);i[g]||(zPe(B,c),i[g]=!0)}return fr.isArray(r)?r.forEach(D):D(r),this}};H3.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),fr.reduceDescriptors(H3.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),fr.freezeMethods(H3);const Wp=H3;function n9(e,r){const i=this||t9,B=r||i,D=Wp.from(B.headers);let c=B.data;return fr.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function XF(e){return!!(e&&e.__CANCEL__)}function py(e,r,i){Zo.call(this,e??"canceled",Zo.ERR_CANCELED,r,i),this.name="CanceledError"}fr.inherits(py,Zo,{__CANCEL__:!0});function ZF(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Zo("Request failed with status code "+i.status,[Zo.ERR_BAD_REQUEST,Zo.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function OPe(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function FPe(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function LPe(e,r){let i=0,B=1e3/r,D,c;const g=(a,y=Date.now())=>{i=y,D=null,c&&(clearTimeout(c),c=null),e.apply(null,a)};return[(...a)=>{const y=Date.now(),f=y-i;f>=B?g(a,y):(D=a,c||(c=setTimeout(()=>{c=null,g(D)},B-f)))},()=>D&&g(D)]}const W3=(e,r,i=3)=>{let B=0;const D=FPe(50,250);return LPe(c=>{const g=c.loaded,a=c.lengthComputable?c.total:void 0,y=g-B,f=D(y),n=g<=a;B=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&n?(a-g)/f:void 0,event:c,lengthComputable:a!=null,[r?"download":"upload"]:!0};e(v)},i)},JF=(e,r)=>{const i=e!=null;return[B=>r[0]({lengthComputable:i,total:e,loaded:B}),r[1]]},KF=e=>(...r)=>fr.asap(()=>e(...r)),DPe=kh.hasStandardBrowserEnv?function(){const e=kh.navigator&&/(msie|trident)/i.test(kh.navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=fr.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),RPe=kh.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];fr.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),fr.isString(B)&&g.push("path="+B),fr.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function VPe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function $Pe(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function QF(e,r){return e&&!VPe(r)?$Pe(e,r):r}const eL=e=>e instanceof Wp?{...e}:e;function d1(e,r){r=r||{};const i={};function B(f,n,v){return fr.isPlainObject(f)&&fr.isPlainObject(n)?fr.merge.call({caseless:v},f,n):fr.isPlainObject(n)?fr.merge({},n):fr.isArray(n)?n.slice():n}function D(f,n,v){if(fr.isUndefined(n)){if(!fr.isUndefined(f))return B(void 0,f,v)}else return B(f,n,v)}function c(f,n){if(!fr.isUndefined(n))return B(void 0,n)}function g(f,n){if(fr.isUndefined(n)){if(!fr.isUndefined(f))return B(void 0,f)}else return B(void 0,n)}function a(f,n,v){if(v in r)return B(f,n);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(f,n)=>D(eL(f),eL(n),!0)};return fr.forEach(Object.keys(Object.assign({},e,r)),function(f){const n=y[f]||D,v=n(e[f],r[f],f);fr.isUndefined(v)&&n!==a||(i[f]=v)}),i}const tL=e=>{const r=d1({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:D,xsrfCookieName:c,headers:g,auth:a}=r;r.headers=g=Wp.from(g),r.url=GF(QF(r.baseURL,r.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(fr.isFormData(i)){if(kh.hasStandardBrowserEnv||kh.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((y=g.getContentType())!==!1){const[f,...n]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([f||"multipart/form-data",...n].join("; "))}}if(kh.hasStandardBrowserEnv&&(B&&fr.isFunction(B)&&(B=B(r)),B||B!==!1&&DPe(r.url))){const f=D&&c&&RPe.read(c);f&&g.set(D,f)}return r},jPe=typeof XMLHttpRequest<"u",UPe=jPe&&function(e){return new Promise(function(r,i){const B=tL(e);let D=B.data;const c=Wp.from(B.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:y}=B,f,n,v,_,p;function l(){_&&_(),p&&p(),B.cancelToken&&B.cancelToken.unsubscribe(f),B.signal&&B.signal.removeEventListener("abort",f)}let o=new XMLHttpRequest;o.open(B.method.toUpperCase(),B.url,!0),o.timeout=B.timeout;function s(){if(!o)return;const d=Wp.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:d,config:e,request:o};ZF(function(m){r(m),l()},function(m){i(m),l()},h),o=null}"onloadend"in o?o.onloadend=s:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(s)},o.onabort=function(){o&&(i(new Zo("Request aborted",Zo.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new Zo("Network Error",Zo.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let d=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const h=B.transitional||WF;B.timeoutErrorMessage&&(d=B.timeoutErrorMessage),i(new Zo(d,h.clarifyTimeoutError?Zo.ETIMEDOUT:Zo.ECONNABORTED,e,o)),o=null},D===void 0&&c.setContentType(null),"setRequestHeader"in o&&fr.forEach(c.toJSON(),function(d,h){o.setRequestHeader(h,d)}),fr.isUndefined(B.withCredentials)||(o.withCredentials=!!B.withCredentials),g&&g!=="json"&&(o.responseType=B.responseType),y&&([v,p]=W3(y,!0),o.addEventListener("progress",v)),a&&o.upload&&([n,_]=W3(a),o.upload.addEventListener("progress",n),o.upload.addEventListener("loadend",_)),(B.cancelToken||B.signal)&&(f=d=>{o&&(i(!d||d.type?new py(null,e,o):d),o.abort(),o=null)},B.cancelToken&&B.cancelToken.subscribe(f),B.signal&&(B.signal.aborted?f():B.signal.addEventListener("abort",f)));const u=OPe(B.url);if(u&&kh.protocols.indexOf(u)===-1){i(new Zo("Unsupported protocol "+u+":",Zo.ERR_BAD_REQUEST,e));return}o.send(D||null)})},GPe=(e,r)=>{let i=new AbortController,B;const D=function(y){if(!B){B=!0,g();const f=y instanceof Error?y:this.reason;i.abort(f instanceof Zo?f:new py(f instanceof Error?f.message:f))}};let c=r&&setTimeout(()=>{D(new Zo(`timeout ${r} of ms exceeded`,Zo.ETIMEDOUT))},r);const g=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",D):y.unsubscribe(D))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",D));const{signal:a}=i;return a.unsubscribe=g,[a,()=>{c&&clearTimeout(c),c=null}]},HPe=GPe,WPe=function*(e,r){let i=e.byteLength;if(!r||i<r){yield e;return}let B=0,D;for(;B<i;)D=B+r,yield e.slice(B,D),B=D},qPe=async function*(e,r,i){for await(const B of e)yield*WPe(ArrayBuffer.isView(B)?B:await i(String(B)),r)},aL=(e,r,i,B,D)=>{const c=qPe(e,r,D);let g=0,a,y=f=>{a||(a=!0,B&&B(f))};return new ReadableStream({async pull(f){try{const{done:n,value:v}=await c.next();if(n){y(),f.close();return}let _=v.byteLength;if(i){let p=g+=_;i(p)}f.enqueue(new Uint8Array(v))}catch(n){throw y(n),n}},cancel(f){return y(f),c.return()}},{highWaterMark:2})},q3=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nL=q3&&typeof ReadableStream=="function",r9=q3&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),rL=(e,...r)=>{try{return!!e(...r)}catch{return!1}},YPe=nL&&rL(()=>{let e=!1;const r=new Request(kh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),iL=64*1024,i9=nL&&rL(()=>fr.isReadableStream(new Response("").body)),Y3={stream:i9&&(e=>e.body)};q3&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!Y3[r]&&(Y3[r]=fr.isFunction(e[r])?i=>i[r]():(i,B)=>{throw new Zo(`Response type '${r}' is not supported`,Zo.ERR_NOT_SUPPORT,B)})})})(new Response);const XPe=async e=>{if(e==null)return 0;if(fr.isBlob(e))return e.size;if(fr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(fr.isArrayBufferView(e)||fr.isArrayBuffer(e))return e.byteLength;if(fr.isURLSearchParams(e)&&(e=e+""),fr.isString(e))return(await r9(e)).byteLength},ZPe=async(e,r)=>fr.toFiniteNumber(e.getContentLength())??XPe(r),JPe=q3&&(async e=>{let{url:r,method:i,data:B,signal:D,cancelToken:c,timeout:g,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:n,withCredentials:v="same-origin",fetchOptions:_}=tL(e);f=f?(f+"").toLowerCase():"text";let[p,l]=D||c||g?HPe([D,c],g):[],o,s;const u=()=>{!o&&setTimeout(()=>{p&&p.unsubscribe()}),o=!0};let d;try{if(y&&YPe&&i!=="get"&&i!=="head"&&(d=await ZPe(n,B))!==0){let x=new Request(r,{method:"POST",body:B,duplex:"half"}),S;if(fr.isFormData(B)&&(S=x.headers.get("content-type"))&&n.setContentType(S),x.body){const[C,T]=JF(d,W3(KF(y)));B=aL(x.body,iL,C,T,r9)}}fr.isString(v)||(v=v?"include":"omit");const h="credentials"in Request.prototype;s=new Request(r,{..._,signal:p,method:i.toUpperCase(),headers:n.normalize().toJSON(),body:B,duplex:"half",credentials:h?v:void 0});let m=await fetch(s);const b=i9&&(f==="stream"||f==="response");if(i9&&(a||b)){const x={};["status","statusText","headers"].forEach(k=>{x[k]=m[k]});const S=fr.toFiniteNumber(m.headers.get("content-length")),[C,T]=a&&JF(S,W3(KF(a),!0))||[];m=new Response(aL(m.body,iL,C,()=>{T&&T(),b&&u()},r9),x)}f=f||"text";let w=await Y3[fr.findKey(Y3,f)||"text"](m,e);return!b&&u(),l&&l(),await new Promise((x,S)=>{ZF(x,S,{data:w,headers:Wp.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:s})})}catch(h){throw u(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new Zo("Network Error",Zo.ERR_NETWORK,e,s),{cause:h.cause||h}):Zo.from(h,h&&h.code,e,s)}}),o9={http:pPe,xhr:UPe,fetch:JPe};fr.forEach(o9,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const oL=e=>`- ${e}`,KPe=e=>fr.isFunction(e)||e===null||e===!1,sL={getAdapter:e=>{e=fr.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!KPe(i)&&(B=o9[(g=String(i)).toLowerCase()],B===void 0))throw new Zo(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
|
|
61
61
|
`+c.map(oL).join(`
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
* Vue 3 Carousel 0.3.1
|
|
122
122
|
* (c) 2023
|
|
123
123
|
* @license MIT
|
|
124
|
-
*/const Su={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},_H={itemsToShow:{default:Su.itemsToShow,type:Number},itemsToScroll:{default:Su.itemsToScroll,type:Number},wrapAround:{default:Su.wrapAround,type:Boolean},throttle:{default:Su.throttle,type:Number},snapAlign:{default:Su.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Su.transition,type:Number},breakpoints:{default:Su.breakpoints,type:Object},autoplay:{default:Su.autoplay,type:Number},pauseAutoplayOnHover:{default:Su.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Su.mouseDrag,type:Boolean},touchDrag:{default:Su.touchDrag,type:Boolean},dir:{default:Su.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Su.i18n,type:Object},settings:{default(){return{}},type:Object}};function ubt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function hbt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function iE({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function pbt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:iE({val:g,max:i-c,min:0})}function bH(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...bH(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function oE({val:e,max:r,min:i=0}){return e>r?oE({val:e-(r+1),max:r,min:i}):e<i?oE({val:e+(r+1),max:r,min:i}):e}function fbt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function mbt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function gbt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var ybt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Su))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},gbt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),vbt=t.defineComponent({name:"Carousel",props:_H,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Su));let n=Object.assign({},Su),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=mbt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=ubt({config:f,slidesCount:y.value}),s.value=hbt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=iE({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=fbt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:iE({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=oE({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>pbt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(_H).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=bH(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(ybt)])}}}),xH;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xH||(xH={}));var _bt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Su))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const bbt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},xbt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),wbt={class:"gsc-carousel"},kbt={key:0},Cbt=xbt(()=>t.createElementVNode("div",null,"no hay",-1)),Sbt=[Cbt],Tbt={class:"gsc-carousel__2d__slides"},Ebt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Abt=["fill"],Mbt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ibt=["fill"],Pbt={class:"gsc-carousel__2d__navigation"},Bbt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nbt=["stroke"],zbt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Obt=["onClick"],Fbt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lbt=["stroke"],Dbt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",wbt,[B.is3d?(t.openBlock(),t.createElementBlock("div",kbt,Sbt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Tbt,[t.createVNode(t.unref(vbt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(_bt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ebt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Abt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Mbt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Ibt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Pbt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Bbt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Nbt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",zbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Obt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",Fbt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,Lbt)]))])):t.createCommentVNode("",!0)])],2))]))}},Rbt=bbt(Dbt,[["__scopeId","data-v-54620d25"]]),sE=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i};let wH=null;const lE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)wH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),wH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kH=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},CH=lE.setup;lE.setup=CH?(e,r)=>(kH(),CH(e,r)):kH;const m4=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),Vbt=m4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),$bt=[Vbt],jbt=m4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Ubt=["src"],Gbt=m4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Hbt=m4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Wbt=["src"],qbt=["src"],Ybt={class:"text-container"};function Xbt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},$bt,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),jbt,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Ubt),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),Gbt,Hbt,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Wbt),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,qbt),t.createElementVNode("div",Ybt,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const Zbt=sE(lE,[["render",Xbt],["__scopeId","data-v-fd9d1e65"]]);let SH=null;const cE={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)SH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),SH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},TH=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},EH=cE.setup;cE.setup=EH?(e,r)=>(TH(),EH(e,r)):TH;const g4=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),Jbt=g4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Kbt=g4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Qbt=[Kbt],ext={class:"player-container"},txt=["src"],axt=["src"],nxt=["src"],rxt={class:"container-score"},ixt=["src"],oxt=["src"],sxt=["src"],lxt=g4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),cxt=g4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function dxt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[Jbt,t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},Qbt,2),t.createElementVNode("div",ext,[t.createElementVNode("div",{class:t.normalizeClass(c.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(c.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(c.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(c.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(c.playerimage)},null,10,txt)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,axt)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,nxt)):t.createCommentVNode("",!0),t.createElementVNode("div",rxt,[t.createElementVNode("div",{class:t.normalizeClass(c.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,ixt),t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(c.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(c.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,oxt),t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,sxt),lxt,cxt],2)}const uxt={components:{GSCCarousel:Rbt,GSCThumbnailHighlightGameHistoric:Zbt,GSCThumbnailHighlightGamePlayer:sE(cE,[["render",dxt],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,r){return e.home_team===(r||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const r=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][r.getUTCDay()],B=r.getUTCDate(),D=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][r.getUTCMonth()];return`${i} ${B} de ${D}`}else return""},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,42,54]:r=e.data.category:r=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:r=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const r=dbt.create({headers:{Authorization:`${this.token}`}});var i=[],B={};if(e.type=="player"){const D=await r.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(D.data.seasons[e.season])for(let c=0;c<D.data.seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",player_name:D.data.seasons[e.season].games_played[c].home_team_acronym+" "+D.data.seasons[e.season].games_played[c].home_team_score+" : "+D.data.seasons[e.season].games_played[c].visiting_team_score+" "+D.data.seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.seasons[e.season].games_played[c].home_team,season_id:D.data.seasons[e.season].games_played[c].season_id,name:D.data.seasons[e.season].games_played[c].player_name,seasonname:D.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.seasons[e.season].games_played[c].game_id,match:D.data.seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.seasons[e.season].games_played[c].date),scorehome:D.data.seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].visiting_team+".png",total:D.data.seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games_played[c].home_team+"_"+D.data.seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B);else for(let c=0;c<D.data.national_seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.national_seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",player_name:D.data.national_seasons[e.season].games_played[c].home_team_acronym+" "+D.data.national_seasons[e.season].games_played[c].home_team_score+" : "+D.data.national_seasons[e.season].games_played[c].visiting_team_score+" "+D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.national_seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.national_seasons[e.season].games_played[c].home_team,season_id:D.data.national_seasons[e.season].games_played[c].season_id,name:D.data.national_seasons[e.season].games_played[c].player_name,seasonname:D.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.national_seasons[e.season].games_played[c].game_id,match:D.data.national_seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.national_seasons[e.season].games_played[c].date),scorehome:D.data.national_seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.national_seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.national_seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.national_seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.national_seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].visiting_team+".png",total:D.data.national_seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.national_seasons[e.season].games_played[c].home_team+"_"+D.data.national_seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B)}else if(e.type=="historic"){const D="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===D)return;this.lastHistoricGamesUrl=D;const c=await r.get(D);for(let a=0;a<c.data.plays.length;a++)B={teamId:c.data.plays[a][2],player:"Jornada "+c.data.plays[a][6],player_name:c.data.plays[a][4],season_id:c.data.plays[a][31],game_id:c.data.plays[a][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?this.privilegesTeamId==0?!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&i.push(B):!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&c.data.plays[a][2]===this.privilegesTeamId&&i.push(B):(this.privilegesTeamId==0||c.data.plays[a][2]===this.privilegesTeamId)&&i.push(B);const g=c.data.thumbnails;for(let a=0;a<i.length;a++){const y=Math.floor(Math.random()*g[i[a].game_id].info_thumbnails.images.background_default_games.length);i[a].background="https://golstatsimages.blob.core.windows.net/images-library/"+g[i[a].game_id].info_thumbnails.images.background_default_games[y],i[a].backgroundhome=g[i[a].game_id].info_thumbnails.home_colors.background_color,i[a].backgroundaway=g[i[a].game_id].info_thumbnails.away_colors.background_color,i[a].logoaway="https://az755631.vo.msecnd.net/teams-150/"+g[i[a].game_id].info_thumbnails.away_colors.team_id+".png",i[a].logohome="https://az755631.vo.msecnd.net/teams-150/"+g[i[a].game_id].info_thumbnails.home_colors.team_id+".png",i[a].match=g[i[a].game_id].matchday_name.replace("Matchday","Jor"),i[a].playingAs=g[i[a].game_id].info_thumbnails.home_colors.team_id===i[a].teamId?1:2,i[a].seasonname=g[i[a].game_id].season_name,i[a].score=g[i[a].game_id].score[0]+" - "+g[i[a].game_id].score[1],i[a].category=0}}else{const D=await r.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let c=0;c<D.data.seasons[e.season].games.length;c++){const g=Math.floor(Math.random()*D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games[c],D.data.team_id),category:0,game_id:D.data.seasons[e.season].games[c].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",player_name:D.data.seasons[e.season].games[c].home_team_acronym+" "+D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score+" "+D.data.seasons[e.season].games[c].visiting_team_acronym,team_id_b:D.data.seasons[e.season].games[c].home_team,team_id:D.data.team_id,season_id:D.data.seasons[e.season].games[c].season_id,name:"",seasonname:D.data.seasons[e.season].name,match:D.data.seasons[e.season].games[c].matchday_name.replace("Matchday","Jor"),score:D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games[g],backgroundhome:D.data.seasons[e.season].games[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",total:D.data.seasons[e.season].games[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games[c].home_team+"_"+D.data.seasons[e.season].games[c].season_id+"_r1.jpg"},i.push(B)}}this.printData=i,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const r of e)this.highlightsWidth=r.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},hxt={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function pxt(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return c.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",hxt,[t.createVNode(y,t.mergeProps(c.carouselProps,{items:c.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:f})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:f,"color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"logo-home":f.logohome,"logo-away":f.logoaway,background:f.background,matchday:f.match,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:1}),"season-name":f.seasonname,score:f.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":f.name,"type-style":"game","color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"type-img":"0",date:f.date,"season-name":f.seasonname,matchday:f.match,background:f.background,"name-home-team":f.hometeamacronym,"name-away-team":f.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:2}),"logo-away":f.logoaway,"logo-home":f.logohome,"score-home":f.scorehome,"photo-profile":f.photo_profile,"score-away":f.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const fxt=sE(uxt,[["render",pxt]]),Wma="",qma="",Yma="",mxt={components:{GSCSlider:Wv},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):e.game_status==1||e.game_status==0?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const r=[1,2,3];let i={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:r,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",i)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const r=e.split(/(\*.*?\*)/g).filter(D=>D.trim()!=="");let i=Math.ceil(r.length/2),B="";return r.forEach((D,c)=>{c===i&&(B+="<br/>"),D.startsWith("*")&&D.endsWith("*")?B+=`<span class="text-bold-prominent">${D.slice(1,-1)}</span>`:D.trim()!==""&&(B+=`<span class="text-prominent">${D}</span>`)}),B},async getDataProminentPrematch(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},gxt=e=>(t.pushScopeId("data-v-62f00708"),e=e(),t.popScopeId(),e),yxt={class:"data-prominent-game"},vxt={class:"title-data"},_xt={class:"item-data-text"},bxt=["innerHTML"],xxt={class:"contain-stats-control"},wxt={key:0,class:"title-total"},kxt={key:1,class:"item-total"},Cxt=["onClick"],Sxt={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},Txt=[gxt(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function Ext(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",yxt,[t.createElementVNode("div",vxt,[i.game.game_status!=4||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.dataProminent,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+a.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(a.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+a.player_id+".png); border: solid 1.4px "+a.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png);border: solid 1.4px "+a.custom_colors.background_color)},null,4),a.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+a.custom_colors.font_color)},[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",_xt,[t.createElementVNode("div",{class:"container-text",innerHTML:c.textoConNegritas(a.description)},null,8,bxt),t.createElementVNode("div",xxt,[a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",wxt,"TOTAL:")):t.createCommentVNode("",!0),a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",kxt,[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&a.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(a.title=="Productividad"?"margin-left: 0px !important;":""),onClick:f=>c.onclickPlayVideos({data:a})},[(t.openBlock(),t.createElementBlock("svg",Sxt,Txt))],12,Cxt)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const Axt=$i(mxt,[["render",Ext],["__scopeId","data-v-62f00708"]]),Zma="",Mxt={components:{GSCCheckbox:Wg},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1||e.game_status==0?(this.getDataPosession(e.gameId),e.game_status==1&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...th("nextGeneral",["gameForAnalysis","seasonId"]),...ed("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const r=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=r.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const B in i.data.teams)i.data.teams.hasOwnProperty(B)&&(this.arrTeams[B]=i.data.teams[B])}catch(r){return Promise.reject(r)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const r=typeof e=="string"?parseFloat(e):e;return typeof r=="number"&&!isNaN(r)?r%1===0?r:r%1===0?Math.floor(r):r:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,r,i){if(!r.game_id)return this.objectZeroValues;const B=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,D=e[i].accomplished.avgPostGame/B;return e[i].accomplished.avgPostGame?{numberValue:D<1?D*100:D,numberBarPercent:e[i].accomplished.avgPostGame/B}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},jy=e=>(t.pushScopeId("data-v-3aa0c085"),e=e(),t.popScopeId(),e),Ixt={key:0,class:"field-posesion-prominent"},Pxt={key:0,class:"title"},Bxt={class:"info-data-item"},Nxt={class:"item-indicador"},zxt={class:"item-indicador-value"},Oxt={key:0},Fxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Lxt={key:0,class:"inactiveInfo"},Dxt={class:"info-data-item"},Rxt={class:"item-indicador"},Vxt={class:"item-indicador-value"},$xt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),jxt={class:"info-data-item"},Uxt={class:"item-indicador"},Gxt={class:"item-indicador-value"},Hxt={key:0},Wxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),qxt={class:"info-data-item"},Yxt={class:"item-indicador"},Xxt={class:"item-indicador-value"},Zxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Jxt={key:0,class:"inactiveInfo"},Kxt={class:"info-data-item"},Qxt={class:"item-indicador"},e3t={class:"item-indicador-value"},t3t=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),a3t={class:"info-data-item"},n3t={class:"item-indicador"},r3t={class:"item-indicador-value"},i3t=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function o3t(e,r,i,B,D,c){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",Ixt,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",Pxt,"Porcentajes")):t.createCommentVNode("",!0),i.game.game_status==1||i.game.game_status==0||i.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Bxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Nxt,[t.createElementVNode("div",zxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Oxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Fxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),D.areInactiveVisible&&D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",Lxt,[t.createElementVNode("div",Dxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Rxt,[t.createElementVNode("div",Vxt,t.toDisplayString(D.dataPosession.active_time.inactive_time),1),$xt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",jxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Uxt,[t.createElementVNode("div",Gxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Hxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Wxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[D.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",qxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Yxt,[t.createElementVNode("div",Xxt,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Zxt]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),D.areInactiveVisible&&D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",Jxt,[t.createElementVNode("div",Kxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Qxt,[t.createElementVNode("div",e3t,t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),t3t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",a3t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",n3t,[t.createElementVNode("div",r3t,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),i3t]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const s3t=$i(Mxt,[["render",o3t],["__scopeId","data-v-3aa0c085"]]),Jma="",dE={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(r){throw new Error(r)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},AH=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},MH=dE.setup;dE.setup=MH?(e,r)=>(AH(),MH(e,r)):AH;const l3t={key:0,class:"text-left"},c3t=["width","src"],d3t=["checked"],u3t=["width","src"],h3t={key:3,class:"text-right"};function p3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",l3t,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,c3t)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...g)=>c.handleSwitchChange&&c.handleSwitchChange(...g)),checked:D.OptionDefault},null,40,d3t),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,u3t)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",h3t,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const IH=$i(dE,[["render",p3t],["__scopeId","data-v-62d6b055"]]),Kma="";let PH=null;const uE={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)PH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),PH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},BH=()=>{t.useCssVars(e=>({"524d4024":e.colorBackgroundHome+"45","2acdc375":e.colorBackgroundAway+"45","60764af4":e.colorBackgroundHome,"607c6ed6":e.colorBackgroundAway}))},NH=uE.setup;uE.setup=NH?(e,r)=>(BH(),NH(e,r)):BH;const y4=e=>(t.pushScopeId("data-v-ec876074"),e=e(),t.popScopeId(),e),f3t=[y4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],m3t=y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),g3t=["src"],y3t=y4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),v3t=y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_3t=["src"],b3t=["src"],x3t={class:"text-container"};function w3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},f3t,2)):t.createCommentVNode("",!0),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),m3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,g3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),y3t,v3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,_3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,b3t),t.createElementVNode("div",x3t,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const k3t=$i(uE,[["render",w3t],["__scopeId","data-v-ec876074"]]),e0a="";let zH=null;const C3t={components:{GSCThumbnailHighlightGameHistoric:k3t},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const r=$c.create({headers:{Authorization:`${this.token}`}}),i=await r.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),B=await r.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=B.data.tournament_id;const D=i.data.games.findIndex(g=>g.game_id===this.game.gameId);this.gameInfo=i.data.games[D];const c=await r.get(e);this.item.category=0,this.item.game_id=c.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].score[0]+" - "+c.data.thumbnails[c.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].home_team+".png":"",this.item.logoaway=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].visiting_team+".png":"",this.item.background=c.data.thumbnails[c.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+c.data.thumbnails[c.data.game_id].info_thumbnails.images.background_default_games[0]:"",this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)zH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),zH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},S3t={class:"highlights-prominent-game",ref:"gamesContainer"},T3t={class:"video-partido-container__highlight"},E3t={key:0,class:"video-partido-container__ribbon"},A3t={key:1,class:"video-partido-container__description"};function M3t(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",S3t,[t.createElementVNode("div",T3t,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(D.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[D.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(D.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),D.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(D.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(D.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",E3t,t.toDisplayString(D.tournamentId!=41?D.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):D.gameInfo.matchday_name=="Matchday 10"?"Final":D.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")}," HIGHLIGHTS DEL ",2),t.createElementVNode("h2",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")}," PARTIDO ",2),D.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",A3t," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[D.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,"is-live":!0,"can-play-videos":i.canPlayVideos,background:D.item.background,matchday:D.item.match,"season-name":D.item.seasonname,onOnclickPlayVideos:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1})),score:D.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const I3t=$i(C3t,[["render",M3t],["__scopeId","data-v-651fe3fb"]]),t0a="";let OH=null;const hE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)OH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),OH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},FH=()=>{t.useCssVars(e=>({"051a0872":e.colorBackgroundHome+"45","80f208fa":e.colorBackgroundAway+"45","9087fefc":e.colorBackgroundHome,"908e22de":e.colorBackgroundAway}))},LH=hE.setup;hE.setup=LH?(e,r)=>(FH(),LH(e,r)):FH;const Uy=e=>(t.pushScopeId("data-v-84f38fde"),e=e(),t.popScopeId(),e),P3t={key:0,class:"icon-live"},B3t=[Uy(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),Uy(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],N3t=[Uy(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],z3t=Uy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),O3t=["src"],F3t=Uy(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),L3t=Uy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),D3t=["src"],R3t=["src"],V3t={class:"text-container"};function $3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.isLive&&i.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",P3t,B3t)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},N3t,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),z3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,O3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),F3t,L3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,D3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,R3t),t.createElementVNode("div",V3t,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const j3t=$i(hE,[["render",$3t],["__scopeId","data-v-84f38fde"]]),i0a="";let DH=null;const U3t={components:{GSCThumbnailHighlightGameHistoricLive:j3t},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),e.is_live==1&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.type==4?r=[12,55,"35_r","54_r"]:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async getLiveHighlights(){const r=await $c.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);r.data!=""&&(this.showHighlight=r.data==""?!1:r.data.plays.length>0,this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(i=>i[0]===12).length>0,this.item.category=0,this.item.game_id=r.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=r.data.thumbnails[r.data.game_id].score,this.item.backgroundhome=r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+r.data.thumbnails[r.data.game_id].info_thumbnails.images.background_default_games[0])},setUpResizeObserver(){if(window.ResizeObserver)DH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),DH.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},h0=e=>(t.pushScopeId("data-v-7682cbf3"),e=e(),t.popScopeId(),e),G3t={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},H3t={class:"video-partido-container__highlight"},W3t={class:"video-partido-container__content"},q3t=h0(()=>t.createElementVNode("div",{class:"video-partido-container__ribbon"},"• LIVE",-1)),Y3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS AL",-1)),X3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"MOMENTO",-1)),Z3t=h0(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas hasta el momento ",-1)),J3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),K3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),Q3t=h0(()=>t.createElementVNode("p",{class:"video-partido-container__description"},"Las jugadas más destacadas del partido",-1)),ewt=h0(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),twt={class:"video-partido-container__image"};function awt(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",G3t,[t.withDirectives(t.createElementVNode("div",H3t,[t.createElementVNode("div",W3t,[i.game.game_status!=0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[q3t,Y3t,X3t,Z3t],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[J3t,K3t,Q3t],64)),t.createElementVNode("button",{class:"video-partido-container__button",onClick:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1}))},[ewt,t.createTextVNode(" Reproducir ahora ")])]),t.createElementVNode("div",twt,[t.createVNode(g,{"is-live":!0,game:i.game,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,background:D.item.background,onOnclickPlayVideos:r[1]||(r[1]=a=>c.onclickPlayVideos({data:D.item,type:1})),matchday:D.item.match,"season-name":D.item.seasonname,score:D.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])])],512),[[t.vShow,i.canPlayVideos&&D.showHighlight]])],512)}const nwt=$i(U3t,[["render",awt],["__scopeId","data-v-7682cbf3"]]),pE="/play-icn.svg",o0a="",rwt={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function iwt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",c.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),onClick:r[1]||(r[1]=(...g)=>c.tooltipClick&&c.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:r[0]||(r[0]=(...g)=>c.closeClick&&c.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const owt=$i(rwt,[["render",iwt],["__scopeId","data-v-b5f07af8"]]),s0a="",swt=["id"],lwt={class:"game-event__minute"},cwt={class:"game-event__icon"},dwt=["src"],uwt="/images/events/",hwt=$i({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),D=t.computed(()=>{let g="";return i.gameEvent.category_id===18?g="icn-tiros-de-esquina.svg":i.gameEvent.category_id===20?g="icn-tiro-a-porteria.svg":i.gameEvent.category_id===10?g="icn-cambio.svg":i.gameEvent.category_id===21?g="icn-falta.svg":i.gameEvent.category_id===27?g="atajada.svg":i.gameEvent.category_id===17?g="fuera-de-lugar.svg":i.gameEvent.category_id===4||i.gameEvent.category_id===13||i.gameEvent.category_id===14||i.gameEvent.category_id===16||i.gameEvent.category_id===6&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===5&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===1&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===2&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===3&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===7&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===12&&i.gameEvent.event_type_id===1?g="gol.svg":i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?g="var.png":i.gameEvent.category_id===28?g="tiempo-agregado.svg":i.gameEvent.category_id===26?g="jugada-peligrosa.svg":i.gameEvent.category_id===22?g="penal-marcado.svg":i.gameEvent.category_id===15||i.gameEvent.category_id===23?g="penal-fallado.svg":i.gameEvent.category_id===8?g="icn-tarjeta-amarilla.svg":i.gameEvent.category_id===9?g="icn-tarjeta-roja.svg":g="generic.svg",`${uwt}${g}`});function c(){r("click-event",i.gameEvent)}return(g,a)=>(t.openBlock(),t.createElementBlock("div",{id:i.gameEvent.play_id,class:"game-event",onClick:c,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",lwt,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",cwt,[t.createElementVNode("img",{src:D.value},null,8,dwt)])],12,swt))}},[["__scopeId","data-v-f972a06c"]]),c0a="",pwt=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),fwt={class:"events-line"},mwt={class:"events-line__events"},gwt=pwt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),ywt=$i({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:r}){function i(B){r("click-event",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",fwt,[t.createVNode(t.unref(Wv),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",mwt,[gwt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,c=>(t.openBlock(),t.createBlock(hwt,{key:c.id,"game-event":c,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),u0a="",y_=e=>(t.pushScopeId("data-v-636d447b"),e=e(),t.popScopeId(),e),vwt={class:"tooltip-data"},_wt=["src"],bwt=y_(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),xwt=y_(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),wwt={class:"game-events__team-logo"},kwt=["src"],Cwt={class:"game-events__event-info"},Swt={key:0,class:"game-events__event-info__line"},Twt={key:1,class:"game-events__event-info__info"},Ewt={class:"game-events__event-info__info__player-photo"},Awt={key:0,class:"game-events__event-info__info__player-photo__img"},Mwt=["src"],Iwt={class:"game-events__event-info__info__event-name"},Pwt={class:"game-events__event-info__info__player-name"},Bwt=[y_(()=>t.createElementVNode("img",{src:pE,alt:""},null,-1))],Nwt=y_(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),zwt={class:"game-events__events"},Owt={class:"game-events__team-logo"},Fwt=["src"],Lwt={class:"game-events__event-info"},Dwt={key:0,class:"game-events__event-info__line"},Rwt={key:1,class:"game-events__event-info__info"},Vwt={class:"game-events__event-info__info__player-photo"},$wt={key:0,class:"game-events__event-info__info__player-photo__img"},jwt=["src"],Uwt={class:"game-events__event-info__info__event-name"},Gwt={class:"game-events__event-info__info__player-name"},Hwt=[y_(()=>t.createElementVNode("img",{src:pE,alt:""},null,-1))],Wwt="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",qwt=$i({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:r}){const i=e;let B=null,D=0;const c=t.ref([]),g=t.ref(new Map),a=t.ref(""),y=t.ref(null),f=t.ref({visible:!1,link:""}),n=t.ref(new Set),v=t.ref(0),_=t.computed(()=>i.game.is_live||i.game.game_status===0);t.watch(()=>i.game,(w,x)=>{w&&w.gameId!==D?(n.value.clear(),D=w.gameId,o(),l(w.gameId,w.is_live&&w.game_status===4)):w&&w.is_live&&!x.is_live?l(w.gameId,!0):w&&!w.is_live&&x.is_live&&o()},{deep:!0,immediate:!0}),t.watch(()=>a.value,(w,x)=>{if(w!==x){const S=g.value.get(x),C=g.value.get(w);if(S&&(S.isSelected=!1),C){if(!C.playerShortName){const[T,k]=C.player_name.split(","),A=T.split(" ");let E="";for(const M of A)if(E+=` ${M}`,M.length>3)break;C.playerShortName=k&&T?`${k.trim().charAt(0)}.${E}`:""}C.isSelected=!0,y.value=C}}});function p(w){B=setInterval(()=>{l(w)},1e3*60*i.gameEventsIntervalMinutes)}async function l(w,x=!1){try{let S=await d(w),C=!1;w!==v.value&&(c.value=[],g.value=new Map,a.value="",n.value.clear(),v.value=w);let T=S.filter(k=>{const A=n.value.has(k.play_id);return A||n.value.add(k.play_id),!A});T&&(T=T.reduce((k,A)=>(C=A.game_finished,A.team_id&&(A.isHomeTeam=A.team_id===i.game.homeTeam.team_id,k.push(A),g.value.set(A.play_id,A)),k),[]),s(T).forEach(k=>{_.value?c.value.unshift(k):c.value.push(k)})),(_.value||!a.value&&c.value.length)&&(a.value=c.value[0].play_id),x&&!C?p(w):C&&o()}catch(S){console.error(S)}}function o(){B&&(clearInterval(B),B=null)}function s(w){return w.sort((x,S)=>u(x.matchlapse)+Number(x.minute)-(u(S.matchlapse)+Number(S.minute)))}function u(w){let x=0;switch(w){case 1:x=0;break;case 2:x=45;break;case 3:x=90;break;case 4:x=105;break;case 5:x=120;break}return x}async function d(w){try{const S=(await $c.get(`${Wwt}${w}/timeline`,{headers:{Authorization:i.token}})).data;return S?S.plays||[]:[]}catch(x){throw new Error(x)}}function h(w){a.value=w.play_id}function m(){i.canPlayVideos&&y.value.play_id&&r("play-video",{categoryId:y.value.main_category_id,playId:y.value.play_id})}function b(){f.value.visible=!1,f.value.link=""}return t.onBeforeUnmount(()=>{o()}),(w,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(owt,{data:f.value,onClose:b},{default:t.withCtx(()=>[t.createElementVNode("div",vwt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:f.value.link,format:"video/mp4"},null,8,_wt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[bwt,xwt,t.createElementVNode("div",wwt,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,kwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Cwt,[y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Swt)):t.createCommentVNode("",!0),y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Twt,[t.createElementVNode("div",Ewt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",Awt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,Mwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Iwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Pwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},Bwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Nwt,t.createElementVNode("div",zwt,[t.createVNode(ywt,{"game-events":c.value,onClickEvent:h},null,8,["game-events"])]),t.createElementVNode("div",Owt,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,Fwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lwt,[y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Dwt)):t.createCommentVNode("",!0),y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Rwt,[t.createElementVNode("div",Vwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",$wt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,jwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Uwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Gwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},Hwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-636d447b"]]),m0a="",Ywt={class:"toggle-buttons__background"},Xwt=["onClick"],Zwt={key:0,class:"toggle-buttons__button__img"},Jwt=["src"],v4=$i({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(g=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,a)=>{g!==a&&r("change",{index:g,button:i.buttons[g]})});function c(g){B.value=g}return(g,a)=>(t.openBlock(),t.createElementBlock("div",Ywt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f,right:y.img&&f>0}]),onClick:n=>c(f)},[y.img?(t.openBlock(),t.createElementBlock("div",Zwt,[t.createElementVNode("img",{src:y.img,alt:""},null,8,Jwt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(y.text||y),1)],10,Xwt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),y0a="",Kwt="/images/cancha-horizontal-raw.jpg",v0a="",fE=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),Qwt={class:"tooltip__content"},e5t={key:0,class:"tooltip__content__category"},t5t={class:"tooltip__content__player"},a5t={class:"tooltip__content__player__name"},n5t={class:"tooltip__content__player__photo"},r5t=["src"],i5t={class:"tooltip__content__minute"},o5t={key:1,class:"tooltip__content__game"},s5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),l5t={class:"tooltip__content__game__round-abbreviation"},c5t={class:"tooltip__content__game__logo"},d5t=["src"],u5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),h5t={class:"tooltip__content__game__logo"},p5t=["src"],f5t={key:2,class:"tooltip__content__team"},m5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),g5t={class:"tooltip__content__team__logo"},y5t=["src"],v5t=$i({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),D=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),c=t.computed(()=>{const[a]=i.event.momentOfPlay.split(":");return`${Number(a)}'`});function g(){r("close")}return(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:g,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Qwt,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",e5t,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",t5t,[t.createElementVNode("div",a5t,t.toDisplayString(D.value),1),t.createElementVNode("div",n5t,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,r5t)])]),t.createElementVNode("div",i5t,"Minuto: "+t.toDisplayString(c.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",o5t,[s5t,t.createElementVNode("div",l5t,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",c5t,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,d5t)]),u5t,t.createElementVNode("div",h5t,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,p5t)])])):(t.openBlock(),t.createElementBlock("div",f5t,[m5t,t.createElementVNode("div",g5t,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,y5t)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),_5t=["id"],b5t=["fill"],x5t=["id"],w5t=["fill"],k5t=["stroke-dasharray","x1","y1","x2","y2","marker-end"],C5t=["x","y","stroke-width","fill","stroke"],S5t=["x","y"],T5t={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>{const v=[];if(r.eventConnection.hasConnectionPath){const _=r.eventConnection.x1===r.eventConnection.x2&&r.eventConnection.y1===r.eventConnection.y2?1:2;let p=a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1);const l=y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1);let o=0,s=0;_===2&&(o=a(r.eventConnection.y2),s=y(r.eventConnection.x2));const u=a(r.eventConnection.y3),d=y(r.eventConnection.x3);_===1?v.push({x1:l,y1:p,x2:d,y2:u}):(v.push({x1:l,y1:p,x2:s,y2:o}),v.push({x1:s,y1:o,x2:d,y2:u}))}return v}),B=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected?1:.1:1),D=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected:!0),c=t.computed(()=>a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1)),g=t.computed(()=>y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1));function a(v){return(1-v)*100}function y(v){return v*100}function f(v){Xh.emit("mouse-over-event",{mouseEvent:v,eventConnection:r.eventConnection,position:{x:g.value,y:c.value}})}function n(){Xh.emit("mouse-leave-event",{mainEventId:r.eventConnection.relatedPlayId,eventId:r.eventConnection.playId})}return(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,b5t)],12,_5t),[[t.vShow,D.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,w5t)],12,x5t),[[t.vShow,D.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.x1&&p.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:B.value}),"stroke-dasharray":l===0&&i.value.length===2?"none":"5,5",x1:`${p.x1}%`,y1:`${p.y1}%`,x2:`${p.x2}%`,y2:`${p.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===i.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,k5t)),[[t.vShow,D.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:f,onMouseleave:n,style:t.normalizeStyle({cursor:"pointer",opacity:B.value})},[t.createElementVNode("rect",{x:`${g.value}%`,y:`${c.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:B.value}),rx:"14",ry:"14"},null,12,C5t),t.createElementVNode("text",{x:`${g.value}%`,y:`${c.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:B.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,S5t)],36),[[t.vShow,D.value]])],64))}},E5t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),B=t.computed(()=>r.eventConnections.getTeamColor());return(D,c)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(g,a)=>(t.openBlock(),t.createBlock(T5t,{key:g.id,color:B.value,"is-last-event":a===i.value.length-1,"event-connection":g,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},b0a="",A5t=e=>(t.pushScopeId("data-v-bc874f69"),e=e(),t.popScopeId(),e),M5t={class:"soccer-chalkboard"},I5t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},P5t=A5t(()=>t.createElementVNode("img",{src:Kwt,alt:""},null,-1)),B5t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N5t=$i({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const i=ise()?0:1e3;Xh.on("mouse-over-time-event",_=>{y(_),setTimeout(()=>{y(_)},i)}),Xh.on("mouse-leave-time-event",_=>{setTimeout(()=>{c.value==_&&!B.value&&y(0)},i)}),Xh.on("mouse-over-event",_=>{n(_)}),Xh.on("mouse-leave-event",_=>{setTimeout(()=>{_.eventId===g.value&&v()},i)});const B=t.ref(!1),D=t.ref({}),c=t.ref(0),g=t.ref(0),a=t.ref({x:0,y:0});function y(_){c.value=_}function f(){B.value=!1}function n(_){const l=document.getElementById("soccerChalkboardField");if(l){const o=l.getBoundingClientRect(),s=_.position.x/100*o.width+14,u=_.position.y/100*o.height+14,d=s+170>o.width?o.width-170:s,h=u;c.value=_.eventConnection.relatedPlayId,g.value=_.eventConnection.playId,D.value=_.eventConnection,a.value={x:`${d}px`,y:`${h}px`},B.value=!0}}function v(){B.value=!1,c.value=0}return(_,p)=>(t.openBlock(),t.createElementBlock("div",M5t,[t.createElementVNode("div",I5t,[P5t,(t.openBlock(),t.createElementBlock("svg",B5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&l.hasTeam(e.teamsSelected)||e.listType==="players"&&l.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(E5t,{key:o,"event-connections":l,"main-event-id-selected":c.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),B.value?(t.openBlock(),t.createBlock(v5t,{key:0,position:a.value,event:D.value,onClose:f},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bc874f69"]]),w0a="",RH=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),z5t={class:"events-timeline"},O5t=RH(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),F5t=["onMouseover","onMouseleave"],L5t=["id"],D5t=[RH(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],R5t=["fill"],V5t=["mask"],$5t=["stroke"],j5t=$i({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=e,i=["0'","45'","90'"],B=t.computed(()=>r.eventsConnections.reduce((g,a)=>{const y={minute:"0'",left:"0%",color:a.getTeamColor(),fontColor:a.getTeamFontColor(),playId:a.mainPlay.playId,playerId:a.mainPlay.playerId,teamId:a.mainPlay.teamId,relatedPlayId:a.relatedPlayId},[f]=a.mainPlay.momentOfPlay.split(":"),n=parseInt(f);return n>=90?(y.minute=`${n}'`,y.left="100%"):(y.minute=`${n}'`,y.left=`${n/90*100}%`),g.push(y),g},[]));function D(g){Xh.emit("mouse-over-time-event",g.playId)}function c(g){Xh.emit("mouse-leave-time-event",g.playId)}return(g,a)=>(t.openBlock(),t.createElementBlock("div",z5t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(y,f)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:f},t.toDisplayString(y),1)),64)),O5t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(y,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(y.teamId)||e.listType==="players"&&e.playersSelected.has(y.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:f,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:y.left,cursor:"pointer"}),onMouseover:n=>D(y),onMouseleave:n=>c(y)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},D5t,8,L5t),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:y.color},null,8,R5t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${y.playId})`},null,8,V5t),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:y.fontColor,"stroke-width":"0.7"},t.toDisplayString(y.minute),9,$5t)])],44,F5t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),hd={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},U5t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},G5t={key:1},H5t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W5t=["fill"],q5t={key:0,class:"checkbox__teams"},Y5t={class:"checkbox__teams__logo"},X5t=["src"],Z5t={class:"checkbox__teams__logo"},J5t=["src"],K5t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",G5t,[(t.openBlock(),t.createElementBlock("svg",H5t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,W5t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",q5t,[t.createElementVNode("div",Y5t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,X5t)]),t.createElementVNode("div",Z5t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,J5t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},Is=U5t(K5t,[["__scopeId","data-v-bcf3bcc6"]]),ml=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Q5t={class:"container"},e4t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t4t=["fill"],a4t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n4t=["fill"],r4t={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(r=>({"563e5242":e.width,a529e9a4:e.height})),(r,i)=>(t.openBlock(),t.createElementBlock("div",Q5t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",e4t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,t4t)])):(t.openBlock(),t.createElementBlock("svg",a4t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,n4t)]))]))}},k1=ml(r4t,[["__scopeId","data-v-166b6226"]]),v_=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),i4t={class:"productivity"},o4t={class:"productivity__body__offensive"},s4t={class:"productivity__body__title"},l4t={class:"productivity__body__title__info"},c4t={class:"number-of-categories"},d4t={class:"productivity__body__categories"},u4t={class:"productivity__body__defensive-possession"},h4t={class:"productivity__body__title"},p4t={class:"productivity__body__title__info"},f4t={class:"number-of-categories"},m4t={class:"productivity__body__categories"},g4t={class:"productivity__body__title"},y4t={class:"productivity__body__title__info"},v4t={class:"number-of-categories"},_4t={class:"productivity__body__categories"},b4t={class:"productivity__footer"},x4t={class:"productivity__footer__offenses"},w4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),k4t={class:"productivity__footer__offenses__table"},C4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),S4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},T4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),E4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},A4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),M4t={class:"productivity__footer__offenses__table__row has-padding"},I4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),P4t={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.ref(!1),c=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),a=t.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),y=t.computed(()=>i.productivityCategories.offensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),f=t.computed(()=>i.productivityCategories.defensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),n=t.computed(()=>i.productivityCategories.possession.categories.reduce((p,l)=>(l.isSelected&&p++,p),0));t.watch(()=>i.productivityCategories,p=>{g.value.areYellowCardsSelected=p.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=p.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=p.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(g,p=>{r("update:offensesConditions",p)},{deep:!0,immediate:!0});function v(p,l){l.isSelected=p,setTimeout(()=>{l.priority=i.numberOfCategoriesSelected},10)}function _(p){p==="offensive"?B.value=!B.value:p==="defensive"?D.value=!D.value:p==="possession"&&(c.value=!c.value)}return(p,l)=>(t.openBlock(),t.createElementBlock("div",i4t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",o4t,[t.createElementVNode("div",s4t,[t.createElementVNode("div",l4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",c4t,"("+t.toDisplayString(y.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[0]||(l[0]=o=>_("offensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",d4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]])]),t.createElementVNode("div",u4t,[t.createElementVNode("div",h4t,[t.createElementVNode("div",p4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",f4t,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[1]||(l[1]=o=>_("defensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":D.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",m4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||D.value]]),t.createElementVNode("div",g4t,[t.createElementVNode("div",y4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",v4t,"("+t.toDisplayString(n.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[2]||(l[2]=o=>_("possession"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":c.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",_4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||c.value]])])],4),t.createElementVNode("div",b4t,[t.createElementVNode("div",x4t,[w4t,t.createElementVNode("div",k4t,[C4t,t.createElementVNode("div",S4t,[T4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[3]||(l[3]=o=>g.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[4]||(l[4]=o=>g.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",E4t,[A4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[5]||(l[5]=o=>g.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[6]||(l[6]=o=>g.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",M4t,[I4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[7]||(l[7]=o=>g.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[8]||(l[8]=o=>g.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},B4t=ml(P4t,[["__scopeId","data-v-4df743e3"]]),_4=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),N4t={class:"details__header"},z4t=_4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),O4t={class:"details__header__checkbox"},F4t={class:"details__body"},L4t={class:"details__body__playing-as"},D4t=["onClick"],R4t={class:"details__header"},V4t=_4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),$4t={class:"details__header__checkbox"},j4t={class:"details__body"},U4t=_4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),G4t={class:"details__body__game-section"},H4t=["onClick"],W4t={class:"details__body"},q4t=_4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Y4t={class:"details__body__game-section"},X4t=["onClick"],Z4t={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},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}]},fontFamily:{type:String,default:"'Poppins-Regular'"},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 r=e;t.useCssVars(n=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.withDirectives(t.createElementVNode("div",N4t,[z4t,t.createElementVNode("div",O4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":i.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",F4t,[t.createElementVNode("div",L4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,D4t))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",R4t,[V4t,t.createElementVNode("div",$4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":B.value,"onUpdate:modelValue":f},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",j4t,[U4t,t.createElementVNode("div",G4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,H4t))),128))])]),t.createElementVNode("div",W4t,[q4t,t.createElementVNode("div",Y4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,X4t))),128))])])],4))}},J4t=ml(Z4t,[["__scopeId","data-v-9a3af80d"]]),K4t={class:"scroll-container"},Q4t={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(r=>({"6aab424d":e.height,39848040:e.width})),(r,i)=>(t.openBlock(),t.createElementBlock("div",K4t,[t.renderSlot(r.$slots,"default",{},void 0,!0)]))}},VH=ml(Q4t,[["__scopeId","data-v-218f5976"]]),e6t={class:"tournaments"},t6t={class:"tournaments__tournament"},a6t={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.tournaments.filter(g=>g.isSelected).length);t.watch(()=>i.tournaments,g=>{const a=g.filter(y=>y.isSelected);B.value=a.length===g.length,r("change-filters-selected",a.length),r("update:filters",i.tournaments)},{immediate:!0,deep:!0});function c(g){i.tournaments.forEach((a,y)=>{a.isSelected=g||(y!==0?g:!0)})}return(g,a)=>(t.openBlock(),t.createElementBlock("div",e6t,[t.createVNode(VH,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",t6t,[t.createVNode(t.unref(Is),{"model-value":B.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":c},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},n6t=ml(a6t,[["__scopeId","data-v-590d8ab3"]]),er={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},r6t={key:0,class:"plays-golstats__placeholder"},i6t=["onClick"],o6t={key:0,class:"plays-golstats__item__value"},s6t={class:"plays-golstats__item__text"},l6t={class:"plays-golstats__item__svg"},c6t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d6t=["fill"],u6t={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--grid-template-columns":i.type===er.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${i.svgWidth}px`,"--svg-height":`${i.svgHeight}px`}));t.watch(()=>i.categories,c=>{const g=c.filter(a=>a.isSelected);r("update:filters",g)},{immediate:!0,deep:!0});function D(c){c.isSelected||(i.categories.forEach(g=>{g.isSelected=!1}),c.isSelected=!0,i.type===er.GOLSTATS&&r("change-filters-selected",c.value))}return(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(B.value)},[t.createVNode(VH,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(er).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",r6t," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:f=>D(a)},[e.type===t.unref(er).GOLSTATS?(t.openBlock(),t.createElementBlock("div",o6t,t.toDisplayString(a.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",s6t,t.toDisplayString(a.name),1),t.createElementVNode("div",l6t,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",c6t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,d6t)],512)),[[t.vShow,a.isSelected]])])],8,i6t))),128))]),_:1},8,["height"])],4))}},$H=ml(u6t,[["__scopeId","data-v-af3c1673"]]),h6t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},mE={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const r=e.which?e.which:e.keyCode();r>31&&(r<48||r>57)&&e.preventDefault()}}}},jH=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},UH=mE.setup;mE.setup=UH?(e,r)=>(jH(),UH(e,r)):jH;const p6t={class:"input-container"},f6t=["type","placeholder","value"],m6t={class:"right-text"};function g6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",p6t,[t.createElementVNode("input",{type:i.inputType,placeholder:i.placeholder,value:i.value,style:t.normalizeStyle(c.inputStyle),onKeydown:r[0]||(r[0]=(...g)=>c.onKeyDown&&c.onKeyDown(...g)),onInput:r[1]||(r[1]=(...g)=>c.updateInputValue&&c.updateInputValue(...g))},null,44,f6t),t.createElementVNode("div",m6t,t.toDisplayString(i.textRight),1)])}const GH=h6t(mE,[["render",g6t],["__scopeId","data-v-b73049e7"]]),y6t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},gE={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},HH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},WH=gE.setup;gE.setup=WH?(e,r)=>(HH(),WH(e,r)):HH;const v6t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),_6t=["src"],b6t={key:1,class:"text"},x6t=["src"],w6t={class:"stats"},k6t=v6t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),C6t={class:"numstats"},S6t={class:"leyend"};function T6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,_6t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",b6t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,x6t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",w6t,[k6t,t.createElementVNode("div",C6t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",S6t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const E6t=y6t(gE,[["render",T6t],["__scopeId","data-v-fb269a1e"]]),A6t={class:"gsc-dropdown__main-container__item-selected"},M6t=["height","width"],I6t=["stroke"],P6t={class:"gsc-dropdown__items-container"},B6t=["onClick"],N6t={key:0,class:"gsc-dropdown__items-footer"},p0={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref({}),D=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];r("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],r("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(g.value=!g.value)}function n(p){D.value&&!D.value.contains(p.target)&&(g.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,g.value=!1),B.value=p,r("input",B.value),r("update:modelValue",B.value)}function _(){g.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:D,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",A6t,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,I6t)],8,M6t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",P6t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:u=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,B6t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",N6t,[t.createVNode(t.unref(E6t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},__={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},Gy=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),z6t={class:"universe"},O6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),F6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),L6t={class:"universe__inputs"},D6t={class:"universe__inputs__input"},R6t={class:"universe__inputs__checkbox"},V6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),$6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),j6t={class:"universe__inputs"},U6t={class:"universe__inputs__input"},G6t={class:"universe__inputs__checkbox"},H6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),W6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),q6t={class:"universe__dropdown"},Y6t={class:"selected-item"},qH=11,X6t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!1),c=t.ref(!1),g=t.ref(!1),a=t.ref({statistics:{}});t.watch(()=>B.universeFilters,p=>{a.value={...p,lastMonths:p.selectedMonth?p.selectedMonth:p.lastMonths[qH],statistics:{...p.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>a,p=>{D.value=!p.value.minutesPlayed||Number(p.value.minutesPlayed)===0,c.value=!p.value.percentMinutesPlayed||Number(p.value.percentMinutesPlayed)===0,g.value=!p.value.lastMonths||Number(p.value.lastMonths)===0,i("update:universeFilters",p)},{deep:!0,immediate:!0});function y(p){a.value.minutesPlayed=p}function f(p){a.value.percentMinutesPlayed=p}function n(p,l){switch(l){case"minutes":D.value=p,p&&(a.value.minutesPlayed=0);break;case"percent":c.value=p,p&&(a.value.percentMinutesPlayed=0);break;case"months":g.value=p,p&&(a.value.lastMonths=0);break}}function v(){a.value={...B.universeFilters,lastMonths:B.universeFilters.lastMonths[qH],statistics:{...B.universeFilters.statistics}}}function _(p){a.value.lastMonths=p}return r({resetFilters:v}),(p,l)=>(t.openBlock(),t.createElementBlock("div",z6t,[O6t,F6t,t.createElementVNode("div",L6t,[t.createElementVNode("div",D6t,[t.createVNode(t.unref(GH),{value:a.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:y},null,8,["value"])]),t.createElementVNode("div",R6t,[t.createVNode(t.unref(Is),{modelValue:D.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[0]||(l[0]=o=>n(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),V6t,$6t,t.createElementVNode("div",j6t,[t.createElementVNode("div",U6t,[t.createVNode(t.unref(GH),{value:a.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:f},null,8,["value"])]),t.createElementVNode("div",G6t,[t.createVNode(t.unref(Is),{modelValue:c.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[1]||(l[1]=o=>n(o,"percent"))},null,8,["modelValue","fontFamily"])])]),H6t,W6t,t.createElementVNode("div",q6t,[t.createVNode(t.unref(p0),t.mergeProps(t.unref(__),{items:e.universeFilters.lastMonths,"model-value":a.value.lastMonths,onInput:_}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",Y6t,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},Z6t=ml(X6t,[["__scopeId","data-v-b1fc2fa6"]]),YH=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},J6t={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],r=this.min===void 0?0:this.min,i=e.length?e.length-1:100,B=this.max===void 0?i:this.max,D=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(D=1);let c=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(c=e.length-2),B<=r)throw new Error("Invalid props min or max");if(D>c)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,a=g%this.step;return a&&(g=g+this.step-a),{valueMin:D<r?r:D,valueMax:c>B?B:c,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let r=parseFloat(e.target.value);r<=this.valueMax-this.rangeMarginValue&&r>=this.minimum?this.valueMin=r:e.target.value=this.valueMin},onInputMaxChange(e){let r=parseFloat(e.target.value);r>=this.valueMin+this.rangeMarginValue&&r<=this.maximum?this.valueMax=r:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.minimum?B=this.minimum:B>this.valueMax-this.rangeMarginValue&&(B=this.valueMax-this.rangeMarginValue),this.valueMin=B},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.valueMin+this.rangeMarginValue?B=this.valueMin+this.rangeMarginValue:B>this.maximum&&(B=this.maximum),this.valueMax=B},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let r=this.step;e.deltaY<0&&(r=-r),e.shiftKey&&e.ctrlKey?this.valueMin+r>=this.minimum&&this.valueMax+r<=this.maximum&&(this.valueMin=this.valueMin+r,this.valueMax=this.valueMax+r):e.ctrlKey?(r=this.valueMax+r,r<this.valueMin+this.rangeMarginValue?r=this.valueMin+this.rangeMarginValue:r>this.maximum&&(r=this.maximum),this.valueMax=r):e.shiftKey&&(r=this.valueMin+r,r<this.minimum?r=this.minimum:r>this.valueMax-this.rangeMarginValue&&(r=this.valueMax-this.rangeMarginValue),this.valueMin=r)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let r={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",r)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],r=e.length?e.length-1:100;return this.max===void 0?r:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},K6t={class:"bar"},Q6t=["min","max","step","value"],e8t={class:"caption"},t8t={class:"min-caption"},a8t={class:"bar-inner"},n8t=["min","max","step","value"],r8t={class:"caption"},i8t={class:"max-caption"},o8t={key:0,class:"ruler"},s8t={key:1,class:"sub-ruler"},l8t={key:2,class:"labels"};function c8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.baseClassName,D.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:r[10]||(r[10]=t.withModifiers((...g)=>c.onMouseWheel&&c.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",K6t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:c.barMin+"%"}),onClick:r[0]||(r[0]=(...g)=>c.onBarLeftClick&&c.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMin,onInput:r[1]||(r[1]=t.withModifiers((...g)=>c.onInputMinChange&&c.onInputMinChange(...g),["stop","prevent"]))},null,40,Q6t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:r[2]||(r[2]=(...g)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...g)),onTouchstart:r[3]||(r[3]=(...g)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...g))},[t.createElementVNode("div",e8t,[t.createElementVNode("span",t8t,t.toDisplayString(i.minCaption||c.barMinVal),1)])],32),t.createElementVNode("div",a8t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:r[4]||(r[4]=(...g)=>c.onInnerBarLeftClick&&c.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:r[5]||(r[5]=(...g)=>c.onInnerBarRightClick&&c.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMax,onInput:r[6]||(r[6]=t.withModifiers((...g)=>c.onInputMaxChange&&c.onInputMaxChange(...g),["stop","prevent"]))},null,40,n8t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:r[7]||(r[7]=(...g)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...g)),onTouchstart:r[8]||(r[8]=(...g)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...g))},[t.createElementVNode("div",r8t,[t.createElementVNode("span",i8t,t.toDisplayString(i.maxCaption||c.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:c.barMax+"%"}),onClick:r[9]||(r[9]=(...g)=>c.onBarRightClick&&c.onBarRightClick(...g))},null,4)]),i.ruler?(t.openBlock(),t.createElementBlock("div",o8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),c.subStepCount?(t.openBlock(),t.createElementBlock("div",s8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),i.label?(t.openBlock(),t.createElementBlock("div",l8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const d8t=YH(J6t,[["render",c8t]]),yE={components:{MultiRangeSlider:d8t},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},XH=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},ZH=yE.setup;yE.setup=ZH?(e,r)=>(XH(),ZH(e,r)):XH;const u8t={class:"center"},h8t={class:"bar-ref"},p8t={class:"bar-ref-element-left"},f8t={class:"bar-ref-element-right"};function m8t(e,r,i,B,D,c){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(c.customStyle)},[t.createElementVNode("div",u8t,[t.createElementVNode("div",h8t,[t.createElementVNode("div",p8t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.minValueLocal)+t.toDisplayString(i.minSuffix),5)]),t.createElementVNode("div",f8t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.maxValueLocal)+t.toDisplayString(i.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:i.minLimit,max:i.maxLimit,step:1,ruler:!1,label:!1,"min-value":D.minValueLocal,"max-value":D.maxValueLocal,"range-margin":0,onInput:c.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const JH=YH(yE,[["render",m8t]]),g8t={class:"template-distance"},y8t={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:r}){const i=e,B=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>B.value,c=>{r("update:distanceFilters",c)},{deep:!0}),t.watch(()=>i.distance,c=>{B.value.minValue=c.minValue,B.value.maxValue=c.maxValue,B.value.minLimit=c.minLimit,B.value.maxLimit=c.maxLimit},{immediate:!0,deep:!0});function D(c){B.value.minValue=c.minValue,B.value.maxValue=c.maxValue}return(c,g)=>(t.openBlock(),t.createElementBlock("div",g8t,[t.createVNode(t.unref(JH),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":B.value.minLimit,"max-limit":B.value.maxLimit,"min-value":B.value.minValue,"max-value":B.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:D},null,8,["min-limit","max-limit","min-value","max-value"])]))}},v8t=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),_8t={class:"template-games"},b8t={class:"template-games__header"},x8t=v8t(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),w8t={class:"template-games__header__all-games"},k8t={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.gamesFilters.filter(g=>g.isSelected).length);t.watch(()=>i.gamesFilters,g=>{r("update:gamesFilters",g)},{deep:!0}),t.watch(D,g=>{B.value=g===i.gamesFilters.length,r("update:gamesFilters",i.gamesFilters)},{immediate:!0});const c=g=>{g?i.gamesFilters.forEach(a=>{a.isSelected=g}):i.gamesFilters.forEach((a,y)=>{a.isSelected=y===0}),B.value=g};return(g,a)=>(t.openBlock(),t.createElementBlock("div",_8t,[t.createElementVNode("div",b8t,[x8t,t.createElementVNode("div",w8t,[t.createVNode(t.unref(Is),{modelValue:B.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":c},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"template-games__game"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":n=>y.isSelected=n,label:y.label,"teams-ids":y.teamsIds,"avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},C8t=ml(k8t,[["__scopeId","data-v-be32e3d8"]]),S8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},vE={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},KH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},QH=vE.setup;vE.setup=QH?(e,r)=>(KH(),QH(e,r)):KH;const T8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),E8t=["src"],A8t={key:1,class:"text"},M8t=["src"],I8t={class:"stats"},P8t=T8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),B8t={class:"numstats"},N8t={class:"leyend"};function z8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,E8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",A8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,M8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",I8t,[P8t,t.createElementVNode("div",B8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",N8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const _E=S8t(vE,[["render",z8t],["__scopeId","data-v-fb269a1e"]]),O8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},bE={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},eW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},tW=bE.setup;bE.setup=tW?(e,r)=>(eW(),tW(e,r)):eW;const F8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),L8t=["src"],D8t={key:1,class:"text"},R8t=["src"],V8t={class:"stats"},$8t=F8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),j8t={class:"numstats"},U8t={class:"leyend"};function G8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,L8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",D8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,R8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",V8t,[$8t,t.createElementVNode("div",j8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",U8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const H8t=O8t(bE,[["render",G8t],["__scopeId","data-v-fb269a1e"]]),W8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},q8t={key:1},Y8t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X8t=["fill"],Z8t={key:0,class:"checkbox__teams"},J8t={class:"checkbox__teams__logo"},K8t=["src"],Q8t={class:"checkbox__teams__logo"},ekt=["src"],tkt={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",q8t,[(t.openBlock(),t.createElementBlock("svg",Y8t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,X8t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",Z8t,[t.createElementVNode("div",J8t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,K8t)]),t.createElementVNode("div",Q8t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,ekt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},akt=W8t(tkt,[["__scopeId","data-v-bcf3bcc6"]]),nkt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},xE={components:{GSCButton:H8t,GSCCheckbox:akt},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,r)=>({sector:r+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const r=e.sort();JSON.stringify(r)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=r,this.sectors.forEach((i,B)=>{i.active=e.includes(B+1),this.validateField(B)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var r=[];for(let i=0;i<e.length;i++)e[i].active&&r.push(i+1);this.$emit("update:modelValue",r)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!0,this.validateField(r);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!1,this.validateField(r),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var r=0;this.sectors[e].active=!this.sectors[e].active;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,r==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,r==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,r==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,r==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},aW=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},nW=xE.setup;xE.setup=nW?(e,r)=>(aW(),nW(e,r)):aW;const rkt={class:"gsc-field"},ikt={class:"gsc-field__title-checked"},okt={class:"gsc-field__title-checked__title"},skt={class:"gsc-field__container-field"},lkt={class:"gsc-field__container-field__field"},ckt={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},dkt=["stroke"],ukt=["stroke","stroke-width"],hkt=["stroke","stroke-width"],pkt=["stroke-width","stroke"],fkt=["fill","fill-opacity","stroke","stroke-width"],mkt=["fill","fill-opacity","stroke","stroke-width"],gkt=["fill","fill-opacity","stroke","stroke-width"],ykt=["fill","fill-opacity","stroke","stroke-width"],vkt=["fill","fill-opacity","stroke","stroke-width"],_kt=["fill","fill-opacity","stroke","stroke-width"],bkt=["fill","fill-opacity","stroke","stroke-width"],xkt=["fill","fill-opacity","stroke","stroke-width"],wkt=["fill","fill-opacity","stroke","stroke-width"],kkt=["fill","fill-opacity","stroke","stroke-width"],Ckt=["fill","fill-opacity","stroke","stroke-width"],Skt=["fill","fill-opacity","stroke","stroke-width"],Tkt=["fill","fill-opacity","stroke","stroke-width"],Ekt=["fill","fill-opacity","stroke","stroke-width"],Akt=["fill","fill-opacity","stroke","stroke-width"],Mkt=["fill","fill-opacity","stroke","stroke-width"],Ikt={class:"gsc-field__container-field__bar-buttons"};function Pkt(e,r,i,B,D,c){const g=t.resolveComponent("GSCCheckbox"),a=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",rkt,[t.createElementVNode("div",ikt,[t.createElementVNode("div",okt,t.toDisplayString(i.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(i.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:i.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":i.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:D.all,key:D.update,"model-value":D.all,"onUpdate:modelValue":c.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",skt,[t.createElementVNode("div",lkt,[(t.openBlock(),t.createElementBlock("svg",ckt,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:i.colorLineField},null,8,dkt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translx+"px, "+c.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,ukt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+c.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,hkt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translxcircle+"px, "+c.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":i.borderWidthLineField,stroke:i.colorLineField},null,12,pkt),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:D.sectors[0].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[0]||(r[0]=y=>c.selectSector(0))},null,8,fkt),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:D.sectors[1].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[1]||(r[1]=y=>c.selectSector(1))},null,8,mkt),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:D.sectors[2].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[2]||(r[2]=y=>c.selectSector(2))},null,8,gkt),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:D.sectors[3].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[3]||(r[3]=y=>c.selectSector(3))},null,8,ykt),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:D.sectors[4].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[4]||(r[4]=y=>c.selectSector(4))},null,8,vkt),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:D.sectors[5].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[5]||(r[5]=y=>c.selectSector(5))},null,8,_kt),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:D.sectors[6].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[6]||(r[6]=y=>c.selectSector(6))},null,8,bkt),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:D.sectors[7].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[7]||(r[7]=y=>c.selectSector(7))},null,8,xkt),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:D.sectors[8].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[8]||(r[8]=y=>c.selectSector(8))},null,8,wkt),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:D.sectors[9].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[9]||(r[9]=y=>c.selectSector(9))},null,8,kkt),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:D.sectors[10].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[10]||(r[10]=y=>c.selectSector(10))},null,8,Ckt),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:D.sectors[11].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[11]||(r[11]=y=>c.selectSector(11))},null,8,Skt),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:D.sectors[12].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[12]||(r[12]=y=>c.selectSector(12))},null,8,Tkt),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:D.sectors[13].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[13]||(r[13]=y=>c.selectSector(13))},null,8,Ekt),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:D.sectors[14].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[14]||(r[14]=y=>c.selectSector(14))},null,8,Akt),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:D.sectors[15].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[15]||(r[15]=y=>c.selectSector(15))},null,8,Mkt)]))]),t.createElementVNode("div",Ikt,[(t.openBlock(),t.createBlock(a,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:c.btn14,key:D.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:c.btn24,key:D.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:c.btn34,key:D.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:c.btn44,key:D.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const rW=nkt(xE,[["render",Pkt],["__scopeId","data-v-b85699b8"]]),Bkt={class:"toggle-buttons__background"},Nkt=["onClick"],zkt={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(g=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,a)=>{g!==a&&r("change",{index:g,button:i.buttons[g]})});function c(g){B.value=g}return(g,a)=>(t.openBlock(),t.createElementBlock("div",Bkt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f}]),onClick:n=>c(f)},t.toDisplayString(y.text||y),11,Nkt))),128))],4)]))}},Okt=ml(zkt,[["__scopeId","data-v-ac2af001"]]);function iW(e,r){return function(){return e.apply(r,arguments)}}const{toString:Fkt}=Object.prototype,{getPrototypeOf:wE}=Object,b4=(e=>r=>{const i=Fkt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),zf=e=>(e=e.toLowerCase(),r=>b4(r)===e),x4=e=>r=>typeof r===e,{isArray:Hy}=Array,b_=x4("undefined");function Lkt(e){return e!==null&&!b_(e)&&e.constructor!==null&&!b_(e.constructor)&&lp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oW=zf("ArrayBuffer");function Dkt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&oW(e.buffer),r}const Rkt=x4("string"),lp=x4("function"),sW=x4("number"),w4=e=>e!==null&&typeof e=="object",Vkt=e=>e===!0||e===!1,k4=e=>{if(b4(e)!=="object")return!1;const r=wE(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$kt=zf("Date"),jkt=zf("File"),Ukt=zf("Blob"),Gkt=zf("FileList"),Hkt=e=>w4(e)&&lp(e.pipe),Wkt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||lp(e.append)&&((r=b4(e))==="formdata"||r==="object"&&lp(e.toString)&&e.toString()==="[object FormData]"))},qkt=zf("URLSearchParams"),Ykt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function x_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Hy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function lW(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const cW=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dW=e=>!b_(e)&&e!==cW;function kE(){const{caseless:e}=dW(this)&&this||{},r={},i=(B,D)=>{const c=e&&lW(r,D)||D;k4(r[c])&&k4(B)?r[c]=kE(r[c],B):k4(B)?r[c]=kE({},B):Hy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&x_(arguments[B],i);return r}const Xkt=(e,r,i,{allOwnKeys:B}={})=>(x_(r,(D,c)=>{i&&lp(D)?e[c]=iW(D,i):e[c]=D},{allOwnKeys:B}),e),Zkt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jkt=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Kkt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&wE(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Qkt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},e7t=e=>{if(!e)return null;if(Hy(e))return e;let r=e.length;if(!sW(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},t7t=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&wE(Uint8Array)),a7t=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},n7t=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},r7t=zf("HTMLFormElement"),i7t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),uW=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),o7t=zf("RegExp"),hW=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};x_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},s7t=e=>{hW(e,(r,i)=>{if(lp(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(lp(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},l7t=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Hy(e)?B(e):B(String(e).split(r)),i},c7t=()=>{},d7t=(e,r)=>(e=+e,Number.isFinite(e)?e:r),CE="abcdefghijklmnopqrstuvwxyz",pW="0123456789",fW={DIGIT:pW,ALPHA:CE,ALPHA_DIGIT:CE+CE.toUpperCase()+pW},u7t=(e=16,r=fW.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function h7t(e){return!!(e&&lp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const p7t=e=>{const r=new Array(10),i=(B,D)=>{if(w4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Hy(B)?[]:{};return x_(B,(g,a)=>{const y=i(g,D+1);!b_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},f7t=zf("AsyncFunction"),m7t=e=>e&&(w4(e)||lp(e))&&lp(e.then)&&lp(e.catch),Ir={isArray:Hy,isArrayBuffer:oW,isBuffer:Lkt,isFormData:Wkt,isArrayBufferView:Dkt,isString:Rkt,isNumber:sW,isBoolean:Vkt,isObject:w4,isPlainObject:k4,isUndefined:b_,isDate:$kt,isFile:jkt,isBlob:Ukt,isRegExp:o7t,isFunction:lp,isStream:Hkt,isURLSearchParams:qkt,isTypedArray:t7t,isFileList:Gkt,forEach:x_,merge:kE,extend:Xkt,trim:Ykt,stripBOM:Zkt,inherits:Jkt,toFlatObject:Kkt,kindOf:b4,kindOfTest:zf,endsWith:Qkt,toArray:e7t,forEachEntry:a7t,matchAll:n7t,isHTMLForm:r7t,hasOwnProperty:uW,hasOwnProp:uW,reduceDescriptors:hW,freezeMethods:s7t,toObjectSet:l7t,toCamelCase:i7t,noop:c7t,toFiniteNumber:d7t,findKey:lW,global:cW,isContextDefined:dW,ALPHABET:fW,generateString:u7t,isSpecCompliantForm:h7t,toJSONObject:p7t,isAsyncFn:f7t,isThenable:m7t};function Nl(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Ir.inherits(Nl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mW=Nl.prototype,gW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gW[e]={value:e}}),Object.defineProperties(Nl,gW),Object.defineProperty(mW,"isAxiosError",{value:!0}),Nl.from=(e,r,i,B,D,c)=>{const g=Object.create(mW);return Ir.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Nl.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const g7t=null;function SE(e){return Ir.isPlainObject(e)||Ir.isArray(e)}function yW(e){return Ir.endsWith(e,"[]")?e.slice(0,-2):e}function vW(e,r,i){return e?e.concat(r).map(function(B,D){return B=yW(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function y7t(e){return Ir.isArray(e)&&!e.some(SE)}const v7t=Ir.toFlatObject(Ir,{},null,function(e){return/^is[A-Z]/.test(e)});function C4(e,r,i){if(!Ir.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Ir.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Ir.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Ir.isSpecCompliantForm(r);if(!Ir.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Ir.isDate(p))return p.toISOString();if(!a&&Ir.isBlob(p))throw new Nl("Blob is not supported. Use a Buffer instead.");return Ir.isArrayBuffer(p)||Ir.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Ir.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Ir.isArray(p)&&y7t(p)||(Ir.isFileList(p)||Ir.endsWith(l,"[]"))&&(s=Ir.toArray(p)))return l=yW(l),s.forEach(function(u,d){!(Ir.isUndefined(u)||u===null)&&r.append(g===!0?vW([l],d,c):g===null?l:l+"[]",y(u))}),!1}return SE(p)?!0:(r.append(vW(o,l,c),y(p)),!1)}const n=[],v=Object.assign(v7t,{defaultVisitor:f,convertValue:y,isVisitable:SE});function _(p,l){if(!Ir.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Ir.forEach(p,function(o,s){(!(Ir.isUndefined(o)||o===null)&&D.call(r,o,Ir.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Ir.isObject(e))throw new TypeError("data must be an object");return _(e),r}function _W(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function TE(e,r){this._pairs=[],e&&C4(e,this,r)}const bW=TE.prototype;bW.append=function(e,r){this._pairs.push([e,r])},bW.toString=function(e){const r=e?function(i){return e.call(this,i,_W)}:_W;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function _7t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xW(e,r,i){if(!r)return e;const B=i&&i.encode||_7t,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Ir.isURLSearchParams(r)?r.toString():new TE(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const wW=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ir.forEach(this.handlers,function(i){i!==null&&r(i)})}},kW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b7t=typeof URLSearchParams<"u"?URLSearchParams:TE,x7t=typeof FormData<"u"?FormData:null,w7t=typeof Blob<"u"?Blob:null,k7t={isBrowser:!0,classes:{URLSearchParams:b7t,FormData:x7t,Blob:w7t},protocols:["http","https","file","blob","url","data"]},CW=typeof window<"u"&&typeof document<"u",C7t=(e=>CW&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),S7t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),T7t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:CW,hasStandardBrowserEnv:C7t,hasStandardBrowserWebWorkerEnv:S7t},Symbol.toStringTag,{value:"Module"})),Of={...T7t,...k7t};function E7t(e,r){return C4(e,new Of.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Of.isNode&&Ir.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function A7t(e){return Ir.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function M7t(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function SW(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&Ir.isArray(D)?D.length:g,y?(Ir.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!Ir.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&Ir.isArray(D[g])&&(D[g]=M7t(D[g])),!a)}if(Ir.isFormData(e)&&Ir.isFunction(e.entries)){const i={};return Ir.forEachEntry(e,(B,D)=>{r(A7t(B),D,i,0)}),i}return null}function I7t(e,r,i){if(Ir.isString(e))try{return(r||JSON.parse)(e),Ir.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const EE={transitional:kW,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Ir.isObject(e);if(D&&Ir.isHTMLForm(e)&&(e=new FormData(e)),Ir.isFormData(e))return B?JSON.stringify(SW(e)):e;if(Ir.isArrayBuffer(e)||Ir.isBuffer(e)||Ir.isStream(e)||Ir.isFile(e)||Ir.isBlob(e))return e;if(Ir.isArrayBufferView(e))return e.buffer;if(Ir.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return E7t(e,this.formSerializer).toString();if((c=Ir.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return C4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),I7t(e)):e}],transformResponse:[function(e){const r=this.transitional||EE.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Ir.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Nl.from(c,Nl.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Of.classes.FormData,Blob:Of.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ir.forEach(["delete","get","head","post","put","patch"],e=>{EE.headers[e]={}});const AE=EE,P7t=Ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),B7t=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
124
|
+
*/const Su={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},_H={itemsToShow:{default:Su.itemsToShow,type:Number},itemsToScroll:{default:Su.itemsToScroll,type:Number},wrapAround:{default:Su.wrapAround,type:Boolean},throttle:{default:Su.throttle,type:Number},snapAlign:{default:Su.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Su.transition,type:Number},breakpoints:{default:Su.breakpoints,type:Object},autoplay:{default:Su.autoplay,type:Number},pauseAutoplayOnHover:{default:Su.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Su.mouseDrag,type:Boolean},touchDrag:{default:Su.touchDrag,type:Boolean},dir:{default:Su.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Su.i18n,type:Object},settings:{default(){return{}},type:Object}};function ubt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function hbt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function iE({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function pbt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:iE({val:g,max:i-c,min:0})}function bH(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...bH(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function oE({val:e,max:r,min:i=0}){return e>r?oE({val:e-(r+1),max:r,min:i}):e<i?oE({val:e+(r+1),max:r,min:i}):e}function fbt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function mbt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function gbt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var ybt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Su))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},gbt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),vbt=t.defineComponent({name:"Carousel",props:_H,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Su));let n=Object.assign({},Su),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=mbt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=ubt({config:f,slidesCount:y.value}),s.value=hbt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=iE({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=fbt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:iE({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=oE({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>pbt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(_H).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=bH(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(ybt)])}}}),xH;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xH||(xH={}));var _bt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Su))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const bbt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},xbt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),wbt={class:"gsc-carousel"},kbt={key:0},Cbt=xbt(()=>t.createElementVNode("div",null,"no hay",-1)),Sbt=[Cbt],Tbt={class:"gsc-carousel__2d__slides"},Ebt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Abt=["fill"],Mbt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ibt=["fill"],Pbt={class:"gsc-carousel__2d__navigation"},Bbt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nbt=["stroke"],zbt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Obt=["onClick"],Fbt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lbt=["stroke"],Dbt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",wbt,[B.is3d?(t.openBlock(),t.createElementBlock("div",kbt,Sbt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Tbt,[t.createVNode(t.unref(vbt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(_bt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ebt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Abt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Mbt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Ibt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Pbt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Bbt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Nbt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",zbt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Obt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",Fbt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,Lbt)]))])):t.createCommentVNode("",!0)])],2))]))}},Rbt=bbt(Dbt,[["__scopeId","data-v-54620d25"]]),sE=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i};let wH=null;const lE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)wH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),wH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},kH=()=>{t.useCssVars(e=>({"41af28e8":e.colorBackgroundHome+"45","90ae2246":e.colorBackgroundAway+"45","1d262e1e":e.colorBackgroundHome,"1d231c2d":e.colorBackgroundAway}))},CH=lE.setup;lE.setup=CH?(e,r)=>(kH(),CH(e,r)):kH;const m4=e=>(t.pushScopeId("data-v-fd9d1e65"),e=e(),t.popScopeId(),e),Vbt=m4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),$bt=[Vbt],jbt=m4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Ubt=["src"],Gbt=m4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Hbt=m4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Wbt=["src"],qbt=["src"],Ybt={class:"text-container"};function Xbt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},$bt,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),jbt,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Ubt),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),Gbt,Hbt,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,Wbt),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,qbt),t.createElementVNode("div",Ybt,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const Zbt=sE(lE,[["render",Xbt],["__scopeId","data-v-fd9d1e65"]]);let SH=null;const cE={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)SH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),SH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},TH=()=>{t.useCssVars(e=>({"16e4cc48":e.colorBackgroundHome,"16e1ba57":e.colorBackgroundAway,"0a08a218":e.colorBackgroundAway+"62",31881400:e.colorBackgroundHome+"36"}))},EH=cE.setup;cE.setup=EH?(e,r)=>(TH(),EH(e,r)):TH;const g4=e=>(t.pushScopeId("data-v-4fef1a3b"),e=e(),t.popScopeId(),e),Jbt=g4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Kbt=g4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Qbt=[Kbt],ext={class:"player-container"},txt=["src"],axt=["src"],nxt=["src"],rxt={class:"container-score"},ixt=["src"],oxt=["src"],sxt=["src"],lxt=g4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),cxt=g4(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function dxt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[Jbt,t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},Qbt,2),t.createElementVNode("div",ext,[t.createElementVNode("div",{class:t.normalizeClass(c.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(c.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(c.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(c.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(c.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(c.playerimage)},null,10,txt)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,axt)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,nxt)):t.createCommentVNode("",!0),t.createElementVNode("div",rxt,[t.createElementVNode("div",{class:t.normalizeClass(c.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,ixt),t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(c.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(c.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(c.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,oxt),t.createElementVNode("span",{class:t.normalizeClass(c.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,sxt),lxt,cxt],2)}const uxt={components:{GSCCarousel:Rbt,GSCThumbnailHighlightGameHistoric:Zbt,GSCThumbnailHighlightGamePlayer:sE(cE,[["render",dxt],["__scopeId","data-v-4fef1a3b"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},privilegesTeamId:{type:Number,default:0}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",lastHistoricGamesUrl:""}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,r){return e.home_team===(r||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const r=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][r.getUTCDay()],B=r.getUTCDate(),D=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][r.getUTCMonth()];return`${i} ${B} de ${D}`}else return""},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,42,54]:r=e.data.category:r=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:r=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},play(e){this.$emit("play",e)},async getData(e){this.$emit("loading",!0);const r=dbt.create({headers:{Authorization:`${this.token}`}});var i=[],B={};if(e.type=="player"){const D=await r.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(D.data.seasons[e.season])for(let c=0;c<D.data.seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",player_name:D.data.seasons[e.season].games_played[c].home_team_acronym+" "+D.data.seasons[e.season].games_played[c].home_team_score+" : "+D.data.seasons[e.season].games_played[c].visiting_team_score+" "+D.data.seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.seasons[e.season].games_played[c].home_team,season_id:D.data.seasons[e.season].games_played[c].season_id,name:D.data.seasons[e.season].games_played[c].player_name,seasonname:D.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.seasons[e.season].games_played[c].game_id,match:D.data.seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.seasons[e.season].games_played[c].date),scorehome:D.data.seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games_played[c].visiting_team+".png",total:D.data.seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games_played[c].home_team+"_"+D.data.seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B);else for(let c=0;c<D.data.national_seasons[e.season].games_played.length;c++)B={playingAs:this.getPlayingAs(D.data.national_seasons[e.season].games_played[c],D.data.team_id),category:0,player_id:D.data.player_id,position_id:D.data.position_id,color:D.data.info_thumbnails.colors.background_color,photo_profile:D.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.player_in_action[0]:D.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",player_name:D.data.national_seasons[e.season].games_played[c].home_team_acronym+" "+D.data.national_seasons[e.season].games_played[c].home_team_score+" : "+D.data.national_seasons[e.season].games_played[c].visiting_team_score+" "+D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,team_id:D.data.team_id,has_relevants:D.data.national_seasons[e.season].games_played[c].has_relevants,team_id_b:D.data.national_seasons[e.season].games_played[c].home_team,season_id:D.data.national_seasons[e.season].games_played[c].season_id,name:D.data.national_seasons[e.season].games_played[c].player_name,seasonname:D.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:D.data.national_seasons[e.season].games_played[c].game_id,match:D.data.national_seasons[e.season].games_played[c].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(D.data.national_seasons[e.season].games_played[c].date),scorehome:D.data.national_seasons[e.season].games_played[c].home_team_score,scoreaway:D.data.national_seasons[e.season].games_played[c].visiting_team_score,hometeamacronym:D.data.national_seasons[e.season].games_played[c].home_team_acronym,visitingteamacronym:D.data.national_seasons[e.season].games_played[c].visiting_team_acronym,background:D.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.info_thumbnails.images.background_player_in_action[0]:D.data.info_thumbnails.player_profile,backgroundhome:D.data.national_seasons[e.season].games_played[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.national_seasons[e.season].games_played[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.national_seasons[e.season].games_played[c].visiting_team+".png",total:D.data.national_seasons[e.season].games_played[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.national_seasons[e.season].games_played[c].home_team+"_"+D.data.national_seasons[e.season].games_played[c].season_id+"_r1.jpg"},i.push(B)}else if(e.type=="historic"){const D="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game;if(this.lastHistoricGamesUrl===D)return;this.lastHistoricGamesUrl=D;const c=await r.get(D);for(let a=0;a<c.data.plays.length;a++)B={teamId:c.data.plays[a][2],player:"Jornada "+c.data.plays[a][6],player_name:c.data.plays[a][4],season_id:c.data.plays[a][31],game_id:c.data.plays[a][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?this.privilegesTeamId==0?!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&i.push(B):!i.filter(y=>y.game_id===c.data.plays[a][3]).length>0&&c.data.plays[a][2]===this.privilegesTeamId&&i.push(B):(this.privilegesTeamId==0||c.data.plays[a][2]===this.privilegesTeamId)&&i.push(B);const g=c.data.thumbnails;for(let a=0;a<i.length;a++){const y=Math.floor(Math.random()*g[i[a].game_id].info_thumbnails.images.background_default_games.length);i[a].background="https://golstatsimages.blob.core.windows.net/images-library/"+g[i[a].game_id].info_thumbnails.images.background_default_games[y],i[a].backgroundhome=g[i[a].game_id].info_thumbnails.home_colors.background_color,i[a].backgroundaway=g[i[a].game_id].info_thumbnails.away_colors.background_color,i[a].logoaway="https://az755631.vo.msecnd.net/teams-150/"+g[i[a].game_id].info_thumbnails.away_colors.team_id+".png",i[a].logohome="https://az755631.vo.msecnd.net/teams-150/"+g[i[a].game_id].info_thumbnails.home_colors.team_id+".png",i[a].match=g[i[a].game_id].matchday_name.replace("Matchday","Jor"),i[a].playingAs=g[i[a].game_id].info_thumbnails.home_colors.team_id===i[a].teamId?1:2,i[a].seasonname=g[i[a].game_id].season_name,i[a].score=g[i[a].game_id].score[0]+" - "+g[i[a].game_id].score[1],i[a].category=0}}else{const D=await r.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let c=0;c<D.data.seasons[e.season].games.length;c++){const g=Math.floor(Math.random()*D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games.length);B={playingAs:this.getPlayingAs(D.data.seasons[e.season].games[c],D.data.team_id),category:0,game_id:D.data.seasons[e.season].games[c].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",player_name:D.data.seasons[e.season].games[c].home_team_acronym+" "+D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score+" "+D.data.seasons[e.season].games[c].visiting_team_acronym,team_id_b:D.data.seasons[e.season].games[c].home_team,team_id:D.data.team_id,season_id:D.data.seasons[e.season].games[c].season_id,name:"",seasonname:D.data.seasons[e.season].name,match:D.data.seasons[e.season].games[c].matchday_name.replace("Matchday","Jor"),score:D.data.seasons[e.season].games[c].home_team_score+" : "+D.data.seasons[e.season].games[c].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+D.data.seasons[e.season].games[c].info_thumbnails.images.background_default_games[g],backgroundhome:D.data.seasons[e.season].games[c].info_thumbnails.home_colors.background_color,backgroundaway:D.data.seasons[e.season].games[c].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+D.data.seasons[e.season].games[c].visiting_team+".png",total:D.data.seasons[e.season].games[c].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+D.data.seasons[e.season].games[c].home_team+"_"+D.data.seasons[e.season].games[c].season_id+"_r1.jpg"},i.push(B)}}this.printData=i,this.$emit("loading",!1)},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const r of e)this.highlightsWidth=r.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},hxt={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function pxt(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),a=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),y=t.resolveComponent("GSCCarousel");return c.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",hxt,[t.createVNode(y,t.mergeProps(c.carouselProps,{items:c.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:.2}),{default:t.withCtx(({item:f})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:f,"color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"logo-home":f.logohome,"logo-away":f.logoaway,background:f.background,matchday:f.match,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:1}),"season-name":f.seasonname,score:f.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(a,{key:1,type:"player","name-player":f.name,"type-style":"game","color-background-home":f.backgroundhome,"color-background-away":f.backgroundaway,"type-img":"0",date:f.date,"season-name":f.seasonname,matchday:f.match,background:f.background,"name-home-team":f.hometeamacronym,"name-away-team":f.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:n=>c.onclickPlayVideos({data:f,type:2}),"logo-away":f.logoaway,"logo-home":f.logohome,"score-home":f.scorehome,"photo-profile":f.photo_profile,"score-away":f.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const fxt=sE(uxt,[["render",pxt]]),Wma="",qma="",Yma="",mxt={components:{GSCSlider:Wv},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveProminentData:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.is_live==1?(this.getDataProminent(e.gameId),setInterval(()=>{this.getDataProminent(e.gameId)},this.timeLiveProminentData)):e.game_status==1||e.game_status==0?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{lastDataProminentUrl:"",dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const r=[1,2,3];let i={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIdsToFilter:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:r,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",i)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const r=Math.round(e*10)/10;return Number.isInteger(r)?r.toString()+"%":r.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const r=e.split(/(\*.*?\*)/g).filter(D=>D.trim()!=="");let i=Math.ceil(r.length/2),B="";return r.forEach((D,c)=>{c===i&&(B+="<br/>"),D.startsWith("*")&&D.endsWith("*")?B+=`<span class="text-bold-prominent">${D.slice(1,-1)}</span>`:D.trim()!==""&&(B+=`<span class="text-prominent">${D}</span>`)}),B},async getDataProminentPrematch(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch",this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,this.$emit("loading",!1)}}catch(e){return Promise.reject(e)}},async getDataProminent(){try{let e="";if(this.isWidget&&this.teamWidget!=0?e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"?t="+this.teamWidget:e="https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId,this.lastDataProminentUrl!==e){this.$emit("loading",!0);const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(e);this.dataProminent=i.data.data,this.dataProminentAll=i.data,setTimeout(()=>{this.$emit("loading",!1)},500)}}catch(e){return Promise.reject(e)}}}},gxt=e=>(t.pushScopeId("data-v-62f00708"),e=e(),t.popScopeId(),e),yxt={class:"data-prominent-game"},vxt={class:"title-data"},_xt={class:"item-data-text"},bxt=["innerHTML"],xxt={class:"contain-stats-control"},wxt={key:0,class:"title-total"},kxt={key:1,class:"item-total"},Cxt=["onClick"],Sxt={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},Txt=[gxt(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function Ext(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",yxt,[t.createElementVNode("div",vxt,[i.game.game_status!=4||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Este partido:")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Este torneo:")],64))]),t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.dataProminent,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+a.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(a.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+a.player_id+".png); border: solid 1.4px "+a.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png);border: solid 1.4px "+a.custom_colors.background_color)},null,4),a.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+a.custom_colors.font_color)},[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",_xt,[t.createElementVNode("div",{class:"container-text",innerHTML:c.textoConNegritas(a.description)},null,8,bxt),t.createElementVNode("div",xxt,[a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",wxt,"TOTAL:")):t.createCommentVNode("",!0),a.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",kxt,[a.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(c.formatNumber(a.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[a.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(a.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(a.total),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&a.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(a.title=="Productividad"?"margin-left: 0px !important;":""),onClick:f=>c.onclickPlayVideos({data:a})},[(t.openBlock(),t.createElementBlock("svg",Sxt,Txt))],12,Cxt)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const Axt=$i(mxt,[["render",Ext],["__scopeId","data-v-62f00708"]]),Zma="",Mxt={components:{GSCCheckbox:Wg},props:{timeLivePossesion:{type:Number,default:6e4},game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.is_live==1?(this.getDataPosession(e.gameId),this.intervalIdPossesion=setInterval(()=>{this.getDataPosession(e.gameId)},this.timeLivePossesion),this.$emit("intervalidpossesion",this.intervalIdPossesion)):e.game_status==1||e.game_status==0?(this.getDataPosession(e.gameId),e.game_status==1&&(await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e}))):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],intervalIdPossesion:null,url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",objectZeroValues:{numberValue:0,numberBarPercent:0}}},computed:{...th("nextGeneral",["gameForAnalysis","seasonId"]),...ed("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getStatsData(e){await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})},async getDataPosession(){try{const r=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=r.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const i=await $c.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const B in i.data.teams)i.data.teams.hasOwnProperty(B)&&(this.arrTeams[B]=i.data.teams[B])}catch(r){return Promise.reject(r)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const r=typeof e=="string"?parseFloat(e):e;return typeof r=="number"&&!isNaN(r)?r%1===0?r:r%1===0?Math.floor(r):r:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,r,i){if(!r.game_id)return this.objectZeroValues;const B=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,D=e[i].accomplished.avgPostGame/B;return e[i].accomplished.avgPostGame?{numberValue:D<1?D*100:D,numberBarPercent:e[i].accomplished.avgPostGame/B}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})},beforeDestroy(){clearInterval(this.intervalIdPossesion)}},jy=e=>(t.pushScopeId("data-v-3aa0c085"),e=e(),t.popScopeId(),e),Ixt={key:0,class:"field-posesion-prominent"},Pxt={key:0,class:"title"},Bxt={class:"info-data-item"},Nxt={class:"item-indicador"},zxt={class:"item-indicador-value"},Oxt={key:0},Fxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Lxt={key:0,class:"inactiveInfo"},Dxt={class:"info-data-item"},Rxt={class:"item-indicador"},Vxt={class:"item-indicador-value"},$xt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),jxt={class:"info-data-item"},Uxt={class:"item-indicador"},Gxt={class:"item-indicador-value"},Hxt={key:0},Wxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),qxt={class:"info-data-item"},Yxt={class:"item-indicador"},Xxt={class:"item-indicador-value"},Zxt=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),Jxt={key:0,class:"inactiveInfo"},Kxt={class:"info-data-item"},Qxt={class:"item-indicador"},e3t={class:"item-indicador-value"},t3t=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),a3t={class:"info-data-item"},n3t={class:"item-indicador"},r3t={class:"item-indicador-value"},i3t=jy(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function o3t(e,r,i,B,D,c){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",Ixt,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",Pxt,"Porcentajes")):t.createCommentVNode("",!0),i.game.game_status==1||i.game.game_status==0||i.game.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",Bxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Nxt,[t.createElementVNode("div",zxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Oxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Fxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),D.areInactiveVisible&&D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",Lxt,[t.createElementVNode("div",Dxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Rxt,[t.createElementVNode("div",Vxt,t.toDisplayString(D.dataPosession.active_time.inactive_time),1),$xt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",jxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Uxt,[t.createElementVNode("div",Gxt,[D.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",Hxt,t.toDisplayString(c.deleteDecimalZero(c.formatNumbers(c.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),Wxt]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[D.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",qxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Yxt,[t.createElementVNode("div",Xxt,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),Zxt]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2),D.areInactiveVisible&&D.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",Jxt,[t.createElementVNode("div",Kxt,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Qxt,[t.createElementVNode("div",e3t,t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),t3t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(D.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",a3t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",n3t,[t.createElementVNode("div",r3t,[D.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(D.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),i3t]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")}," Pos. Rival ",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const s3t=$i(Mxt,[["render",o3t],["__scopeId","data-v-3aa0c085"]]),Jma="",dE={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(r){throw new Error(r)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},AH=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},MH=dE.setup;dE.setup=MH?(e,r)=>(AH(),MH(e,r)):AH;const l3t={key:0,class:"text-left"},c3t=["width","src"],d3t=["checked"],u3t=["width","src"],h3t={key:3,class:"text-right"};function p3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(c.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",l3t,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,c3t)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:r[0]||(r[0]=(...g)=>c.handleSwitchChange&&c.handleSwitchChange(...g)),checked:D.OptionDefault},null,40,d3t),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([c.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,u3t)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",h3t,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const IH=$i(dE,[["render",p3t],["__scopeId","data-v-62d6b055"]]),Kma="";let PH=null;const uE={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)PH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),PH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},BH=()=>{t.useCssVars(e=>({"524d4024":e.colorBackgroundHome+"45","2acdc375":e.colorBackgroundAway+"45","60764af4":e.colorBackgroundHome,"607c6ed6":e.colorBackgroundAway}))},NH=uE.setup;uE.setup=NH?(e,r)=>(BH(),NH(e,r)):BH;const y4=e=>(t.pushScopeId("data-v-ec876074"),e=e(),t.popScopeId(),e),f3t=[y4(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],m3t=y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),g3t=["src"],y3t=y4(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),v3t=y4(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),_3t=["src"],b3t=["src"],x3t={class:"text-container"};function w3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},f3t,2)):t.createCommentVNode("",!0),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),m3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,g3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),y3t,v3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,_3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,b3t),t.createElementVNode("div",x3t,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const k3t=$i(uE,[["render",w3t],["__scopeId","data-v-ec876074"]]),e0a="";let zH=null;const C3t={components:{GSCThumbnailHighlightGameHistoric:k3t},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{lastDataGameUrl:"",dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async fillData(){const e="https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId;if(this.lastDataGameUrl!==e){this.$emit("loading",!0),this.lastDataGameUrl=e;const r=$c.create({headers:{Authorization:`${this.token}`}}),i=await r.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),B=await r.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=B.data.tournament_id;const D=i.data.games.findIndex(g=>g.game_id===this.game.gameId);this.gameInfo=i.data.games[D];const c=await r.get(e);this.item.category=0,this.item.game_id=c.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].score[0]+" - "+c.data.thumbnails[c.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=c.data.thumbnails[c.data.game_id]?c.data.thumbnails[c.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].home_team+".png":"",this.item.logoaway=c.data.thumbnails[c.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+c.data.thumbnails[c.data.game_id].visiting_team+".png":"",this.item.background=c.data.thumbnails[c.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+c.data.thumbnails[c.data.game_id].info_thumbnails.images.background_default_games[0]:"",this.$emit("loading",!1)}},setUpResizeObserver(){if(window.ResizeObserver)zH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),zH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},S3t={class:"highlights-prominent-game",ref:"gamesContainer"},T3t={class:"video-partido-container__highlight"},E3t={key:0,class:"video-partido-container__ribbon"},A3t={key:1,class:"video-partido-container__description"};function M3t(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",S3t,[t.createElementVNode("div",T3t,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(D.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[D.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(D.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),D.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(D.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(D.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",E3t,t.toDisplayString(D.tournamentId!=41?D.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):D.gameInfo.matchday_name=="Matchday 10"?"Final":D.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")}," HIGHLIGHTS DEL ",2),t.createElementVNode("h2",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")}," PARTIDO ",2),D.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",A3t," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(D.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[D.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,"is-live":!0,"can-play-videos":i.canPlayVideos,background:D.item.background,matchday:D.item.match,"season-name":D.item.seasonname,onOnclickPlayVideos:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1})),score:D.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const I3t=$i(C3t,[["render",M3t],["__scopeId","data-v-651fe3fb"]]),t0a="";let OH=null;const hE={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},isLive:{type:Boolean,default:!1},logoHome:{type:String,default:""},game:{type:Object,default:()=>{}},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)OH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),OH.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},FH=()=>{t.useCssVars(e=>({"051a0872":e.colorBackgroundHome+"45","80f208fa":e.colorBackgroundAway+"45","9087fefc":e.colorBackgroundHome,"908e22de":e.colorBackgroundAway}))},LH=hE.setup;hE.setup=LH?(e,r)=>(FH(),LH(e,r)):FH;const Uy=e=>(t.pushScopeId("data-v-84f38fde"),e=e(),t.popScopeId(),e),P3t={key:0,class:"icon-live"},B3t=[Uy(()=>t.createElementVNode("span",{class:"circle-live"},null,-1)),Uy(()=>t.createElementVNode("span",{style:{"margin-left":"3px"}},"LIVE",-1))],N3t=[Uy(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],z3t=Uy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),O3t=["src"],F3t=Uy(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),L3t=Uy(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),D3t=["src"],R3t=["src"],V3t={class:"text-container"};function $3t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(c.thumbnailhighlights)},[i.isLive&&i.game.game_status!=0?(t.openBlock(),t.createElementBlock("div",P3t,B3t)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(c.playbutton),onClick:r[0]||(r[0]=(...g)=>c.onclickPlayVideos&&c.onclickPlayVideos(...g))},N3t,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(c.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(c.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(c.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),z3t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,O3t),t.createElementVNode("div",{class:t.normalizeClass([c.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(c.baselogoright)},null,2),F3t,L3t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(c.teamlogo)},null,10,D3t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(c.logoright)},null,10,R3t),t.createElementVNode("div",V3t,[t.createElementVNode("span",{class:t.normalizeClass(c.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(c.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const j3t=$i(hE,[["render",$3t],["__scopeId","data-v-84f38fde"]]),i0a="";let DH=null;const U3t={components:{GSCThumbnailHighlightGameHistoricLive:j3t},props:{timeLiveHighlightsProminentAndVideo:{type:Number,default:6e4},game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){this.fetchLiveData(e.gameId),e.is_live==1&&(this.intervalidhighlive=setInterval(()=>{this.fetchLiveData(e.gameId)},this.timeLiveHighlightsProminentAndVideo),this.$emit("intervalidhighlive",this.intervalidhighlive))}}},data(){return{printData:[],gameInfo:{},intervalidhighlive:null,informationBestPlaysPlayers:[],informationBestPlaysTeamHome:[],informationBestPlaysTeamAway:[],gamesContainerWidth:0,tournamentId:0,showHighlight:!1,showHighlightGoals:!1,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{async fetchLiveData(){await this.getLiveHighlights()},onclickPlayVideos(e){var r=[];e.type==2?e.data.position_id==1?e.data.category==0?r=[55,324,323,608,39,774,802,52,53,40,54]:r=e.data.category:e.data.category==0?r=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:r=e.data.category:e.type==3?e.data.category==0?r=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:r=e.data.category:e.type==4?r=[12,55,"35_r","54_r"]:e.data.category!=0?r=e.data.category:r=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let B={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:r,gameIdsToFilter:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(B.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",B)},async getLiveHighlights(){const r=await $c.create({headers:{Authorization:`${this.token}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/live/historic/games/"+this.game.gameId);r.data!=""&&(this.showHighlight=r.data==""?!1:r.data.plays.length>0,this.showHighlightGoals=r.data==""?!1:r.data.plays.filter(i=>i[0]===12).length>0,this.item.category=0,this.item.game_id=r.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=r.data.thumbnails[r.data.game_id].score,this.item.backgroundhome=r.data.thumbnails[r.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=r.data.thumbnails[r.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+r.data.thumbnails[r.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+r.data.thumbnails[r.data.game_id].info_thumbnails.images.background_default_games[0])},setUpResizeObserver(){if(window.ResizeObserver)DH=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainerlivehigh.clientWidth}),DH.observe(this.$refs.gamesContainerlivehigh);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},h0=e=>(t.pushScopeId("data-v-7682cbf3"),e=e(),t.popScopeId(),e),G3t={class:"highlights-prominent-game",ref:"gamesContainerlivehigh"},H3t={class:"video-partido-container__highlight"},W3t={class:"video-partido-container__content"},q3t=h0(()=>t.createElementVNode("div",{class:"video-partido-container__ribbon"},"• LIVE",-1)),Y3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS AL",-1)),X3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"MOMENTO",-1)),Z3t=h0(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas más destacadas hasta el momento ",-1)),J3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),K3t=h0(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),Q3t=h0(()=>t.createElementVNode("p",{class:"video-partido-container__description"},"Las jugadas más destacadas del partido",-1)),ewt=h0(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),twt={class:"video-partido-container__image"};function awt(e,r,i,B,D,c){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoricLive");return t.openBlock(),t.createElementBlock("div",G3t,[t.withDirectives(t.createElementVNode("div",H3t,[t.createElementVNode("div",W3t,[i.game.game_status!=0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[q3t,Y3t,X3t,Z3t],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[J3t,K3t,Q3t],64)),t.createElementVNode("button",{class:"video-partido-container__button",onClick:r[0]||(r[0]=a=>c.onclickPlayVideos({data:D.item,type:1}))},[ewt,t.createTextVNode(" Reproducir ahora ")])]),t.createElementVNode("div",twt,[t.createVNode(g,{"is-live":!0,game:i.game,"color-background-home":D.item.backgroundhome,"color-background-away":D.item.backgroundaway,"logo-home":D.item.logohome,"logo-away":D.item.logoaway,background:D.item.background,onOnclickPlayVideos:r[1]||(r[1]=a=>c.onclickPlayVideos({data:D.item,type:1})),matchday:D.item.match,"season-name":D.item.seasonname,score:D.item.score},null,8,["game","color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])])],512),[[t.vShow,i.canPlayVideos&&D.showHighlight]])],512)}const nwt=$i(U3t,[["render",awt],["__scopeId","data-v-7682cbf3"]]),pE="/play-icn.svg",o0a="",rwt={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function iwt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",c.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",c.showTooltip]),onClick:r[1]||(r[1]=(...g)=>c.tooltipClick&&c.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:r[0]||(r[0]=(...g)=>c.closeClick&&c.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const owt=$i(rwt,[["render",iwt],["__scopeId","data-v-b5f07af8"]]),s0a="",swt=["id"],lwt={class:"game-event__minute"},cwt={class:"game-event__icon"},dwt=["src"],uwt="/images/events/",hwt=$i({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),D=t.computed(()=>{let g="";return i.gameEvent.category_id===18?g="icn-tiros-de-esquina.svg":i.gameEvent.category_id===20?g="icn-tiro-a-porteria.svg":i.gameEvent.category_id===10?g="icn-cambio.svg":i.gameEvent.category_id===21?g="icn-falta.svg":i.gameEvent.category_id===27?g="atajada.svg":i.gameEvent.category_id===17?g="fuera-de-lugar.svg":i.gameEvent.category_id===4||i.gameEvent.category_id===13||i.gameEvent.category_id===14||i.gameEvent.category_id===16||i.gameEvent.category_id===6&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===5&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===1&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===2&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===3&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===7&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===12&&i.gameEvent.event_type_id===1?g="gol.svg":i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?g="var.png":i.gameEvent.category_id===28?g="tiempo-agregado.svg":i.gameEvent.category_id===26?g="jugada-peligrosa.svg":i.gameEvent.category_id===22?g="penal-marcado.svg":i.gameEvent.category_id===15||i.gameEvent.category_id===23?g="penal-fallado.svg":i.gameEvent.category_id===8?g="icn-tarjeta-amarilla.svg":i.gameEvent.category_id===9?g="icn-tarjeta-roja.svg":g="generic.svg",`${uwt}${g}`});function c(){r("click-event",i.gameEvent)}return(g,a)=>(t.openBlock(),t.createElementBlock("div",{id:i.gameEvent.play_id,class:"game-event",onClick:c,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",lwt,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",cwt,[t.createElementVNode("img",{src:D.value},null,8,dwt)])],12,swt))}},[["__scopeId","data-v-f972a06c"]]),c0a="",pwt=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),fwt={class:"events-line"},mwt={class:"events-line__events"},gwt=pwt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),ywt=$i({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:r}){function i(B){r("click-event",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",fwt,[t.createVNode(t.unref(Wv),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",mwt,[gwt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,c=>(t.openBlock(),t.createBlock(hwt,{key:c.id,"game-event":c,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),u0a="",y_=e=>(t.pushScopeId("data-v-510b64d7"),e=e(),t.popScopeId(),e),vwt={class:"tooltip-data"},_wt=["src"],bwt=y_(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),xwt=y_(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),wwt={class:"game-events__team-logo"},kwt=["src"],Cwt={class:"game-events__event-info"},Swt={key:0,class:"game-events__event-info__line"},Twt={key:1,class:"game-events__event-info__info"},Ewt={class:"game-events__event-info__info__player-photo"},Awt={key:0,class:"game-events__event-info__info__player-photo__img"},Mwt=["src"],Iwt={class:"game-events__event-info__info__event-name"},Pwt={class:"game-events__event-info__info__player-name"},Bwt=[y_(()=>t.createElementVNode("img",{src:pE,alt:""},null,-1))],Nwt=y_(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),zwt={class:"game-events__events"},Owt={class:"game-events__team-logo"},Fwt=["src"],Lwt={class:"game-events__event-info"},Dwt={key:0,class:"game-events__event-info__line"},Rwt={key:1,class:"game-events__event-info__info"},Vwt={class:"game-events__event-info__info__player-photo"},$wt={key:0,class:"game-events__event-info__info__player-photo__img"},jwt=["src"],Uwt={class:"game-events__event-info__info__event-name"},Gwt={class:"game-events__event-info__info__player-name"},Hwt=[y_(()=>t.createElementVNode("img",{src:pE,alt:""},null,-1))],Wwt="https://11rcgkydx3.execute-api.us-east-2.amazonaws.com/prod/games/",qwt=$i({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["play-video"],setup(e,{emit:r}){const i=e;let B=null,D=0;const c=t.ref([]),g=t.ref(new Map),a=t.ref(""),y=t.ref(null),f=t.ref({visible:!1,link:""}),n=t.ref(new Set),v=t.ref(0),_=t.computed(()=>i.game.is_live||i.game.game_status===0);t.watch(()=>i.game,(w,x)=>{w&&w.gameId!==D?(n.value.clear(),D=w.gameId,o(),l(w.gameId,w.is_live&&w.game_status===4)):w&&w.is_live&&(!x||!x.is_live)?l(w.gameId,!0):w&&!w.is_live&&x.is_live&&o()},{deep:!0,immediate:!0}),t.watch(()=>a.value,(w,x)=>{if(w!==x){const S=g.value.get(x),C=g.value.get(w);if(S&&(S.isSelected=!1),C){if(!C.playerShortName){const[T,k]=C.player_name.split(","),A=T.split(" ");let E="";for(const M of A)if(E+=` ${M}`,M.length>3)break;C.playerShortName=k&&T?`${k.trim().charAt(0)}.${E}`:""}C.isSelected=!0,y.value=C}}});function p(w){B=setInterval(()=>{l(w)},1e3*60*i.gameEventsIntervalMinutes)}async function l(w,x=!1){try{let S=await d(w),C=!1;w!==v.value&&(c.value=[],g.value=new Map,a.value="",n.value.clear(),v.value=w);let T=S.filter(k=>{const A=n.value.has(k.play_id);return A||n.value.add(k.play_id),!A});T&&(T=T.reduce((k,A)=>(C=A.game_finished,A.team_id&&(A.isHomeTeam=A.team_id===i.game.homeTeam.team_id,k.push(A),g.value.set(A.play_id,A)),k),[]),s(T).forEach(k=>{_.value?c.value.unshift(k):c.value.push(k)})),(_.value||!a.value&&c.value.length)&&(a.value=c.value[0].play_id),x&&!C?p(w):C&&o()}catch(S){console.error(S)}}function o(){B&&(clearInterval(B),B=null)}function s(w){return w.sort((x,S)=>u(x.matchlapse)+Number(x.minute)-(u(S.matchlapse)+Number(S.minute)))}function u(w){let x=0;switch(w){case 1:x=0;break;case 2:x=45;break;case 3:x=90;break;case 4:x=105;break;case 5:x=120;break}return x}async function d(w){try{const S=(await $c.get(`${Wwt}${w}/timeline`,{headers:{Authorization:i.token}})).data;return S?S.plays||[]:[]}catch(x){throw new Error(x)}}function h(w){a.value=w.play_id}function m(){i.canPlayVideos&&y.value.play_id&&r("play-video",{categoryId:y.value.main_category_id,playId:y.value.play_id})}function b(){f.value.visible=!1,f.value.link=""}return t.onBeforeUnmount(()=>{o()}),(w,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(owt,{data:f.value,onClose:b},{default:t.withCtx(()=>[t.createElementVNode("div",vwt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:f.value.link,format:"video/mp4"},null,8,_wt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[bwt,xwt,t.createElementVNode("div",wwt,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,kwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Cwt,[y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Swt)):t.createCommentVNode("",!0),y.value&&y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Twt,[t.createElementVNode("div",Ewt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",Awt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,Mwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Iwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Pwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},Bwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Nwt,t.createElementVNode("div",zwt,[t.createVNode(ywt,{"game-events":c.value,onClickEvent:h},null,8,["game-events"])]),t.createElementVNode("div",Owt,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,Fwt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Lwt,[y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Dwt)):t.createCommentVNode("",!0),y.value&&!y.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Rwt,[t.createElementVNode("div",Vwt,[y.value.player_id?(t.openBlock(),t.createElementBlock("div",$wt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${y.value.player_id}.png`,alt:""},null,8,jwt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Uwt,t.toDisplayString(y.value.event_type_id===1?y.value.event_type_name:y.value.category_name),1),t.createElementVNode("div",Gwt," | "+t.toDisplayString(y.value.playerShortName),1),e.canPlayVideos&&y.value.play_id?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:m},Hwt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-510b64d7"]]),m0a="",Ywt={class:"toggle-buttons__background"},Xwt=["onClick"],Zwt={key:0,class:"toggle-buttons__button__img"},Jwt=["src"],v4=$i({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(g=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,a)=>{g!==a&&r("change",{index:g,button:i.buttons[g]})});function c(g){B.value=g}return(g,a)=>(t.openBlock(),t.createElementBlock("div",Ywt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f,right:y.img&&f>0}]),onClick:n=>c(f)},[y.img?(t.openBlock(),t.createElementBlock("div",Zwt,[t.createElementVNode("img",{src:y.img,alt:""},null,8,Jwt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(y.text||y),1)],10,Xwt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),y0a="",Kwt="/images/cancha-horizontal-raw.jpg",v0a="",fE=e=>(t.pushScopeId("data-v-cb12065f"),e=e(),t.popScopeId(),e),Qwt={class:"tooltip__content"},e5t={key:0,class:"tooltip__content__category"},t5t={class:"tooltip__content__player"},a5t={class:"tooltip__content__player__name"},n5t={class:"tooltip__content__player__photo"},r5t=["src"],i5t={class:"tooltip__content__minute"},o5t={key:1,class:"tooltip__content__game"},s5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__game__name"},"Partido:",-1)),l5t={class:"tooltip__content__game__round-abbreviation"},c5t={class:"tooltip__content__game__logo"},d5t=["src"],u5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__game__vs"},"VS",-1)),h5t={class:"tooltip__content__game__logo"},p5t=["src"],f5t={key:2,class:"tooltip__content__team"},m5t=fE(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),g5t={class:"tooltip__content__team__logo"},y5t=["src"],v5t=$i({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),D=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),c=t.computed(()=>{const[a]=i.event.momentOfPlay.split(":");return`${Number(a)}'`});function g(){r("close")}return(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:g,style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Qwt,[e.event.categoryName?(t.openBlock(),t.createElementBlock("div",e5t,t.toDisplayString(e.event.categoryName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",t5t,[t.createElementVNode("div",a5t,t.toDisplayString(D.value),1),t.createElementVNode("div",n5t,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,r5t)])]),t.createElementVNode("div",i5t,"Minuto: "+t.toDisplayString(c.value),1),e.event.game?(t.openBlock(),t.createElementBlock("div",o5t,[s5t,t.createElementVNode("div",l5t,t.toDisplayString(e.event.game.roundAbbreviation),1),t.createElementVNode("div",c5t,[t.createElementVNode("img",{src:e.event.game.homeTeam.logo,alt:""},null,8,d5t)]),u5t,t.createElementVNode("div",h5t,[t.createElementVNode("img",{src:e.event.game.awayTeam.logo,alt:""},null,8,p5t)])])):(t.openBlock(),t.createElementBlock("div",f5t,[m5t,t.createElementVNode("div",g5t,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,y5t)])]))])],4))}},[["__scopeId","data-v-cb12065f"]]),_5t=["id"],b5t=["fill"],x5t=["id"],w5t=["fill"],k5t=["stroke-dasharray","x1","y1","x2","y2","marker-end"],C5t=["x","y","stroke-width","fill","stroke"],S5t=["x","y"],T5t={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>{const v=[];if(r.eventConnection.hasConnectionPath){const _=r.eventConnection.x1===r.eventConnection.x2&&r.eventConnection.y1===r.eventConnection.y2?1:2;let p=a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1);const l=y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1);let o=0,s=0;_===2&&(o=a(r.eventConnection.y2),s=y(r.eventConnection.x2));const u=a(r.eventConnection.y3),d=y(r.eventConnection.x3);_===1?v.push({x1:l,y1:p,x2:d,y2:u}):(v.push({x1:l,y1:p,x2:s,y2:o}),v.push({x1:s,y1:o,x2:d,y2:u}))}return v}),B=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected?1:.1:1),D=t.computed(()=>r.mainEventIdSelected!==0?r.eventConnection.relatedPlayId===r.mainEventIdSelected:!0),c=t.computed(()=>a(r.eventConnection.previousEvent?r.eventConnection.previousEvent.y3:r.eventConnection.y1)),g=t.computed(()=>y(r.eventConnection.previousEvent?r.eventConnection.previousEvent.x3:r.eventConnection.x1));function a(v){return(1-v)*100}function y(v){return v*100}function f(v){Xh.emit("mouse-over-event",{mouseEvent:v,eventConnection:r.eventConnection,position:{x:g.value,y:c.value}})}function n(){Xh.emit("mouse-leave-event",{mainEventId:r.eventConnection.relatedPlayId,eventId:r.eventConnection.playId})}return(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,b5t)],12,_5t),[[t.vShow,D.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:B.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,w5t)],12,x5t),[[t.vShow,D.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.x1&&p.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${l}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:B.value}),"stroke-dasharray":l===0&&i.value.length===2?"none":"5,5",x1:`${p.x1}%`,y1:`${p.y1}%`,x2:`${p.x2}%`,y2:`${p.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&l===i.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,k5t)),[[t.vShow,D.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:f,onMouseleave:n,style:t.normalizeStyle({cursor:"pointer",opacity:B.value})},[t.createElementVNode("rect",{x:`${g.value}%`,y:`${c.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:B.value}),rx:"14",ry:"14"},null,12,C5t),t.createElementVNode("text",{x:`${g.value}%`,y:`${c.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:B.value})},t.toDisplayString(e.eventConnection.player?e.eventConnection.player.jersey:""),13,S5t)],36),[[t.vShow,D.value]])],64))}},E5t={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},setup(e){const r=e,i=t.computed(()=>r.eventConnections.getEventsConnectionsByEventType()),B=t.computed(()=>r.eventConnections.getTeamColor());return(D,c)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(g,a)=>(t.openBlock(),t.createBlock(T5t,{key:g.id,color:B.value,"is-last-event":a===i.value.length-1,"event-connection":g,"main-event-id-selected":e.mainEventIdSelected},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},b0a="",A5t=e=>(t.pushScopeId("data-v-bc874f69"),e=e(),t.popScopeId(),e),M5t={class:"soccer-chalkboard"},I5t={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},P5t=A5t(()=>t.createElementVNode("img",{src:Kwt,alt:""},null,-1)),B5t={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},N5t=$i({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const i=ise()?0:1e3;Xh.on("mouse-over-time-event",_=>{y(_),setTimeout(()=>{y(_)},i)}),Xh.on("mouse-leave-time-event",_=>{setTimeout(()=>{c.value==_&&!B.value&&y(0)},i)}),Xh.on("mouse-over-event",_=>{n(_)}),Xh.on("mouse-leave-event",_=>{setTimeout(()=>{_.eventId===g.value&&v()},i)});const B=t.ref(!1),D=t.ref({}),c=t.ref(0),g=t.ref(0),a=t.ref({x:0,y:0});function y(_){c.value=_}function f(){B.value=!1}function n(_){const l=document.getElementById("soccerChalkboardField");if(l){const o=l.getBoundingClientRect(),s=_.position.x/100*o.width+14,u=_.position.y/100*o.height+14,d=s+170>o.width?o.width-170:s,h=u;c.value=_.eventConnection.relatedPlayId,g.value=_.eventConnection.playId,D.value=_.eventConnection,a.value={x:`${d}px`,y:`${h}px`},B.value=!0}}function v(){B.value=!1,c.value=0}return(_,p)=>(t.openBlock(),t.createElementBlock("div",M5t,[t.createElementVNode("div",I5t,[P5t,(t.openBlock(),t.createElementBlock("svg",B5t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&l.hasTeam(e.teamsSelected)||e.listType==="players"&&l.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(E5t,{key:o,"event-connections":l,"main-event-id-selected":c.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),B.value?(t.openBlock(),t.createBlock(v5t,{key:0,position:a.value,event:D.value,onClose:f},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bc874f69"]]),w0a="",RH=e=>(t.pushScopeId("data-v-d484e9ef"),e=e(),t.popScopeId(),e),z5t={class:"events-timeline"},O5t=RH(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),F5t=["onMouseover","onMouseleave"],L5t=["id"],D5t=[RH(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],R5t=["fill"],V5t=["mask"],$5t=["stroke"],j5t=$i({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const r=e,i=["0'","45'","90'"],B=t.computed(()=>r.eventsConnections.reduce((g,a)=>{const y={minute:"0'",left:"0%",color:a.getTeamColor(),fontColor:a.getTeamFontColor(),playId:a.mainPlay.playId,playerId:a.mainPlay.playerId,teamId:a.mainPlay.teamId,relatedPlayId:a.relatedPlayId},[f]=a.mainPlay.momentOfPlay.split(":"),n=parseInt(f);return n>=90?(y.minute=`${n}'`,y.left="100%"):(y.minute=`${n}'`,y.left=`${n/90*100}%`),g.push(y),g},[]));function D(g){Xh.emit("mouse-over-time-event",g.playId)}function c(g){Xh.emit("mouse-leave-time-event",g.playId)}return(g,a)=>(t.openBlock(),t.createElementBlock("div",z5t,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(y,f)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:f},t.toDisplayString(y),1)),64)),O5t,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.value,(y,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(y.teamId)||e.listType==="players"&&e.playersSelected.has(y.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:f,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:y.left,cursor:"pointer"}),onMouseover:n=>D(y),onMouseleave:n=>c(y)},[t.createElementVNode("mask",{id:y.playId.toString(),fill:"white"},D5t,8,L5t),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:y.color},null,8,R5t),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${y.playId})`},null,8,V5t),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:y.fontColor,"stroke-width":"0.7"},t.toDisplayString(y.minute),9,$5t)])],44,F5t)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-d484e9ef"]]),hd={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},U5t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},G5t={key:1},H5t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W5t=["fill"],q5t={key:0,class:"checkbox__teams"},Y5t={class:"checkbox__teams__logo"},X5t=["src"],Z5t={class:"checkbox__teams__logo"},J5t=["src"],K5t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",G5t,[(t.openBlock(),t.createElementBlock("svg",H5t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,W5t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",q5t,[t.createElementVNode("div",Y5t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,X5t)]),t.createElementVNode("div",Z5t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,J5t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},Is=U5t(K5t,[["__scopeId","data-v-bcf3bcc6"]]),ml=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Q5t={class:"container"},e4t={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t4t=["fill"],a4t={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n4t=["fill"],r4t={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(r=>({"563e5242":e.width,a529e9a4:e.height})),(r,i)=>(t.openBlock(),t.createElementBlock("div",Q5t,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",e4t,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,t4t)])):(t.openBlock(),t.createElementBlock("svg",a4t,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,n4t)]))]))}},k1=ml(r4t,[["__scopeId","data-v-166b6226"]]),v_=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),i4t={class:"productivity"},o4t={class:"productivity__body__offensive"},s4t={class:"productivity__body__title"},l4t={class:"productivity__body__title__info"},c4t={class:"number-of-categories"},d4t={class:"productivity__body__categories"},u4t={class:"productivity__body__defensive-possession"},h4t={class:"productivity__body__title"},p4t={class:"productivity__body__title__info"},f4t={class:"number-of-categories"},m4t={class:"productivity__body__categories"},g4t={class:"productivity__body__title"},y4t={class:"productivity__body__title__info"},v4t={class:"number-of-categories"},_4t={class:"productivity__body__categories"},b4t={class:"productivity__footer"},x4t={class:"productivity__footer__offenses"},w4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),k4t={class:"productivity__footer__offenses__table"},C4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),S4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},T4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),E4t={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},A4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),M4t={class:"productivity__footer__offenses__table__row has-padding"},I4t=v_(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),P4t={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.ref(!1),c=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),a=t.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),y=t.computed(()=>i.productivityCategories.offensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),f=t.computed(()=>i.productivityCategories.defensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),n=t.computed(()=>i.productivityCategories.possession.categories.reduce((p,l)=>(l.isSelected&&p++,p),0));t.watch(()=>i.productivityCategories,p=>{g.value.areYellowCardsSelected=p.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=p.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=p.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(g,p=>{r("update:offensesConditions",p)},{deep:!0,immediate:!0});function v(p,l){l.isSelected=p,setTimeout(()=>{l.priority=i.numberOfCategoriesSelected},10)}function _(p){p==="offensive"?B.value=!B.value:p==="defensive"?D.value=!D.value:p==="possession"&&(c.value=!c.value)}return(p,l)=>(t.openBlock(),t.createElementBlock("div",i4t,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",o4t,[t.createElementVNode("div",s4t,[t.createElementVNode("div",l4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",c4t,"("+t.toDisplayString(y.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[0]||(l[0]=o=>_("offensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",d4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]])]),t.createElementVNode("div",u4t,[t.createElementVNode("div",h4t,[t.createElementVNode("div",p4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",f4t,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[1]||(l[1]=o=>_("defensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":D.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",m4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||D.value]]),t.createElementVNode("div",g4t,[t.createElementVNode("div",y4t,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",v4t,"("+t.toDisplayString(n.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[2]||(l[2]=o=>_("possession"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":c.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",_4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":s=>v(s,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||c.value]])])],4),t.createElementVNode("div",b4t,[t.createElementVNode("div",x4t,[w4t,t.createElementVNode("div",k4t,[C4t,t.createElementVNode("div",S4t,[T4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[3]||(l[3]=o=>g.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[4]||(l[4]=o=>g.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",E4t,[A4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[5]||(l[5]=o=>g.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[6]||(l[6]=o=>g.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",M4t,[I4t,t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[7]||(l[7]=o=>g.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[8]||(l[8]=o=>g.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},B4t=ml(P4t,[["__scopeId","data-v-4df743e3"]]),_4=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),N4t={class:"details__header"},z4t=_4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),O4t={class:"details__header__checkbox"},F4t={class:"details__body"},L4t={class:"details__body__playing-as"},D4t=["onClick"],R4t={class:"details__header"},V4t=_4(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),$4t={class:"details__header__checkbox"},j4t={class:"details__body"},U4t=_4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),G4t={class:"details__body__game-section"},H4t=["onClick"],W4t={class:"details__body"},q4t=_4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Y4t={class:"details__body__game-section"},X4t=["onClick"],Z4t={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},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}]},fontFamily:{type:String,default:"'Poppins-Regular'"},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 r=e;t.useCssVars(n=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.withDirectives(t.createElementVNode("div",N4t,[z4t,t.createElementVNode("div",O4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":i.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",F4t,[t.createElementVNode("div",L4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,D4t))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",R4t,[V4t,t.createElementVNode("div",$4t,[t.createVNode(t.unref(Is),{label:"Todos",fontFamily:e.fontFamily,"model-value":B.value,"onUpdate:modelValue":f},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",j4t,[U4t,t.createElementVNode("div",G4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,H4t))),128))])]),t.createElementVNode("div",W4t,[q4t,t.createElementVNode("div",Y4t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,X4t))),128))])])],4))}},J4t=ml(Z4t,[["__scopeId","data-v-9a3af80d"]]),K4t={class:"scroll-container"},Q4t={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(r=>({"6aab424d":e.height,39848040:e.width})),(r,i)=>(t.openBlock(),t.createElementBlock("div",K4t,[t.renderSlot(r.$slots,"default",{},void 0,!0)]))}},VH=ml(Q4t,[["__scopeId","data-v-218f5976"]]),e6t={class:"tournaments"},t6t={class:"tournaments__tournament"},a6t={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.tournaments.filter(g=>g.isSelected).length);t.watch(()=>i.tournaments,g=>{const a=g.filter(y=>y.isSelected);B.value=a.length===g.length,r("change-filters-selected",a.length),r("update:filters",i.tournaments)},{immediate:!0,deep:!0});function c(g){i.tournaments.forEach((a,y)=>{a.isSelected=g||(y!==0?g:!0)})}return(g,a)=>(t.openBlock(),t.createElementBlock("div",e6t,[t.createVNode(VH,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",t6t,[t.createVNode(t.unref(Is),{"model-value":B.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":c},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,y=>(t.openBlock(),t.createElementBlock("div",{key:y.id||y._id,class:"tournaments__tournament"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},n6t=ml(a6t,[["__scopeId","data-v-590d8ab3"]]),er={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},r6t={key:0,class:"plays-golstats__placeholder"},i6t=["onClick"],o6t={key:0,class:"plays-golstats__item__value"},s6t={class:"plays-golstats__item__text"},l6t={class:"plays-golstats__item__svg"},c6t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d6t=["fill"],u6t={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--grid-template-columns":i.type===er.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${i.svgWidth}px`,"--svg-height":`${i.svgHeight}px`}));t.watch(()=>i.categories,c=>{const g=c.filter(a=>a.isSelected);r("update:filters",g)},{immediate:!0,deep:!0});function D(c){c.isSelected||(i.categories.forEach(g=>{g.isSelected=!1}),c.isSelected=!0,i.type===er.GOLSTATS&&r("change-filters-selected",c.value))}return(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(B.value)},[t.createVNode(VH,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(er).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",r6t," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(a,y)=>(t.openBlock(),t.createElementBlock("div",{key:`k${y}`,class:"plays-golstats__item",onClick:f=>D(a)},[e.type===t.unref(er).GOLSTATS?(t.openBlock(),t.createElementBlock("div",o6t,t.toDisplayString(a.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",s6t,t.toDisplayString(a.name),1),t.createElementVNode("div",l6t,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",c6t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,d6t)],512)),[[t.vShow,a.isSelected]])])],8,i6t))),128))]),_:1},8,["height"])],4))}},$H=ml(u6t,[["__scopeId","data-v-af3c1673"]]),h6t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},mE={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const r=e.which?e.which:e.keyCode();r>31&&(r<48||r>57)&&e.preventDefault()}}}},jH=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},UH=mE.setup;mE.setup=UH?(e,r)=>(jH(),UH(e,r)):jH;const p6t={class:"input-container"},f6t=["type","placeholder","value"],m6t={class:"right-text"};function g6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",p6t,[t.createElementVNode("input",{type:i.inputType,placeholder:i.placeholder,value:i.value,style:t.normalizeStyle(c.inputStyle),onKeydown:r[0]||(r[0]=(...g)=>c.onKeyDown&&c.onKeyDown(...g)),onInput:r[1]||(r[1]=(...g)=>c.updateInputValue&&c.updateInputValue(...g))},null,44,f6t),t.createElementVNode("div",m6t,t.toDisplayString(i.textRight),1)])}const GH=h6t(mE,[["render",g6t],["__scopeId","data-v-b73049e7"]]),y6t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},gE={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},HH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},WH=gE.setup;gE.setup=WH?(e,r)=>(HH(),WH(e,r)):HH;const v6t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),_6t=["src"],b6t={key:1,class:"text"},x6t=["src"],w6t={class:"stats"},k6t=v6t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),C6t={class:"numstats"},S6t={class:"leyend"};function T6t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,_6t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",b6t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,x6t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",w6t,[k6t,t.createElementVNode("div",C6t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",S6t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const E6t=y6t(gE,[["render",T6t],["__scopeId","data-v-fb269a1e"]]),A6t={class:"gsc-dropdown__main-container__item-selected"},M6t=["height","width"],I6t=["stroke"],P6t={class:"gsc-dropdown__items-container"},B6t=["onClick"],N6t={key:0,class:"gsc-dropdown__items-footer"},p0={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref({}),D=t.ref(null),c=t.ref(i.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>i.items,(p,l)=>{if(!i.modelValue&&(!i.onlyFirstTime||!l||!l.length)&&p&&p.length){if(i.defaultItemByProp){const o=i.items.findIndex(s=>s[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(c.value=o,B.value=p[o]):(c.value=0,B.value=p[0])}else B.value=p[i.defaultItemByIndex];r("input",B.value)}},{immediate:!0}),t.watch(()=>i.modelValue,p=>{if(p){const l=i.items.findIndex(o=>typeof p=="object"?JSON.stringify(o)===JSON.stringify(p):o===p);l!==-1&&(c.value=l,B.value=i.items[l],r("update:modelValue",B.value))}},{immediate:!0});const a=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),y=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function f(){i.isDisabled||(g.value=!g.value)}function n(p){D.value&&!D.value.contains(p.target)&&(g.value=!1)}function v(p,l){i.isMultipleOption?c.value=-1:(c.value=l,g.value=!1),B.value=p,r("input",B.value),r("update:modelValue",B.value)}function _(){g.value=!1,r("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(p,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:D,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",A6t,[t.renderSlot(p.$slots,"default",{selectedItem:B.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(y.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,I6t)],8,M6t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",P6t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,s)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:s===c.value}]),key:s,onClick:u=>v(o,s)},[t.renderSlot(p.$slots,"availableItem",{item:o})],10,B6t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",N6t,[t.createVNode(t.unref(E6t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},__={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},Gy=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),z6t={class:"universe"},O6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),F6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),L6t={class:"universe__inputs"},D6t={class:"universe__inputs__input"},R6t={class:"universe__inputs__checkbox"},V6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),$6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),j6t={class:"universe__inputs"},U6t={class:"universe__inputs__input"},G6t={class:"universe__inputs__checkbox"},H6t=Gy(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),W6t=Gy(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),q6t={class:"universe__dropdown"},Y6t={class:"selected-item"},qH=11,X6t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!1),c=t.ref(!1),g=t.ref(!1),a=t.ref({statistics:{}});t.watch(()=>B.universeFilters,p=>{a.value={...p,lastMonths:p.selectedMonth?p.selectedMonth:p.lastMonths[qH],statistics:{...p.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>a,p=>{D.value=!p.value.minutesPlayed||Number(p.value.minutesPlayed)===0,c.value=!p.value.percentMinutesPlayed||Number(p.value.percentMinutesPlayed)===0,g.value=!p.value.lastMonths||Number(p.value.lastMonths)===0,i("update:universeFilters",p)},{deep:!0,immediate:!0});function y(p){a.value.minutesPlayed=p}function f(p){a.value.percentMinutesPlayed=p}function n(p,l){switch(l){case"minutes":D.value=p,p&&(a.value.minutesPlayed=0);break;case"percent":c.value=p,p&&(a.value.percentMinutesPlayed=0);break;case"months":g.value=p,p&&(a.value.lastMonths=0);break}}function v(){a.value={...B.universeFilters,lastMonths:B.universeFilters.lastMonths[qH],statistics:{...B.universeFilters.statistics}}}function _(p){a.value.lastMonths=p}return r({resetFilters:v}),(p,l)=>(t.openBlock(),t.createElementBlock("div",z6t,[O6t,F6t,t.createElementVNode("div",L6t,[t.createElementVNode("div",D6t,[t.createVNode(t.unref(GH),{value:a.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:y},null,8,["value"])]),t.createElementVNode("div",R6t,[t.createVNode(t.unref(Is),{modelValue:D.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[0]||(l[0]=o=>n(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),V6t,$6t,t.createElementVNode("div",j6t,[t.createElementVNode("div",U6t,[t.createVNode(t.unref(GH),{value:a.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:f},null,8,["value"])]),t.createElementVNode("div",G6t,[t.createVNode(t.unref(Is),{modelValue:c.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[1]||(l[1]=o=>n(o,"percent"))},null,8,["modelValue","fontFamily"])])]),H6t,W6t,t.createElementVNode("div",q6t,[t.createVNode(t.unref(p0),t.mergeProps(t.unref(__),{items:e.universeFilters.lastMonths,"model-value":a.value.lastMonths,onInput:_}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",Y6t,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},Z6t=ml(X6t,[["__scopeId","data-v-b1fc2fa6"]]),YH=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},J6t={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],r=this.min===void 0?0:this.min,i=e.length?e.length-1:100,B=this.max===void 0?i:this.max,D=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(D=1);let c=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(c=e.length-2),B<=r)throw new Error("Invalid props min or max");if(D>c)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,a=g%this.step;return a&&(g=g+this.step-a),{valueMin:D<r?r:D,valueMax:c>B?B:c,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let r=parseFloat(e.target.value);r<=this.valueMax-this.rangeMarginValue&&r>=this.minimum?this.valueMin=r:e.target.value=this.valueMin},onInputMaxChange(e){let r=parseFloat(e.target.value);r>=this.valueMin+this.rangeMarginValue&&r<=this.maximum?this.valueMax=r:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.minimum?B=this.minimum:B>this.valueMax-this.rangeMarginValue&&(B=this.valueMax-this.rangeMarginValue),this.valueMin=B},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let r=e.clientX;e.type==="touchmove"&&(r=e.touches[0].clientX);let i=(r-this.startX)/this.barBox.width,B=this.barValue+(this.maximum-this.minimum)*i,D=B%this.step;B-=D,B<this.valueMin+this.rangeMarginValue?B=this.valueMin+this.rangeMarginValue:B>this.maximum&&(B=this.maximum),this.valueMax=B},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let r=this.step;e.deltaY<0&&(r=-r),e.shiftKey&&e.ctrlKey?this.valueMin+r>=this.minimum&&this.valueMax+r<=this.maximum&&(this.valueMin=this.valueMin+r,this.valueMax=this.valueMax+r):e.ctrlKey?(r=this.valueMax+r,r<this.valueMin+this.rangeMarginValue?r=this.valueMin+this.rangeMarginValue:r>this.maximum&&(r=this.maximum),this.valueMax=r):e.shiftKey&&(r=this.valueMin+r,r<this.minimum?r=this.minimum:r>this.valueMax-this.rangeMarginValue&&(r=this.valueMax-this.rangeMarginValue),this.valueMin=r)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let r={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",r)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],r=e.length?e.length-1:100;return this.max===void 0?r:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},K6t={class:"bar"},Q6t=["min","max","step","value"],e8t={class:"caption"},t8t={class:"min-caption"},a8t={class:"bar-inner"},n8t=["min","max","step","value"],r8t={class:"caption"},i8t={class:"max-caption"},o8t={key:0,class:"ruler"},s8t={key:1,class:"sub-ruler"},l8t={key:2,class:"labels"};function c8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.baseClassName,D.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:r[10]||(r[10]=t.withModifiers((...g)=>c.onMouseWheel&&c.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",K6t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:c.barMin+"%"}),onClick:r[0]||(r[0]=(...g)=>c.onBarLeftClick&&c.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMin,onInput:r[1]||(r[1]=t.withModifiers((...g)=>c.onInputMinChange&&c.onInputMinChange(...g),["stop","prevent"]))},null,40,Q6t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:r[2]||(r[2]=(...g)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...g)),onTouchstart:r[3]||(r[3]=(...g)=>c.onLeftThumbMousedown&&c.onLeftThumbMousedown(...g))},[t.createElementVNode("div",e8t,[t.createElementVNode("span",t8t,t.toDisplayString(i.minCaption||c.barMinVal),1)])],32),t.createElementVNode("div",a8t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:r[4]||(r[4]=(...g)=>c.onInnerBarLeftClick&&c.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:r[5]||(r[5]=(...g)=>c.onInnerBarRightClick&&c.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:c.minimum,max:c.maximum,step:i.step,value:D.valueMax,onInput:r[6]||(r[6]=t.withModifiers((...g)=>c.onInputMaxChange&&c.onInputMaxChange(...g),["stop","prevent"]))},null,40,n8t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:r[7]||(r[7]=(...g)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...g)),onTouchstart:r[8]||(r[8]=(...g)=>c.onRightThumbMousedown&&c.onRightThumbMousedown(...g))},[t.createElementVNode("div",r8t,[t.createElementVNode("span",i8t,t.toDisplayString(i.maxCaption||c.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:c.barMax+"%"}),onClick:r[9]||(r[9]=(...g)=>c.onBarRightClick&&c.onBarRightClick(...g))},null,4)]),i.ruler?(t.openBlock(),t.createElementBlock("div",o8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),c.subStepCount?(t.openBlock(),t.createElementBlock("div",s8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),i.label?(t.openBlock(),t.createElementBlock("div",l8t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const d8t=YH(J6t,[["render",c8t]]),yE={components:{MultiRangeSlider:d8t},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},XH=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},ZH=yE.setup;yE.setup=ZH?(e,r)=>(XH(),ZH(e,r)):XH;const u8t={class:"center"},h8t={class:"bar-ref"},p8t={class:"bar-ref-element-left"},f8t={class:"bar-ref-element-right"};function m8t(e,r,i,B,D,c){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(c.customStyle)},[t.createElementVNode("div",u8t,[t.createElementVNode("div",h8t,[t.createElementVNode("div",p8t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.minValueLocal)+t.toDisplayString(i.minSuffix),5)]),t.createElementVNode("div",f8t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(c.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(c.customStyleValue)},t.toDisplayString(D.maxValueLocal)+t.toDisplayString(i.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:i.minLimit,max:i.maxLimit,step:1,ruler:!1,label:!1,"min-value":D.minValueLocal,"max-value":D.maxValueLocal,"range-margin":0,onInput:c.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const JH=YH(yE,[["render",m8t]]),g8t={class:"template-distance"},y8t={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:r}){const i=e,B=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>B.value,c=>{r("update:distanceFilters",c)},{deep:!0}),t.watch(()=>i.distance,c=>{B.value.minValue=c.minValue,B.value.maxValue=c.maxValue,B.value.minLimit=c.minLimit,B.value.maxLimit=c.maxLimit},{immediate:!0,deep:!0});function D(c){B.value.minValue=c.minValue,B.value.maxValue=c.maxValue}return(c,g)=>(t.openBlock(),t.createElementBlock("div",g8t,[t.createVNode(t.unref(JH),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":B.value.minLimit,"max-limit":B.value.maxLimit,"min-value":B.value.minValue,"max-value":B.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:D},null,8,["min-limit","max-limit","min-value","max-value"])]))}},v8t=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),_8t={class:"template-games"},b8t={class:"template-games__header"},x8t=v8t(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),w8t={class:"template-games__header__all-games"},k8t={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:r}){const i=e,B=t.ref(!1),D=t.computed(()=>i.gamesFilters.filter(g=>g.isSelected).length);t.watch(()=>i.gamesFilters,g=>{r("update:gamesFilters",g)},{deep:!0}),t.watch(D,g=>{B.value=g===i.gamesFilters.length,r("update:gamesFilters",i.gamesFilters)},{immediate:!0});const c=g=>{g?i.gamesFilters.forEach(a=>{a.isSelected=g}):i.gamesFilters.forEach((a,y)=>{a.isSelected=y===0}),B.value=g};return(g,a)=>(t.openBlock(),t.createElementBlock("div",_8t,[t.createElementVNode("div",b8t,[x8t,t.createElementVNode("div",w8t,[t.createVNode(t.unref(Is),{modelValue:B.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":c},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"template-games__game"},[t.createVNode(t.unref(Is),{modelValue:y.isSelected,"onUpdate:modelValue":n=>y.isSelected=n,label:y.label,"teams-ids":y.teamsIds,"avoid-interaction":D.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},C8t=ml(k8t,[["__scopeId","data-v-be32e3d8"]]),S8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},vE={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},KH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},QH=vE.setup;vE.setup=QH?(e,r)=>(KH(),QH(e,r)):KH;const T8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),E8t=["src"],A8t={key:1,class:"text"},M8t=["src"],I8t={class:"stats"},P8t=T8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),B8t={class:"numstats"},N8t={class:"leyend"};function z8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,E8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",A8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,M8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",I8t,[P8t,t.createElementVNode("div",B8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",N8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const _E=S8t(vE,[["render",z8t],["__scopeId","data-v-fb269a1e"]]),O8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},bE={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},eW=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},tW=bE.setup;bE.setup=tW?(e,r)=>(eW(),tW(e,r)):eW;const F8t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),L8t=["src"],D8t={key:1,class:"text"},R8t=["src"],V8t={class:"stats"},$8t=F8t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),j8t={class:"numstats"},U8t={class:"leyend"};function G8t(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",D.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([c.customStyle,D.status&&i.typeOnOff&&c.customActive]),onClick:r[0]||(r[0]=(...g)=>c.btnClick&&c.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,L8t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",D8t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,R8t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:r[1]||(r[1]=(...g)=>c.btnClick&&c.btnClick(...g))},[t.createElementVNode("div",V8t,[$8t,t.createElementVNode("div",j8t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",U8t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const H8t=O8t(bE,[["render",G8t],["__scopeId","data-v-fb269a1e"]]),W8t=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},q8t={key:1},Y8t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X8t=["fill"],Z8t={key:0,class:"checkbox__teams"},J8t={class:"checkbox__teams__logo"},K8t=["src"],Q8t={class:"checkbox__teams__logo"},ekt=["src"],tkt={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const B=t.ref(!1),D=t.computed(()=>{const f={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return B.value?(f["background-color"]=i.boxBackgroundColor,f.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):f.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,f}),c=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const f={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(f[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),f});t.watch(()=>i.modelValue,f=>{f!==B.value&&(B.value=f)},{immediate:!0});function a(){i.avoidInteraction||!B.value&&i.avoidToCheck||(B.value=!B.value,r("update:modelValue",B.value))}function y(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(D.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(c.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",q8t,[(t.openBlock(),t.createElementBlock("svg",Y8t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,X8t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",Z8t,[t.createElementVNode("div",J8t,[t.createElementVNode("img",{src:y(e.teamsIds[0]),alt:""},null,8,K8t)]),t.createElementVNode("div",Q8t,[t.createElementVNode("img",{src:y(e.teamsIds[1]),alt:""},null,8,ekt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},akt=W8t(tkt,[["__scopeId","data-v-bcf3bcc6"]]),nkt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},xE={components:{GSCButton:H8t,GSCCheckbox:akt},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,r)=>({sector:r+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const r=e.sort();JSON.stringify(r)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=r,this.sectors.forEach((i,B)=>{i.active=e.includes(B+1),this.validateField(B)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var r=[];for(let i=0;i<e.length;i++)e[i].active&&r.push(i+1);this.$emit("update:modelValue",r)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!0,this.validateField(r);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let r=0;r<this.sectors.length;r++)this.sectors[r].active=!1,this.validateField(r),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var r=0;this.sectors[e].active=!this.sectors[e].active;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,r==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,r==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,r==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var r=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(r+=1);r==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,r==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},aW=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},nW=xE.setup;xE.setup=nW?(e,r)=>(aW(),nW(e,r)):aW;const rkt={class:"gsc-field"},ikt={class:"gsc-field__title-checked"},okt={class:"gsc-field__title-checked__title"},skt={class:"gsc-field__container-field"},lkt={class:"gsc-field__container-field__field"},ckt={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},dkt=["stroke"],ukt=["stroke","stroke-width"],hkt=["stroke","stroke-width"],pkt=["stroke-width","stroke"],fkt=["fill","fill-opacity","stroke","stroke-width"],mkt=["fill","fill-opacity","stroke","stroke-width"],gkt=["fill","fill-opacity","stroke","stroke-width"],ykt=["fill","fill-opacity","stroke","stroke-width"],vkt=["fill","fill-opacity","stroke","stroke-width"],_kt=["fill","fill-opacity","stroke","stroke-width"],bkt=["fill","fill-opacity","stroke","stroke-width"],xkt=["fill","fill-opacity","stroke","stroke-width"],wkt=["fill","fill-opacity","stroke","stroke-width"],kkt=["fill","fill-opacity","stroke","stroke-width"],Ckt=["fill","fill-opacity","stroke","stroke-width"],Skt=["fill","fill-opacity","stroke","stroke-width"],Tkt=["fill","fill-opacity","stroke","stroke-width"],Ekt=["fill","fill-opacity","stroke","stroke-width"],Akt=["fill","fill-opacity","stroke","stroke-width"],Mkt=["fill","fill-opacity","stroke","stroke-width"],Ikt={class:"gsc-field__container-field__bar-buttons"};function Pkt(e,r,i,B,D,c){const g=t.resolveComponent("GSCCheckbox"),a=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",rkt,[t.createElementVNode("div",ikt,[t.createElementVNode("div",okt,t.toDisplayString(i.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(i.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:i.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":i.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:D.all,key:D.update,"model-value":D.all,"onUpdate:modelValue":c.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",skt,[t.createElementVNode("div",lkt,[(t.openBlock(),t.createElementBlock("svg",ckt,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:i.colorLineField},null,8,dkt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translx+"px, "+c.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,ukt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+c.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,hkt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+c.translxcircle+"px, "+c.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":i.borderWidthLineField,stroke:i.colorLineField},null,12,pkt),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:D.sectors[0].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[0]||(r[0]=y=>c.selectSector(0))},null,8,fkt),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:D.sectors[1].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[1]||(r[1]=y=>c.selectSector(1))},null,8,mkt),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:D.sectors[2].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[2]||(r[2]=y=>c.selectSector(2))},null,8,gkt),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:D.sectors[3].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[3]||(r[3]=y=>c.selectSector(3))},null,8,ykt),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:D.sectors[4].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[4]||(r[4]=y=>c.selectSector(4))},null,8,vkt),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:D.sectors[5].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[5]||(r[5]=y=>c.selectSector(5))},null,8,_kt),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:D.sectors[6].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[6]||(r[6]=y=>c.selectSector(6))},null,8,bkt),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:D.sectors[7].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[7]||(r[7]=y=>c.selectSector(7))},null,8,xkt),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:D.sectors[8].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[8]||(r[8]=y=>c.selectSector(8))},null,8,wkt),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:D.sectors[9].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[9]||(r[9]=y=>c.selectSector(9))},null,8,kkt),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:D.sectors[10].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[10]||(r[10]=y=>c.selectSector(10))},null,8,Ckt),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:D.sectors[11].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[11]||(r[11]=y=>c.selectSector(11))},null,8,Skt),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:D.sectors[12].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[12]||(r[12]=y=>c.selectSector(12))},null,8,Tkt),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:D.sectors[13].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[13]||(r[13]=y=>c.selectSector(13))},null,8,Ekt),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:D.sectors[14].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[14]||(r[14]=y=>c.selectSector(14))},null,8,Akt),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:D.sectors[15].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:r[15]||(r[15]=y=>c.selectSector(15))},null,8,Mkt)]))]),t.createElementVNode("div",Ikt,[(t.openBlock(),t.createBlock(a,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:c.btn14,key:D.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:c.btn24,key:D.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:c.btn34,key:D.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(a,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:c.btn44,key:D.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const rW=nkt(xE,[["render",Pkt],["__scopeId","data-v-b85699b8"]]),Bkt={class:"toggle-buttons__background"},Nkt=["onClick"],zkt={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:r}){const i=e;t.useCssVars(g=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const B=t.ref(i.selectedButtonIndex),D=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{B.value=g}),t.watch(B,(g,a)=>{g!==a&&r("change",{index:g,button:i.buttons[g]})});function c(g){B.value=g}return(g,a)=>(t.openBlock(),t.createElementBlock("div",Bkt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(y,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:B.value===f}]),onClick:n=>c(f)},t.toDisplayString(y.text||y),11,Nkt))),128))],4)]))}},Okt=ml(zkt,[["__scopeId","data-v-ac2af001"]]);function iW(e,r){return function(){return e.apply(r,arguments)}}const{toString:Fkt}=Object.prototype,{getPrototypeOf:wE}=Object,b4=(e=>r=>{const i=Fkt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),zf=e=>(e=e.toLowerCase(),r=>b4(r)===e),x4=e=>r=>typeof r===e,{isArray:Hy}=Array,b_=x4("undefined");function Lkt(e){return e!==null&&!b_(e)&&e.constructor!==null&&!b_(e.constructor)&&lp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oW=zf("ArrayBuffer");function Dkt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&oW(e.buffer),r}const Rkt=x4("string"),lp=x4("function"),sW=x4("number"),w4=e=>e!==null&&typeof e=="object",Vkt=e=>e===!0||e===!1,k4=e=>{if(b4(e)!=="object")return!1;const r=wE(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$kt=zf("Date"),jkt=zf("File"),Ukt=zf("Blob"),Gkt=zf("FileList"),Hkt=e=>w4(e)&&lp(e.pipe),Wkt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||lp(e.append)&&((r=b4(e))==="formdata"||r==="object"&&lp(e.toString)&&e.toString()==="[object FormData]"))},qkt=zf("URLSearchParams"),Ykt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function x_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Hy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function lW(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const cW=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),dW=e=>!b_(e)&&e!==cW;function kE(){const{caseless:e}=dW(this)&&this||{},r={},i=(B,D)=>{const c=e&&lW(r,D)||D;k4(r[c])&&k4(B)?r[c]=kE(r[c],B):k4(B)?r[c]=kE({},B):Hy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&x_(arguments[B],i);return r}const Xkt=(e,r,i,{allOwnKeys:B}={})=>(x_(r,(D,c)=>{i&&lp(D)?e[c]=iW(D,i):e[c]=D},{allOwnKeys:B}),e),Zkt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Jkt=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},Kkt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&wE(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},Qkt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},e7t=e=>{if(!e)return null;if(Hy(e))return e;let r=e.length;if(!sW(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},t7t=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&wE(Uint8Array)),a7t=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},n7t=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},r7t=zf("HTMLFormElement"),i7t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),uW=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),o7t=zf("RegExp"),hW=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};x_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},s7t=e=>{hW(e,(r,i)=>{if(lp(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(lp(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},l7t=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Hy(e)?B(e):B(String(e).split(r)),i},c7t=()=>{},d7t=(e,r)=>(e=+e,Number.isFinite(e)?e:r),CE="abcdefghijklmnopqrstuvwxyz",pW="0123456789",fW={DIGIT:pW,ALPHA:CE,ALPHA_DIGIT:CE+CE.toUpperCase()+pW},u7t=(e=16,r=fW.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function h7t(e){return!!(e&&lp(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const p7t=e=>{const r=new Array(10),i=(B,D)=>{if(w4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Hy(B)?[]:{};return x_(B,(g,a)=>{const y=i(g,D+1);!b_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},f7t=zf("AsyncFunction"),m7t=e=>e&&(w4(e)||lp(e))&&lp(e.then)&&lp(e.catch),Ir={isArray:Hy,isArrayBuffer:oW,isBuffer:Lkt,isFormData:Wkt,isArrayBufferView:Dkt,isString:Rkt,isNumber:sW,isBoolean:Vkt,isObject:w4,isPlainObject:k4,isUndefined:b_,isDate:$kt,isFile:jkt,isBlob:Ukt,isRegExp:o7t,isFunction:lp,isStream:Hkt,isURLSearchParams:qkt,isTypedArray:t7t,isFileList:Gkt,forEach:x_,merge:kE,extend:Xkt,trim:Ykt,stripBOM:Zkt,inherits:Jkt,toFlatObject:Kkt,kindOf:b4,kindOfTest:zf,endsWith:Qkt,toArray:e7t,forEachEntry:a7t,matchAll:n7t,isHTMLForm:r7t,hasOwnProperty:uW,hasOwnProp:uW,reduceDescriptors:hW,freezeMethods:s7t,toObjectSet:l7t,toCamelCase:i7t,noop:c7t,toFiniteNumber:d7t,findKey:lW,global:cW,isContextDefined:dW,ALPHABET:fW,generateString:u7t,isSpecCompliantForm:h7t,toJSONObject:p7t,isAsyncFn:f7t,isThenable:m7t};function Nl(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D)}Ir.inherits(Nl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mW=Nl.prototype,gW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gW[e]={value:e}}),Object.defineProperties(Nl,gW),Object.defineProperty(mW,"isAxiosError",{value:!0}),Nl.from=(e,r,i,B,D,c)=>{const g=Object.create(mW);return Ir.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),Nl.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const g7t=null;function SE(e){return Ir.isPlainObject(e)||Ir.isArray(e)}function yW(e){return Ir.endsWith(e,"[]")?e.slice(0,-2):e}function vW(e,r,i){return e?e.concat(r).map(function(B,D){return B=yW(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function y7t(e){return Ir.isArray(e)&&!e.some(SE)}const v7t=Ir.toFlatObject(Ir,{},null,function(e){return/^is[A-Z]/.test(e)});function C4(e,r,i){if(!Ir.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=Ir.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!Ir.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&Ir.isSpecCompliantForm(r);if(!Ir.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(Ir.isDate(p))return p.toISOString();if(!a&&Ir.isBlob(p))throw new Nl("Blob is not supported. Use a Buffer instead.");return Ir.isArrayBuffer(p)||Ir.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(Ir.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(Ir.isArray(p)&&y7t(p)||(Ir.isFileList(p)||Ir.endsWith(l,"[]"))&&(s=Ir.toArray(p)))return l=yW(l),s.forEach(function(u,d){!(Ir.isUndefined(u)||u===null)&&r.append(g===!0?vW([l],d,c):g===null?l:l+"[]",y(u))}),!1}return SE(p)?!0:(r.append(vW(o,l,c),y(p)),!1)}const n=[],v=Object.assign(v7t,{defaultVisitor:f,convertValue:y,isVisitable:SE});function _(p,l){if(!Ir.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),Ir.forEach(p,function(o,s){(!(Ir.isUndefined(o)||o===null)&&D.call(r,o,Ir.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!Ir.isObject(e))throw new TypeError("data must be an object");return _(e),r}function _W(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function TE(e,r){this._pairs=[],e&&C4(e,this,r)}const bW=TE.prototype;bW.append=function(e,r){this._pairs.push([e,r])},bW.toString=function(e){const r=e?function(i){return e.call(this,i,_W)}:_W;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function _7t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xW(e,r,i){if(!r)return e;const B=i&&i.encode||_7t,D=i&&i.serialize;let c;if(D?c=D(r,i):c=Ir.isURLSearchParams(r)?r.toString():new TE(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}const wW=class{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){Ir.forEach(this.handlers,function(i){i!==null&&r(i)})}},kW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b7t=typeof URLSearchParams<"u"?URLSearchParams:TE,x7t=typeof FormData<"u"?FormData:null,w7t=typeof Blob<"u"?Blob:null,k7t={isBrowser:!0,classes:{URLSearchParams:b7t,FormData:x7t,Blob:w7t},protocols:["http","https","file","blob","url","data"]},CW=typeof window<"u"&&typeof document<"u",C7t=(e=>CW&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),S7t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),T7t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:CW,hasStandardBrowserEnv:C7t,hasStandardBrowserWebWorkerEnv:S7t},Symbol.toStringTag,{value:"Module"})),Of={...T7t,...k7t};function E7t(e,r){return C4(e,new Of.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Of.isNode&&Ir.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function A7t(e){return Ir.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function M7t(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function SW(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&Ir.isArray(D)?D.length:g,y?(Ir.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!Ir.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&Ir.isArray(D[g])&&(D[g]=M7t(D[g])),!a)}if(Ir.isFormData(e)&&Ir.isFunction(e.entries)){const i={};return Ir.forEachEntry(e,(B,D)=>{r(A7t(B),D,i,0)}),i}return null}function I7t(e,r,i){if(Ir.isString(e))try{return(r||JSON.parse)(e),Ir.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const EE={transitional:kW,adapter:["xhr","http"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=Ir.isObject(e);if(D&&Ir.isHTMLForm(e)&&(e=new FormData(e)),Ir.isFormData(e))return B?JSON.stringify(SW(e)):e;if(Ir.isArrayBuffer(e)||Ir.isBuffer(e)||Ir.isStream(e)||Ir.isFile(e)||Ir.isBlob(e))return e;if(Ir.isArrayBufferView(e))return e.buffer;if(Ir.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return E7t(e,this.formSerializer).toString();if((c=Ir.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return C4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),I7t(e)):e}],transformResponse:[function(e){const r=this.transitional||EE.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(e&&Ir.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?Nl.from(c,Nl.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Of.classes.FormData,Blob:Of.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ir.forEach(["delete","get","head","post","put","patch"],e=>{EE.headers[e]={}});const AE=EE,P7t=Ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),B7t=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
125
125
|
`).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&P7t[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},TW=Symbol("internals");function w_(e){return e&&String(e).trim().toLowerCase()}function S4(e){return e===!1||e==null?e:Ir.isArray(e)?e.map(S4):String(e)}function N7t(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const z7t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ME(e,r,i,B,D){if(Ir.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!Ir.isString(r)){if(Ir.isString(B))return r.indexOf(B)!==-1;if(Ir.isRegExp(B))return B.test(r)}}function O7t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function F7t(e,r){const i=Ir.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,g){return this[B].call(this,r,D,c,g)},configurable:!0})})}let T4=class{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=w_(y);if(!n)throw new Error("header name must be a non-empty string");const v=Ir.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=S4(a))}const g=(a,y)=>Ir.forEach(a,(f,n)=>c(f,n,y));return Ir.isPlainObject(r)||r instanceof this.constructor?g(r,i):Ir.isString(r)&&(r=r.trim())&&!z7t(r)?g(B7t(r),i):r!=null&&c(i,r,B),this}get(r,i){if(r=w_(r),r){const B=Ir.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return N7t(D);if(Ir.isFunction(i))return i.call(this,D,B);if(Ir.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=w_(r),r){const B=Ir.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||ME(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(g){if(g=w_(g),g){const a=Ir.findKey(B,g);a&&(!i||ME(B,B[a],a,i))&&(delete B[a],D=!0)}}return Ir.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||ME(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return Ir.forEach(this,(D,c)=>{const g=Ir.findKey(B,c);if(g){i[g]=S4(D),delete i[c];return}const a=r?O7t(c):String(c).trim();a!==c&&delete i[c],i[a]=S4(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return Ir.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&Ir.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
126
126
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[TW]=this[TW]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=w_(c);i[g]||(F7t(B,c),i[g]=!0)}return Ir.isArray(r)?r.forEach(D):D(r),this}};T4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ir.reduceDescriptors(T4.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),Ir.freezeMethods(T4);const rm=T4;function IE(e,r){const i=this||AE,B=r||i,D=rm.from(B.headers);let c=B.data;return Ir.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function EW(e){return!!(e&&e.__CANCEL__)}function k_(e,r,i){Nl.call(this,e??"canceled",Nl.ERR_CANCELED,r,i),this.name="CanceledError"}Ir.inherits(k_,Nl,{__CANCEL__:!0});function L7t(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Nl("Request failed with status code "+i.status,[Nl.ERR_BAD_REQUEST,Nl.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const D7t=Of.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];Ir.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),Ir.isString(B)&&g.push("path="+B),Ir.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function R7t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function V7t(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function AW(e,r){return e&&!R7t(r)?V7t(e,r):r}const $7t=Of.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=Ir.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function j7t(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function U7t(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function MW(e,r){let i=0;const B=U7t(50,250);return D=>{const c=D.loaded,g=D.lengthComputable?D.total:void 0,a=c-i,y=B(a),f=c<=g;i=c;const n={loaded:c,total:g,progress:g?c/g:void 0,bytes:a,rate:y||void 0,estimated:y&&g&&f?(g-c)/y:void 0,event:D};n[r?"download":"upload"]=!0,e(n)}}const G7t=typeof XMLHttpRequest<"u",H7t=G7t&&function(e){return new Promise(function(r,i){let B=e.data;const D=rm.from(e.headers).normalize();let{responseType:c,withXSRFToken:g}=e,a;function y(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(Ir.isFormData(B)){if(Of.hasStandardBrowserEnv||Of.hasStandardBrowserWebWorkerEnv)D.setContentType(!1);else if((f=D.getContentType())!==!1){const[l,...o]=f?f.split(";").map(s=>s.trim()).filter(Boolean):[];D.setContentType([l||"multipart/form-data",...o].join("; "))}}let n=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";D.set("Authorization","Basic "+btoa(l+":"+o))}const v=AW(e.baseURL,e.url);n.open(e.method.toUpperCase(),xW(v,e.params,e.paramsSerializer),!0),n.timeout=e.timeout;function _(){if(!n)return;const l=rm.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),o={data:!c||c==="text"||c==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};L7t(function(s){r(s),y()},function(s){i(s),y()},o),n=null}if("onloadend"in n?n.onloadend=_:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(_)},n.onabort=function(){n&&(i(new Nl("Request aborted",Nl.ECONNABORTED,e,n)),n=null)},n.onerror=function(){i(new Nl("Network Error",Nl.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||kW;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),i(new Nl(l,o.clarifyTimeoutError?Nl.ETIMEDOUT:Nl.ECONNABORTED,e,n)),n=null},Of.hasStandardBrowserEnv&&(g&&Ir.isFunction(g)&&(g=g(e)),g||g!==!1&&$7t(v))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&D7t.read(e.xsrfCookieName);l&&D.set(e.xsrfHeaderName,l)}B===void 0&&D.setContentType(null),"setRequestHeader"in n&&Ir.forEach(D.toJSON(),function(l,o){n.setRequestHeader(o,l)}),Ir.isUndefined(e.withCredentials)||(n.withCredentials=!!e.withCredentials),c&&c!=="json"&&(n.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&n.addEventListener("progress",MW(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",MW(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=l=>{n&&(i(!l||l.type?new k_(null,e,n):l),n.abort(),n=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=j7t(v);if(p&&Of.protocols.indexOf(p)===-1){i(new Nl("Unsupported protocol "+p+":",Nl.ERR_BAD_REQUEST,e));return}n.send(B||null)})},PE={http:g7t,xhr:H7t};Ir.forEach(PE,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const IW=e=>`- ${e}`,W7t=e=>Ir.isFunction(e)||e===null||e===!1,PW={getAdapter:e=>{e=Ir.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!W7t(i)&&(B=PE[(g=String(i)).toLowerCase()],B===void 0))throw new Nl(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
|
|
127
127
|
`+c.map(IW).join(`
|
|
@@ -4159,7 +4159,7 @@ uniform ${Ge} ${qe} u_${at};
|
|
|
4159
4159
|
* Vue 3 Carousel 0.3.1
|
|
4160
4160
|
* (c) 2023
|
|
4161
4161
|
* @license MIT
|
|
4162
|
-
*/const Tu={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Pq={itemsToShow:{default:Tu.itemsToShow,type:Number},itemsToScroll:{default:Tu.itemsToScroll,type:Number},wrapAround:{default:Tu.wrapAround,type:Boolean},throttle:{default:Tu.throttle,type:Number},snapAlign:{default:Tu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Tu.transition,type:Number},breakpoints:{default:Tu.breakpoints,type:Object},autoplay:{default:Tu.autoplay,type:Number},pauseAutoplayOnHover:{default:Tu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Tu.mouseDrag,type:Boolean},touchDrag:{default:Tu.touchDrag,type:Boolean},dir:{default:Tu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Tu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Mzt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function Izt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function eA({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function Pzt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:eA({val:g,max:i-c,min:0})}function Bq(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...Bq(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function tA({val:e,max:r,min:i=0}){return e>r?tA({val:e-(r+1),max:r,min:i}):e<i?tA({val:e+(r+1),max:r,min:i}):e}function Bzt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function Nzt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function zzt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var Ozt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Tu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},zzt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Fzt=t.defineComponent({name:"Carousel",props:Pq,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Tu));let n=Object.assign({},Tu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=Nzt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=Mzt({config:f,slidesCount:y.value}),s.value=Izt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=eA({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=Bzt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:eA({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=tA({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>Pzt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(Pq).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=Bq(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(Ozt)])}}}),Nq;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Nq||(Nq={}));var Lzt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Tu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Dzt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Rzt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Vzt={class:"gsc-carousel"},$zt={key:0},jzt=Rzt(()=>t.createElementVNode("div",null,"no hay",-1)),Uzt=[jzt],Gzt={class:"gsc-carousel__2d__slides"},Hzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wzt=["fill"],qzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yzt=["fill"],Xzt={class:"gsc-carousel__2d__navigation"},Zzt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jzt=["stroke"],Kzt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Qzt=["onClick"],eOt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tOt=["stroke"],aOt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",Vzt,[B.is3d?(t.openBlock(),t.createElementBlock("div",$zt,Uzt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Gzt,[t.createVNode(t.unref(Fzt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(Lzt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Hzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Wzt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",qzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Yzt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Xzt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Zzt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Jzt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Kzt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Qzt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",eOt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,tOt)]))])):t.createCommentVNode("",!0)])],2))]))}},nOt=Dzt(aOt,[["__scopeId","data-v-54620d25"]]),Y_a="",zq={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},X_a="",aA={components:{GSCCarousel:nOt,GSCLeaders:QNt,GSCRowTable:_q,GSCTableHeader:pq,GSCExpandedInfo:Iq},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:Object,default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=M_(e);return{myDivRef:e,elementSize:r}},watch:{season:{immediate:!1,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!1,async handler(e){await this.getCategoryStats(this.season)}},filtersProp:{immediate:!1,deep:!0,async handler(e,r){e&&(JSON.stringify(e)!==JSON.stringify(r)||this.sonConjuntosDistintos(e.setNationalitiesIds,r.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},r={},i=[],B=[],D=[];return this.formatFilterStats.map(c=>{e[c.team_id]?e[c.team_id].total=e[c.team_id].total+c.total:(e[c.team_id]={},e[c.team_id].total=c.total,e[c.team_id].id=this.teamInfo[c.team_id].id,e[c.team_id].name=this.teamInfo[c.team_id].name.replace(" Femenil",""),e[c.team_id].img="https://az755631.vo.msecnd.net/teams-80/"+c.team_id+".png",e[c.team_id].effectiveness=this.teamInfo[c.team_id].effectiveness,e[c.team_id].frecuency=this.teamInfo[c.team_id].frecuency,e[c.team_id].game_avg=this.teamInfo[c.team_id].game_avg,e[c.team_id].game_avg_last_season=this.teamInfo[c.team_id].game_avg_last_season,e[c.team_id].games_played_lastseason=this.teamInfo[c.team_id].games_played_lastseason,e[c.team_id].games_played=this.teamInfo[c.team_id].games_played,e[c.team_id].positiontable=this.teamInfo[c.team_id].positiontable,e[c.team_id].goals=this.teamInfo[c.team_id].goals,e[c.team_id].goalsrecived=this.teamInfo[c.team_id].goalsrecived,e[c.team_id].xg=this.teamInfo[c.team_id].xg),r[c.player_id]?c.player_id!=0&&c.player_id!=62117&&(r[c.player_id].total=r[c.player_id].total+c.total):c.player_id!=0&&c.player_id!=62117&&(r[c.player_id]={},r[c.player_id].total=c.total,c.player_id&&this.playersInfo[c.player_id]?(r[c.player_id].name=this.playersInfo[c.player_id].name,r[c.player_id].name_short=this.getnameshort(this.playersInfo[c.player_id].name),r[c.player_id].img=this.playersInfo[c.player_id].img,r[c.player_id].id=this.playersInfo[c.player_id].id,r[c.player_id].age=this.playersInfo[c.player_id].age,r[c.player_id].team=this.playersInfo[c.player_id].team,r[c.player_id].teamname=this.playersInfo[c.player_id].teamname,r[c.player_id].teamid=this.playersInfo[c.player_id].teamid,r[c.player_id].position=this.playersInfo[c.player_id].position,r[c.player_id].positionId=this.playersInfo[c.player_id].positionId,r[c.player_id].positionfull=this.playersInfo[c.player_id].positionfull,r[c.player_id].country=this.playersInfo[c.player_id].country,r[c.player_id].effectiveness=this.playersInfo[c.player_id].effectiveness,r[c.player_id].minutes=this.playersInfo[c.player_id].minutes_played,r[c.player_id].games=this.playersInfo[c.player_id].games_played,r[c.player_id].date=this.playersInfo[c.player_id].date,r[c.player_id].nationality=this.playersInfo[c.player_id].nationality,r[c.player_id].player_country_flag=this.playersInfo[c.player_id].player_country_flag,r[c.player_id].categoryName=this.categoryName):(r[c.player_id].id=c.player_id,r[c.player_id].name=c.player_id,r[c.player_id].img="SIN IMAGEN",r[c.player_id].age="",r[c.player_id].teamname="",r[c.player_id].team="",r[c.player_id].teamid=0,r[c.player_id].position="",r[c.player_id].positionId=0,r[c.player_id].positionfull="",r[c.player_id].country="",r[c.player_id].effectiveness="",r[c.player_id].minutes="",r[c.player_id].games="",r[c.player_id].date="00-00-0000",r[c.player_id].nationality="",r[c.player_id].player_country_flag="",r[c.player_id].categoryName=""))}),i.push(...Object.values(e)),B.push(...Object.values(r)),i=this.sortAndSlice(Object.values(e),60),B=B.sort(this.compareObjectsMinutes).slice(0,60),B=B.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),i=i.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),this.filterTeam!==0&&!this.isTeam&&(D=B.filter(c=>c.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(i):this.filterTeam!=0?this.formatArrayPaginate(D):this.formatArrayPaginate(B)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,r){return e.total>r.total?-1:e.total<r.total?1:e.minutes<r.minutes?-1:e.minutes>r.minutes?1:0},sonConjuntosDistintos(e,r){const i=Array.from(e),B=Array.from(r);if(i.length!==B.length)return!0;for(let D=0;D<i.length;D++)if(!r.has(i[D]))return!0;return!1},getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,r){return e.total<r.total?-1:e.total>r.total?1:e.name<r.name?-1:e.name>r.name?1:0},sortAndSlice(e,r){return e.sort((i,B)=>(i.name<B.name?1:-1)&&(i.total<B.total?1:-1)).slice(0,r)},getCategoryName(e){let r="";for(let i=0;i<this.categories.length;i++)e==this.categories[i].id&&(r=this.categories[i].name);return r},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f,_=e.player_id;let p=[],l=this.isTeam?e.id:this.filterTeam;_?this.isTeam?l=_:(p=[_],a=a.filter(s=>!s.toString().includes("_r"))):this.isTeam?l=e.id:(p=[e.id],a=a.filter(s=>!s.toString().includes("_r")));const o={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:p,goalkeeperIds:[],categoryIds:this.translateTopCategories(r),teamId:l||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",o)},emitEventMediaFullTable(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f;let _=[],p=this.isTeam?e.id:this.filterTeam;this.isTeam?p=e.id:(_=[e.id],a=a.filter(o=>!o.toString().includes("_r")));const l={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:_,goalkeeperIds:[],categoryIds:a,teamId:p||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",l)},replaceImgPlayer(e){return e.replace("https://az755631.vo.msecnd.net/players-profile/","https://az755631.vo.msecnd.net/players-profile-no-bg/")},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,r){this.$emit("clickprofile",{id:e,teamId:r,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){this.mapPlayers=new Map;try{if(!e)return;let r=[],i={},B={};this.arePlaysEmpty=!1;const D=$c.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let c={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),c&&c.data&&c.data.data&&c.data.data.length>0){r=c.data.data.map(a=>this.formatStatsData(a)),c.data.teams.forEach(a=>{i[a[0]]={},i[a[0]].id=a[0],i[a[0]].name=a[1],i[a[0]].abrv=a[2],i[a[0]].img=a[3],i[a[0]].effectiveness=a[4],i[a[0]].games_played=a[5],i[a[0]].games_played_lastseason=a[6],i[a[0]].positiontable=a[7],i[a[0]].goals=a[8],i[a[0]].goalsrecived=a[9],i[a[0]].xg=a[10],i[a[0]].frecuency=a[11],i[a[0]].game_avg=a[12],i[a[0]].game_avg_last_season=a[13]});const g=new Set;c.data.players.forEach(a=>{const y=this.getObjectPlayer(a);this.mapPlayers.set(y.numberId,y);const f=y.numberAge,n=y.teamName.length>0?y.teamName[0].acronym:"",v=y.teamName.length>0?i[y.teamName[0].team_id].name:"",_=y.teamName.length>0?y.teamName[0].team_id:"",p=this.positions[y.numberPositionId-1].fullname,l=this.positions[y.numberPositionId-1].name,o=y.countryId.length>0?y.countryId[0].nationality_id:"",s=y.effectiveness,u=y.min,d=y.games,h=y.date;y.arrayNationalities.forEach(m=>{g.add(m.numberId)}),B[a[0]]={id:a[0],name:a[1],img:a[2],age:f,team:n,teamname:v,teamid:_,position:p,positionfull:l,effectiveness:s,country:o,games_played:d,minutes_played:u,date:h,nationality:y.stringNationalityName,player_country_flag:y.player_country_flag,positionId:y.numberPositionId}}),this.setNationalityIds=g,this.arrayAgeRange=[c.data.min_age,c.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=i,this.playersInfo=B,this.formatStats=r,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=c}catch(r){return Promise.reject(r)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(r=>{const i=e.playingAs.includes(r.playing_as),B=e.matchResult.includes(r.match_result),D=e.sections.includes(r.section),c=e.typeZone===1&&e.zone.includes(r.origen)||e.typeZone===2&&e.zone.includes(r.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(r.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(r.player_id))return!1}else{let a=!1;for(const y of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(y)){a=!0;break}if(!a)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||i)&&(e.matchResult.length===0||B)&&(e.sections.length===0||D)&&(e.zone.length===0||c)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const r={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((i,B)=>{r[i]=e[B]}),r},getObjectPlayer(e){const r=[],i=e[7].map(D=>(r.push(D.nationality_id),{stringName:D.nationality,numberId:D.nationality_id})),B=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://az755631.vo.msecnd.net/flags/"+e[3]+".jpg",stringNationalityName:zq[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:B.length>0?Number(B[0]):0,arrayNationalities:i,category:this.categoryName,arrayNationalitiesIds:r}},formatArrayPaginate(e){const r=Math.ceil(e.length/this.numRows);return Array.from({length:r},(i,B)=>{const D=B*this.numRows,c=D+this.numRows;return e.slice(D,c)})}},beforeUnmount(){clearInterval(this.intervalIdtops)}},Oq=()=>{t.useCssVars(e=>({"6def2ce4":e.borderRadius,"3852a14a":e.borderWidth,"373ba2e7":e.borderColor}))},Fq=aA.setup;aA.setup=Fq?(e,r)=>(Oq(),Fq(e,r)):Oq;const B4=e=>(t.pushScopeId("data-v-624dbc9f"),e=e(),t.popScopeId(),e),rOt={ref:"myDivRef"},iOt={class:"btnViewFullList"},oOt={class:"text"},sOt={class:"groupsLeague"},lOt={class:"row-table-carrousel"},cOt={key:1,class:"container-no-search-result"},dOt={key:0,class:"overlay-loading-top"},uOt=[B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],hOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),pOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));function fOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),y=t.resolveComponent("GSCExpandedInfo"),f=t.resolveComponent("GSCCarousel"),n=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",rOt,[t.createElementVNode("div",iOt,[t.createElementVNode("div",oOt,[t.createElementVNode("div",sOt,t.toDisplayString(i.categoryName),1)])]),i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.topData.length>0?(t.openBlock(),t.createBlock(f,{key:0,items:c.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:c.changeCarrousel},{default:t.withCtx(({item:v})=>[t.createElementVNode("div",lOt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[_.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:r[0]||(r[0]=l=>c.emitEventMedia(l,i.category,i.categoryName)),type:i.typeTable,"type-data":i.typeData,game:i.game,"team-widget":i.teamWidget,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==_.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:i.typeTable==0?{top:"01",photo:_.img,logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",name:_.name,player_short:_.name_short,player_id:_.id,categoryId:i.category,total:_.total}:{top:"01",logo:_.img,total:_.total,name_team:_.name,player_id:_.id},"category-name":i.categoryName,buttonMaxWidth:i.typeTable!=0?B.elementSize.width>360?"210px":"130px":B.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:c.clickexpand,onMore:c.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{key:1,"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"is-expanded":e.playerexpand==_.id&&e.expand,onMediadata:r[1]||(r[1]=l=>c.emitEventMedia(l,i.category,i.categoryName)),data:i.typeTable==0?{position:_.top,player_name:_.name,player_short:_.name_short,player_photo:_.img,total:_.total,id:_.id,player_age:_.age,team_abrev:_.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",player_position:_.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+_.country+".jpg",player_games:_.minutes,player_min:_.games,league_name:" Liga MX "}:{position:_.top,team_logo:_.img,team_abrev:_.name,frequency:_.frecuency,promthistournament:_.game_avg,promlasttournament:_.game_avg_last_season,teams_games:"-",category:i.category,total:_.total,id:_.id},height:"71px","can-play-videos":i.canPlayVideos,background:p%2===0?i.backgroundEven:i.backgroundOdd,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==_.id?(t.openBlock(),t.createBlock(y,{key:2,type:i.typeTable,"is-live":i.game.is_live,"view-effectiveness":_.positionId!==1,data:i.typeTable==0?{teams:_.teamname,age:_.age,dataofbirth:_.date,nationality:_.nationality,countryFlag:_.player_country_flag,position:_.position,games:_.games,min:_.minutes,goals:_.total,effectiveness:_.effectiveness,category:i.categoryName,id:_.id}:{position:_.positiontable,goals:_.goals,goals_received:_.goalsrecived,games_played:_.games_played,category:i.categoryName,effectiveness:_.effectiveness,xg:_.xg,total:_.total,attendance:"-",id:_.id},onViewprofile:l=>c.viewprofile(l,_.teamid),background:p%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",cOt,[e.isloading?(t.openBlock(),t.createElementBlock("div",dOt,uOt)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[hOt,pOt],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(n,{background:"#183143",type:i.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.topData,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:_},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[t.createVNode(a,{"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==p.id&&e.expand,onMediadata:r[2]||(r[2]=o=>c.emitEventMediaFullTable(o,i.category,i.categoryName)),data:i.typeTable==0?{position:p.top,player_name:p.name,player_short:p.name_short,player_photo:p.img,total:p.total,id:p.id,player_age:p.age,team_abrev:p.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+p.teamid+".png",player_position:p.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+p.country+".jpg",player_games:p.games,player_min:p.minutes,league_name:" Liga MX "}:{position:p.positiontable,team_logo:p.img,team_abrev:p.name,frequency:p.frecuency,promthistournament:p.game_avg,promlasttournament:p.game_avg_last_season,category:i.category,team_games:p.games_played,total:p.total,id:p.id},height:"71px",background:((_+1)*5+l)%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==p.id?(t.openBlock(),t.createBlock(y,{key:0,type:i.typeTable,"is-live":i.game.is_live,additionalClass:"fullTable","view-effectiveness":p.positionId!==1,data:i.typeTable==0?{teams:p.teamname,age:p.age,dataofbirth:p.date,nationality:p.nationality,countryFlag:p.player_country_flag,position:p.positionfull,positionfull:p.positionfull,games:p.games,min:p.minutes,goals:p.total,effectiveness:p.effectiveness,category:c.getCategoryName(i.category),id:p.id}:{position:p.positiontable,goals:p.goals,goals_received:p.goalsrecived,games_played:p.games_played,category:i.categoryName,effectiveness:p.effectiveness,xg:p.xg,total:p.total,category:c.getCategoryName(i.category),attendance:"-",id:p.id},onViewprofile:o=>c.viewprofile(o,p.teamid),background:l%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const mOt=$i(aA,[["render",fOt],["__scopeId","data-v-624dbc9f"]]),gOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},yOt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},vOt=["src"],_Ot=["src"];function bOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(c.customStyle),class:"gsc-label",onClick:r[0]||(r[0]=(...g)=>c.btnLabel&&c.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,vOt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(c.customStyle)},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:r[1]||(r[1]=(...g)=>c.btnClose&&c.btnClose(...g)),style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,_Ot)):t.createCommentVNode("",!0)],4))])}const xOt=gOt(yOt,[["render",bOt],["__scopeId","data-v-42ff544a"]]);function wOt(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const kOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},nA={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Lq=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Dq=nA.setup;nA.setup=Dq?(e,r)=>(Lq(),Dq(e,r)):Lq;const COt={ref:"gscScrollableContainer",class:"scrollable-container"},SOt={class:"scrollable-arrows"},TOt=["width","height","viewBox"],EOt=["stroke"],AOt={class:"scrollable-wrapper"},MOt={class:"scrollable-arrows"},IOt=["width","height","viewBox"],POt=["stroke"];function BOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",COt,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...g)=>c.scrollLeft&&c.scrollLeft(...g))},[t.createElementVNode("div",SOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,EOt)],8,TOt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...g)=>c.getScroll&&c.getScroll(...g))},[t.createElementVNode("div",AOt,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...g)=>c.scrollRight&&c.scrollRight(...g))},[t.createElementVNode("div",MOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,POt)],8,IOt))])],2)):t.createCommentVNode("",!0)],512)}const NOt=kOt(nA,[["render",BOt],["__scopeId","data-v-b548a08d"]]),zOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},rA={components:{GSCSlider:NOt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=wOt(e);return{myDivRef:e,elementSize:r}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var r={};return e.width>768?r={fontSize:"16px"}:e.width>480?r={fontSize:"14px"}:r={fontSize:"12px"},r}}},Rq=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Vq=rA.setup;rA.setup=Vq?(e,r)=>(Rq(),Vq(e,r)):Rq;const OOt={ref:"myDivRef"},FOt={key:0,class:"gs-switch-container"},LOt=["onClick"],DOt={key:1,class:"gs-switch-container-type"},ROt=["onClick"],VOt={key:2,class:"gs-switch-container-carousel"},$Ot=["onClick"];function jOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",OOt,[i.type==0?(t.openBlock(),t.createElementBlock("div",FOt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,LOt))),128))],4),t.renderSlot(e.$slots,i.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",DOt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:i.backgroundOptionDisable}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,ROt))),128))],4)])):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",VOt,[t.createVNode(g,{arrows:i.arrow,"background-color":i.background,"px-scroll":i.pxScroll,"scroll-color":i.scrollColor,"arrows-position":i.arrowsPosition,arrowsScrollHide:i.arrowsScrollHide,"arrows-background":i.arrowsBackground,"arrows-container-bg-l":i.arrowsContainerBgL,"arrows-container-bg-r":i.arrowsContainerBgR,"arrows-margin":i.arrowsMargin,"arrows-radius":i.arrowsRadius,"arrows-border":i.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,$Ot))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const iA=zOt(rA,[["render",jOt],["__scopeId","data-v-8a86dfaf"]]),K_a="",Q_a="";function UOt(){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 eba="",GOt={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"},HOt=t.ref(UOt()),WOt={components:{GSCTableHeader:pq,GscSwitchComponent:iA,GSCFilterperteam:$Nt,GSCFilters:YW,GSCExpandedInfo:Iq,GSCLabel:xOt,GSCSeasonSelect:tI,GSCTopCategory:mOt,GSCTournamentSelect:KM,GSCRowTable:_q},computed:{...GBt.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},r=JSON.stringify(e);if(JSON.stringify(this.filters)!=r)return r},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...HOt.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},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:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let r=0;r<e.teams.length;r++)this.teams.push({id:e.teams[r].team_id,team:e.teams[r].colloquial_name,logo:e.teams[r].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:r}=M_(e);return{myDivRefTopsFull:e,elementSize:r}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],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:[],updateFilterTeamsScouting:0,filtersTypes:er,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const r=e.id===this.selectedTournament.id;e.isSelected=r,e.isDefaultTournament=r})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;this.setUpTournamentsToFilter();const r=this.$refs.personalDataFilter;r.clearFilters(hd.All),r.clearFilters(hd.AGE_RANGE),r.clearFilters(hd.YEAR),r.clearFilters(hd.NATIONALITY),r.clearFilters(hd.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},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 D=[e.id],c=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:D,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:c||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",g)},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,r,i){this.$emit("openProfilePlayer",{playerId:e,teamId:i,seasonId:r||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=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 i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersTournaments");i!==-1?this.arrayFiltersPlays[i].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 D=0;D<r.length;D++){r[D];let g=r[D].dob.split("T")[0].split("-");var B={position:D+1,player_name:this.abrevName(r[D].name),player_photo:"https://az755631.vo.msecnd.net/players-profile/"+r[D].player_id+".png",total:r[D].total.toFixed(0),id:r[D].player_id,player_age:this.calcularEdad(r[D].dob),team_abrev:r[D].teams[0].acronym,team_name:r[D].teams[0].team_name,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+r[D].teams[0].team_id+".png",player_position:r[D].position_id,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+r[D].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:r[D].team_id,nationality_name:zq[r[D].nationality_id],player_games:r[D].games_played,player_min:r[D].minutes_played,league_name:r[D].tournament_name,seasons:r[D].seasons,season_id:r[D].seasons[0]};this.rowScoutingData.push(B)}if(this.seasonsFilterSelected!=0){const D=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let c=0;c<D.teams.length;c++)this.teamsscouting.push({id:D.teams[c].team_id,team:D.teams[c].colloquial_name,logo:D.teams[c].logo})}this.loadingActive=!1},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},calcularEdad(e){var r=new Date(e),i=new Date,B=i-r,D=Math.floor(B/(1e3*60*60*24*365.25));return D},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.length;i++)e[i].isSelected&&r.push(e[i].id);if(r.length==0&&(r=[1]),r.length==1)for(let i=0;i<e.length;i++)e[i].isSelected&&(this.nameLeagueSelected=e[i].name,this.seasonsFilterSelected=e[i].seasons[0].id);else this.seasonsFilterSelected=0,r.length>0&&(this.nameLeagueSelected=r.length+" Ligas");this.filterScounting.tournaments=r,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const B=e.ageByRange.min==0?10:e.ageByRange.min,D=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[B,D],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 r=[];if(e.hasOwnProperty("nationalities")){for(let B=0;B<e.nationalities.length;B++)e.nationalities[B].isSelected&&r.push(e.nationalities[B].id);r.length==0&&(r=[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 i=[];for(let B=0;B<e.positions.length;B++)e.positions[B].isSelected&&i.push(e.positions[B].id);i.length==0&&(i=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=i,this.filterScounting.nationalities=r},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 r=[];for(let i=0;i<e.productivityFilters.length;i++)r[e.productivityFilters[i].priority-1]={name:e.productivityFilters[i].name,ids:e.productivityFilters[i].id};r.length==0&&(r=[]),this.filterScounting.categories=r,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 r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");r!==-1?this.arrayFiltersPlays[r].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){this.filtersPredefinedF=this.filters;for(let D=0;D<this.FVfilterGolstats.length;D++)this.FVfilterGolstats[D].isSelected=!1;var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,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 r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&r!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(r,1);var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(i!==-1){for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,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 r=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&r!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(r,1);for(let c=0;c<this.categoriesDefault.length;c++)this.categoriesDefault[c].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){for(let c=0;c<this.FVfilterGolstats.length;c++)this.FVfilterGolstats[c].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,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,r){return Math.floor(Math.random()*(r-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i])}else for(let i=0;i<e.playsCategories.length;i++)e.playsCategories[i].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[i].id),this.arrayCategoryFilterFull.push(e.playsCategories[i]));var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):r!==-1&&this.arrayFiltersPlays.splice(r,1)},async deleteLabelFilter(e){var r=this.arrayFiltersPlays.findIndex(B=>B.type===e);if(r!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let D=0;D<this.detaildProductivityCategories.offensive.categories.length;D++)this.detaildProductivityCategories.offensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.defensive.categories.length;D++)this.detaildProductivityCategories.defensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.possession.categories.length;D++)this.detaildProductivityCategories.possession.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.offensesConditions.length;D++)this.detaildProductivityCategories.offensesConditions[D]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(D,c)=>c+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const B=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let D=0;D<B.teams.length;D++)this.teamsscouting.push({id:B.teams[D].team_id,team:B.teams[D].colloquial_name,logo:B.teams[D].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let B=0;B<this.categoriesPlaysTypes.offensive.categories.length;B++)this.categoriesPlaysTypes.offensive.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.defensive.categories.length;B++)this.categoriesPlaysTypes.defensive.categories[B].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[B]);for(let B=0;B<this.categoriesPlaysTypes.possession.categories.length;B++)this.categoriesPlaysTypes.possession.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.offenses.categories.length;B++)this.categoriesPlaysTypes.offenses.categories[B].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:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1);for(let B=0;B<this.categoriesDefault.length;B++)this.categoriesDefault[B].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:this.FVbooleanAreNationalTeamsVisible,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:this.FVbooleanAreNationalTeamsVisible,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:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.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:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.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:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(hd.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(hd.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(r,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersField");r!=-1?this.arrayFiltersPlays[r].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(r!=-1?this.arrayFiltersPlays[r].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(r!=-1?this.arrayFiltersPlays[r].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(r,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var r=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var i=[];for(let c=0;c<e.playingAs.length;c++)if(e.playingAs[c].isSelected){const g=e.playingAs[c].name=="Local"?1:2;r.push(g)}for(let c=0;c<e.gameSections.length;c++)e.gameSections[c].isSelected&&i.push(e.gameSections[c].value);this.fVsections=i,this.fVplayingAs=r;var B=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersDetailsTime"),D="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(D+=", 0-15"),this.fVsections.includes(2)&&(D+=", 15-30"),this.fVsections.includes(3)&&(D+=", 30-45"),this.fVsections.includes(4)&&(D+=", 45-60"),this.fVsections.includes(5)&&(D+=", 60-75"),this.fVsections.includes(6)&&(D+=", 75-90"),B!=-1?this.arrayFiltersPlays[B].name=D:this.arrayFiltersPlays.push({name:D,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):B!=-1&&this.arrayFiltersPlays.splice(B,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(hd.All),e.clearFilters(hd.AGE_RANGE),e.clearFilters(hd.YEAR),e.clearFilters(hd.NATIONALITY),e.clearFilters(hd.POSITION),this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(r,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo})},onFiltersData(e){var r=0,i=0;e.ageByRange&&(e.ageByRange.min==0?r=1:r=e.ageByRange.min,e.ageByRange.max==0?i=40:i=e.ageByRange.max,this.fVarrayAgeRange=[r,i]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let B="",D="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let _=0;_<e.nationalities.length;_++)e.nationalities[_].isSelected&&this.fVnationalities.add(e.nationalities[_].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let _=0;_<this.elegibilidadArray.length;_++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[_])}for(let _=0;_<e.positions.length;_++)e.positions[_].isSelected&&this.fVsetPositionsIds.push(e.positions[_].id);if(e.hasOwnProperty("nationalities"))var c=e.nationalities.filter(_=>_.isSelected===!0);var g=e.positions.filter(_=>_.isSelected===!0);if(g.length==1&&(B=g[0].name),e.hasOwnProperty("nationalities")&&c.length==1&&(D=c[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var a=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var y=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersPosition");y!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[y].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B:this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var n=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersAge");n!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var n=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersAge");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var v=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersNationality");v!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[v].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},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){if(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.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let i=0;i<r.teams.length;i++)this.teamsscouting.push({id:r.teams[i].team_id,team:r.teams[i].colloquial_name,logo:r.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(i=>i.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 i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(r!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.tournamentsUrl);return r},async fetchTeams(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.teamsUrl+this.seasonActive);return r},async fetchTeamsScouting(e){const r=$c.create({headers:{Authorization:`${this.token}`}}),{data:i}=await r.get(this.teamsUrl+e);return i},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var r="";e.id==1?r=this.urlFilter:r=this.urlFilter;const i=$c.create({headers:{Authorization:`${this.token}`}}),{data:B}=await i.get(r+e.id);if(Object.keys(B[0].match_lapse_combinations).forEach(v=>{this.predefinedFiltersMatchLapse[v.toString()]=B[0].match_lapse_combinations[v]}),Object.keys(B[0].playing_as_combinations).forEach(v=>{this.predefinedFiltersPlayingAs[v.toString()]=B[0].playing_as_combinations[v]}),Object.keys(B[0].field_sections_combinations).forEach(v=>{this.predefinedFiltersSections[v.toString()]=B[0].field_sections_combinations[v]}),B[0]){for(let v=0;v<B[0].filter_records.length;v++){var D=B[0].description;if(B[0].filter_records[v].field_sections!==void 0){const p=B[0].filter_records[v].field_sections.toString();(this.predefinedFiltersSections[p]||this.predefinedFiltersSections[p]=="")&&(this.predefinedFiltersSections[p]==""?D=D.replace(" [en {field_sections}]",this.predefinedFiltersSections[p]):D=D.replace("{field_sections}",this.predefinedFiltersSections[p]))}if(B[0].filter_records[v].match_lapse!==void 0){const p=B[0].filter_records[v].match_lapse.toString();(this.predefinedFiltersMatchLapse[p]||this.predefinedFiltersMatchLapse[p]=="")&&(this.predefinedFiltersMatchLapse[p]==""?D=D.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[p]):D=D.replace("{match_lapse}",this.predefinedFiltersMatchLapse[p]))}if(B[0].filter_records[v].playing_as!==void 0){const p=B[0].filter_records[v].playing_as.toString();(this.predefinedFiltersPlayingAs[p]||this.predefinedFiltersPlayingAs[p]=="")&&(this.predefinedFiltersPlayingAs[p]==""?D=D.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[p]):D=D.replace("{playing_as}",this.predefinedFiltersPlayingAs[p]))}B[0].filter_records[v].section_type!==void 0&&(this.optionSelected=="Jugadores"?D=D.replace("{section_type}","Jugadores"):D=D.replace("{section_type}","Equipos")),D=D.replace(/\[/g,""),D=D.replace(/\]/g,""),D=D.replace("{category_name}",B[0].category_name);const _=D.split(": ");var c=_[1];c.length>129&&this.windowWidth>1358&&(c=c.substring(0,129),c=c+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||B[0].filter_records[v].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:v,category_name:e.name,id_category:B[0].id,title:_[0]+":",text:_[1],textOrigin:B[0].description,titledots:c,filtersPredefined:{matchResult:B[0].filter_records[v].match_result,playingAs:B[0].filter_records[v].playing_as,sections:B[0].filter_records[v].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:B[0].type_zone,zone:B[0].filter_records[v].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let v=0;v<this.arrayPredefinedFilters.length;v++){var a=0,y=new Set,f={},n=this.arrayPredefinedFilters[v].text.replace(/\*.*?\*/,"");if(n=n.replace(/\*/g,""),n=n.replace(/ +/g," "),this.arrayPredefinedFilters[v].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[v].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[v].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,this.arrayPredefinedFilters[v].filtersPredefined.end_age]:this.arrayPredefinedFilters[v].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age==0?f.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.end_age==0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,60]:f.arrayAgeRange=[1,this.arrayPredefinedFilters[v].filtersPredefined.end_age],this.arrayPredefinedFilters[v].filtersPredefined.matchResult.length!=3&&(a+=1),f.matchResult=this.arrayPredefinedFilters[v].filtersPredefined.matchResult,this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length!=0){for(let _=0;_<this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length;_++)y.add(this.arrayPredefinedFilters[v].filtersPredefined.nationalities[_]);f.setNationalitiesIds=y}else y.add(138),y.add(222),y.add(163),y.add(51),y.add(226),y.add(10),y.add(223),y.add(96),y.add(171),y.add(198),y.add(105),y.add(80),y.add(29),y.add(74),y.add(216),y.add(196),y.add(64),y.add(155),y.add(156),y.add(89),y.add(106),y.add(81),y.add(233),y.add(204),f.setNationalitiesIds=y;this.arrayPredefinedFilters[v].filtersPredefined.playingAs.length!=2&&(a+=1),f.playingAs=this.arrayPredefinedFilters[v].filtersPredefined.playingAs,this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0?f.setPositionsIds=this.arrayPredefinedFilters[v].filtersPredefined.positions:f.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[v].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.sections.length>0?f.sections=this.arrayPredefinedFilters[v].filtersPredefined.sections:f.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[v].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.zone.length>0?f.zone=this.arrayPredefinedFilters[v].filtersPredefined.zone:f.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],f.typeZone=this.arrayPredefinedFilters[v].filtersPredefined.typeZone,g.push({id:v+1,name:n,isSelected:!1,value:a,filters:f})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((n,v)=>n-v).toString();this.predefinedFiltersSections[r]||this.predefinedFiltersSections[r]==""?this.predefinedFiltersSections[r]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var i=!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?(i=!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?(i||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 B=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[B]||this.predefinedFiltersMatchLapse[B]=="")this.predefinedFiltersMatchLapse[B]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[B]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[B]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var D="";B.includes(1)&&(D=D+"0-15, "),B.includes(2)&&(D=D+"16-30, "),B.includes(3)&&(D=D+"31-45, "),B.includes(4)&&(D=D+"46-60, "),B.includes(5)&&(D=D+"61-75, "),B.includes(6)&&(D=D+"76-90, "),D=D.slice(0,-2),D=D.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",D)}const c=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[c])),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 g=e.split(": ");let a=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),y=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const f=y.match(/\*/g);if(f&&f.length)if(f.length%2===0)for(let n=1;n<=f.length;n++)n%2===0||(y=y.replace("*",'<span style="color: #ffff03" >'));else y=y.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=y},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=$c.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(i=>(delete i.headers.Authorization,i));const r=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=r.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},qOt={ref:"myDivRefTopsFull"},YOt={key:0,class:"overlay-loading"},XOt=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],ZOt=[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],JOt={key:0,class:"cont-leyemd-multipleleagues"},KOt=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),QOt={key:0,style:{"margin-left":"10px"}},eFt=t.createElementVNode("span",null,"Tipo de Jugada",-1),tFt=t.createElementVNode("span",null,"Filtro GolStats",-1),aFt={key:3,style:{width:"100%",height:"295px"}};function nFt(e,r,i,B,D,c){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),y=t.resolveComponent("GSCFilters"),f=t.resolveComponent("GSCLabel"),n=t.resolveComponent("GSCTopCategory"),v=t.resolveComponent("GSCTableHeader"),_=t.resolveComponent("GSCRowTable"),p=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",qOt,[D.loadingActive?(t.openBlock(),t.createElementBlock("div",YOt,XOt)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[D.optionSelected!="Scouting"&&D.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(a,{data:D.teams,"team-id":i.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:c.clickTeam,onClickAll:c.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(D.showfiltersPc?"":B.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[B.elementSize.width>760&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:r[1]||(r[1]=(...l)=>c.clickCloseFilters&&c.clickCloseFilters(...l))},ZOt,2)):t.createCommentVNode("",!0),D.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":D.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:c.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(D.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:r[3]||(r[3]=(...l)=>c.openMenuFilters&&c.openMenuFilters(...l))},null,6),[[t.vShow,B.elementSize.width<760&&D.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[D.optionSelectedSubmenu=="Todas las jugadas"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersPlays,filters:D.categoriesPlaysTypes,onApply:c.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!D.showFullTable]]),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{key:D.updateFilterField,"filter-type":D.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersField,filters:D.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersDetails,filters:D.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),D.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(y,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:i.seasonActive,tournamentId:D.tournamentSelectedObj.value},token:D.token,"onUpdate:filters":c.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:D.tournamentsToFilter,key:D.keyTournamentValue,"onUpdate:filters":c.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:D.filterScounting.seasonId,tournamentId:D.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":c.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:D.universeData,"onUpdate:filters":c.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersProductivity,filters:D.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:r[4]||(r[4]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))},"Buscar",2)],64)):t.createCommentVNode("",!0),D.optionSelectedSubmenu=="Predeterminados"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModePropsTypePlays,{"filter-type":D.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:D.updateFilterPlaytypesGolstats,"onUpdate:filters":c.onFiltersPlaysTypes,filters:D.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:D.updateFilterGolstats,"onUpdate:filters":c.onFiltersGolStats,filters:c.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,B.elementSize.width>760||D.openMenuMobil]]),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[D.filterScounting.tournaments.length>1&&D.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",JOt,[KOt,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(a,{data:D.teamsscouting,"team-id":D.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:D.updateFilterTeamsScouting,onClickTeam:c.clickTeamScouting,onClickAll:c.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[D.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.optionSelected!="Scouting"&&D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.showFullTable?(t.openBlock(),t.createElementBlock("div",QOt,[t.createVNode(f,{"text-value":"Categoría - "+D.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteCategoryFilter,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayFiltersPlays,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:{"margin-left":"10px"}},[t.createVNode(f,{"text-value":l.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteLabelFilter,id:l.type,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:B.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),D.rowScoutingData.length!=0||D.optionSelectedSubmenu=="Predeterminados"&&D.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:r[5]||(r[5]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),i.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(D.showFullTable?"gap: 0px!important;":"")},[D.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.categoriesDefault,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:t.normalizeStyle(!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,onMore:c.onShowFullTable,"border-width":0,onIntervalidtops:c.intervalidtops,"can-play-videos":i.canPlayVideos,"border-radius":"12px","game-id":i.gameId,game:i.game,typeData:i.typeData,"filters-prop":c.filterChange,category:l.id,"type-table":D.typeTable,categoryName:l.name,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia,onComponentLoaded:e.onComponentLoaded},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[t.vShow,!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)&&!D.showFullTable]])],4))),128)),D.showFullTable?(t.openBlock(),t.createBlock(n,{"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,"is-widget":i.isWidget,"team-widget":i.teamWidget,"border-width":0,"border-radius":"12px","game-id":i.gameId,onIntervalidtops:c.intervalidtops,game:i.game,typeData:i.typeData,category:D.showFullCategory,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChange,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTablesfull,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.categoryPredefinedActive?(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"is-team":D.isTeam,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,onIntervalidtops:c.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":i.canPlayVideos,"game-id":i.gameId,game:i.game,typeData:i.typeData,category:D.categoryPredefined,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChangePredefined,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[eFt,t.createTextVNode(" y un "),tFt,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(D.rowScoutingData.length>0?"height: auto;":"")},[D.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.rowScoutingData.length>0?(t.openBlock(),t.createBlock(v,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.rowScoutingData,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[D.teamselectrec==0||D.teamselectrec==l.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(_,{type:2,"is-expanded":D.playerexpand==l.id&&D.expand,onMediadata:c.setMediaData,data:{position:l.position,player_name:l.player_name,player_photo:l.player_photo,total:l.total,id:l.id,player_age:l.player_age,team_abrev:l.team_abrev,team_logo:l.team_logo,player_position:D.positions[l.player_position-1].fullname,player_country_flag:l.player_country_flag,player_games:l.player_games,player_min:l.player_min,league_name:l.league_name,seasons:l.seasons,season_id:l.season_id},height:"71px",background:o%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),D.expand&&D.playerexpand==l.id?(t.openBlock(),t.createBlock(p,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:l.team_name,age:l.player_age,dataofbirth:l.date,nationality:l.nationality_name,countryFlag:l.player_country_flag,position:D.positions[l.player_position-1].name,games:l.player_games,min:l.player_min,goals:l.total,effectiveness:"-",category:"total",id:l.id},onViewprofile:s=>c.viewprofile(s,l.season_id,l.team_id),background:o%2===0?i.backgroundOdd:i.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:r[6]||(r[6]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Eliminar filtros aplicados ",2),D.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:r[7]||(r[7]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.loadingActive?(t.openBlock(),t.createElementBlock("div",aFt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const rFt=$i(WOt,[["render",nFt],["__cssModules",{$style:GOt}]]),Zxa="";let $q=null;const iFt={components:{GSCDatosGSMain:UBt,GSCCheckbox:Wg,GSCRadioToggle:IH,GSCTopFull:rFt},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e=="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)$q=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),$q.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):this.$emit("openmedia",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},oFt=e=>(t.pushScopeId("data-v-c2a09d4a"),e=e(),t.popScopeId(),e),sFt={class:"container-comparative",ref:"comparative"},lFt={class:"container-btn"},cFt={class:"items-container-btn"},dFt={class:"container-sections"},uFt={key:0,class:"container-teams-menu"},hFt={class:"container-team-menu-home"},pFt=["src"],fFt=oFt(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),mFt={class:"container-team-menu-away"},gFt=["src"],yFt={key:1,class:"container-switch-menu"},vFt={class:"container-leyend"},_Ft={class:"container-tops"};function bFt(e,r,i,B,D,c){const g=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),y=t.resolveComponent("GSCRadioToggle"),f=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",sFt,[t.createElementVNode("div",lFt,[t.createElementVNode("div",cFt,[t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-destacados":"btn-destacados-movil",D.activeSection=="destacados"?"active":""]),onClick:r[0]||(r[0]=n=>c.clickOptSection("destacados"))},[i.game.status==1||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-avanced":"btn-avanced-movil",D.activeSection=="avanzado"?"active":""]),onClick:r[1]||(r[1]=n=>c.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",dFt,[D.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"time-live-comparative-best-players":i.timeLiveComparativeBestPlayers,game:i.game,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,onIntervalidgs:c.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),D.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uFt,[t.createElementVNode("div",hFt,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:D.updateHomeCheck,"model-value":D.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:i.game.homeTeam.logo},null,8,pFt),t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(i.game.homeTeam.colloquial_name),3)]),fFt,t.createElementVNode("div",mFt,[t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(i.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:i.game.awayTeam.logo},null,8,gFt),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:D.updateAwayCheck,"model-value":D.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),i.game.status==1?(t.openBlock(),t.createElementBlock("div",yFt,[t.createVNode(y,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":D.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:c.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",vFt,[D.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",_Ft,[t.createVNode(f,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"can-play-videos":i.canPlayVideos,onOpenmedia:c.openmedia,onOpenProfileTeam:c.onOpenProfileTeam,onIntervalidtops:c.intervalidtops,onOpenProfilePlayer:c.onOpenProfilePlayer,"type-data":D.typeViewData,"game-id":i.game.gameId,game:i.game,"current-season-id":i.game.seasonId,"team-id":D.teamactive,"season-active":i.game.seasonId,teamselect:D.teamactive},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}const xFt=$i(iFt,[["render",bFt],["__scopeId","data-v-c2a09d4a"]]);function jq(e,r){return function(){return e.apply(r,arguments)}}const{toString:wFt}=Object.prototype,{getPrototypeOf:oA}=Object,N4=(e=>r=>{const i=wFt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),uf=e=>(e=e.toLowerCase(),r=>N4(r)===e),z4=e=>r=>typeof r===e,{isArray:Jy}=Array,I_=z4("undefined");function kFt(e){return e!==null&&!I_(e)&&e.constructor!==null&&!I_(e.constructor)&&Ih(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uq=uf("ArrayBuffer");function CFt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Uq(e.buffer),r}const SFt=z4("string"),Ih=z4("function"),Gq=z4("number"),O4=e=>e!==null&&typeof e=="object",TFt=e=>e===!0||e===!1,F4=e=>{if(N4(e)!=="object")return!1;const r=oA(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},EFt=uf("Date"),AFt=uf("File"),MFt=uf("Blob"),IFt=uf("FileList"),PFt=e=>O4(e)&&Ih(e.pipe),BFt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Ih(e.append)&&((r=N4(e))==="formdata"||r==="object"&&Ih(e.toString)&&e.toString()==="[object FormData]"))},NFt=uf("URLSearchParams"),[zFt,OFt,FFt,LFt]=["ReadableStream","Request","Response","Headers"].map(uf),DFt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Jy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function Hq(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const E1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wq=e=>!I_(e)&&e!==E1;function sA(){const{caseless:e}=Wq(this)&&this||{},r={},i=(B,D)=>{const c=e&&Hq(r,D)||D;F4(r[c])&&F4(B)?r[c]=sA(r[c],B):F4(B)?r[c]=sA({},B):Jy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&P_(arguments[B],i);return r}const RFt=(e,r,i,{allOwnKeys:B}={})=>(P_(r,(D,c)=>{i&&Ih(D)?e[c]=jq(D,i):e[c]=D},{allOwnKeys:B}),e),VFt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$Ft=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},jFt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&oA(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},UFt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},GFt=e=>{if(!e)return null;if(Jy(e))return e;let r=e.length;if(!Gq(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},HFt=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&oA(Uint8Array)),WFt=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},qFt=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},YFt=uf("HTMLFormElement"),XFt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),qq=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),ZFt=uf("RegExp"),Yq=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};P_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},JFt=e=>{Yq(e,(r,i)=>{if(Ih(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Ih(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},KFt=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Jy(e)?B(e):B(String(e).split(r)),i},QFt=()=>{},eLt=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,lA="abcdefghijklmnopqrstuvwxyz",Xq="0123456789",Zq={DIGIT:Xq,ALPHA:lA,ALPHA_DIGIT:lA+lA.toUpperCase()+Xq},tLt=(e=16,r=Zq.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function aLt(e){return!!(e&&Ih(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nLt=e=>{const r=new Array(10),i=(B,D)=>{if(O4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Jy(B)?[]:{};return P_(B,(g,a)=>{const y=i(g,D+1);!I_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},rLt=uf("AsyncFunction"),iLt=e=>e&&(O4(e)||Ih(e))&&Ih(e.then)&&Ih(e.catch),Jq=((e,r)=>e?setImmediate:r?((i,B)=>(E1.addEventListener("message",({source:D,data:c})=>{D===E1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),E1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ih(E1.postMessage)),oLt=typeof queueMicrotask<"u"?queueMicrotask.bind(E1):typeof process<"u"&&process.nextTick||Jq,vr={isArray:Jy,isArrayBuffer:Uq,isBuffer:kFt,isFormData:BFt,isArrayBufferView:CFt,isString:SFt,isNumber:Gq,isBoolean:TFt,isObject:O4,isPlainObject:F4,isReadableStream:zFt,isRequest:OFt,isResponse:FFt,isHeaders:LFt,isUndefined:I_,isDate:EFt,isFile:AFt,isBlob:MFt,isRegExp:ZFt,isFunction:Ih,isStream:PFt,isURLSearchParams:NFt,isTypedArray:HFt,isFileList:IFt,forEach:P_,merge:sA,extend:RFt,trim:DFt,stripBOM:VFt,inherits:$Ft,toFlatObject:jFt,kindOf:N4,kindOfTest:uf,endsWith:UFt,toArray:GFt,forEachEntry:WFt,matchAll:qFt,isHTMLForm:YFt,hasOwnProperty:qq,hasOwnProp:qq,reduceDescriptors:Yq,freezeMethods:JFt,toObjectSet:KFt,toCamelCase:XFt,noop:QFt,toFiniteNumber:eLt,findKey:Hq,global:E1,isContextDefined:Wq,ALPHABET:Zq,generateString:tLt,isSpecCompliantForm:aLt,toJSONObject:nLt,isAsyncFn:rLt,isThenable:iLt,setImmediate:Jq,asap:oLt};function ns(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}vr.inherits(ns,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vr.toJSONObject(this.config),code:this.code,status:this.status}}});const Kq=ns.prototype,Qq={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qq[e]={value:e}}),Object.defineProperties(ns,Qq),Object.defineProperty(Kq,"isAxiosError",{value:!0}),ns.from=(e,r,i,B,D,c)=>{const g=Object.create(Kq);return vr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ns.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const sLt=null;function cA(e){return vr.isPlainObject(e)||vr.isArray(e)}function eY(e){return vr.endsWith(e,"[]")?e.slice(0,-2):e}function tY(e,r,i){return e?e.concat(r).map(function(B,D){return B=eY(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function lLt(e){return vr.isArray(e)&&!e.some(cA)}const cLt=vr.toFlatObject(vr,{},null,function(e){return/^is[A-Z]/.test(e)});function L4(e,r,i){if(!vr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=vr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!vr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&vr.isSpecCompliantForm(r);if(!vr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(vr.isDate(p))return p.toISOString();if(!a&&vr.isBlob(p))throw new ns("Blob is not supported. Use a Buffer instead.");return vr.isArrayBuffer(p)||vr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(vr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(vr.isArray(p)&&lLt(p)||(vr.isFileList(p)||vr.endsWith(l,"[]"))&&(s=vr.toArray(p)))return l=eY(l),s.forEach(function(u,d){!(vr.isUndefined(u)||u===null)&&r.append(g===!0?tY([l],d,c):g===null?l:l+"[]",y(u))}),!1}return cA(p)?!0:(r.append(tY(o,l,c),y(p)),!1)}const n=[],v=Object.assign(cLt,{defaultVisitor:f,convertValue:y,isVisitable:cA});function _(p,l){if(!vr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),vr.forEach(p,function(o,s){(!(vr.isUndefined(o)||o===null)&&D.call(r,o,vr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!vr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function aY(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function dA(e,r){this._pairs=[],e&&L4(e,this,r)}const nY=dA.prototype;nY.append=function(e,r){this._pairs.push([e,r])},nY.toString=function(e){const r=e?function(i){return e.call(this,i,aY)}:aY;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function dLt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rY(e,r,i){if(!r)return e;const B=i&&i.encode||dLt,D=i&&i.serialize;let c;if(D?c=D(r,i):c=vr.isURLSearchParams(r)?r.toString():new dA(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class iY{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){vr.forEach(this.handlers,function(i){i!==null&&r(i)})}}const oY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uLt=typeof URLSearchParams<"u"?URLSearchParams:dA,hLt=typeof FormData<"u"?FormData:null,pLt=typeof Blob<"u"?Blob:null,fLt={isBrowser:!0,classes:{URLSearchParams:uLt,FormData:hLt,Blob:pLt},protocols:["http","https","file","blob","url","data"]},uA=typeof window<"u"&&typeof document<"u",hA=typeof navigator=="object"&&navigator||void 0,mLt=uA&&(!hA||["ReactNative","NativeScript","NS"].indexOf(hA.product)<0),gLt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yLt=uA&&window.location.href||"http://localhost",vLt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uA,hasStandardBrowserEnv:mLt,hasStandardBrowserWebWorkerEnv:gLt,navigator:hA,origin:yLt},Symbol.toStringTag,{value:"Module"})),Ph={...vLt,...fLt};function _Lt(e,r){return L4(e,new Ph.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ph.isNode&&vr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function bLt(e){return vr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function xLt(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function sY(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&vr.isArray(D)?D.length:g,y?(vr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!vr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&vr.isArray(D[g])&&(D[g]=xLt(D[g])),!a)}if(vr.isFormData(e)&&vr.isFunction(e.entries)){const i={};return vr.forEachEntry(e,(B,D)=>{r(bLt(B),D,i,0)}),i}return null}function wLt(e,r,i){if(vr.isString(e))try{return(r||JSON.parse)(e),vr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const B_={transitional:oY,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=vr.isObject(e);if(D&&vr.isHTMLForm(e)&&(e=new FormData(e)),vr.isFormData(e))return B?JSON.stringify(sY(e)):e;if(vr.isArrayBuffer(e)||vr.isBuffer(e)||vr.isStream(e)||vr.isFile(e)||vr.isBlob(e)||vr.isReadableStream(e))return e;if(vr.isArrayBufferView(e))return e.buffer;if(vr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return _Lt(e,this.formSerializer).toString();if((c=vr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return L4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),wLt(e)):e}],transformResponse:[function(e){const r=this.transitional||B_.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(vr.isResponse(e)||vr.isReadableStream(e))return e;if(e&&vr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?ns.from(c,ns.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ph.classes.FormData,Blob:Ph.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vr.forEach(["delete","get","head","post","put","patch"],e=>{B_.headers[e]={}});const kLt=vr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CLt=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
4162
|
+
*/const Tu={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Pq={itemsToShow:{default:Tu.itemsToShow,type:Number},itemsToScroll:{default:Tu.itemsToScroll,type:Number},wrapAround:{default:Tu.wrapAround,type:Boolean},throttle:{default:Tu.throttle,type:Number},snapAlign:{default:Tu.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Tu.transition,type:Number},breakpoints:{default:Tu.breakpoints,type:Object},autoplay:{default:Tu.autoplay,type:Number},pauseAutoplayOnHover:{default:Tu.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Tu.mouseDrag,type:Boolean},touchDrag:{default:Tu.touchDrag,type:Boolean},dir:{default:Tu.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Tu.i18n,type:Object},settings:{default(){return{}},type:Object}};function Mzt({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function Izt({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function eA({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function Pzt({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let g=r;switch(B){case"center":case"center-odd":g-=(c-1)/2;break;case"center-even":g-=(c-2)/2;break;case"end":g-=c-1;break}return D?g:eA({val:g,max:i-c,min:0})}function Bq(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...Bq(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function tA({val:e,max:r,min:i=0}){return e>r?tA({val:e-(r+1),max:r,min:i}):e<i?tA({val:e+(r+1),max:r,min:i}):e}function Bzt(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function Nzt(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function zzt(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var Ozt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Tu))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},zzt(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),Fzt=t.defineComponent({name:"Carousel",props:Pq,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),g=t.ref([]),a=t.ref(0),y=t.ref(0),f=t.reactive(Object.assign({},Tu));let n=Object.assign({},Tu),v;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",y),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){v=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function m(){if(!v||!Object.keys(v).length)return;const ae=Object.keys(v).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),v[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=Nzt(()=>{m(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){y.value<=0||(l.value=Math.ceil((y.value-1)/2),o.value=Mzt({config:f,slidesCount:y.value}),s.value=Izt({config:f,slidesCount:y.value}),f.wrapAround||(_.value=eA({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),m(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let C=!1;const T={x:0,y:0},k={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(C=ae.type==="touchstart",C||ae.preventDefault(),!(!C&&ae.button!==0||U.value)&&(T.x=C?ae.touches[0].clientX:ae.clientX,T.y=C?ae.touches[0].clientY:ae.clientY,document.addEventListener(C?"touchmove":"mousemove",F,!0),document.addEventListener(C?"touchend":"mouseup",R,!0)))}const F=Bzt(ae=>{M.value=!0,k.x=C?ae.touches[0].clientX:ae.clientX,k.y=C?ae.touches[0].clientY:ae.clientY;const ne=k.x-T.x,ie=k.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!C){const ue=he=>{he.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(C?"touchmove":"mousemove",F,!0),document.removeEventListener(C?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:eA({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=tA({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:y.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>Pzt({config:f,currentSlide:_.value,slidesCount:y.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${y.value*a.value}px`:"",width:"100%"}});function ee(){h(),m(),S(),x(),$()}Object.keys(Pq).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(y,S),i("before-init"),h();const le={config:f,slidesCount:y,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:m,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=Bq(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((be,we)=>t.cloneVNode(be,{index:-ae.length+we,isClone:!0,key:`clone-before-${we}`})),me=ae.map((be,we)=>t.cloneVNode(be,{index:ae.length+we,isClone:!0,key:`clone-after-${we}`}));ie=[...pe,...ae,...me]}g.value=ae,y.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(Ozt)])}}}),Nq;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Nq||(Nq={}));var Lzt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Tu))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),g=()=>e.index===B.value,a=()=>e.index===B.value-1,y=()=>e.index===B.value+1,f=()=>{const n=Math.floor(D.value),v=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=v};return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":g(),"carousel__slide--prev":a(),"carousel__slide--next":y(),"carousel__slide--sliding":c.value},"aria-hidden":!f()},(n=r.default)===null||n===void 0?void 0:n.call(r))}}});const Dzt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},Rzt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Vzt={class:"gsc-carousel"},$zt={key:0},jzt=Rzt(()=>t.createElementVNode("div",null,"no hay",-1)),Uzt=[jzt],Gzt={class:"gsc-carousel__2d__slides"},Hzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wzt=["fill"],qzt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yzt=["fill"],Xzt={class:"gsc-carousel__2d__navigation"},Zzt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jzt=["stroke"],Kzt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Qzt=["onClick"],eOt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tOt=["stroke"],aOt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(r=>r in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(o=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const D=t.ref(null),c=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(D,o=>{o&&a.value?(a.value=!1,y(B.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.defaultItemByIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>B.items,o=>{D.value?y(o):a.value=!0},{immediate:!0});function y(o){o&&o.length&&D.value&&setTimeout(()=>{if(B.defaultItemByProp){const s=B.items.findIndex(u=>u[B.defaultItemByProp.propName]===B.defaultItemByProp.value);s!==-1?(g.value=s,c.value=o[s]):(g.value=0,c.value=o[0])}else g.value=B.defaultItemByIndex,c.value=o[B.defaultItemByIndex];D.value.slideTo&&D.value.slideTo(g.value),c.value&&g.value===0&&i("input",{selectedItem:c.value,selectedItemIndex:g.value})},500)}function f(){D.value&&D.value.next()}function n(){D.value&&D.value.prev()}function v(){D.value&&D.value.updateSlideWidth()}function _(o){D.value&&D.value.slideTo(o)}function p(o){D.value.slideTo(o)}function l(o){const s=o.slidingToIndex<0?B.items.length-1:o.slidingToIndex===B.items.length?0:o.slidingToIndex;g.value=s,c.value=B.items[s],i("update:currentItemIndex",s),i("input",{selectedItem:c.value,selectedItemIndex:g.value})}return r({prev:n,next:f,updateSlideWidth:v,slideTo:_}),(o,s)=>(t.openBlock(),t.createElementBlock("div",Vzt,[B.is3d?(t.openBlock(),t.createElementBlock("div",$zt,Uzt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Gzt,[t.createVNode(t.unref(Fzt),{ref_key:"carousel2d",ref:D,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:l},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createBlock(t.unref(Lzt),{key:d},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:u},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[0]||(s[0]=u=>D.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Hzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,Wzt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:s[1]||(s[1]=u=>f())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",qzt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Yzt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Xzt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:s[2]||(s[2]=u=>n())},[(t.openBlock(),t.createElementBlock("svg",Zzt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Jzt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Kzt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${d}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${g.value===d?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${g.value===d?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>p(d)},null,12,Qzt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:s[3]||(s[3]=u=>D.value.next())},[(t.openBlock(),t.createElementBlock("svg",eOt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,tOt)]))])):t.createCommentVNode("",!0)])],2))]))}},nOt=Dzt(aOt,[["__scopeId","data-v-54620d25"]]),Y_a="",zq={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},X_a="",aA={components:{GSCCarousel:nOt,GSCLeaders:QNt,GSCRowTable:_q,GSCTableHeader:pq,GSCExpandedInfo:Iq},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=M_(e);return{myDivRef:e,elementSize:r}},watch:{season:{immediate:!1,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(){await this.getCategoryStats(this.season)}},filtersProp:{immediate:!1,deep:!0,async handler(e,r){e&&(JSON.stringify(e)!==JSON.stringify(r)||this.sonConjuntosDistintos(e.setNationalitiesIds,r.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},r={},i=[],B=[],D=[];return this.formatFilterStats.map(c=>{e[c.team_id]?e[c.team_id].total=e[c.team_id].total+c.total:(e[c.team_id]={},e[c.team_id].total=c.total,e[c.team_id].id=this.teamInfo[c.team_id].id,e[c.team_id].name=this.teamInfo[c.team_id].name.replace(" Femenil",""),e[c.team_id].img="https://az755631.vo.msecnd.net/teams-80/"+c.team_id+".png",e[c.team_id].effectiveness=this.teamInfo[c.team_id].effectiveness,e[c.team_id].frecuency=this.teamInfo[c.team_id].frecuency,e[c.team_id].game_avg=this.teamInfo[c.team_id].game_avg,e[c.team_id].game_avg_last_season=this.teamInfo[c.team_id].game_avg_last_season,e[c.team_id].games_played_lastseason=this.teamInfo[c.team_id].games_played_lastseason,e[c.team_id].games_played=this.teamInfo[c.team_id].games_played,e[c.team_id].positiontable=this.teamInfo[c.team_id].positiontable,e[c.team_id].goals=this.teamInfo[c.team_id].goals,e[c.team_id].goalsrecived=this.teamInfo[c.team_id].goalsrecived,e[c.team_id].xg=this.teamInfo[c.team_id].xg),r[c.player_id]?c.player_id!=0&&c.player_id!=62117&&(r[c.player_id].total=r[c.player_id].total+c.total):c.player_id!=0&&c.player_id!=62117&&(r[c.player_id]={},r[c.player_id].total=c.total,c.player_id&&this.playersInfo[c.player_id]?(r[c.player_id].name=this.playersInfo[c.player_id].name,r[c.player_id].name_short=this.getnameshort(this.playersInfo[c.player_id].name),r[c.player_id].img=this.playersInfo[c.player_id].img,r[c.player_id].id=this.playersInfo[c.player_id].id,r[c.player_id].age=this.playersInfo[c.player_id].age,r[c.player_id].team=this.playersInfo[c.player_id].team,r[c.player_id].teamname=this.playersInfo[c.player_id].teamname,r[c.player_id].teamid=this.playersInfo[c.player_id].teamid,r[c.player_id].position=this.playersInfo[c.player_id].position,r[c.player_id].positionId=this.playersInfo[c.player_id].positionId,r[c.player_id].positionfull=this.playersInfo[c.player_id].positionfull,r[c.player_id].country=this.playersInfo[c.player_id].country,r[c.player_id].effectiveness=this.playersInfo[c.player_id].effectiveness,r[c.player_id].minutes=this.playersInfo[c.player_id].minutes_played,r[c.player_id].games=this.playersInfo[c.player_id].games_played,r[c.player_id].date=this.playersInfo[c.player_id].date,r[c.player_id].nationality=this.playersInfo[c.player_id].nationality,r[c.player_id].player_country_flag=this.playersInfo[c.player_id].player_country_flag,r[c.player_id].categoryName=this.categoryName):(r[c.player_id].id=c.player_id,r[c.player_id].name=c.player_id,r[c.player_id].img="SIN IMAGEN",r[c.player_id].age="",r[c.player_id].teamname="",r[c.player_id].team="",r[c.player_id].teamid=0,r[c.player_id].position="",r[c.player_id].positionId=0,r[c.player_id].positionfull="",r[c.player_id].country="",r[c.player_id].effectiveness="",r[c.player_id].minutes="",r[c.player_id].games="",r[c.player_id].date="00-00-0000",r[c.player_id].nationality="",r[c.player_id].player_country_flag="",r[c.player_id].categoryName=""))}),i.push(...Object.values(e)),B.push(...Object.values(r)),i=this.sortAndSlice(Object.values(e),60),B=B.sort(this.compareObjectsMinutes).slice(0,60),B=B.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),i=i.map((c,g)=>(c.top=g<9?"0"+(g+1):""+(g+1),c)),this.filterTeam!==0&&!this.isTeam&&(D=B.filter(c=>c.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(i):this.filterTeam!=0?this.formatArrayPaginate(D):this.formatArrayPaginate(B)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,r){return e.total>r.total?-1:e.total<r.total?1:e.minutes<r.minutes?-1:e.minutes>r.minutes?1:0},sonConjuntosDistintos(e,r){const i=Array.from(e),B=Array.from(r);if(i.length!==B.length)return!0;for(let D=0;D<i.length;D++)if(!r.has(i[D]))return!0;return!1},getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,r){return e.total<r.total?-1:e.total>r.total?1:e.name<r.name?-1:e.name>r.name?1:0},sortAndSlice(e,r){return e.sort((i,B)=>(i.name<B.name?1:-1)&&(i.total<B.total?1:-1)).slice(0,r)},getCategoryName(e){let r="";for(let i=0;i<this.categories.length;i++)e==this.categories[i].id&&(r=this.categories[i].name);return r},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f,_=e.player_id;let p=[],l=this.isTeam?e.id:this.filterTeam;_?this.isTeam?l=_:(p=[_],a=a.filter(s=>!s.toString().includes("_r"))):this.isTeam?l=e.id:(p=[e.id],a=a.filter(s=>!s.toString().includes("_r")));const o={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:p,goalkeeperIds:[],categoryIds:this.translateTopCategories(r),teamId:l||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",o)},emitEventMediaFullTable(e,r,i){let B=this.filtersValues.matchResult,D=this.filtersValues.playingAs,c=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(r);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,D=this.filterEmitAux.playingAs,c=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const y=1,f=2,n=3,v=this.isTeam?n:f;let _=[],p=this.isTeam?e.id:this.filterTeam;this.isTeam?p=e.id:(_=[e.id],a=a.filter(o=>!o.toString().includes("_r")));const l={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:y,playListType:v,gameIds:null,playerIds:_,goalkeeperIds:[],categoryIds:a,teamId:p||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:i,playingAs:D,timeSections:c,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(r)}};this.$emit("setopenmedia",l)},replaceImgPlayer(e){return e.replace("https://az755631.vo.msecnd.net/players-profile/","https://az755631.vo.msecnd.net/players-profile-no-bg/")},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,r){this.$emit("clickprofile",{id:e,teamId:r,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){this.mapPlayers=new Map;try{if(!e)return;let r=[],i={},B={};this.arePlaysEmpty=!1;const D=$c.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let c={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):c=await D.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.teamWidget):c=await D.get(this.urlPrematch+this.season+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),c&&c.data&&c.data.data&&c.data.data.length>0){r=c.data.data.map(a=>this.formatStatsData(a)),c.data.teams.forEach(a=>{i[a[0]]={},i[a[0]].id=a[0],i[a[0]].name=a[1],i[a[0]].abrv=a[2],i[a[0]].img=a[3],i[a[0]].effectiveness=a[4],i[a[0]].games_played=a[5],i[a[0]].games_played_lastseason=a[6],i[a[0]].positiontable=a[7],i[a[0]].goals=a[8],i[a[0]].goalsrecived=a[9],i[a[0]].xg=a[10],i[a[0]].frecuency=a[11],i[a[0]].game_avg=a[12],i[a[0]].game_avg_last_season=a[13]});const g=new Set;c.data.players.forEach(a=>{const y=this.getObjectPlayer(a);this.mapPlayers.set(y.numberId,y);const f=y.numberAge,n=y.teamName.length>0?y.teamName[0].acronym:"",v=y.teamName.length>0?i[y.teamName[0].team_id].name:"",_=y.teamName.length>0?y.teamName[0].team_id:"",p=this.positions[y.numberPositionId-1].fullname,l=this.positions[y.numberPositionId-1].name,o=y.countryId.length>0?y.countryId[0].nationality_id:"",s=y.effectiveness,u=y.min,d=y.games,h=y.date;y.arrayNationalities.forEach(m=>{g.add(m.numberId)}),B[a[0]]={id:a[0],name:a[1],img:a[2],age:f,team:n,teamname:v,teamid:_,position:p,positionfull:l,effectiveness:s,country:o,games_played:d,minutes_played:u,date:h,nationality:y.stringNationalityName,player_country_flag:y.player_country_flag,positionId:y.numberPositionId}}),this.setNationalityIds=g,this.arrayAgeRange=[c.data.min_age,c.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=i,this.playersInfo=B,this.formatStats=r,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=c}catch(r){return Promise.reject(r)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(r=>{const i=e.playingAs.includes(r.playing_as),B=e.matchResult.includes(r.match_result),D=e.sections.includes(r.section),c=e.typeZone===1&&e.zone.includes(r.origen)||e.typeZone===2&&e.zone.includes(r.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(r.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(r.player_id))return!1}else{let a=!1;for(const y of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(y)){a=!0;break}if(!a)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||i)&&(e.matchResult.length===0||B)&&(e.sections.length===0||D)&&(e.zone.length===0||c)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const r={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((i,B)=>{r[i]=e[B]}),r},getObjectPlayer(e){const r=[],i=e[7].map(D=>(r.push(D.nationality_id),{stringName:D.nationality,numberId:D.nationality_id})),B=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://az755631.vo.msecnd.net/flags/"+e[3]+".jpg",stringNationalityName:zq[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:B.length>0?Number(B[0]):0,arrayNationalities:i,category:this.categoryName,arrayNationalitiesIds:r}},formatArrayPaginate(e){const r=Math.ceil(e.length/this.numRows);return Array.from({length:r},(i,B)=>{const D=B*this.numRows,c=D+this.numRows;return e.slice(D,c)})}},beforeUnmount(){clearInterval(this.intervalIdtops)}},Oq=()=>{t.useCssVars(e=>({"7270acad":e.borderRadius,"6f55fe4b":e.borderWidth,"6e3effe8":e.borderColor}))},Fq=aA.setup;aA.setup=Fq?(e,r)=>(Oq(),Fq(e,r)):Oq;const B4=e=>(t.pushScopeId("data-v-43d490e8"),e=e(),t.popScopeId(),e),rOt={ref:"myDivRef"},iOt={class:"btnViewFullList"},oOt={class:"text"},sOt={class:"groupsLeague"},lOt={class:"row-table-carrousel"},cOt={key:1,class:"container-no-search-result"},dOt={key:0,class:"overlay-loading-top"},uOt=[B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),B4(()=>t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1))],hOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),pOt=B4(()=>t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1));function fOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),y=t.resolveComponent("GSCExpandedInfo"),f=t.resolveComponent("GSCCarousel"),n=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",rOt,[t.createElementVNode("div",iOt,[t.createElementVNode("div",oOt,[t.createElementVNode("div",sOt,t.toDisplayString(i.categoryName),1)])]),i.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[c.topData.length>0?(t.openBlock(),t.createBlock(f,{key:0,items:c.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:c.changeCarrousel},{default:t.withCtx(({item:v})=>[t.createElementVNode("div",lOt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[_.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:r[0]||(r[0]=l=>c.emitEventMedia(l,i.category,i.categoryName)),type:i.typeTable,"type-data":i.typeData,game:i.game,"team-widget":i.teamWidget,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==_.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:i.typeTable==0?{top:"01",photo:_.img,logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",name:_.name,player_short:_.name_short,player_id:_.id,categoryId:i.category,total:_.total}:{top:"01",logo:_.img,total:_.total,name_team:_.name,player_id:_.id},"category-name":i.categoryName,buttonMaxWidth:i.typeTable!=0?B.elementSize.width>360?"210px":"130px":B.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:c.clickexpand,onMore:c.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{key:1,"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"is-expanded":e.playerexpand==_.id&&e.expand,onMediadata:r[1]||(r[1]=l=>c.emitEventMedia(l,i.category,i.categoryName)),data:i.typeTable==0?{position:_.top,player_name:_.name,player_short:_.name_short,player_photo:_.img,total:_.total,id:_.id,player_age:_.age,team_abrev:_.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+_.teamid+".png",player_position:_.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+_.country+".jpg",player_games:_.minutes,player_min:_.games,league_name:" Liga MX "}:{position:_.top,team_logo:_.img,team_abrev:_.name,frequency:_.frecuency,promthistournament:_.game_avg,promlasttournament:_.game_avg_last_season,teams_games:"-",category:i.category,total:_.total,id:_.id},height:"71px","can-play-videos":i.canPlayVideos,background:p%2===0?i.backgroundEven:i.backgroundOdd,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==_.id?(t.openBlock(),t.createBlock(y,{key:2,type:i.typeTable,"is-live":i.game.is_live,"view-effectiveness":_.positionId!==1,data:i.typeTable==0?{teams:_.teamname,age:_.age,dataofbirth:_.date,nationality:_.nationality,countryFlag:_.player_country_flag,position:_.position,games:_.games,min:_.minutes,goals:_.total,effectiveness:_.effectiveness,category:i.categoryName,id:_.id}:{position:_.positiontable,goals:_.goals,goals_received:_.goalsrecived,games_played:_.games_played,category:i.categoryName,effectiveness:_.effectiveness,xg:_.xg,total:_.total,attendance:"-",id:_.id},onViewprofile:l=>c.viewprofile(l,_.teamid),background:p%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",cOt,[e.isloading?(t.openBlock(),t.createElementBlock("div",dOt,uOt)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[hOt,pOt],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(n,{background:"#183143",type:i.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.topData,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:_},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[t.createVNode(a,{"type-data":i.typeData,"team-widget":i.teamWidget,game:i.game,type:i.typeTable,"type-view":i.type,"can-play-videos":i.canPlayVideos,"is-expanded":e.playerexpand==p.id&&e.expand,onMediadata:r[2]||(r[2]=o=>c.emitEventMediaFullTable(o,i.category,i.categoryName)),data:i.typeTable==0?{position:p.top,player_name:p.name,player_short:p.name_short,player_photo:p.img,total:p.total,id:p.id,player_age:p.age,team_abrev:p.team,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+p.teamid+".png",player_position:p.position,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+p.country+".jpg",player_games:p.games,player_min:p.minutes,league_name:" Liga MX "}:{position:p.positiontable,team_logo:p.img,team_abrev:p.name,frequency:p.frecuency,promthistournament:p.game_avg,promlasttournament:p.game_avg_last_season,category:i.category,team_games:p.games_played,total:p.total,id:p.id},height:"71px",background:((_+1)*5+l)%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==p.id?(t.openBlock(),t.createBlock(y,{key:0,type:i.typeTable,"is-live":i.game.is_live,additionalClass:"fullTable","view-effectiveness":p.positionId!==1,data:i.typeTable==0?{teams:p.teamname,age:p.age,dataofbirth:p.date,nationality:p.nationality,countryFlag:p.player_country_flag,position:p.positionfull,positionfull:p.positionfull,games:p.games,min:p.minutes,goals:p.total,effectiveness:p.effectiveness,category:c.getCategoryName(i.category),id:p.id}:{position:p.positiontable,goals:p.goals,goals_received:p.goalsrecived,games_played:p.games_played,category:i.categoryName,effectiveness:p.effectiveness,xg:p.xg,total:p.total,category:c.getCategoryName(i.category),attendance:"-",id:p.id},onViewprofile:o=>c.viewprofile(o,p.teamid),background:l%2===0?i.backgroundEven:i.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const mOt=$i(aA,[["render",fOt],["__scopeId","data-v-43d490e8"]]),gOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},yOt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},vOt=["src"],_Ot=["src"];function bOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",null,[i.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(c.customStyle),class:"gsc-label",onClick:r[0]||(r[0]=(...g)=>c.btnLabel&&c.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,vOt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(c.customStyle)},[t.createTextVNode(t.toDisplayString(i.numFilter)+" "+t.toDisplayString(i.textValue)+" ",1),i.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:r[1]||(r[1]=(...g)=>c.btnClose&&c.btnClose(...g)),style:t.normalizeStyle(c.customIcon),class:"icon",src:i.icon},null,12,_Ot)):t.createCommentVNode("",!0)],4))])}const xOt=gOt(yOt,[["render",bOt],["__scopeId","data-v-42ff544a"]]);function wOt(e){const r=t.ref({width:0,height:0});function i(){const B=e.value.getBoundingClientRect();r.value.width=B.width,r.value.height=B.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:r}}const kOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},nA={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,r=this.$refs.content.scrollWidth;r>0&&e>0&&(r>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Lq=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},Dq=nA.setup;nA.setup=Dq?(e,r)=>(Lq(),Dq(e,r)):Lq;const COt={ref:"gscScrollableContainer",class:"scrollable-container"},SOt={class:"scrollable-arrows"},TOt=["width","height","viewBox"],EOt=["stroke"],AOt={class:"scrollable-wrapper"},MOt={class:"scrollable-arrows"},IOt=["width","height","viewBox"],POt=["stroke"];function BOt(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",COt,[i.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",c.hideShowLeftArrow]),onClick:r[0]||(r[0]=(...g)=>c.scrollLeft&&c.scrollLeft(...g))},[t.createElementVNode("div",SOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:i.arrowsColor},null,8,EOt)],8,TOt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:r[1]||(r[1]=(...g)=>c.getScroll&&c.getScroll(...g))},[t.createElementVNode("div",AOt,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),i.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",c.hideShowRightArrow]),onClick:r[2]||(r[2]=(...g)=>c.scrollRight&&c.scrollRight(...g))},[t.createElementVNode("div",MOt,[(t.openBlock(),t.createElementBlock("svg",{width:i.arrowsWidth,height:i.arrowsHeight,viewBox:c.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:i.arrowsColor},null,8,POt)],8,IOt))])],2)):t.createCommentVNode("",!0)],512)}const NOt=kOt(nA,[["render",BOt],["__scopeId","data-v-b548a08d"]]),zOt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},rA={components:{GSCSlider:NOt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:r}=wOt(e);return{myDivRef:e,elementSize:r}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var r={};return e.width>768?r={fontSize:"16px"}:e.width>480?r={fontSize:"14px"}:r={fontSize:"12px"},r}}},Rq=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},Vq=rA.setup;rA.setup=Vq?(e,r)=>(Rq(),Vq(e,r)):Rq;const OOt={ref:"myDivRef"},FOt={key:0,class:"gs-switch-container"},LOt=["onClick"],DOt={key:1,class:"gs-switch-container-type"},ROt=["onClick"],VOt={key:2,class:"gs-switch-container-carousel"},$Ot=["onClick"];function jOt(e,r,i,B,D,c){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",OOt,[i.type==0?(t.openBlock(),t.createElementBlock("div",FOt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,LOt))),128))],4),t.renderSlot(e.$slots,i.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",DOt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([c.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:i.backgroundOptionDisable}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,ROt))),128))],4)])):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",VOt,[t.createVNode(g,{arrows:i.arrow,"background-color":i.background,"px-scroll":i.pxScroll,"scroll-color":i.scrollColor,"arrows-position":i.arrowsPosition,arrowsScrollHide:i.arrowsScrollHide,"arrows-background":i.arrowsBackground,"arrows-container-bg-l":i.arrowsContainerBgL,"arrows-container-bg-r":i.arrowsContainerBgR,"arrows-margin":i.arrowsMargin,"arrows-radius":i.arrowsRadius,"arrows-border":i.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.buttons,(a,y)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:i.height},i.selectedOption==a?{borderColor:i.colorOptionActive,color:i.colorFont+"!important",background:i.backgroundOptionActive}:{borderColor:i.colorOptionDisable,color:"grey !important"}]),key:y,onClick:f=>(i.selectedOption=a,c.clickEmitEvent(a))},t.toDisplayString(a),13,$Ot))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const iA=zOt(rA,[["render",jOt],["__scopeId","data-v-8a86dfaf"]]),K_a="",Q_a="";function UOt(){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 eba="",GOt={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"},HOt=t.ref(UOt()),WOt={components:{GSCTableHeader:pq,GscSwitchComponent:iA,GSCFilterperteam:$Nt,GSCFilters:YW,GSCExpandedInfo:Iq,GSCLabel:xOt,GSCSeasonSelect:tI,GSCTopCategory:mOt,GSCTournamentSelect:KM,GSCRowTable:_q},computed:{...GBt.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},r=JSON.stringify(e);if(JSON.stringify(this.filters)!=r)return r},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...HOt.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},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:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let r=0;r<e.teams.length;r++)this.teams.push({id:e.teams[r].team_id,team:e.teams[r].colloquial_name,logo:e.teams[r].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:r}=M_(e);return{myDivRefTopsFull:e,elementSize:r}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],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:[],updateFilterTeamsScouting:0,filtersTypes:er,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";return D=D.replace(",",""),c+". "+D},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const r=e.id===this.selectedTournament.id;e.isSelected=r,e.isDefaultTournament=r})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;this.setUpTournamentsToFilter();const r=this.$refs.personalDataFilter;r.clearFilters(hd.All),r.clearFilters(hd.AGE_RANGE),r.clearFilters(hd.YEAR),r.clearFilters(hd.NATIONALITY),r.clearFilters(hd.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},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 D=[e.id],c=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:D,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:c||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",g)},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,r,i){this.$emit("openProfilePlayer",{playerId:e,teamId:i,seasonId:r||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=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 i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersTournaments");i!==-1?this.arrayFiltersPlays[i].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 D=0;D<r.length;D++){r[D];let g=r[D].dob.split("T")[0].split("-");var B={position:D+1,player_name:this.abrevName(r[D].name),player_photo:"https://az755631.vo.msecnd.net/players-profile/"+r[D].player_id+".png",total:r[D].total.toFixed(0),id:r[D].player_id,player_age:this.calcularEdad(r[D].dob),team_abrev:r[D].teams[0].acronym,team_name:r[D].teams[0].team_name,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+r[D].teams[0].team_id+".png",player_position:r[D].position_id,player_country_flag:"https://az755631.vo.msecnd.net/flags/"+r[D].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:r[D].team_id,nationality_name:zq[r[D].nationality_id],player_games:r[D].games_played,player_min:r[D].minutes_played,league_name:r[D].tournament_name,seasons:r[D].seasons,season_id:r[D].seasons[0]};this.rowScoutingData.push(B)}if(this.seasonsFilterSelected!=0){const D=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let c=0;c<D.teams.length;c++)this.teamsscouting.push({id:D.teams[c].team_id,team:D.teams[c].colloquial_name,logo:D.teams[c].logo})}this.loadingActive=!1},abrevName(e){var r=e.split(","),i=r[0].split(" "),B=r[1].trim().split(" "),D="";i.length==2||i.length==1?i[0].length<4?D=i[0]+" "+i[1]:D=i[0]:i.length==3?D=i[0]+" "+i[1]:i.length==4&&(D=i[1]+" "+i[2]+" "+i[3]);var c=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";D=D.replace(",","");var g=c+". "+D;return g},calcularEdad(e){var r=new Date(e),i=new Date,B=i-r,D=Math.floor(B/(1e3*60*60*24*365.25));return D},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var r=[];for(let i=0;i<e.length;i++)e[i].isSelected&&r.push(e[i].id);if(r.length==0&&(r=[1]),r.length==1)for(let i=0;i<e.length;i++)e[i].isSelected&&(this.nameLeagueSelected=e[i].name,this.seasonsFilterSelected=e[i].seasons[0].id);else this.seasonsFilterSelected=0,r.length>0&&(this.nameLeagueSelected=r.length+" Ligas");this.filterScounting.tournaments=r,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const B=e.ageByRange.min==0?10:e.ageByRange.min,D=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[B,D],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 r=[];if(e.hasOwnProperty("nationalities")){for(let B=0;B<e.nationalities.length;B++)e.nationalities[B].isSelected&&r.push(e.nationalities[B].id);r.length==0&&(r=[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 i=[];for(let B=0;B<e.positions.length;B++)e.positions[B].isSelected&&i.push(e.positions[B].id);i.length==0&&(i=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=i,this.filterScounting.nationalities=r},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 r=[];for(let i=0;i<e.productivityFilters.length;i++)r[e.productivityFilters[i].priority-1]={name:e.productivityFilters[i].name,ids:e.productivityFilters[i].id};r.length==0&&(r=[]),this.filterScounting.categories=r,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 r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");r!==-1?this.arrayFiltersPlays[r].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){this.filtersPredefinedF=this.filters;for(let D=0;D<this.FVfilterGolstats.length;D++)this.FVfilterGolstats[D].isSelected=!1;var i=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,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 r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&r!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(r,1);var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(i!==-1){for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,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 r=this.arrayFiltersPlays.findIndex(D=>D.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&r!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(r,1);for(let c=0;c<this.categoriesDefault.length;c++)this.categoriesDefault[c].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&i!==-1){for(let c=0;c<this.FVfilterGolstats.length;c++)this.FVfilterGolstats[c].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,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,r){return Math.floor(Math.random()*(r-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let i=0;i<this.categoriesPlaysTypes.offensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.defensive.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.possession.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i]);for(let i=0;i<this.categoriesPlaysTypes.offenses.categories.length;i++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[i].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[i])}else for(let i=0;i<e.playsCategories.length;i++)e.playsCategories[i].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[i].id),this.arrayCategoryFilterFull.push(e.playsCategories[i]));var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):r!=-1?this.arrayFiltersPlays[r].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):r!==-1&&this.arrayFiltersPlays.splice(r,1)},async deleteLabelFilter(e){var r=this.arrayFiltersPlays.findIndex(B=>B.type===e);if(r!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let D=0;D<this.detaildProductivityCategories.offensive.categories.length;D++)this.detaildProductivityCategories.offensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.defensive.categories.length;D++)this.detaildProductivityCategories.defensive.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.possession.categories.length;D++)this.detaildProductivityCategories.possession.categories[D].isSelected=!1;for(let D=0;D<this.detaildProductivityCategories.offensesConditions.length;D++)this.detaildProductivityCategories.offensesConditions[D]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(D,c)=>c+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const B=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let D=0;D<B.teams.length;D++)this.teamsscouting.push({id:B.teams[D].team_id,team:B.teams[D].colloquial_name,logo:B.teams[D].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let B=0;B<this.categoriesPlaysTypes.offensive.categories.length;B++)this.categoriesPlaysTypes.offensive.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.defensive.categories.length;B++)this.categoriesPlaysTypes.defensive.categories[B].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[B]);for(let B=0;B<this.categoriesPlaysTypes.possession.categories.length;B++)this.categoriesPlaysTypes.possession.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.offenses.categories.length;B++)this.categoriesPlaysTypes.offenses.categories[B].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:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var i=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");i!==-1&&this.arrayFiltersPlays.splice(i,1);for(let B=0;B<this.categoriesDefault.length;B++)this.categoriesDefault[B].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:this.FVbooleanAreNationalTeamsVisible,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:this.FVbooleanAreNationalTeamsVisible,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:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.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:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.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:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(hd.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(hd.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(hd.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(r,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersField");r!=-1?this.arrayFiltersPlays[r].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(r!=-1?this.arrayFiltersPlays[r].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(r!=-1?this.arrayFiltersPlays[r].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(r!=-1?this.arrayFiltersPlays[r].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(r,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var r=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var i=[];for(let c=0;c<e.playingAs.length;c++)if(e.playingAs[c].isSelected){const g=e.playingAs[c].name=="Local"?1:2;r.push(g)}for(let c=0;c<e.gameSections.length;c++)e.gameSections[c].isSelected&&i.push(e.gameSections[c].value);this.fVsections=i,this.fVplayingAs=r;var B=this.arrayFiltersPlays.findIndex(c=>c.type==="onFiltersDetailsTime"),D="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(D+=", 0-15"),this.fVsections.includes(2)&&(D+=", 15-30"),this.fVsections.includes(3)&&(D+=", 30-45"),this.fVsections.includes(4)&&(D+=", 45-60"),this.fVsections.includes(5)&&(D+=", 60-75"),this.fVsections.includes(6)&&(D+=", 75-90"),B!=-1?this.arrayFiltersPlays[B].name=D:this.arrayFiltersPlays.push({name:D,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):B!=-1&&this.arrayFiltersPlays.splice(B,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,D)=>D+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(hd.All),e.clearFilters(hd.AGE_RANGE),e.clearFilters(hd.YEAR),e.clearFilters(hd.NATIONALITY),e.clearFilters(hd.POSITION),this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;var r=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(r,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<i.teams.length;B++)this.teamsscouting.push({id:i.teams[B].team_id,team:i.teams[B].colloquial_name,logo:i.teams[B].logo})},onFiltersData(e){var r=0,i=0;e.ageByRange&&(e.ageByRange.min==0?r=1:r=e.ageByRange.min,e.ageByRange.max==0?i=40:i=e.ageByRange.max,this.fVarrayAgeRange=[r,i]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let B="",D="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let _=0;_<e.nationalities.length;_++)e.nationalities[_].isSelected&&this.fVnationalities.add(e.nationalities[_].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let _=0;_<this.elegibilidadArray.length;_++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[_])}for(let _=0;_<e.positions.length;_++)e.positions[_].isSelected&&this.fVsetPositionsIds.push(e.positions[_].id);if(e.hasOwnProperty("nationalities"))var c=e.nationalities.filter(_=>_.isSelected===!0);var g=e.positions.filter(_=>_.isSelected===!0);if(g.length==1&&(B=g[0].name),e.hasOwnProperty("nationalities")&&c.length==1&&(D=c[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var a=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var y=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersPosition");y!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[y].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B:this.arrayFiltersPlays.splice(y,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var f=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersYear");f!=-1?this.arrayFiltersPlays[f].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var n=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersAge");n!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var n=this.arrayFiltersPlays.findIndex(p=>p.type==="onFiltersAge");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var v=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersNationality");v!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[v].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+D,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},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){if(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.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const r=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let i=0;i<r.teams.length;i++)this.teamsscouting.push({id:r.teams[i].team_id,team:r.teams[i].colloquial_name,logo:r.teams[i].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(i=>i.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 i=0;i<this.categoriesDefault.length;i++)this.categoriesDefault[i].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var r=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersPredefined");if(r!==-1){for(let i=0;i<this.FVfilterGolstats.length;i++)this.FVfilterGolstats[i].isSelected=!1;r!==-1&&this.arrayFiltersPlays.splice(r,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.tournamentsUrl);return r},async fetchTeams(){const e=$c.create({headers:{Authorization:`${this.token}`}}),{data:r}=await e.get(this.teamsUrl+this.seasonActive);return r},async fetchTeamsScouting(e){const r=$c.create({headers:{Authorization:`${this.token}`}}),{data:i}=await r.get(this.teamsUrl+e);return i},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var r="";e.id==1?r=this.urlFilter:r=this.urlFilter;const i=$c.create({headers:{Authorization:`${this.token}`}}),{data:B}=await i.get(r+e.id);if(Object.keys(B[0].match_lapse_combinations).forEach(v=>{this.predefinedFiltersMatchLapse[v.toString()]=B[0].match_lapse_combinations[v]}),Object.keys(B[0].playing_as_combinations).forEach(v=>{this.predefinedFiltersPlayingAs[v.toString()]=B[0].playing_as_combinations[v]}),Object.keys(B[0].field_sections_combinations).forEach(v=>{this.predefinedFiltersSections[v.toString()]=B[0].field_sections_combinations[v]}),B[0]){for(let v=0;v<B[0].filter_records.length;v++){var D=B[0].description;if(B[0].filter_records[v].field_sections!==void 0){const p=B[0].filter_records[v].field_sections.toString();(this.predefinedFiltersSections[p]||this.predefinedFiltersSections[p]=="")&&(this.predefinedFiltersSections[p]==""?D=D.replace(" [en {field_sections}]",this.predefinedFiltersSections[p]):D=D.replace("{field_sections}",this.predefinedFiltersSections[p]))}if(B[0].filter_records[v].match_lapse!==void 0){const p=B[0].filter_records[v].match_lapse.toString();(this.predefinedFiltersMatchLapse[p]||this.predefinedFiltersMatchLapse[p]=="")&&(this.predefinedFiltersMatchLapse[p]==""?D=D.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[p]):D=D.replace("{match_lapse}",this.predefinedFiltersMatchLapse[p]))}if(B[0].filter_records[v].playing_as!==void 0){const p=B[0].filter_records[v].playing_as.toString();(this.predefinedFiltersPlayingAs[p]||this.predefinedFiltersPlayingAs[p]=="")&&(this.predefinedFiltersPlayingAs[p]==""?D=D.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[p]):D=D.replace("{playing_as}",this.predefinedFiltersPlayingAs[p]))}B[0].filter_records[v].section_type!==void 0&&(this.optionSelected=="Jugadores"?D=D.replace("{section_type}","Jugadores"):D=D.replace("{section_type}","Equipos")),D=D.replace(/\[/g,""),D=D.replace(/\]/g,""),D=D.replace("{category_name}",B[0].category_name);const _=D.split(": ");var c=_[1];c.length>129&&this.windowWidth>1358&&(c=c.substring(0,129),c=c+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||B[0].filter_records[v].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:v,category_name:e.name,id_category:B[0].id,title:_[0]+":",text:_[1],textOrigin:B[0].description,titledots:c,filtersPredefined:{matchResult:B[0].filter_records[v].match_result,playingAs:B[0].filter_records[v].playing_as,sections:B[0].filter_records[v].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:B[0].type_zone,zone:B[0].filter_records[v].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let v=0;v<this.arrayPredefinedFilters.length;v++){var a=0,y=new Set,f={},n=this.arrayPredefinedFilters[v].text.replace(/\*.*?\*/,"");if(n=n.replace(/\*/g,""),n=n.replace(/ +/g," "),this.arrayPredefinedFilters[v].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[v].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[v].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,this.arrayPredefinedFilters[v].filtersPredefined.end_age]:this.arrayPredefinedFilters[v].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[v].filtersPredefined.start_age==0?f.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[v].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[v].filtersPredefined.end_age==0?f.arrayAgeRange=[this.arrayPredefinedFilters[v].filtersPredefined.start_age,60]:f.arrayAgeRange=[1,this.arrayPredefinedFilters[v].filtersPredefined.end_age],this.arrayPredefinedFilters[v].filtersPredefined.matchResult.length!=3&&(a+=1),f.matchResult=this.arrayPredefinedFilters[v].filtersPredefined.matchResult,this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length!=0){for(let _=0;_<this.arrayPredefinedFilters[v].filtersPredefined.nationalities.length;_++)y.add(this.arrayPredefinedFilters[v].filtersPredefined.nationalities[_]);f.setNationalitiesIds=y}else y.add(138),y.add(222),y.add(163),y.add(51),y.add(226),y.add(10),y.add(223),y.add(96),y.add(171),y.add(198),y.add(105),y.add(80),y.add(29),y.add(74),y.add(216),y.add(196),y.add(64),y.add(155),y.add(156),y.add(89),y.add(106),y.add(81),y.add(233),y.add(204),f.setNationalitiesIds=y;this.arrayPredefinedFilters[v].filtersPredefined.playingAs.length!=2&&(a+=1),f.playingAs=this.arrayPredefinedFilters[v].filtersPredefined.playingAs,this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.positions.length>0?f.setPositionsIds=this.arrayPredefinedFilters[v].filtersPredefined.positions:f.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[v].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.sections.length>0?f.sections=this.arrayPredefinedFilters[v].filtersPredefined.sections:f.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[v].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[v].filtersPredefined.zone.length>0?f.zone=this.arrayPredefinedFilters[v].filtersPredefined.zone:f.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],f.typeZone=this.arrayPredefinedFilters[v].filtersPredefined.typeZone,g.push({id:v+1,name:n,isSelected:!1,value:a,filters:f})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((n,v)=>n-v).toString();this.predefinedFiltersSections[r]||this.predefinedFiltersSections[r]==""?this.predefinedFiltersSections[r]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections[r]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var i=!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?(i=!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?(i||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 B=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[B]||this.predefinedFiltersMatchLapse[B]=="")this.predefinedFiltersMatchLapse[B]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[B]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[B]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var D="";B.includes(1)&&(D=D+"0-15, "),B.includes(2)&&(D=D+"16-30, "),B.includes(3)&&(D=D+"31-45, "),B.includes(4)&&(D=D+"46-60, "),B.includes(5)&&(D=D+"61-75, "),B.includes(6)&&(D=D+"76-90, "),D=D.slice(0,-2),D=D.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",D)}const c=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[c]||this.predefinedFiltersPlayingAs[c]=="")&&(this.predefinedFiltersPlayingAs[c]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[c]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[c])),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 g=e.split(": ");let a=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),y=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const f=y.match(/\*/g);if(f&&f.length)if(f.length%2===0)for(let n=1;n<=f.length;n++)n%2===0||(y=y.replace("*",'<span style="color: #ffff03" >'));else y=y.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=y},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=$c.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(i=>(delete i.headers.Authorization,i));const r=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=r.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},qOt={ref:"myDivRefTopsFull"},YOt={key:0,class:"overlay-loading"},XOt=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)],ZOt=[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)],JOt={key:0,class:"cont-leyemd-multipleleagues"},KOt=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),QOt={key:0,style:{"margin-left":"10px"}},eFt=t.createElementVNode("span",null,"Tipo de Jugada",-1),tFt=t.createElementVNode("span",null,"Filtro GolStats",-1),aFt={key:3,style:{width:"100%",height:"295px"}};function nFt(e,r,i,B,D,c){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),y=t.resolveComponent("GSCFilters"),f=t.resolveComponent("GSCLabel"),n=t.resolveComponent("GSCTopCategory"),v=t.resolveComponent("GSCTableHeader"),_=t.resolveComponent("GSCRowTable"),p=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",qOt,[D.loadingActive?(t.openBlock(),t.createElementBlock("div",YOt,XOt)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[D.optionSelected!="Scouting"&&D.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(a,{data:D.teams,"team-id":i.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:c.clickTeam,onClickAll:c.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(D.showfiltersPc?"":B.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[B.elementSize.width>760&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:r[1]||(r[1]=(...l)=>c.clickCloseFilters&&c.clickCloseFilters(...l))},ZOt,2)):t.createCommentVNode("",!0),D.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":D.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:c.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(D.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:r[3]||(r[3]=(...l)=>c.openMenuFilters&&c.openMenuFilters(...l))},null,6),[[t.vShow,B.elementSize.width<760&&D.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[D.optionSelectedSubmenu=="Todas las jugadas"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersPlays,filters:D.categoriesPlaysTypes,onApply:c.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!D.showFullTable]]),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{key:D.updateFilterField,"filter-type":D.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersField,filters:D.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersDetails,filters:D.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),D.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(y,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:i.seasonActive,tournamentId:D.tournamentSelectedObj.value},token:D.token,"onUpdate:filters":c.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:D.tournamentsToFilter,key:D.keyTournamentValue,"onUpdate:filters":c.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:D.filterScounting.seasonId,tournamentId:D.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":c.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:D.universeData,"onUpdate:filters":c.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(y,t.mergeProps({"button-filter-props":c.filterButtonProps},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":c.onFiltersProductivity,filters:D.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:r[4]||(r[4]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))},"Buscar",2)],64)):t.createCommentVNode("",!0),D.optionSelectedSubmenu=="Predeterminados"&&D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModePropsTypePlays,{"filter-type":D.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:D.updateFilterPlaytypesGolstats,"onUpdate:filters":c.onFiltersPlaysTypes,filters:D.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(y,t.mergeProps({"button-filter-props":c.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?D.expansionPanelModePropsMobil270:B.elementSize.width<760?D.expansionPanelModePropsMobil:D.expansionPanelModeProps,{"filter-type":D.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:D.updateFilterGolstats,"onUpdate:filters":c.onFiltersGolStats,filters:c.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,B.elementSize.width>760||D.openMenuMobil]]),D.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[D.filterScounting.tournaments.length>1&&D.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",JOt,[KOt,t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(a,{data:D.teamsscouting,"team-id":D.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:D.updateFilterTeamsScouting,onClickTeam:c.clickTeamScouting,onClickAll:c.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[D.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.optionSelected!="Scouting"&&D.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.showFullTable?(t.openBlock(),t.createElementBlock("div",QOt,[t.createVNode(f,{"text-value":"Categoría - "+D.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteCategoryFilter,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.arrayFiltersPlays,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:{"margin-left":"10px"}},[t.createVNode(f,{"text-value":l.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:c.deleteLabelFilter,id:l.type,icon:"https://az755631.vo.msecnd.net/todoelfut/icn_close.png","icon-size":"6px",height:B.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),D.rowScoutingData.length!=0||D.optionSelectedSubmenu=="Predeterminados"&&D.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:r[5]||(r[5]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),i.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(D.showFullTable?"gap: 0px!important;":"")},[D.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.categoriesDefault,(l,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,style:t.normalizeStyle(!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,onMore:c.onShowFullTable,"border-width":0,onIntervalidtops:c.intervalidtops,"can-play-videos":i.canPlayVideos,"border-radius":"12px","game-id":i.gameId,game:i.game,typeData:i.typeData,"filters-prop":c.filterChange,category:l.id,"type-table":D.typeTable,categoryName:l.name,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!D.showOnlyCategories&&D.arrayCategoryFilter.includes(l.id)&&!D.showFullTable]])],4))),128)),D.showFullTable?(t.openBlock(),t.createBlock(n,{"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"is-team":D.isTeam,"is-widget":i.isWidget,"team-widget":i.teamWidget,"border-width":0,"border-radius":"12px","game-id":i.gameId,onIntervalidtops:c.intervalidtops,game:i.game,typeData:i.typeData,category:D.showFullCategory,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChange,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTablesfull,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[D.categoryPredefinedActive?(t.openBlock(),t.createBlock(n,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"is-team":D.isTeam,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,onIntervalidtops:c.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":i.canPlayVideos,"game-id":i.gameId,game:i.game,typeData:i.typeData,category:D.categoryPredefined,type:1,"type-table":D.typeTable,categoryName:"","filters-prop":c.filterChangePredefined,season:i.seasonActive,"filter-team":i.teamselect,key:D.updateTables,onClickprofile:c.clickprofile,onSetopenmedia:c.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[eFt,t.createTextVNode(" y un "),tFt,t.createTextVNode(" en la")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[D.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(D.rowScoutingData.length>0?"height: auto;":"")},[D.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[D.rowScoutingData.length>0?(t.openBlock(),t.createBlock(v,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.rowScoutingData,(l,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[D.teamselectrec==0||D.teamselectrec==l.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(_,{type:2,"is-expanded":D.playerexpand==l.id&&D.expand,onMediadata:c.setMediaData,data:{position:l.position,player_name:l.player_name,player_photo:l.player_photo,total:l.total,id:l.id,player_age:l.player_age,team_abrev:l.team_abrev,team_logo:l.team_logo,player_position:D.positions[l.player_position-1].fullname,player_country_flag:l.player_country_flag,player_games:l.player_games,player_min:l.player_min,league_name:l.league_name,seasons:l.seasons,season_id:l.season_id},height:"71px",background:o%2===0?i.backgroundOdd:i.backgroundEven,onExpand:c.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),D.expand&&D.playerexpand==l.id?(t.openBlock(),t.createBlock(p,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:l.team_name,age:l.player_age,dataofbirth:l.date,nationality:l.nationality_name,countryFlag:l.player_country_flag,position:D.positions[l.player_position-1].name,games:l.player_games,min:l.player_min,goals:l.total,effectiveness:"-",category:"total",id:l.id},onViewprofile:s=>c.viewprofile(s,l.season_id,l.team_id),background:o%2===0?i.backgroundOdd:i.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),D.rowScoutingData.length==0&&!D.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:r[6]||(r[6]=(...l)=>c.onClickDeleteFilter&&c.onClickDeleteFilter(...l))}," Eliminar filtros aplicados ",2),D.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:r[7]||(r[7]=(...l)=>c.getScoutingData&&c.getScoutingData(...l))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),D.loadingActive?(t.openBlock(),t.createElementBlock("div",aFt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const rFt=$i(WOt,[["render",nFt],["__cssModules",{$style:GOt}]]),Zxa="";let $q=null;const iFt={components:{GSCDatosGSMain:UBt,GSCCheckbox:Wg,GSCRadioToggle:IH,GSCTopFull:rFt},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e=="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)$q=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),$q.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):this.$emit("openmedia",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},oFt=e=>(t.pushScopeId("data-v-c2a09d4a"),e=e(),t.popScopeId(),e),sFt={class:"container-comparative",ref:"comparative"},lFt={class:"container-btn"},cFt={class:"items-container-btn"},dFt={class:"container-sections"},uFt={key:0,class:"container-teams-menu"},hFt={class:"container-team-menu-home"},pFt=["src"],fFt=oFt(()=>t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),mFt={class:"container-team-menu-away"},gFt=["src"],yFt={key:1,class:"container-switch-menu"},vFt={class:"container-leyend"},_Ft={class:"container-tops"};function bFt(e,r,i,B,D,c){const g=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),y=t.resolveComponent("GSCRadioToggle"),f=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",sFt,[t.createElementVNode("div",lFt,[t.createElementVNode("div",cFt,[t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-destacados":"btn-destacados-movil",D.activeSection=="destacados"?"active":""]),onClick:r[0]||(r[0]=n=>c.clickOptSection("destacados"))},[i.game.status==1||i.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([D.widthSection>480?"btn-avanced":"btn-avanced-movil",D.activeSection=="avanzado"?"active":""]),onClick:r[1]||(r[1]=n=>c.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",dFt,[D.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,"is-widget":i.isWidget,"team-widget":i.teamWidget,"tournament-selected":i.tournamentSelected,"time-live-comparative-best-players":i.timeLiveComparativeBestPlayers,game:i.game,"play-videos-privileges":i.playVideosPrivileges,onOpenmedia:c.openmedia,onIntervalidgs:c.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),D.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",uFt,[t.createElementVNode("div",hFt,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:D.updateHomeCheck,"model-value":D.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:i.game.homeTeam.logo},null,8,pFt),t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(i.game.homeTeam.colloquial_name),3)]),fFt,t.createElementVNode("div",mFt,[t.createElementVNode("div",{class:t.normalizeClass(D.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(i.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:i.game.awayTeam.logo},null,8,gFt),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":c.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:D.updateAwayCheck,"model-value":D.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),i.game.status==1?(t.openBlock(),t.createElementBlock("div",yFt,[t.createVNode(y,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":D.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:c.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",vFt,[D.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",_Ft,[t.createVNode(f,{"is-widget":i.isWidget,"team-widget":i.teamWidget,"time-live-comparative-avanced":i.timeLiveComparativeAvanced,"can-play-videos":i.canPlayVideos,onOpenmedia:c.openmedia,onOpenProfileTeam:c.onOpenProfileTeam,onIntervalidtops:c.intervalidtops,onOpenProfilePlayer:c.onOpenProfilePlayer,"type-data":D.typeViewData,"game-id":i.game.gameId,game:i.game,"current-season-id":i.game.seasonId,"team-id":D.teamactive,"season-active":i.game.seasonId,teamselect:D.teamactive},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","teamselect"])])],64)):t.createCommentVNode("",!0)])],512)}const xFt=$i(iFt,[["render",bFt],["__scopeId","data-v-c2a09d4a"]]);function jq(e,r){return function(){return e.apply(r,arguments)}}const{toString:wFt}=Object.prototype,{getPrototypeOf:oA}=Object,N4=(e=>r=>{const i=wFt.call(r);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),uf=e=>(e=e.toLowerCase(),r=>N4(r)===e),z4=e=>r=>typeof r===e,{isArray:Jy}=Array,I_=z4("undefined");function kFt(e){return e!==null&&!I_(e)&&e.constructor!==null&&!I_(e.constructor)&&Ih(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uq=uf("ArrayBuffer");function CFt(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Uq(e.buffer),r}const SFt=z4("string"),Ih=z4("function"),Gq=z4("number"),O4=e=>e!==null&&typeof e=="object",TFt=e=>e===!0||e===!1,F4=e=>{if(N4(e)!=="object")return!1;const r=oA(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},EFt=uf("Date"),AFt=uf("File"),MFt=uf("Blob"),IFt=uf("FileList"),PFt=e=>O4(e)&&Ih(e.pipe),BFt=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||Ih(e.append)&&((r=N4(e))==="formdata"||r==="object"&&Ih(e.toString)&&e.toString()==="[object FormData]"))},NFt=uf("URLSearchParams"),[zFt,OFt,FFt,LFt]=["ReadableStream","Request","Response","Headers"].map(uf),DFt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P_(e,r,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let B,D;if(typeof e!="object"&&(e=[e]),Jy(e))for(B=0,D=e.length;B<D;B++)r.call(null,e[B],B,e);else{const c=i?Object.getOwnPropertyNames(e):Object.keys(e),g=c.length;let a;for(B=0;B<g;B++)a=c[B],r.call(null,e[a],a,e)}}function Hq(e,r){r=r.toLowerCase();const i=Object.keys(e);let B=i.length,D;for(;B-- >0;)if(D=i[B],r===D.toLowerCase())return D;return null}const E1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wq=e=>!I_(e)&&e!==E1;function sA(){const{caseless:e}=Wq(this)&&this||{},r={},i=(B,D)=>{const c=e&&Hq(r,D)||D;F4(r[c])&&F4(B)?r[c]=sA(r[c],B):F4(B)?r[c]=sA({},B):Jy(B)?r[c]=B.slice():r[c]=B};for(let B=0,D=arguments.length;B<D;B++)arguments[B]&&P_(arguments[B],i);return r}const RFt=(e,r,i,{allOwnKeys:B}={})=>(P_(r,(D,c)=>{i&&Ih(D)?e[c]=jq(D,i):e[c]=D},{allOwnKeys:B}),e),VFt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),$Ft=(e,r,i,B)=>{e.prototype=Object.create(r.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),i&&Object.assign(e.prototype,i)},jFt=(e,r,i,B)=>{let D,c,g;const a={};if(r=r||{},e==null)return r;do{for(D=Object.getOwnPropertyNames(e),c=D.length;c-- >0;)g=D[c],(!B||B(g,e,r))&&!a[g]&&(r[g]=e[g],a[g]=!0);e=i!==!1&&oA(e)}while(e&&(!i||i(e,r))&&e!==Object.prototype);return r},UFt=(e,r,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=r.length;const B=e.indexOf(r,i);return B!==-1&&B===i},GFt=e=>{if(!e)return null;if(Jy(e))return e;let r=e.length;if(!Gq(r))return null;const i=new Array(r);for(;r-- >0;)i[r]=e[r];return i},HFt=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&oA(Uint8Array)),WFt=(e,r)=>{const i=(e&&e[Symbol.iterator]).call(e);let B;for(;(B=i.next())&&!B.done;){const D=B.value;r.call(e,D[0],D[1])}},qFt=(e,r)=>{let i;const B=[];for(;(i=e.exec(r))!==null;)B.push(i);return B},YFt=uf("HTMLFormElement"),XFt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,B){return i.toUpperCase()+B}),qq=(({hasOwnProperty:e})=>(r,i)=>e.call(r,i))(Object.prototype),ZFt=uf("RegExp"),Yq=(e,r)=>{const i=Object.getOwnPropertyDescriptors(e),B={};P_(i,(D,c)=>{let g;(g=r(D,c,e))!==!1&&(B[c]=g||D)}),Object.defineProperties(e,B)},JFt=e=>{Yq(e,(r,i)=>{if(Ih(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const B=e[i];if(Ih(B)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},KFt=(e,r)=>{const i={},B=D=>{D.forEach(c=>{i[c]=!0})};return Jy(e)?B(e):B(String(e).split(r)),i},QFt=()=>{},eLt=(e,r)=>e!=null&&Number.isFinite(e=+e)?e:r,lA="abcdefghijklmnopqrstuvwxyz",Xq="0123456789",Zq={DIGIT:Xq,ALPHA:lA,ALPHA_DIGIT:lA+lA.toUpperCase()+Xq},tLt=(e=16,r=Zq.ALPHA_DIGIT)=>{let i="";const{length:B}=r;for(;e--;)i+=r[Math.random()*B|0];return i};function aLt(e){return!!(e&&Ih(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nLt=e=>{const r=new Array(10),i=(B,D)=>{if(O4(B)){if(r.indexOf(B)>=0)return;if(!("toJSON"in B)){r[D]=B;const c=Jy(B)?[]:{};return P_(B,(g,a)=>{const y=i(g,D+1);!I_(y)&&(c[a]=y)}),r[D]=void 0,c}}return B};return i(e,0)},rLt=uf("AsyncFunction"),iLt=e=>e&&(O4(e)||Ih(e))&&Ih(e.then)&&Ih(e.catch),Jq=((e,r)=>e?setImmediate:r?((i,B)=>(E1.addEventListener("message",({source:D,data:c})=>{D===E1&&c===i&&B.length&&B.shift()()},!1),D=>{B.push(D),E1.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",Ih(E1.postMessage)),oLt=typeof queueMicrotask<"u"?queueMicrotask.bind(E1):typeof process<"u"&&process.nextTick||Jq,vr={isArray:Jy,isArrayBuffer:Uq,isBuffer:kFt,isFormData:BFt,isArrayBufferView:CFt,isString:SFt,isNumber:Gq,isBoolean:TFt,isObject:O4,isPlainObject:F4,isReadableStream:zFt,isRequest:OFt,isResponse:FFt,isHeaders:LFt,isUndefined:I_,isDate:EFt,isFile:AFt,isBlob:MFt,isRegExp:ZFt,isFunction:Ih,isStream:PFt,isURLSearchParams:NFt,isTypedArray:HFt,isFileList:IFt,forEach:P_,merge:sA,extend:RFt,trim:DFt,stripBOM:VFt,inherits:$Ft,toFlatObject:jFt,kindOf:N4,kindOfTest:uf,endsWith:UFt,toArray:GFt,forEachEntry:WFt,matchAll:qFt,isHTMLForm:YFt,hasOwnProperty:qq,hasOwnProp:qq,reduceDescriptors:Yq,freezeMethods:JFt,toObjectSet:KFt,toCamelCase:XFt,noop:QFt,toFiniteNumber:eLt,findKey:Hq,global:E1,isContextDefined:Wq,ALPHABET:Zq,generateString:tLt,isSpecCompliantForm:aLt,toJSONObject:nLt,isAsyncFn:rLt,isThenable:iLt,setImmediate:Jq,asap:oLt};function ns(e,r,i,B,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),i&&(this.config=i),B&&(this.request=B),D&&(this.response=D,this.status=D.status?D.status:null)}vr.inherits(ns,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vr.toJSONObject(this.config),code:this.code,status:this.status}}});const Kq=ns.prototype,Qq={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Qq[e]={value:e}}),Object.defineProperties(ns,Qq),Object.defineProperty(Kq,"isAxiosError",{value:!0}),ns.from=(e,r,i,B,D,c)=>{const g=Object.create(Kq);return vr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ns.call(g,e.message,r,i,B,D),g.cause=e,g.name=e.name,c&&Object.assign(g,c),g};const sLt=null;function cA(e){return vr.isPlainObject(e)||vr.isArray(e)}function eY(e){return vr.endsWith(e,"[]")?e.slice(0,-2):e}function tY(e,r,i){return e?e.concat(r).map(function(B,D){return B=eY(B),!i&&D?"["+B+"]":B}).join(i?".":""):r}function lLt(e){return vr.isArray(e)&&!e.some(cA)}const cLt=vr.toFlatObject(vr,{},null,function(e){return/^is[A-Z]/.test(e)});function L4(e,r,i){if(!vr.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,i=vr.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,l){return!vr.isUndefined(l[p])});const B=i.metaTokens,D=i.visitor||f,c=i.dots,g=i.indexes,a=(i.Blob||typeof Blob<"u"&&Blob)&&vr.isSpecCompliantForm(r);if(!vr.isFunction(D))throw new TypeError("visitor must be a function");function y(p){if(p===null)return"";if(vr.isDate(p))return p.toISOString();if(!a&&vr.isBlob(p))throw new ns("Blob is not supported. Use a Buffer instead.");return vr.isArrayBuffer(p)||vr.isTypedArray(p)?a&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,l,o){let s=p;if(p&&!o&&typeof p=="object"){if(vr.endsWith(l,"{}"))l=B?l:l.slice(0,-2),p=JSON.stringify(p);else if(vr.isArray(p)&&lLt(p)||(vr.isFileList(p)||vr.endsWith(l,"[]"))&&(s=vr.toArray(p)))return l=eY(l),s.forEach(function(u,d){!(vr.isUndefined(u)||u===null)&&r.append(g===!0?tY([l],d,c):g===null?l:l+"[]",y(u))}),!1}return cA(p)?!0:(r.append(tY(o,l,c),y(p)),!1)}const n=[],v=Object.assign(cLt,{defaultVisitor:f,convertValue:y,isVisitable:cA});function _(p,l){if(!vr.isUndefined(p)){if(n.indexOf(p)!==-1)throw Error("Circular reference detected in "+l.join("."));n.push(p),vr.forEach(p,function(o,s){(!(vr.isUndefined(o)||o===null)&&D.call(r,o,vr.isString(s)?s.trim():s,l,v))===!0&&_(o,l?l.concat(s):[s])}),n.pop()}}if(!vr.isObject(e))throw new TypeError("data must be an object");return _(e),r}function aY(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return r[i]})}function dA(e,r){this._pairs=[],e&&L4(e,this,r)}const nY=dA.prototype;nY.append=function(e,r){this._pairs.push([e,r])},nY.toString=function(e){const r=e?function(i){return e.call(this,i,aY)}:aY;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function dLt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rY(e,r,i){if(!r)return e;const B=i&&i.encode||dLt,D=i&&i.serialize;let c;if(D?c=D(r,i):c=vr.isURLSearchParams(r)?r.toString():new dA(r,i).toString(B),c){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class iY{constructor(){this.handlers=[]}use(r,i,B){return this.handlers.push({fulfilled:r,rejected:i,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){vr.forEach(this.handlers,function(i){i!==null&&r(i)})}}const oY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uLt=typeof URLSearchParams<"u"?URLSearchParams:dA,hLt=typeof FormData<"u"?FormData:null,pLt=typeof Blob<"u"?Blob:null,fLt={isBrowser:!0,classes:{URLSearchParams:uLt,FormData:hLt,Blob:pLt},protocols:["http","https","file","blob","url","data"]},uA=typeof window<"u"&&typeof document<"u",hA=typeof navigator=="object"&&navigator||void 0,mLt=uA&&(!hA||["ReactNative","NativeScript","NS"].indexOf(hA.product)<0),gLt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",yLt=uA&&window.location.href||"http://localhost",vLt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uA,hasStandardBrowserEnv:mLt,hasStandardBrowserWebWorkerEnv:gLt,navigator:hA,origin:yLt},Symbol.toStringTag,{value:"Module"})),Ph={...vLt,...fLt};function _Lt(e,r){return L4(e,new Ph.classes.URLSearchParams,Object.assign({visitor:function(i,B,D,c){return Ph.isNode&&vr.isBuffer(i)?(this.append(B,i.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},r))}function bLt(e){return vr.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function xLt(e){const r={},i=Object.keys(e);let B;const D=i.length;let c;for(B=0;B<D;B++)c=i[B],r[c]=e[c];return r}function sY(e){function r(i,B,D,c){let g=i[c++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),y=c>=i.length;return g=!g&&vr.isArray(D)?D.length:g,y?(vr.hasOwnProp(D,g)?D[g]=[D[g],B]:D[g]=B,!a):((!D[g]||!vr.isObject(D[g]))&&(D[g]=[]),r(i,B,D[g],c)&&vr.isArray(D[g])&&(D[g]=xLt(D[g])),!a)}if(vr.isFormData(e)&&vr.isFunction(e.entries)){const i={};return vr.forEachEntry(e,(B,D)=>{r(bLt(B),D,i,0)}),i}return null}function wLt(e,r,i){if(vr.isString(e))try{return(r||JSON.parse)(e),vr.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(i||JSON.stringify)(e)}const B_={transitional:oY,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const i=r.getContentType()||"",B=i.indexOf("application/json")>-1,D=vr.isObject(e);if(D&&vr.isHTMLForm(e)&&(e=new FormData(e)),vr.isFormData(e))return B?JSON.stringify(sY(e)):e;if(vr.isArrayBuffer(e)||vr.isBuffer(e)||vr.isStream(e)||vr.isFile(e)||vr.isBlob(e)||vr.isReadableStream(e))return e;if(vr.isArrayBufferView(e))return e.buffer;if(vr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(D){if(i.indexOf("application/x-www-form-urlencoded")>-1)return _Lt(e,this.formSerializer).toString();if((c=vr.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return L4(c?{"files[]":e}:e,g&&new g,this.formSerializer)}}return D||B?(r.setContentType("application/json",!1),wLt(e)):e}],transformResponse:[function(e){const r=this.transitional||B_.transitional,i=r&&r.forcedJSONParsing,B=this.responseType==="json";if(vr.isResponse(e)||vr.isReadableStream(e))return e;if(e&&vr.isString(e)&&(i&&!this.responseType||B)){const D=!(r&&r.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(c){if(D)throw c.name==="SyntaxError"?ns.from(c,ns.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ph.classes.FormData,Blob:Ph.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vr.forEach(["delete","get","head","post","put","patch"],e=>{B_.headers[e]={}});const kLt=vr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),CLt=e=>{const r={};let i,B,D;return e&&e.split(`
|
|
4163
4163
|
`).forEach(function(c){D=c.indexOf(":"),i=c.substring(0,D).trim().toLowerCase(),B=c.substring(D+1).trim(),!(!i||r[i]&&kLt[i])&&(i==="set-cookie"?r[i]?r[i].push(B):r[i]=[B]:r[i]=r[i]?r[i]+", "+B:B)}),r},lY=Symbol("internals");function N_(e){return e&&String(e).trim().toLowerCase()}function D4(e){return e===!1||e==null?e:vr.isArray(e)?e.map(D4):String(e)}function SLt(e){const r=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=i.exec(e);)r[B[1]]=B[2];return r}const TLt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pA(e,r,i,B,D){if(vr.isFunction(B))return B.call(this,r,i);if(D&&(r=i),!!vr.isString(r)){if(vr.isString(B))return r.indexOf(B)!==-1;if(vr.isRegExp(B))return B.test(r)}}function ELt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,i,B)=>i.toUpperCase()+B)}function ALt(e,r){const i=vr.toCamelCase(" "+r);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+i,{value:function(D,c,g){return this[B].call(this,r,D,c,g)},configurable:!0})})}class lh{constructor(r){r&&this.set(r)}set(r,i,B){const D=this;function c(a,y,f){const n=N_(y);if(!n)throw new Error("header name must be a non-empty string");const v=vr.findKey(D,n);(!v||D[v]===void 0||f===!0||f===void 0&&D[v]!==!1)&&(D[v||y]=D4(a))}const g=(a,y)=>vr.forEach(a,(f,n)=>c(f,n,y));if(vr.isPlainObject(r)||r instanceof this.constructor)g(r,i);else if(vr.isString(r)&&(r=r.trim())&&!TLt(r))g(CLt(r),i);else if(vr.isHeaders(r))for(const[a,y]of r.entries())c(y,a,B);else r!=null&&c(i,r,B);return this}get(r,i){if(r=N_(r),r){const B=vr.findKey(this,r);if(B){const D=this[B];if(!i)return D;if(i===!0)return SLt(D);if(vr.isFunction(i))return i.call(this,D,B);if(vr.isRegExp(i))return i.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,i){if(r=N_(r),r){const B=vr.findKey(this,r);return!!(B&&this[B]!==void 0&&(!i||pA(this,this[B],B,i)))}return!1}delete(r,i){const B=this;let D=!1;function c(g){if(g=N_(g),g){const a=vr.findKey(B,g);a&&(!i||pA(B,B[a],a,i))&&(delete B[a],D=!0)}}return vr.isArray(r)?r.forEach(c):c(r),D}clear(r){const i=Object.keys(this);let B=i.length,D=!1;for(;B--;){const c=i[B];(!r||pA(this,this[c],c,r,!0))&&(delete this[c],D=!0)}return D}normalize(r){const i=this,B={};return vr.forEach(this,(D,c)=>{const g=vr.findKey(B,c);if(g){i[g]=D4(D),delete i[c];return}const a=r?ELt(c):String(c).trim();a!==c&&delete i[c],i[a]=D4(D),B[a]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const i=Object.create(null);return vr.forEach(this,(B,D)=>{B!=null&&B!==!1&&(i[D]=r&&vr.isArray(B)?B.join(", "):B)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,i])=>r+": "+i).join(`
|
|
4164
4164
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[lY]=this[lY]={accessors:{}}).accessors,B=this.prototype;function D(c){const g=N_(c);i[g]||(ALt(B,c),i[g]=!0)}return vr.isArray(r)?r.forEach(D):D(r),this}}lh.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vr.reduceDescriptors(lh.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),vr.freezeMethods(lh);function fA(e,r){const i=this||B_,B=r||i,D=lh.from(B.headers);let c=B.data;return vr.forEach(e,function(g){c=g.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function cY(e){return!!(e&&e.__CANCEL__)}function Ky(e,r,i){ns.call(this,e??"canceled",ns.ERR_CANCELED,r,i),this.name="CanceledError"}vr.inherits(Ky,ns,{__CANCEL__:!0});function dY(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new ns("Request failed with status code "+i.status,[ns.ERR_BAD_REQUEST,ns.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function MLt(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function ILt(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,g;return r=r!==void 0?r:1e3,function(a){const y=Date.now(),f=B[c];g||(g=y),i[D]=a,B[D]=y;let n=c,v=0;for(;n!==D;)v+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),y-g<r)return;const _=f&&y-f;return _?Math.round(v*1e3/_):void 0}}function PLt(e,r){let i=0,B=1e3/r,D,c;const g=(a,y=Date.now())=>{i=y,D=null,c&&(clearTimeout(c),c=null),e.apply(null,a)};return[(...a)=>{const y=Date.now(),f=y-i;f>=B?g(a,y):(D=a,c||(c=setTimeout(()=>{c=null,g(D)},B-f)))},()=>D&&g(D)]}const R4=(e,r,i=3)=>{let B=0;const D=ILt(50,250);return PLt(c=>{const g=c.loaded,a=c.lengthComputable?c.total:void 0,y=g-B,f=D(y),n=g<=a;B=g;const v={loaded:g,total:a,progress:a?g/a:void 0,bytes:y,rate:f||void 0,estimated:f&&a&&n?(a-g)/f:void 0,event:c,lengthComputable:a!=null,[r?"download":"upload"]:!0};e(v)},i)},uY=(e,r)=>{const i=e!=null;return[B=>r[0]({lengthComputable:i,total:e,loaded:B}),r[1]]},hY=e=>(...r)=>vr.asap(()=>e(...r)),BLt=Ph.hasStandardBrowserEnv?function(){const e=Ph.navigator&&/(msie|trident)/i.test(Ph.navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=vr.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}(),NLt=Ph.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const g=[e+"="+encodeURIComponent(r)];vr.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),vr.isString(B)&&g.push("path="+B),vr.isString(D)&&g.push("domain="+D),c===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zLt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OLt(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function pY(e,r){return e&&!zLt(r)?OLt(e,r):r}const fY=e=>e instanceof lh?{...e}:e;function A1(e,r){r=r||{};const i={};function B(f,n,v){return vr.isPlainObject(f)&&vr.isPlainObject(n)?vr.merge.call({caseless:v},f,n):vr.isPlainObject(n)?vr.merge({},n):vr.isArray(n)?n.slice():n}function D(f,n,v){if(vr.isUndefined(n)){if(!vr.isUndefined(f))return B(void 0,f,v)}else return B(f,n,v)}function c(f,n){if(!vr.isUndefined(n))return B(void 0,n)}function g(f,n){if(vr.isUndefined(n)){if(!vr.isUndefined(f))return B(void 0,f)}else return B(void 0,n)}function a(f,n,v){if(v in r)return B(f,n);if(v in e)return B(void 0,f)}const y={url:c,method:c,data:c,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(f,n)=>D(fY(f),fY(n),!0)};return vr.forEach(Object.keys(Object.assign({},e,r)),function(f){const n=y[f]||D,v=n(e[f],r[f],f);vr.isUndefined(v)&&n!==a||(i[f]=v)}),i}const mY=e=>{const r=A1({},e);let{data:i,withXSRFToken:B,xsrfHeaderName:D,xsrfCookieName:c,headers:g,auth:a}=r;r.headers=g=lh.from(g),r.url=rY(pY(r.baseURL,r.url),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let y;if(vr.isFormData(i)){if(Ph.hasStandardBrowserEnv||Ph.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((y=g.getContentType())!==!1){const[f,...n]=y?y.split(";").map(v=>v.trim()).filter(Boolean):[];g.setContentType([f||"multipart/form-data",...n].join("; "))}}if(Ph.hasStandardBrowserEnv&&(B&&vr.isFunction(B)&&(B=B(r)),B||B!==!1&&BLt(r.url))){const f=D&&c&&NLt.read(c);f&&g.set(D,f)}return r},FLt=typeof XMLHttpRequest<"u",LLt=FLt&&function(e){return new Promise(function(r,i){const B=mY(e);let D=B.data;const c=lh.from(B.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:y}=B,f,n,v,_,p;function l(){_&&_(),p&&p(),B.cancelToken&&B.cancelToken.unsubscribe(f),B.signal&&B.signal.removeEventListener("abort",f)}let o=new XMLHttpRequest;o.open(B.method.toUpperCase(),B.url,!0),o.timeout=B.timeout;function s(){if(!o)return;const d=lh.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:d,config:e,request:o};dY(function(m){r(m),l()},function(m){i(m),l()},h),o=null}"onloadend"in o?o.onloadend=s:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(s)},o.onabort=function(){o&&(i(new ns("Request aborted",ns.ECONNABORTED,e,o)),o=null)},o.onerror=function(){i(new ns("Network Error",ns.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let d=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const h=B.transitional||oY;B.timeoutErrorMessage&&(d=B.timeoutErrorMessage),i(new ns(d,h.clarifyTimeoutError?ns.ETIMEDOUT:ns.ECONNABORTED,e,o)),o=null},D===void 0&&c.setContentType(null),"setRequestHeader"in o&&vr.forEach(c.toJSON(),function(d,h){o.setRequestHeader(h,d)}),vr.isUndefined(B.withCredentials)||(o.withCredentials=!!B.withCredentials),g&&g!=="json"&&(o.responseType=B.responseType),y&&([v,p]=R4(y,!0),o.addEventListener("progress",v)),a&&o.upload&&([n,_]=R4(a),o.upload.addEventListener("progress",n),o.upload.addEventListener("loadend",_)),(B.cancelToken||B.signal)&&(f=d=>{o&&(i(!d||d.type?new Ky(null,e,o):d),o.abort(),o=null)},B.cancelToken&&B.cancelToken.subscribe(f),B.signal&&(B.signal.aborted?f():B.signal.addEventListener("abort",f)));const u=MLt(B.url);if(u&&Ph.protocols.indexOf(u)===-1){i(new ns("Unsupported protocol "+u+":",ns.ERR_BAD_REQUEST,e));return}o.send(D||null)})},DLt=(e,r)=>{let i=new AbortController,B;const D=function(y){if(!B){B=!0,g();const f=y instanceof Error?y:this.reason;i.abort(f instanceof ns?f:new Ky(f instanceof Error?f.message:f))}};let c=r&&setTimeout(()=>{D(new ns(`timeout ${r} of ms exceeded`,ns.ETIMEDOUT))},r);const g=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(y=>{y&&(y.removeEventListener?y.removeEventListener("abort",D):y.unsubscribe(D))}),e=null)};e.forEach(y=>y&&y.addEventListener&&y.addEventListener("abort",D));const{signal:a}=i;return a.unsubscribe=g,[a,()=>{c&&clearTimeout(c),c=null}]},RLt=function*(e,r){let i=e.byteLength;if(!r||i<r){yield e;return}let B=0,D;for(;B<i;)D=B+r,yield e.slice(B,D),B=D},VLt=async function*(e,r,i){for await(const B of e)yield*RLt(ArrayBuffer.isView(B)?B:await i(String(B)),r)},gY=(e,r,i,B,D)=>{const c=VLt(e,r,D);let g=0,a,y=f=>{a||(a=!0,B&&B(f))};return new ReadableStream({async pull(f){try{const{done:n,value:v}=await c.next();if(n){y(),f.close();return}let _=v.byteLength;if(i){let p=g+=_;i(p)}f.enqueue(new Uint8Array(v))}catch(n){throw y(n),n}},cancel(f){return y(f),c.return()}},{highWaterMark:2})},V4=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",yY=V4&&typeof ReadableStream=="function",mA=V4&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),vY=(e,...r)=>{try{return!!e(...r)}catch{return!1}},$Lt=yY&&vY(()=>{let e=!1;const r=new Request(Ph.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r}),_Y=64*1024,gA=yY&&vY(()=>vr.isReadableStream(new Response("").body)),$4={stream:gA&&(e=>e.body)};V4&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!$4[r]&&($4[r]=vr.isFunction(e[r])?i=>i[r]():(i,B)=>{throw new ns(`Response type '${r}' is not supported`,ns.ERR_NOT_SUPPORT,B)})})})(new Response);const jLt=async e=>{if(e==null)return 0;if(vr.isBlob(e))return e.size;if(vr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(vr.isArrayBufferView(e)||vr.isArrayBuffer(e))return e.byteLength;if(vr.isURLSearchParams(e)&&(e=e+""),vr.isString(e))return(await mA(e)).byteLength},ULt=async(e,r)=>vr.toFiniteNumber(e.getContentLength())??jLt(r),GLt=V4&&(async e=>{let{url:r,method:i,data:B,signal:D,cancelToken:c,timeout:g,onDownloadProgress:a,onUploadProgress:y,responseType:f,headers:n,withCredentials:v="same-origin",fetchOptions:_}=mY(e);f=f?(f+"").toLowerCase():"text";let[p,l]=D||c||g?DLt([D,c],g):[],o,s;const u=()=>{!o&&setTimeout(()=>{p&&p.unsubscribe()}),o=!0};let d;try{if(y&&$Lt&&i!=="get"&&i!=="head"&&(d=await ULt(n,B))!==0){let x=new Request(r,{method:"POST",body:B,duplex:"half"}),S;if(vr.isFormData(B)&&(S=x.headers.get("content-type"))&&n.setContentType(S),x.body){const[C,T]=uY(d,R4(hY(y)));B=gY(x.body,_Y,C,T,mA)}}vr.isString(v)||(v=v?"include":"omit");const h="credentials"in Request.prototype;s=new Request(r,{..._,signal:p,method:i.toUpperCase(),headers:n.normalize().toJSON(),body:B,duplex:"half",credentials:h?v:void 0});let m=await fetch(s);const b=gA&&(f==="stream"||f==="response");if(gA&&(a||b)){const x={};["status","statusText","headers"].forEach(k=>{x[k]=m[k]});const S=vr.toFiniteNumber(m.headers.get("content-length")),[C,T]=a&&uY(S,R4(hY(a),!0))||[];m=new Response(gY(m.body,_Y,C,()=>{T&&T(),b&&u()},mA),x)}f=f||"text";let w=await $4[vr.findKey($4,f)||"text"](m,e);return!b&&u(),l&&l(),await new Promise((x,S)=>{dY(x,S,{data:w,headers:lh.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:s})})}catch(h){throw u(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new ns("Network Error",ns.ERR_NETWORK,e,s),{cause:h.cause||h}):ns.from(h,h&&h.code,e,s)}}),yA={http:sLt,xhr:LLt,fetch:GLt};vr.forEach(yA,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const bY=e=>`- ${e}`,HLt=e=>vr.isFunction(e)||e===null||e===!1,xY={getAdapter:e=>{e=vr.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let g;if(B=i,!HLt(i)&&(B=yA[(g=String(i)).toLowerCase()],B===void 0))throw new ns(`Unknown adapter '${g}'`);if(B)break;D[g||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,y])=>`adapter ${a} `+(y===!1?"is not supported by the environment":"is not available in the build"));let g=r?c.length>1?`since :
|
|
4165
4165
|
`+c.map(bY).join(`
|
|
@@ -7624,4 +7624,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7624
7624
|
* vuex v4.0.2
|
|
7625
7625
|
* (c) 2021 Evan You
|
|
7626
7626
|
* @license MIT
|
|
7627
|
-
*/var Oda="store";function L1(e,r){Object.keys(e).forEach(function(i){return r(e[i],i)})}function lJ(e){return e!==null&&typeof e=="object"}function Fda(e){return e&&typeof e.then=="function"}function hf(e,r){if(!e)throw new Error("[vuex] "+r)}function Lda(e,r){return function(){return e(r)}}function cJ(e,r,i){return r.indexOf(e)<0&&(i&&i.prepend?r.unshift(e):r.push(e)),function(){var B=r.indexOf(e);B>-1&&r.splice(B,1)}}function dJ(e,r){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;x6(e,i,[],e._modules.root,!0),MM(e,i,r)}function MM(e,r,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var D=e._wrappedGetters,c={};L1(D,function(g,a){c[a]=Lda(g,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:r}),e.strict&&jda(e),B&&i&&e._withCommit(function(){B.data=null})}function x6(e,r,i,B,D){var c=!i.length,g=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[g]=B),!c&&!D){var a=IM(r,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=Dda(e,g,i);B.forEachMutation(function(n,v){var _=g+v;Rda(e,_,n,f)}),B.forEachAction(function(n,v){var _=n.root?v:g+v,p=n.handler||n;Vda(e,_,p,f)}),B.forEachGetter(function(n,v){var _=g+v;$da(e,_,n,f)}),B.forEachChild(function(n,v){x6(e,r,i.concat(v),n,D)})}function Dda(e,r,i){var B=r==="",D={dispatch:B?e.dispatch:function(c,g,a){var y=w6(c,g,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,g,a){var y=w6(c,g,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,n)}};return Object.defineProperties(D,{getters:{get:B?function(){return e.getters}:function(){return uJ(e,r)}},state:{get:function(){return IM(e.state,i)}}}),D}function uJ(e,r){if(!e._makeLocalGettersCache[r]){var i={},B=r.length;Object.keys(e.getters).forEach(function(D){if(D.slice(0,B)===r){var c=D.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[D]},enumerable:!0})}}),e._makeLocalGettersCache[r]=i}return e._makeLocalGettersCache[r]}function Rda(e,r,i,B){var D=e._mutations[r]||(e._mutations[r]=[]);D.push(function(c){i.call(e,B.state,c)})}function Vda(e,r,i,B){var D=e._actions[r]||(e._actions[r]=[]);D.push(function(c){var g=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},c);return Fda(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function $da(e,r,i,B){if(e._wrappedGetters[r]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+r);return}e._wrappedGetters[r]=function(D){return i(B.state,B.getters,D.state,D.getters)}}function jda(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&hf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function IM(e,r){return r.reduce(function(i,B){return i[B]},e)}function w6(e,r,i){return lJ(e)&&e.type&&(i=r,r=e,e=e.type),process.env.NODE_ENV!=="production"&&hf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:r,options:i}}var Uda="vuex bindings",hJ="vuex:mutations",PM="vuex:actions",cv="vuex",Gda=0;function Hda(e,r){zda({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Uda]},function(i){i.addTimelineLayer({id:hJ,label:"Vuex Mutations",color:pJ}),i.addTimelineLayer({id:PM,label:"Vuex Actions",color:pJ}),i.addInspector({id:cv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===cv)if(B.filter){var D=[];yJ(D,r._modules.root,B.filter,""),B.rootNodes=D}else B.rootNodes=[gJ(r._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===cv){var D=B.nodeId;uJ(r,D),B.state=Yda(Zda(r._modules,D),D==="root"?r.getters:r._makeLocalGettersCache,D)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===cv){var D=B.nodeId,c=B.path;D!=="root"&&(c=D.split("/").filter(Boolean).concat(c)),r._withCommit(function(){B.set(r._state.data,c,B.state.value)})}}),r.subscribe(function(B,D){var c={};B.payload&&(c.payload=B.payload),c.state=D,i.notifyComponentUpdate(),i.sendInspectorTree(cv),i.sendInspectorState(cv),i.addTimelineEvent({layerId:hJ,event:{time:Date.now(),title:B.type,data:c}})}),r.subscribeAction({before:function(B,D){var c={};B.payload&&(c.payload=B.payload),B._id=Gda++,B._time=Date.now(),c.state=D,i.addTimelineEvent({layerId:PM,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,D){var c={},g=Date.now()-B._time;c.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},B.payload&&(c.payload=B.payload),c.state=D,i.addTimelineEvent({layerId:PM,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var pJ=8702998,Wda=6710886,qda=16777215,fJ={label:"namespaced",textColor:qda,backgroundColor:Wda};function mJ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function gJ(e,r){return{id:r||"root",label:mJ(r),tags:e.namespaced?[fJ]:[],children:Object.keys(e._children).map(function(i){return gJ(e._children[i],r+i+"/")})}}function yJ(e,r,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:r.namespaced?[fJ]:[]}),Object.keys(r._children).forEach(function(D){yJ(e,r._children[D],i,B+D+"/")})}function Yda(e,r,i){r=i==="root"?r:r[i];var B=Object.keys(r),D={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(B.length){var c=Xda(r);D.getters=Object.keys(c).map(function(g){return{key:g.endsWith("/")?mJ(g):g,editable:!1,value:BM(function(){return c[g]})}})}return D}function Xda(e){var r={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var D=r,c=B.pop();B.forEach(function(g){D[g]||(D[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),D=D[g]._custom.value}),D[c]=BM(function(){return e[i]})}else r[i]=BM(function(){return e[i]})}),r}function Zda(e,r){var i=r.split("/").filter(function(B){return B});return i.reduce(function(B,D,c){var g=B[D];if(!g)throw new Error('Missing module "'+D+'" for path "'+r+'".');return c===i.length-1?g:g._children},r==="root"?e:e.root._children)}function BM(e){try{return e()}catch(r){return r}}var pf=function(e,r){this.runtime=r,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},vJ={namespaced:{configurable:!0}};vJ.namespaced.get=function(){return!!this._rawModule.namespaced},pf.prototype.addChild=function(e,r){this._children[e]=r},pf.prototype.removeChild=function(e){delete this._children[e]},pf.prototype.getChild=function(e){return this._children[e]},pf.prototype.hasChild=function(e){return e in this._children},pf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},pf.prototype.forEachChild=function(e){L1(this._children,e)},pf.prototype.forEachGetter=function(e){this._rawModule.getters&&L1(this._rawModule.getters,e)},pf.prototype.forEachAction=function(e){this._rawModule.actions&&L1(this._rawModule.actions,e)},pf.prototype.forEachMutation=function(e){this._rawModule.mutations&&L1(this._rawModule.mutations,e)},Object.defineProperties(pf.prototype,vJ);var D1=function(e){this.register([],e,!1)};D1.prototype.get=function(e){return e.reduce(function(r,i){return r.getChild(i)},this.root)},D1.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(i,B){return r=r.getChild(B),i+(r.namespaced?B+"/":"")},"")},D1.prototype.update=function(e){_J([],this.root,e)},D1.prototype.register=function(e,r,i){var B=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&wJ(e,r);var D=new pf(r,i);if(e.length===0)this.root=D;else{var c=this.get(e.slice(0,-1));c.addChild(e[e.length-1],D)}r.modules&&L1(r.modules,function(g,a){B.register(e.concat(a),g,i)})},D1.prototype.unregister=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1],B=r.getChild(i);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}B.runtime&&r.removeChild(i)},D1.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1];return r?r.hasChild(i):!1};function _J(e,r,i){if(process.env.NODE_ENV!=="production"&&wJ(e,i),r.update(i),i.modules)for(var B in i.modules){if(!r.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}_J(e.concat(B),r.getChild(B),i.modules[B])}}var bJ={assert:function(e){return typeof e=="function"},expected:"function"},Jda={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},xJ={getters:bJ,mutations:bJ,actions:Jda};function wJ(e,r){Object.keys(xJ).forEach(function(i){if(r[i]){var B=xJ[i];L1(r[i],function(D,c){hf(B.assert(D),Kda(e,i,c,D,B.expected))})}})}function Kda(e,r,i,B,D){var c=r+" should be "+D+' but "'+r+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var zh=function e(r){var i=this;r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&(hf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),hf(this instanceof e,"store must be called with the new operator."));var B=r.plugins;B===void 0&&(B=[]);var D=r.strict;D===void 0&&(D=!1);var c=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new D1(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var g=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(v,_){return y.call(g,v,_)},this.commit=function(v,_,p){return f.call(g,v,_,p)},this.strict=D;var n=this._modules.root.state;x6(this,n,[],this._modules.root),MM(this,n),B.forEach(function(v){return v(i)})},NM={state:{configurable:!0}};zh.prototype.install=function(e,r){e.provide(r||Oda,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&Hda(e,this)},NM.state.get=function(){return this._state.data},NM.state.set=function(e){process.env.NODE_ENV!=="production"&&hf(!1,"use store.replaceState() to explicit replace store state.")},zh.prototype.commit=function(e,r,i){var B=this,D=w6(e,r,i),c=D.type,g=D.payload,a=D.options,y={type:c,payload:g},f=this._mutations[c];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){f.forEach(function(n){n(g)})}),this._subscribers.slice().forEach(function(n){return n(y,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},zh.prototype.dispatch=function(e,r){var i=this,B=w6(e,r),D=B.type,c=B.payload,g={type:D,payload:c},a=this._actions[D];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+D);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(g,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var y=a.length>1?Promise.all(a.map(function(f){return f(c)})):a[0](c);return new Promise(function(f,n){y.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(g,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}f(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(g,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}n(v)})})},zh.prototype.subscribe=function(e,r){return cJ(e,this._subscribers,r)},zh.prototype.subscribeAction=function(e,r){var i=typeof e=="function"?{before:e}:e;return cJ(i,this._actionSubscribers,r)},zh.prototype.watch=function(e,r,i){var B=this;return process.env.NODE_ENV!=="production"&&hf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},r,Object.assign({},i))},zh.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._state.data=e})},zh.prototype.registerModule=function(e,r,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(hf(Array.isArray(e),"module path must be a string or an Array."),hf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,r),x6(this,this.state,e,this._modules.get(e),i.preserveState),MM(this,this.state)},zh.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=IM(r.state,e.slice(0,-1));delete i[e[e.length-1]]}),dJ(this)},zh.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},zh.prototype.hotUpdate=function(e){this._modules.update(e),dJ(this,!0)},zh.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r},Object.defineProperties(zh.prototype,NM);var Qda=tua(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!kJ(r)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),eua(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var y=this.$store.commit;if(e){var f=aua(this.$store,"mapMutations",e);if(!f)return;y=f.context.commit}return typeof c=="function"?c.apply(this,[y].concat(g)):y.apply(this.$store,[c].concat(g))}}),i});function eua(e){return kJ(e)?Array.isArray(e)?e.map(function(r){return{key:r,val:r}}):Object.keys(e).map(function(r){return{key:r,val:e[r]}}):[]}function kJ(e){return Array.isArray(e)||lJ(e)}function tua(e){return function(r,i){return typeof r!="string"?(i=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),e(r,i)}}function aua(e,r,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+r+"(): "+i),B}const nua="/icn-play.svg",rua="/icn-tiros-de-esquina.svg",iua="/icn-tiro-a-porteria.svg",oua="/icn-cambio.svg",sua="/icn-falta.svg",lua="/atajada.svg",cua="/fuera-de-lugar.svg",zM="/gol.svg",dua="/var.png",uua="/tiempo-agregado.svg",hua="/jugada-peligrosa.svg",pua="/penal-marcado.svg",fua="/penal-fallado.svg",mua="/inicia-el-partido.svg",gua="/fin-del-partido.svg",yua="/icn-tarjeta-amarilla.svg",vua="/icn-tarjeta-roja.svg",_ua=[1,2,3,4,6],bua={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],r=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return EM.GOAL_IDS.includes(r)?(e.push("is-main-event"),e.push("goal")):EM.YELLOW_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("yellow-card")):EM.RED_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(r=>Tda(r))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||_ua.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Qda("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,r]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(r),teamId:this.gameEvent.team_id})}}},xua=e=>(t.pushScopeId("data-v-84fd3fef"),e=e(),t.popScopeId(),e),wua={class:"time-line-event__details"},kua={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Cua=["src"],Sua=xua(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Tua={class:"time-line-event__details__info"},Eua={key:0,class:"time-line-event__details__info__header__players"},Aua={class:"time-line-event__details__info__header__players__div-img"},Mua=["src"],Iua={class:"time-line-event__details__info__body"},Pua={class:"time-line-event__details__info__body__comment"},Bua={class:"time-line-event__minute__container"},Nua={class:"time-line-event__minute__container__text"},zua={class:"time-line-event__minute__container__icon-container"},Oua={class:"time-line-event__minute__container__icon-container__icon"},Fua={key:0,src:rua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Lua={key:1,src:iua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Dua={key:2,src:oua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Rua={key:3,src:sua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Vua={key:4,src:lua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$ua={key:5,src:cua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jua={key:6,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Uua={key:7,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Gua={key:8,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Hua={key:9,src:dua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Wua={key:10,src:uua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qua={key:11,src:hua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Yua={key:12,src:pua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Xua={key:13,src:fua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Zua={key:14,src:mua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Jua={key:15,src:gua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Kua={key:16,src:yua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Qua={key:17,src:vua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},eha={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function tha(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",c.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:D.gameEventKey},[t.createElementVNode("div",wua,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:r[0]||(r[0]=g=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",kua,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Cua)]),Sua])):t.createCommentVNode("",!0),t.createElementVNode("div",Tua,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",c.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Eua,[c.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Aua,[t.createElementVNode("img",{src:g,alt:""},null,8,Mua)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",c.nameClasses]),onClick:r[1]||(r[1]=g=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:nua,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?`${[13,16].includes(i.gameEvent.category_id)?"Autogol":"Gol"} de `+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",Iua,[t.createElementVNode("div",Pua,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",c.minuteClasses])},[t.createElementVNode("div",Bua,[t.createElementVNode("div",Nua,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",zua,[t.createElementVNode("div",Oua,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Fua)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",Lua)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Dua)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Rua)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Vua)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",$ua)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",jua)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Uua)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",Gua)):i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",Hua)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",Wua)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",qua)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Yua)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Xua)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",Zua)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",Jua)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",Kua)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Qua)):(t.openBlock(),t.createElementBlock("img",eha))])])])],2)],6)}const aha=q_(bua,[["render",tha],["__scopeId","data-v-84fd3fef"]]),nha={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},rha={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let k6=null;const iha={name:"TimeLine",components:{Tooltip:wda,TimeLineEvent:aha},mixins:[Cda],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const r=await this.fetchGameEvents(e);r?(this.gameEvents=[...r],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(r){throw new Error(r)}},getGameEventClassAndSetIcon(e,r){return e.icon=r===0?"inicio_del_partido":nha[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:r}}=await rJ.get(`${this.gameEventsUrl}${e}`);return r}catch(r){throw new Error(r)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)k6=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),k6.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,r){const i=this.$refs[`gameEventDiv${r}`][0],B=this.$refs[`gameEventLine${r}`]?this.$refs[`gameEventLine${r}`][0]:null,D=e+12;i&&(i.style.height=`${D}px`),B&&(B.style.height=`${D}px`)},sortGameEvents(){this.gameEvents.sort((e,r)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(r.match_lapse)+Number(r.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let r=0;switch(e){case 1:r=0;break;case 2:r=45;break;case 3:r=90;break;case 4:r=105;break;case 5:r=120;break}return r},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const r=this.gameEvents.findIndex(i=>i.play_id===e.play_id);r&&this.gameEvents.splice(r,1)},checkTimeLineStatus(){this.gameEvents.forEach(r=>{const i=rha[r.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:r})}),this.timeLineStatuses.sort((r,i)=>i.weight-r.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const r=this.gameData[e].team_id;return Sda(r)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){k6&&k6.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,r]){this.channelName===e&&this.addGameEventFromChannel(r)},update_mxm([e,r]){this.channelName===e&&(this.deleteGameEventFromChannel(r),this.addGameEventFromChannel(r))},delete_mxm([e,r]){this.channelName===e&&this.deleteGameEventFromChannel(r)}}},CJ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),oha={ref:"timeLine",class:"time-line"},sha={class:"time-line__header"},lha={class:"time-line__header__dot"},cha={class:"time-line__header__dot__home-team team-logo"},dha=["src"],uha={class:"time-line__header__dot__away-team team-logo"},hha=["src"],pha={key:1,class:"start-line"},fha=CJ(()=>t.createElementVNode("div",null,null,-1)),mha=CJ(()=>t.createElementVNode("div",null,null,-1)),gha=[fha,mha],yha={key:1,class:"noEventText"},vha={class:"tooltip-data"},_ha=["src"];function bha(e,r,i,B,D,c){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",oha,[t.createElementVNode("div",sha,[t.createElementVNode("div",lha,[t.createElementVNode("div",cha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("homeTeam"),alt:""},null,8,dha)]),t.createElementVNode("div",uha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("awayTeam"),alt:""},null,8,hha)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${D.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:D.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.gameEventsToShow,(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:y.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(c.getGameEventClassAndSetIcon(y,f))},[t.createElementVNode("div",{class:t.normalizeClass(c.getEventContainerClass(y))},[t.createVNode(g,{"game-event":y,"is-mobile":c.isMobile,"time-line-width":D.timeLineWidth,width:c.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:n=>c.updateContainerHeight(n,f),onPlayerChanged:r[0]||(r[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:c.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&f===c.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",pha,gha)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",yha,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:D.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",vha,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:D.dataVideo.link,format:"video/mp4"},null,8,_ha)])])]),_:1},8,["data"])],64)}const xha=q_(iha,[["render",bha],["__scopeId","data-v-2574e576"]]),wha={class:"game-time-line__options"},kha={class:"game-time-line__timeline"},Cha={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){rJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const r=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let B=null;const D=t.ref(["Todo","1er tiempo","2do tiempo"]),c=t.ref("Todo"),g=t.ref({}),a=t.ref(null),y=t.ref(0),f=t.computed(()=>{let l="all";return c.value==="1er tiempo"||c.value==="1er"?l="firstHalf":(c.value==="2do tiempo"||c.value==="2do")&&(l="secondHalf"),l}),n=t.computed(()=>y.value<500);function v(l){c.value=l}function _(l){g.value=l}function p(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),t.onBeforeUnmount(()=>{B&&B.unobserve(a.value)}),(l,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",wha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"game-time-line__options__option"},[t.createVNode(aca,t.mergeProps(y.value<390?i.value:r.value,{text:s=="Todo"?s:y.value<390?s.substring(0,3):s,"is-active":c.value===s,onClick:u=>v(s)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",kha,[t.createVNode(xha,{"game-data":e.game,"time-line-period":f.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Sha=q_(Cha,[["__scopeId","data-v-f42d0c90"]]),e3a="",Tha={class:"game-data__header"},Eha={class:"game-data__header__tournament-season-dropdown"},Aha={class:"game-data__header__teams-carousel"},Mha={class:"game-data__body"},Iha={class:"game-data__body__menu"},Pha={class:"game-data__body__menu__contmenuswitch"};$c.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Bha=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Rpe,GSCGameTimeLine:Sha,GscSwitchComponent:iA,GSCLineupsMain:s8e,GSCDatosGSMain:EIe,GSCVideoGame:OUe,ModalEvents:IR,GSCSummaryMain:N2t,GSCTacticaFijaMain:eca,GSCProminentMain:$Bt,GSCComparative:xFt}}),Nha=$i(Object.assign(Bha,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:r}){const i=e,B=ax();Xh.on("socket-connected",()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const D=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),c=t.ref({season:[]}),g=t.ref({}),a=t.ref(!1),y=t.ref({}),f=t.ref(1),n=t.ref(0),v=12e4,_=12e4,p=12e4,l=12e4,o=12e4,s=12e4,u=12e4,d=12e4,h=12e4,m=t.ref(null),b=t.ref(null),w=t.ref(null),x=t.ref([]),S=t.ref(null),C=t.ref(!0),T=t.ref(new Set([1,2])),k=t.ref({}),A=t.ref({minute:"",recent_lapse:0,score:{}}),E=t.ref(0),M=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),I=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),z=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const F=t.ref(0);let R=null;const V=t.ref(null),$=t.ref(0),U=t.ref(N.value[0]),Z=t.ref([]);let q=t.ref("");const W={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},Q=t.computed(()=>{const xe=[];return g.value&&g.value.id&&(xe.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(ze=>{xe.push({id:ze.id,type:ze.type})})),xe}),X=t.computed(()=>{if(i.clientPrivilegesBySeasons){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)return xe.teamId}return 0});function J(){a.value=!1}function ee(xe){const ze=xe.split(",");return!(ze.length<2||ze[1].split(" ").length<2)}function le(xe){m.value=xe}function oe(xe){x.value.push(xe)}function se(xe){S.value=xe}function ce(xe){w.value=xe}function ae(xe){b.value=xe}function ne(xe){if(!ee(xe))return"";const ze=ue(xe);return`${ie(xe)}. ${ze}`}function ie(xe){return xe.split(",")[1].split(" ")[1][0]}function ue(xe){const ze=xe.split(",")[0].split(" ");return ze[0].length<=3&&ze.length>1?`${ze[0]} ${ze[1]}`:ze[0]}async function he(xe){try{const ze=$c.create({headers:{Authorization:`${D.value}`}});k.value={};const De=await ze.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+xe.game_id);if(k.value[xe.home_team.team_id]=[],k.value[xe.home_team.team_id].team={name:xe.home_team.acronym,logo:xe.home_team.logo},k.value[xe.home_team.team_id].goals=[],k.value[xe.home_team.team_id].red=[],k.value[xe.home_team.team_id].yellow=[],k.value[xe.visiting_team.team_id]=[],k.value[xe.visiting_team.team_id].team={name:xe.visiting_team.acronym,logo:xe.visiting_team.logo},k.value[xe.visiting_team.team_id].goals=[],k.value[xe.visiting_team.team_id].red=[],k.value[xe.visiting_team.team_id].yellow=[],De.data.minute!=null&&(A.value={minute:De.data.minute,recent_lapse:De.data.recent_lapse,score:De.data.score}),De.data.plays)for(let Ve=0;Ve<De.data.plays.length;Ve++)De.data.plays[Ve].category_name=="Roja"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].red||(k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].red||(k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].category_name=="Amarilla"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].yellow||(k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].yellow||(k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].event_type_name=="Gol"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)))}catch(ze){return Promise.reject(ze)}}function pe(xe){a.value=!0,xe.is_live!=1&&xe.game_status!=0&&(xe.game_status==4||Object.keys(xe.minutes).length>0)?(E.value=1,k.value={plays:xe.minutes,home_team:xe.home_team,visiting_team:xe.visiting_team}):(E.value=0,he(xe))}function me(){R=new ResizeObserver(xe=>{for(const ze of xe)$.value=ze.contentRect.width}),R.observe(V.value)}const be=t.computed(()=>{let xe={};return y.value&&y.value.game_id&&(xe={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,status:y.value.game_status,game_status:y.value.game_status,dateTimeUTC:y.value.date_time_utc,homeTeam:y.value.home_team,awayTeam:y.value.visiting_team,is_live:y.value.is_live,minutes:y.value.minutes}),xe});t.watch(()=>be,(xe,ze)=>{if(B.commit("nextGeneral/updateShowLiveData",!0),Object.keys(xe.value).length>0){xe.value.gameId===ze.value.gameId&&xe.value.is_live!==ze.value.is_live&&(B.commit("nextGeneral/updateGameForAnalysisByProps",{is_live:xe.value.is_live,game_status:xe.value.game_status}),F.value+=1),N.value=[],xe.value.is_live==1||xe.value.game_status==4?N.value=[...I.value]:N.value=[...z.value],!i.isWidget&&(g.value.is_tactic_available==0||xe.value.is_live==1||xe.value.game_status==0)&&N.value.pop(),i.isWidget&&xe.value.is_live==1&&xe.value.awayTeam.team_id==i.teamWidget,U.value=N.value[0];const De=n.value==1?"Destacados":"Destacadas";N.value.forEach(Ve=>{Ve.name===De&&(Ve.name=n.value==1?"Destacadas":"Destacados")}),F.value+=1,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam}),xe.value.is_live==1&&setInterval(()=>{E.value=0,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam})},6e4)}},{deep:!0,immediate:!0}),t.watch(()=>B.state.nextGeneral.gameForAnalysis,()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0});function we(xe){f.value=xe.is_captured,n.value=xe.is_female,C.value=xe.is_captured!==0,c.value.id!==xe.id&&(c.value=xe,B.commit("gameGlobal/setTournamentType",xe.tournament_type))}function ke(xe){!xe.auxwidget&&Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos||((y.value.is_live||y.value.game_status===0||y.value.game_status===1)&&(xe.gameIdsToFilter=[y.value.game_id]),(y.value.is_live||y.value.game_status===0)&&(xe.liveGameConfig={gameId:y.value.game_id}),r("openmedia",xe))}function Ee(xe){r("onOpenProfile",xe)}function Be(xe){r("openProfileTeam",xe)}function je(xe){r("openProfilePlayer",xe)}function Te(xe){Re(xe),xe=="Estadísticas"&&(q.value="Comparativa")}function Se(){q.value=""}function ye(xe){g.value.id!==xe.id&&(g.value=xe,r("change-season-id",xe.id))}const ge=t.computed(()=>N.value.reduce((xe,ze)=>(i.disabledSectionsIds.includes(ze.id)||Ce.value&&!Ce.value.isVideoTabVisible&&ze.id===2||i.clientPrivilegesBySeasons&&ze.id===7||(C.value||ze.id!==5&&ze.id!==6)&&xe.push(ze.name),xe),[]));function Me(xe){if(y.value.is_live||y.value.game_status===1||y.value.game_status===0){const ze=xe.playingAs.has(y.value.playingAs);return i.clientPrivilegesBySeasons.canPlayVideos&&ze}else{const ze=Oe.value.filter(De=>xe.playingAs.has(De.playingAs));return i.clientPrivilegesBySeasons.canPlayVideos&&ze.length>0}}const Ce=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value&&y.value&&y.value.game_id){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)if(Fe(xe.playingAs),(y.value.is_live||y.value.game_status===1||y.value.game_status===0)&&B.state.nextGeneral.showLiveData){const ze=xe.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===xe.teamId,homeTeamDetails:{canPlayVideos:ze,team:y.value.home_team},awayTeamDetails:{canPlayVideos:ze,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}else{const ze=y.value.home_team.team_id===xe.teamId,De=Oe.value.filter(Xe=>xe.playingAs.has(Xe.playingAs));return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&De.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:ze,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze&&De.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!ze&&De.length>0,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}Fe(new Set)}return W}return null}),Oe=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)return Z.value.filter(ze=>ze.game_status===1&&xe.playingAs.has(ze.playingAs))}return[]}return[]});t.watch(ge,()=>{Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos&&U.value.id===2&&Re("Resumen")},{deep:!0,immediate:!0});function Fe(xe){T.value=xe}function Re(xe){if(B.commit("nextGeneral/updateShowLiveData",!0),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}i.isWidget?U.value=N.value.find(ze=>ze.name===xe)||N.value[1]:U.value=N.value.find(ze=>ze.name===xe)||N.value[0]}t.onMounted(()=>{me(),t.nextTick(()=>{i.isSynchronization&&Re("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(R&&R.disconnect(),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let xe of x.value)clearInterval(xe);x.value=[]}R8()});function Ue(xe){if(xe.playingAs||(xe.playingAs=X.value?xe.home_team.team_id===X.value?1:2:0),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}y.value=xe,xe.is_live&&xe.game_status===4?KP():QP()}function Ne(xe){Z.value=xe.map(ze=>{const De={...ze};return X.value&&(De.playingAs=De.home_team.team_id===X.value?1:2),De})}return(xe,ze)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:V},[t.createElementVNode("div",Tha,[t.withDirectives(t.createElementVNode("div",Eha,[t.createVNode(t.unref(KM),{"current-season-id":e.currentSeasonId,onInput:we,onChangeTournaments:we,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(tI),{"current-season-id":e.currentSeasonId,seasons:c.value.seasons,onInput:ye},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Aha,[t.createVNode(t.unref($ne),{"plays-live":k.value,"info-live":A.value,token:M.value,is_captured:f.value,"await-for-seasons":"",seasons:Q.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(B).state.gameGlobal.tournamentType,onChangeGameCarousel:Ue,onOpenModalEvent:pe,onChangeGamesByClientPrivileges:Ne},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),a.value?(t.openBlock(),t.createBlock(IR,{key:0,width:$.value,onCloseModalEventsLive:J,plays:k.value,game:y.value,type:E.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",Mha,[t.createElementVNode("div",Iha,[t.createElementVNode("div",Pha,[t.createVNode(t.unref(iA),{type:2,buttons:ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":U.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Re},null,8,["buttons","width","selected-option"])])]),be.value&&be.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.value.componentName),{key:F.value,game:be.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ae,onIntervalidhighlive:ce,onIntervalidtops:oe,onIntervalidgs:se,subsection:t.unref(q),seasonSelected:g.value,tournamentSelected:c.value,showLineups:C.value,socket:e.socket,"time-live-prominent-data":v,"time-live-highlights-prominent-and-video":_,"time-live-possesion":p,"time-live-video-goals":l,"time-live-video-best-plays":o,"time-live-video-this-game":s,"time-live-video-specific-plays":u,"time-live-comparative-best-players":d,"time-live-comparative-avanced":h,is_captured:f.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Ce.value?Ce.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":T.value,"client-privileges-team-id":X.value,"play-videos-privileges":Ce.value,token:M.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:Se,onOpenmedia:ke,onOnOpenProfile:Ee,onOpenProfileTeam:Be,onOpenProfilePlayer:je,onChangeToTab:Te,onOpenMediaPlayer:ke,onIntervalid:le},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-5c237f88"]]);async function Uu({url:e,options:r={},retries:i=3}){return await $c.get(e,r).then(B=>B).catch(B=>i>0?Uu({url:e,options:r,retries:i-1}):B)}async function SJ({seasonId:e},r=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(r)return SJ({seasonId:e},!1);throw new Error(i)}}async function zha({seasonId:e}){try{return(await Uu({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}async function Oha({seasonId:e}){try{return(await Uu({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}function Fha(e,r,i,B,D,c,g=!1){const a=i.map(y=>y===1?2:y===2?1:3);return e.filter(y=>{const f=c&&y[D.teamId]?y[D.teamId]!==c:!1,n=r===1?2:1;return(g||B.includes(y[D.gameId]))&&(!r||(f?n:r)===y[D.playingAs])&&(i.includes(y[D.matchResult])&&y[D.teamId]===c||a.includes(y[D.matchResult])&&y[D.teamId]!==c)})}function TJ(e,r,i,B,D){return r.length===2&&i.length===3&&B.length===6?e:e.filter(c=>r.includes(c[D.playingAs])&&i.includes(c[D.matchResult])&&B.includes(c[D.section]))}async function EJ({seasonId:e}){try{const r=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function Lha({seasonId:e,gameId:r}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${r}`,{data:B}=await Uu({url:i});return B}catch(i){return Promise.reject(i)}}async function Dha({gameId:e}){try{const r=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Uu({url:r})).data.data}catch(r){return Promise.reject(r)}}async function Rha({gameId:e}){try{const r=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Uu({url:r})).data.data||[]}catch(r){return Promise.reject(r)}}const Vha=["categoryId","matchLapse","section","matchResult","playingAs","total"];let OM=null;function AJ(){return OM||(OM=qg(Vha)),OM}async function $ha(e){try{const r=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function MJ({seasonId:e,teamId:r}){try{return await Uu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${r}`})}catch(i){return Promise.reject(i)}}async function jha(e){try{const r=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Uu({url:r})}catch(r){return Promise.reject(r)}}async function Uha(e){try{return await Uu({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(r){return Promise.reject(r)}}const Gha={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,r,i,B){return Fha(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],AJ(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const r=e.currentSeasonGames.reduce((i,B)=>{const D={...B};return D.home_team=e.currentSeasonTeams.find(c=>c.team_id===B.home_team),D.visiting_team=e.currentSeasonTeams.find(c=>c.team_id===B.visiting_team),i[B.matchday_abbreviation]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(D):i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[D]:i[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[D]},i},{});for(let[i,B]of Object.entries(r))r[i]=Object.entries(B).map(([D,c])=>({date:D,games:c})),r[i].sort((D,c)=>D.date<c.date?-1:D.date>c.date?1:0);return r},matchdaysDates(e,r){let i=[];if(r.nextGamesSchedule){let B=Object.keys(r.nextGamesSchedule);for(let D of B){let c=Number(D.replace("M","")),g=r.nextGamesSchedule[D].map(a=>({matchday:c,date:new Date(a.date)}));i=i.concat(g)}}return i},closestMatchDay(e,r){let i=new Date,B=0,D=-new Date(0,0,0).valueOf(),c=r.matchdaysDates,g=c.length;for(let a=0;a<c.length;a++)B=Math.abs(c[a].date-i),B<D&&(g=a,D=B);return c[g]?c[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,r){e.booleanIsLiveGamesModalOpen=r},setBooleanAreLiveGames(e,r){e.booleanAreLiveGames=r},updateSeasonPlays(e,r){e.seasonPlays=r},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateSelectedRound(e,r){e.selectedRound=r}},actions:{async getSeasonPlays({commit:e,rootGetters:r},i=!1){try{const B=await SJ({seasonId:r["filterGeneral/getSeasonId"]});if(i)return B;e("updateSeasonPlays",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:r}){try{const i=await EJ({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:r}){try{const i=await $ha({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:r,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=r("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=r("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function Hha({filter:e}){try{const r=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await Uu({url:r});return i}catch(r){return Promise.reject(r)}}const Wha=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let FM=null;function qha(){return FM||(FM=qg(Wha)),FM}class C6{constructor(){Vc(this,"maximumLiveSection",1);Vc(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Vc(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(r){r>this.maximumLiveSection&&(this.maximumLiveSection=r)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,r,i)}increaseReceivedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,r,i)}increaseTrendLiveAccumulatedByOne(r,i,B){for(let D=i-1;D<r.accumulated.length;D++)r.accumulated[D]+=B}decreaseAccomplishedLiveByOne(r,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[r-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i))}decreaseReceivedLiveByOne(r,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[r-1]>0&&(this.received.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(r,i,B){for(let D=r.accumulated.length-1;D>=i-1;D--)r.accumulated[D]-=B}calculateAvg(r){r&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/r,this.received.avgPostGame=this.received.totalPostGame/r,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,r),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,r),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,r),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,r))}getAvgPostGameTrendLiveAvg(r,i){return r.map(B=>B/i)}calculateRanking(r,i,B,D,c,g,a,y){let f=[];D===3&&r&&r.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?f=Array.from(r.reduce((v,_)=>{const p=_[i.playingAs]===1,l=p?"1":"2",o=v.get(_[i.gameId]);if(o)o[l]?o[l].arrayPlays.push(_):o[l]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const s={numberMatchResult:_[i.matchResult]};p&&(s[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],s)}return v},new Map).values()).reduce((v,_)=>{const p=B.playingAs.length===2?"both":B.playingAs[0].toString();return(p==="both"&&(_[1].numberTeamId===B.teamId||_[2].numberTeamId===B.teamId)||p!=="both"&&_[p].numberTeamId===B.teamId)&&B.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>B.sections.includes(v[i.section])):(f=r?[...r]:[],a&&r&&(f=r.filter(n=>B.playingAs.includes(n[i.playingAs])&&B.matchResult.includes(n[i.matchResult])&&B.sections.includes(n[i.section])))),this.setTeamRanking(f,D,i,B.teamId,g,"accomplished",y)}setTeamRanking(r,i,B,D,c,g,a){let y=null,f=null;i===3&&(y=new Map,f={},r.forEach(_=>{const p=y.get(_[B.gameId]);p?p[_[B.teamId.toString()]]?p[_[B.teamId.toString()]]+=_[B.total]:p[_[B.teamId.toString()]]=_[B.total]:y.set(_[B.gameId],{[_[B.teamId.toString()]]:_[B.total]})}),Array.from(y.values()).forEach(_=>{const[p,l]=Object.keys(_).map(s=>s),o=_[p]+_[l];this.addPassesAvgByTeam(f,p,o?_[p]/o:0),this.addPassesAvgByTeam(f,l,o?_[l]/o:0)}));const n=c.sort((_,p)=>_.team_id-p.team_id).map(_=>{if(i===3){const p=f[_.team_id.toString()];return{teamId:_.team_id,points:p?p.numberTotalPassesAvg/p.numberGamesCount:0,total:p?p.numberTotalPassesAvg:0}}else{const p=r.reduce((l,o)=>o[B.teamId]===_.team_id&&i===o[B.categoryId]?l+o[B.total]:l,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?p/_[`${a}FilterGames`]:0,total:p}}}).sort((_,p)=>p.points-_.points);this.accomplished.arrayRankings=n;const v=n.findIndex(_=>_.teamId===D);i===3&&(this.accomplished.avgPreGame=n[v].points),this[g].ranking=v+1,this[g].leader=n[0]}addPassesAvgByTeam(r,i,B){r[i]?(r[i].numberGamesCount+=1,r[i].numberTotalPassesAvg+=B):r[i]={numberGamesCount:1,numberTotalPassesAvg:B}}}class Bs{constructor(r,i,B,D,c,g,a,y,f,n){Vc(this,"id","");Vc(this,"generalId",0);Vc(this,"name","");Vc(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"accomplishedCategoryIds",[]);Vc(this,"receivedCategoryIds",[]);Vc(this,"generalCategoriesIds",{accomplished:0,received:0});Vc(this,"specialMention","");Vc(this,"homeTeam",new C6);Vc(this,"visitingTeam",new C6);Vc(this,"isLeagueDataCalculated",!1);Vc(this,"leagueAccomplishedMax",0);Vc(this,"leagueReceivedMax",0);Vc(this,"leagueAccomplishedAvg",0);Vc(this,"leagueReceivedAvg",0);Vc(this,"leagueAccomplishedAccumulator",0);Vc(this,"leagueReceivedAccumulator",0);Vc(this,"homeTeamType","homeTeam");Vc(this,"visitingTeamType","visitingTeam");Vc(this,"betOnly",!1);Vc(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=r||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=D,this.names["0-0"]=D||"",this.names["1-1"]=c||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=y||0,this.betOnly=f||!1,this.isPercent=n||!1}addLeaguePlays(r,i,B){r.length===0||!B||this.isLeagueDataCalculated||(r.forEach(D=>{this.isAccomplishedLeaguePlay(D[i.categoryId])&&(this.leagueAccomplishedAccumulator+=D[i.total]),this.isReceivedLeaguePlay(D[i.categoryId])&&(this.leagueReceivedAccumulator+=D[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(r,i,B){let D="-";for(const[c,g]of Object.entries(this.generalCategoriesIds))r===g&&(D=`${c==="accomplished"?"0":"1"}${D}`),i===g&&(D=`${D}${c==="accomplished"?"0":"1"}`);D.length===3&&(this.mentions[D]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(r,i,B,D,c){!B||!c||r!==this.homeTeamType&&r!==this.visitingTeamType||(B.forEach(g=>{this.isAccomplishedPlay(g[D.categoryId])?this[r].increaseAccomplishedByOne(g[D.section],g[D.total]):this.isReceivedPlay(g[D.categoryId])&&this[r].increaseReceivedByOne(g[D.section],g[D.total])}),this[r].calculateAvg(c))}addLivePlay(r,i,B,D,c=!1,g=!1){(r===this.homeTeamType||r===this.visitingTeamType)&&B[D.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[r].increaseAccomplishedByOne(B[D.section],B[D.total],!0)}subtractLivePlay(r,i,B,D,c){(r===this.homeTeamType||r===this.visitingTeamType)&&(this.isAccomplishedPlay(B[D.categoryId])&&!c?this[r].decreaseAccomplishedLiveByOne(B[D.section],B[D.total]):this.isReceivedPlay(B[D.categoryId])&&c&&this[r].decreaseReceivedLiveByOne(B[D.section],B[D.total]))}isAccomplishedLeaguePlay(r){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>r===B||`${r}_r`===B)}isReceivedLeaguePlay(r){return!!this.receivedCategoryIds.find(i=>r===i)}isAccomplishedPlay(r){return this.generalCategoriesIds.accomplished===r}isReceivedPlay(r){return this.generalCategoriesIds.received===r}calcRankingLeague(r,i,B,D,c,g=!1){this[this.homeTeamType].calculateRanking(r,i,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(r,i,D,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,g,this.visitingTeamType)}resetData(){this.homeTeam=new C6,this.visitingTeam=new C6,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(r){return this.generalCategoriesIds.accomplished===r||this.generalCategoriesIds.received===r}}const Yha={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Bs([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Bs([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new Bs([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Bs([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Bs([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Bs([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Bs([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Bs([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Bs([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Bs([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Bs([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Bs([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Bs([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Bs([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Bs([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Bs([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Bs([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Bs([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Bs([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Bs([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Bs([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Bs([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Bs([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new Bs([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Bs([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Bs([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Bs([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Bs([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Bs([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Bs([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Bs([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Bs([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Bs([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Bs([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},Xha=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],Zha=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let LM=null;function Jha(){return LM||(LM=qg(Zha)),LM}const Kha=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let DM=null;function Qha(){return DM||(DM=qg(Kha)),DM}function S6(e,r,i){return[i.get(e[r.categoryId])||[],e[r.teamId],e[r.matchResult],e[r.playingAs],e[r.matchLapse],e[r.section],e[r.total]]}function IJ(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function RM(e,r,i){let B=[...r];return e[i.categoryId]===2&&(B[0]=14),e[i.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}const epa=JP(),tpa=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],apa={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:AJ(),indexesTSP:qha(),indexesLS:Jha(),indexesTLP:Qha(),nextGamesDataStructure:Yha,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(r=>r.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return Xha.filter(r=>r.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return TJ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return TJ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(r=>r.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(r=>e.homeTeamFilter.playingAs.includes(r[0])).filter(r=>e.homeTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r[0])).filter(r=>e.visitingTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},filledDataStructure(e,r){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,r.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,r.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,r){return Object.values(r.filledDataStructure).sort((i,B)=>i.priority-B.priority)},statisticData(e,r){for(const i of Object.values(r.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,r){for(const[i,B]of Object.entries(r))e.gameForAnalysis[i]=B},setCurrentTournamentName(e,r){e.currentTournamentName=r},setBetSubcategoriesObjects(e,r){e.betSubcategoriesObjects=r},setRegularSeasonName(e,r){e.regularSeasonName=r},setBetSubcategories(e,r){e.betSubcategories=r},setBetDescription(e,r){e.betDescription=r},setSeasonId(e,r){e.seasonId=Number(r)},setHome(e,r){e.homeTeamInfo=r},setAway(e,r){e.awayTeamInfo=r},setMenuOptionActive(e,r){e.menuOptionActive=r},setPastSeasonId(e,r){e.pastSeasonId=r},setUsePastSeasonId(e,r){e.usePastSeasonId=r,r&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,r){e.showPostMatch=r},setHomeResultGame(e,r){e.homeResultGame=r},setAwayResultGame(e,r){e.awayResultGame=r},updateIsSocketConnected(e,r){e.isSocketConnected=r,r&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&coe(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((B,D)=>{if(D.game_status===1&&(D.home_team===i.team_id||D.visiting_team===i.team_id)){const c=D.score[0]-D.score[1],g=D.home_team===i.team_id;B.push({playingAs:g?1:2,matchResult:c===0?3:g?c>0?1:2:c<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateGameId(e,r){e.gameId=r},updateGameForAnalysis(e,r){e.gameForAnalysis=r,e.isLive=!!r.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,r){e.selectedAnalysis=r},updateShowLiveData(e,r){e.showLiveData=r},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,r){e.idAssetSelected=r},updateStats(e,r){e.currentSeasonPlays=r},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:r,needsFormat:i=!1}){if(i){if(!r||!r.local||!r.local.statistics||!r.visit||!r.visit.statistics)return;e.homeTeamFilter=rB(e.homeTeamFilter,r.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=rB(e.visitingTeamFilter,r.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==r.local.statistics.block&&(e.selectedStatisticTypeBlock=r.local.statistics.block)}else e.homeTeamFilter={...r.homeTeamFilter,statistics:0},e.visitingTeamFilter={...r.visitingTeamFilter,statistics:0}},updateFinishedGames(e,r){e.totalSeasonFinishedGames=r},updateHomeTeamPlays(e,r){e.homeTeamPlays=r},updateVisitingTeamPlays(e,r){e.visitingTeamPlays=r},addSpecialMentions(e,r){const i=Object.values(e.nextGamesDataStructure);i.forEach(B=>{for(const D of Object.values(B.subcategories))D.resetMentions()}),i.forEach(B=>{for(const D of r)for(const c of Object.values(B.subcategories))c.addSpecialMention(D[0],D[1],D[2])})},setDefaultFilter(e,r){e.defaultFilter={homeTeamFilter:{...r.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...r.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,r){if(!e.livePlays.has(r[e.indexesTLP.playId])){e.livePlays.set(r[e.indexesTLP.playId],r);const B=S6(r,e.indexesTLP,e.categoriesMap);for(const D of Object.values(e.nextGamesDataStructure))for(const c of Object.values(D.subcategories))c.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);if(rse(B,r))return;let D="";const c=e.gameForAnalysis.home_team===r[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=S6(B,e.indexesTLP,e.categoriesMap),a=RM(B,g,e.indexesTLP),y=S6(r,e.indexesTLP,e.categoriesMap),f=RM(r,y,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const v of Object.values(n.subcategories))B&&(v.subtractLivePlay(D,g[e.indexesTSP.teamId],g,e.indexesTSP,i),a&&v.subtractLivePlay(D,a[e.indexesTSP.teamId],a,e.indexesTSP,i)),v.addLivePlay(c,y[e.indexesTSP.teamId],y,e.indexesTSP,e.isLive,i),f&&v.addLivePlay(c,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,i);e.livePlays.set(r[e.indexesTLP.playId],r)},deleteLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);let D="";if(B){D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const c=S6(B,e.indexesTLP,e.categoriesMap),g=RM(r,c,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const y of Object.values(a.subcategories))y.subtractLivePlay(D,c[e.indexesTSP.teamId],c,e.indexesTSP,i),g&&y.subtractLivePlay(D,g[e.indexesTSP.teamId],g,e.indexesTSP,i)}},clearLiveTotals(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,r){e.statistics=r},updateOldSeasonId(e,r){e.oldSeasonId=r},addRankingInSubcategories(e,{getters:r,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(c=>{c.homeTeamFilterGames=c.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,c.visitingTeamFilterGames=c.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const B=[],D=new Map;for(const c of Object.values(e.nextGamesDataStructure))for(const g of Object.values(c.subcategories))B.push(g);r.rankingData.forEach(c=>{for(const g of B)if(g.isInGeneralCategory(c[e.indexesLS.categoryId])){D.has(g.id)?D.get(g.id).push(c):D.set(g.id,[c]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,r){e.homeGames=IJ(r)},setVisitingGames(e,r){e.visitingGames=IJ(r)},generateCategoriesMap(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.accomplishedCategoryIds.forEach(B=>{const D=e.categoriesMap.get(B);D?D.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:r},{command:i}){i==="on"?r("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):r("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},r){try{const g=await Uha({gameId:r.gameId});if(g){var i=[],B=[],D={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},c={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(i=g.data.data.filter(a=>a[1]==r.homeTeam),B=g.data.data.filter(a=>a[1]==r.awayTeam),D=g.data.games,c=g.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",B),e("setHomeGames",D),e("setVisitingGames",c)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:r},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",i.gameInfo),B.push(r("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:r,commit:i},{gameId:B,isTeamsAnalysis:D,currentSeasonId:c,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:y=null,isCupGame:f=!1}){try{let n={},v=e.seasonId!==Number(c);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",c),i("updateGameId",Number(B)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const p=await r("getCurrentSeasonGames",Number(B));if(i("leagueGeneral/updateCurrentSeasonGames",p,{root:!0}),n=p.find(l=>l.game_id===Number(B)),!n&&y&&(n=y),n&&i("updateGameForAnalysis",n),n.game_status!==1&&((g||e.categoriesMap.size===0)&&i("generateCategoriesMap"),f||await r("checkTeamsData",{gameId:B,isFromBet:!!a}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(r("getSeasonStatistics"))),e.usePastSeasonId){const l=await r("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>n.home_team===l.team_id))&&_.push(r("getCurrentSeasonTeams")),i("setHomeResultGame",n.score[0]),i("setAwayResultGame",n.score[1]),D?n.game_status!==1?(await r("fillStatisticData",{gameId:B,gameinfo:n,promises:_,defaultFilter:a}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(r("fillStatisticDataPostMatch",{game:B,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:r,getters:i,rootGetters:B,state:D},{gameId:c,gameinfo:g,promises:a=[],defaultFilter:y=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&a.push(r("getCurrentLiveGamePlays",c)),a.push(r("getSpecialMentionsByGame",c)),a.push(r("getHomeTeamPlays")),a.push(r("getVisitingTeamPlays")),a.push(r("getCurrentSeasonPlays")),y&&a.push(Hha(y)),f=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),y){const[n]=f.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.params),e("updateFilterAux"),e("updateFilters",{filters:D.defaultFilter,needsFormat:!1}),r("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:r,rootState:i,commit:B},{gameId:D,isFromBet:c}){try{B("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},r){try{const i=await Rha({gameId:r});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:r},i){try{const{teams:B,games:D,past_season_id:c,tournament_id:g}=await Lha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,gameId:i}),a=tpa.find(y=>y.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",B[0]),e("setAway",B[1]),r.usePastSeasonId||e("setPastSeasonId",c),await e("updateCurrentSeasonGames",D),D&&Array.isArray(D)&&e("updateFinishedGames",D.reduce((y,f)=>(f.game_status===1&&(y+=1),y),0)),D}catch(B){return Promise.reject(B)}},async getCurrentSeasonGamesLast({commit:e,state:r}){try{const{games:i,past_season_id:B}=await EJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});return r.usePastSeasonId||e("setPastSeasonId",B),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((D,c)=>(c.game_status===1&&(D+=1),D),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:r}){try{const i=await jha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:r}){try{const i=r.usePastSeasonId?r.pastSeasonId:r.seasonId,B=await Oha({seasonId:i});e("updateSeasonStatistics",B),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:r,getters:i,rootGetters:B}){e.currentSeasonGames.length>0&&r("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:r}){try{const i=await MJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:r}){try{const i=await MJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:r}){try{const i=await zha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:r},i){try{const B=await Dha({gameId:i});e.livePlays=new Map,B.forEach(D=>{e.gameForAnalysis.game_id===D[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===D[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===D[e.indexesTLP.teamId])&&r("addLiveGamePlay",D)})}catch(B){throw new Error(B)}},socket_new({state:e,commit:r},i){const B=i[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("addLiveGamePlay",B)},socket_update({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&r("updateLiveGamePlay",B)},socket_delete({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("deleteLiveGamePlay",B)},exitChannel({state:e,getters:r,rootState:i,rootGetters:B,commit:D}){const c=B["loginGeneral/getPremiumAccount"];r.isLive&&c&&(D("updateShowLiveData",!0),D("clearLiveTotals"),e.livePlays.clear(),epa.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function npa(){try{const{data:e}=await Uu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const rpa={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,r){e.booleanIsStatisticModalOpen=r},setTournamentType(e,r){e.tournamentType=r},setSectionRef(e,r){e.sectionRef=r},setSectionAnalytics(e,r){e.sectionAnalytics=r},setSeccionBetsGolTipster(e,r){e.seccionBetsGolTipster=r},setPreviewSectionAnalytics(e,r){e.previewSectionAnalytics=r},setVideoSrc(e,r){e.videoSrc=r},setVideoModalVisibility(e,r){e.isVideoModalVisible=r},setSelectedTournament(e,r){e.selectedTournament=r},setTournaments(e,r){e.tournaments=r.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,r){e.tournamentSelected=r}},actions:{async fetchTournaments({state:e,commit:r}){try{if(e.tournaments.length===0){const i=await npa();r("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function ipa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}async function opa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}const PJ=(e,r)=>{let i={};return e.forEach((B,D)=>{D==3&&(r[0]==35||r[0]==54)&&(r[D]==2?r[D]=1:r[D]=2),D==2&&(r[0]==35||r[0]==54)&&(r[D]==1?r[D]=2:r[D]==2&&(r[D]=1)),i[B]=r[D]}),i},BJ=(e,r)=>e.filter(B=>{const D=r.playingAs.includes(B.playing_as),c=r.matchResult.includes(B.match_result),g=r.sections.includes(B.section);return D&&c&&g}),NJ=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(r,i,B){return typeof B>"u"||+B==0?Math[r](i):(i=+i,B=+B,isNaN(i)||!(typeof B=="number"&&B%1===0)?NaN:(i=i.toString().split("e"),i=Math[r](+(i[0]+"e"+(i[1]?+i[1]-B:-B))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+B:B))))}Math.ceil10||(Math.ceil10=function(r,i){return e("ceil",r,i)})})();function zJ(e,r){let i=r*-1;return Math.ceil10(e,i)}const spa={...rpa,...Gha,...apa,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,r,i)=>{const B=e.xGLocalPlays,D="homeTeamFilter",c=i.nextGeneral[D];return BJ(B,c)||[]},playsAway:(e,r,i)=>{const B=e.xGVisitingPlays,D="visitingTeamFilter",c=i.nextGeneral[D];return BJ(B,c)},goalsQtyLocal:(e,r)=>{const i=NJ.find(B=>B.name==="Goles");return r.playsLocal.filter(B=>i.categories.includes(B.category_id)).length},goalsQtyAway:(e,r)=>{const i=NJ.find(B=>B.name==="Goles");return r.playsAway.filter(B=>i.categories.includes(B.category_id)).length},shotsOnGoalQtyLocal:(e,r)=>r.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,r)=>r.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,r)=>{const i=new Set;let B=r.playsLocal.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return zJ(B,2)},xGAway:(e,r)=>{const i=new Set;let B=r.playsAway.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return zJ(B,2)}},mutations:{setTeamSelected(e,r){e.teamSelected=r},setPlays(e,r){e.xGLocalPlays=r.local_team.map(i=>PJ(r.data_headers,i)),e.xGVisitingPlays=r.visiting_team.map(i=>PJ(r.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:r,localTeamId:i,visitingTeamId:B,postMatch:D=!1}){try{let c={};D?c=await opa({seasonId:r,localTeamId:i,visitingTeamId:B}):c=await ipa({seasonId:r,localTeamId:i,visitingTeamId:B}),e("setPlays",c)}catch(c){return Promise.reject(c)}}}}}};function lpa(e){for(const[r,i]of Object.entries(spa))e.hasModule(r)||e.registerModule(r,i)}const cpa={class:"subcategory-group"},dpa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",cpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Is),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},upa=ml(dpa,[["__scopeId","data-v-ae6f3d72"]]),hpa={class:"filter-subcategories"},ppa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",hpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(upa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),T6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),fpa={class:"details__header"},mpa=T6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),gpa={class:"details__header__checkbox"},ypa={class:"details__body"},vpa={class:"details__body__playing-as"},_pa=["onClick"],bpa={class:"details__header"},xpa=T6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),wpa={class:"details__header__checkbox"},kpa={class:"details__body"},Cpa=T6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Spa={class:"details__body__game-section"},Tpa=["onClick"],Epa={class:"details__body"},Apa=T6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Mpa={class:"details__body__game-section"},Ipa=["onClick"],Ppa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__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 r=e;t.useCssVars(n=>({"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 i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",fpa,[mpa,t.createElementVNode("div",gpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",ypa,[t.createElementVNode("div",vpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,_pa))),128))])]),t.createElementVNode("div",bpa,[xpa,t.createElementVNode("div",wpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",kpa,[Cpa,t.createElementVNode("div",Spa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Tpa))),128))])]),t.createElementVNode("div",Epa,[Apa,t.createElementVNode("div",Mpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Ipa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Bpa={class:"filter-field"},Npa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",Bpa,[t.createVNode(t.unref(rW),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),zpa={class:"subcategory-group"},Opa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",zpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Ps),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Fpa=yl(Opa,[["__scopeId","data-v-ae6f3d72"]]),Lpa={class:"filter-subcategories"},Dpa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Lpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(Fpa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),E6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Rpa={class:"details__header"},Vpa=E6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),$pa={class:"details__header__checkbox"},jpa={class:"details__body"},Upa={class:"details__body__playing-as"},Gpa=["onClick"],Hpa={class:"details__header"},Wpa=E6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),qpa={class:"details__header__checkbox"},Ypa={class:"details__body"},Xpa=E6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Zpa={class:"details__body__game-section"},Jpa=["onClick"],Kpa={class:"details__body"},Qpa=E6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),efa={class:"details__body__game-section"},tfa=["onClick"],afa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__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 r=e;t.useCssVars(n=>({"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 i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Rpa,[Vpa,t.createElementVNode("div",$pa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",jpa,[t.createElementVNode("div",Upa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Gpa))),128))])]),t.createElementVNode("div",Hpa,[Wpa,t.createElementVNode("div",qpa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Ypa,[Xpa,t.createElementVNode("div",Zpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Jpa))),128))])]),t.createElementVNode("div",Kpa,[Qpa,t.createElementVNode("div",efa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,tfa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),nfa={class:"filter-field"},rfa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",nfa,[t.createVNode(t.unref(ZY),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));yu.GSCGameData=Nha,yu.connectSocket=KP,yu.disconnectSocket=QP,yu.getSocket=JP,yu.registerStoreModules=lpa,Object.defineProperty(yu,Symbol.toStringTag,{value:"Module"})});
|
|
7627
|
+
*/var Oda="store";function L1(e,r){Object.keys(e).forEach(function(i){return r(e[i],i)})}function lJ(e){return e!==null&&typeof e=="object"}function Fda(e){return e&&typeof e.then=="function"}function hf(e,r){if(!e)throw new Error("[vuex] "+r)}function Lda(e,r){return function(){return e(r)}}function cJ(e,r,i){return r.indexOf(e)<0&&(i&&i.prepend?r.unshift(e):r.push(e)),function(){var B=r.indexOf(e);B>-1&&r.splice(B,1)}}function dJ(e,r){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;x6(e,i,[],e._modules.root,!0),MM(e,i,r)}function MM(e,r,i){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var D=e._wrappedGetters,c={};L1(D,function(g,a){c[a]=Lda(g,e),Object.defineProperty(e.getters,a,{get:function(){return c[a]()},enumerable:!0})}),e._state=t.reactive({data:r}),e.strict&&jda(e),B&&i&&e._withCommit(function(){B.data=null})}function x6(e,r,i,B,D){var c=!i.length,g=e._modules.getNamespace(i);if(B.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[g]=B),!c&&!D){var a=IM(r,i.slice(0,-1)),y=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&y in a&&console.warn('[vuex] state field "'+y+'" was overridden by a module with the same name at "'+i.join(".")+'"'),a[y]=B.state})}var f=B.context=Dda(e,g,i);B.forEachMutation(function(n,v){var _=g+v;Rda(e,_,n,f)}),B.forEachAction(function(n,v){var _=n.root?v:g+v,p=n.handler||n;Vda(e,_,p,f)}),B.forEachGetter(function(n,v){var _=g+v;$da(e,_,n,f)}),B.forEachChild(function(n,v){x6(e,r,i.concat(v),n,D)})}function Dda(e,r,i){var B=r==="",D={dispatch:B?e.dispatch:function(c,g,a){var y=w6(c,g,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+y.type+", global type: "+v);return}return e.dispatch(v,f)},commit:B?e.commit:function(c,g,a){var y=w6(c,g,a),f=y.payload,n=y.options,v=y.type;if((!n||!n.root)&&(v=r+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+y.type+", global type: "+v);return}e.commit(v,f,n)}};return Object.defineProperties(D,{getters:{get:B?function(){return e.getters}:function(){return uJ(e,r)}},state:{get:function(){return IM(e.state,i)}}}),D}function uJ(e,r){if(!e._makeLocalGettersCache[r]){var i={},B=r.length;Object.keys(e.getters).forEach(function(D){if(D.slice(0,B)===r){var c=D.slice(B);Object.defineProperty(i,c,{get:function(){return e.getters[D]},enumerable:!0})}}),e._makeLocalGettersCache[r]=i}return e._makeLocalGettersCache[r]}function Rda(e,r,i,B){var D=e._mutations[r]||(e._mutations[r]=[]);D.push(function(c){i.call(e,B.state,c)})}function Vda(e,r,i,B){var D=e._actions[r]||(e._actions[r]=[]);D.push(function(c){var g=i.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},c);return Fda(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function $da(e,r,i,B){if(e._wrappedGetters[r]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+r);return}e._wrappedGetters[r]=function(D){return i(B.state,B.getters,D.state,D.getters)}}function jda(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&hf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function IM(e,r){return r.reduce(function(i,B){return i[B]},e)}function w6(e,r,i){return lJ(e)&&e.type&&(i=r,r=e,e=e.type),process.env.NODE_ENV!=="production"&&hf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:r,options:i}}var Uda="vuex bindings",hJ="vuex:mutations",PM="vuex:actions",cv="vuex",Gda=0;function Hda(e,r){zda({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Uda]},function(i){i.addTimelineLayer({id:hJ,label:"Vuex Mutations",color:pJ}),i.addTimelineLayer({id:PM,label:"Vuex Actions",color:pJ}),i.addInspector({id:cv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===cv)if(B.filter){var D=[];yJ(D,r._modules.root,B.filter,""),B.rootNodes=D}else B.rootNodes=[gJ(r._modules.root,"")]}),i.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===cv){var D=B.nodeId;uJ(r,D),B.state=Yda(Zda(r._modules,D),D==="root"?r.getters:r._makeLocalGettersCache,D)}}),i.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===cv){var D=B.nodeId,c=B.path;D!=="root"&&(c=D.split("/").filter(Boolean).concat(c)),r._withCommit(function(){B.set(r._state.data,c,B.state.value)})}}),r.subscribe(function(B,D){var c={};B.payload&&(c.payload=B.payload),c.state=D,i.notifyComponentUpdate(),i.sendInspectorTree(cv),i.sendInspectorState(cv),i.addTimelineEvent({layerId:hJ,event:{time:Date.now(),title:B.type,data:c}})}),r.subscribeAction({before:function(B,D){var c={};B.payload&&(c.payload=B.payload),B._id=Gda++,B._time=Date.now(),c.state=D,i.addTimelineEvent({layerId:PM,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:c}})},after:function(B,D){var c={},g=Date.now()-B._time;c.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},B.payload&&(c.payload=B.payload),c.state=D,i.addTimelineEvent({layerId:PM,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:c}})}})})}var pJ=8702998,Wda=6710886,qda=16777215,fJ={label:"namespaced",textColor:qda,backgroundColor:Wda};function mJ(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function gJ(e,r){return{id:r||"root",label:mJ(r),tags:e.namespaced?[fJ]:[],children:Object.keys(e._children).map(function(i){return gJ(e._children[i],r+i+"/")})}}function yJ(e,r,i,B){B.includes(i)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:r.namespaced?[fJ]:[]}),Object.keys(r._children).forEach(function(D){yJ(e,r._children[D],i,B+D+"/")})}function Yda(e,r,i){r=i==="root"?r:r[i];var B=Object.keys(r),D={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(B.length){var c=Xda(r);D.getters=Object.keys(c).map(function(g){return{key:g.endsWith("/")?mJ(g):g,editable:!1,value:BM(function(){return c[g]})}})}return D}function Xda(e){var r={};return Object.keys(e).forEach(function(i){var B=i.split("/");if(B.length>1){var D=r,c=B.pop();B.forEach(function(g){D[g]||(D[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),D=D[g]._custom.value}),D[c]=BM(function(){return e[i]})}else r[i]=BM(function(){return e[i]})}),r}function Zda(e,r){var i=r.split("/").filter(function(B){return B});return i.reduce(function(B,D,c){var g=B[D];if(!g)throw new Error('Missing module "'+D+'" for path "'+r+'".');return c===i.length-1?g:g._children},r==="root"?e:e.root._children)}function BM(e){try{return e()}catch(r){return r}}var pf=function(e,r){this.runtime=r,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},vJ={namespaced:{configurable:!0}};vJ.namespaced.get=function(){return!!this._rawModule.namespaced},pf.prototype.addChild=function(e,r){this._children[e]=r},pf.prototype.removeChild=function(e){delete this._children[e]},pf.prototype.getChild=function(e){return this._children[e]},pf.prototype.hasChild=function(e){return e in this._children},pf.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},pf.prototype.forEachChild=function(e){L1(this._children,e)},pf.prototype.forEachGetter=function(e){this._rawModule.getters&&L1(this._rawModule.getters,e)},pf.prototype.forEachAction=function(e){this._rawModule.actions&&L1(this._rawModule.actions,e)},pf.prototype.forEachMutation=function(e){this._rawModule.mutations&&L1(this._rawModule.mutations,e)},Object.defineProperties(pf.prototype,vJ);var D1=function(e){this.register([],e,!1)};D1.prototype.get=function(e){return e.reduce(function(r,i){return r.getChild(i)},this.root)},D1.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(i,B){return r=r.getChild(B),i+(r.namespaced?B+"/":"")},"")},D1.prototype.update=function(e){_J([],this.root,e)},D1.prototype.register=function(e,r,i){var B=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&wJ(e,r);var D=new pf(r,i);if(e.length===0)this.root=D;else{var c=this.get(e.slice(0,-1));c.addChild(e[e.length-1],D)}r.modules&&L1(r.modules,function(g,a){B.register(e.concat(a),g,i)})},D1.prototype.unregister=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1],B=r.getChild(i);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}B.runtime&&r.removeChild(i)},D1.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),i=e[e.length-1];return r?r.hasChild(i):!1};function _J(e,r,i){if(process.env.NODE_ENV!=="production"&&wJ(e,i),r.update(i),i.modules)for(var B in i.modules){if(!r.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}_J(e.concat(B),r.getChild(B),i.modules[B])}}var bJ={assert:function(e){return typeof e=="function"},expected:"function"},Jda={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},xJ={getters:bJ,mutations:bJ,actions:Jda};function wJ(e,r){Object.keys(xJ).forEach(function(i){if(r[i]){var B=xJ[i];L1(r[i],function(D,c){hf(B.assert(D),Kda(e,i,c,D,B.expected))})}})}function Kda(e,r,i,B,D){var c=r+" should be "+D+' but "'+r+"."+i+'"';return e.length>0&&(c+=' in module "'+e.join(".")+'"'),c+=" is "+JSON.stringify(B)+".",c}var zh=function e(r){var i=this;r===void 0&&(r={}),process.env.NODE_ENV!=="production"&&(hf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),hf(this instanceof e,"store must be called with the new operator."));var B=r.plugins;B===void 0&&(B=[]);var D=r.strict;D===void 0&&(D=!1);var c=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new D1(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=c;var g=this,a=this,y=a.dispatch,f=a.commit;this.dispatch=function(v,_){return y.call(g,v,_)},this.commit=function(v,_,p){return f.call(g,v,_,p)},this.strict=D;var n=this._modules.root.state;x6(this,n,[],this._modules.root),MM(this,n),B.forEach(function(v){return v(i)})},NM={state:{configurable:!0}};zh.prototype.install=function(e,r){e.provide(r||Oda,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&Hda(e,this)},NM.state.get=function(){return this._state.data},NM.state.set=function(e){process.env.NODE_ENV!=="production"&&hf(!1,"use store.replaceState() to explicit replace store state.")},zh.prototype.commit=function(e,r,i){var B=this,D=w6(e,r,i),c=D.type,g=D.payload,a=D.options,y={type:c,payload:g},f=this._mutations[c];if(!f){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){f.forEach(function(n){n(g)})}),this._subscribers.slice().forEach(function(n){return n(y,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},zh.prototype.dispatch=function(e,r){var i=this,B=w6(e,r),D=B.type,c=B.payload,g={type:D,payload:c},a=this._actions[D];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+D);return}try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(g,i.state)})}catch(f){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(f))}var y=a.length>1?Promise.all(a.map(function(f){return f(c)})):a[0](c);return new Promise(function(f,n){y.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(g,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}f(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(g,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}n(v)})})},zh.prototype.subscribe=function(e,r){return cJ(e,this._subscribers,r)},zh.prototype.subscribeAction=function(e,r){var i=typeof e=="function"?{before:e}:e;return cJ(i,this._actionSubscribers,r)},zh.prototype.watch=function(e,r,i){var B=this;return process.env.NODE_ENV!=="production"&&hf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},r,Object.assign({},i))},zh.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._state.data=e})},zh.prototype.registerModule=function(e,r,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(hf(Array.isArray(e),"module path must be a string or an Array."),hf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,r),x6(this,this.state,e,this._modules.get(e),i.preserveState),MM(this,this.state)},zh.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=IM(r.state,e.slice(0,-1));delete i[e[e.length-1]]}),dJ(this)},zh.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&hf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},zh.prototype.hotUpdate=function(e){this._modules.update(e),dJ(this,!0)},zh.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r},Object.defineProperties(zh.prototype,NM);var Qda=tua(function(e,r){var i={};return process.env.NODE_ENV!=="production"&&!kJ(r)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),eua(r).forEach(function(B){var D=B.key,c=B.val;i[D]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var y=this.$store.commit;if(e){var f=aua(this.$store,"mapMutations",e);if(!f)return;y=f.context.commit}return typeof c=="function"?c.apply(this,[y].concat(g)):y.apply(this.$store,[c].concat(g))}}),i});function eua(e){return kJ(e)?Array.isArray(e)?e.map(function(r){return{key:r,val:r}}):Object.keys(e).map(function(r){return{key:r,val:e[r]}}):[]}function kJ(e){return Array.isArray(e)||lJ(e)}function tua(e){return function(r,i){return typeof r!="string"?(i=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),e(r,i)}}function aua(e,r,i){var B=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+r+"(): "+i),B}const nua="/icn-play.svg",rua="/icn-tiros-de-esquina.svg",iua="/icn-tiro-a-porteria.svg",oua="/icn-cambio.svg",sua="/icn-falta.svg",lua="/atajada.svg",cua="/fuera-de-lugar.svg",zM="/gol.svg",dua="/var.png",uua="/tiempo-agregado.svg",hua="/jugada-peligrosa.svg",pua="/penal-marcado.svg",fua="/penal-fallado.svg",mua="/inicia-el-partido.svg",gua="/fin-del-partido.svg",yua="/icn-tarjeta-amarilla.svg",vua="/icn-tarjeta-roja.svg",_ua=[1,2,3,4,6],bua={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],r=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return EM.GOAL_IDS.includes(r)?(e.push("is-main-event"),e.push("goal")):EM.YELLOW_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("yellow-card")):EM.RED_CARD_IDS.includes(r)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(r=>Tda(r))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||_ua.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Qda("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,r]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(r),teamId:this.gameEvent.team_id})}}},xua=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),wua={class:"time-line-event__details"},kua={width:"127",preload:"metadata",style:{"border-radius":"8px"}},Cua=["src"],Sua=xua(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),Tua={class:"time-line-event__details__info"},Eua={key:0,class:"time-line-event__details__info__header__players"},Aua={class:"time-line-event__details__info__header__players__div-img"},Mua=["src"],Iua={class:"time-line-event__details__info__body"},Pua={class:"time-line-event__details__info__body__comment"},Bua={class:"time-line-event__minute__container"},Nua={class:"time-line-event__minute__container__text"},zua={class:"time-line-event__minute__container__icon-container"},Oua={class:"time-line-event__minute__container__icon-container__icon"},Fua={key:0,src:rua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Lua={key:1,src:iua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Dua={key:2,src:oua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Rua={key:3,src:sua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Vua={key:4,src:lua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$ua={key:5,src:cua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jua={key:6,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Uua={key:7,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Gua={key:8,src:zM,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Hua={key:9,src:dua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Wua={key:10,src:uua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qua={key:11,src:hua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Yua={key:12,src:pua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Xua={key:13,src:fua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Zua={key:14,src:mua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Jua={key:15,src:gua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Kua={key:16,src:yua,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Qua={key:17,src:vua,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},eha={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function tha(e,r,i,B,D,c){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",c.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:D.gameEventKey},[t.createElementVNode("div",wua,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:r[0]||(r[0]=g=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",kua,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,Cua)]),Sua])):t.createCommentVNode("",!0),t.createElementVNode("div",Tua,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",c.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Eua,[c.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(c.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Aua,[t.createElementVNode("img",{src:g,alt:""},null,8,Mua)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",c.nameClasses]),onClick:r[1]||(r[1]=g=>c.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:nua,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?i.gameEvent.event_type_name+" de "+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",Iua,[t.createElementVNode("div",Pua,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",c.minuteClasses])},[t.createElementVNode("div",Bua,[t.createElementVNode("div",Nua,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",zua,[t.createElementVNode("div",Oua,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Fua)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",Lua)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Dua)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Rua)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Vua)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",$ua)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",jua)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Uua)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",Gua)):i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",Hua)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",Wua)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",qua)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Yua)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Xua)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",Zua)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",Jua)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",Kua)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Qua)):(t.openBlock(),t.createElementBlock("img",eha))])])])],2)],6)}const aha=q_(bua,[["render",tha],["__scopeId","data-v-9943063a"]]),nha={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},rha={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let k6=null;const iha={name:"TimeLine",components:{Tooltip:wda,TimeLineEvent:aha},mixins:[Cda],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const r=await this.fetchGameEvents(e);r?(this.gameEvents=[...r],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(r){throw new Error(r)}},getGameEventClassAndSetIcon(e,r){return e.icon=r===0?"inicio_del_partido":nha[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:r}}=await rJ.get(`${this.gameEventsUrl}${e}`);return r}catch(r){throw new Error(r)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)k6=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),k6.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,r){const i=this.$refs[`gameEventDiv${r}`][0],B=this.$refs[`gameEventLine${r}`]?this.$refs[`gameEventLine${r}`][0]:null,D=e+12;i&&(i.style.height=`${D}px`),B&&(B.style.height=`${D}px`)},sortGameEvents(){this.gameEvents.sort((e,r)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(r.match_lapse)+Number(r.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let r=0;switch(e){case 1:r=0;break;case 2:r=45;break;case 3:r=90;break;case 4:r=105;break;case 5:r=120;break}return r},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const r=this.gameEvents.findIndex(i=>i.play_id===e.play_id);r&&this.gameEvents.splice(r,1)},checkTimeLineStatus(){this.gameEvents.forEach(r=>{const i=rha[r.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:r})}),this.timeLineStatuses.sort((r,i)=>i.weight-r.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const r=this.gameData[e].team_id;return Sda(r)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){k6&&k6.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,r]){this.channelName===e&&this.addGameEventFromChannel(r)},update_mxm([e,r]){this.channelName===e&&(this.deleteGameEventFromChannel(r),this.addGameEventFromChannel(r))},delete_mxm([e,r]){this.channelName===e&&this.deleteGameEventFromChannel(r)}}},CJ=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),oha={ref:"timeLine",class:"time-line"},sha={class:"time-line__header"},lha={class:"time-line__header__dot"},cha={class:"time-line__header__dot__home-team team-logo"},dha=["src"],uha={class:"time-line__header__dot__away-team team-logo"},hha=["src"],pha={key:1,class:"start-line"},fha=CJ(()=>t.createElementVNode("div",null,null,-1)),mha=CJ(()=>t.createElementVNode("div",null,null,-1)),gha=[fha,mha],yha={key:1,class:"noEventText"},vha={class:"tooltip-data"},_ha=["src"];function bha(e,r,i,B,D,c){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",oha,[t.createElementVNode("div",sha,[t.createElementVNode("div",lha,[t.createElementVNode("div",cha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("homeTeam"),alt:""},null,8,dha)]),t.createElementVNode("div",uha,[t.createElementVNode("img",{src:c.getTeamLogoSrc("awayTeam"),alt:""},null,8,hha)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${D.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:D.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.gameEventsToShow,(y,f)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:y.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${f}`,class:t.normalizeClass(c.getGameEventClassAndSetIcon(y,f))},[t.createElementVNode("div",{class:t.normalizeClass(c.getEventContainerClass(y))},[t.createVNode(g,{"game-event":y,"is-mobile":c.isMobile,"time-line-width":D.timeLineWidth,width:c.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:n=>c.updateContainerHeight(n,f),onPlayerChanged:r[0]||(r[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:c.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),f>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${f}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&f===c.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",pha,gha)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",yha,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:D.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",vha,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:D.dataVideo.link,format:"video/mp4"},null,8,_ha)])])]),_:1},8,["data"])],64)}const xha=q_(iha,[["render",bha],["__scopeId","data-v-2574e576"]]),wha={class:"game-time-line__options"},kha={class:"game-time-line__timeline"},Cha={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){rJ.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const r=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let B=null;const D=t.ref(["Todo","1er tiempo","2do tiempo"]),c=t.ref("Todo"),g=t.ref({}),a=t.ref(null),y=t.ref(0),f=t.computed(()=>{let l="all";return c.value==="1er tiempo"||c.value==="1er"?l="firstHalf":(c.value==="2do tiempo"||c.value==="2do")&&(l="secondHalf"),l}),n=t.computed(()=>y.value<500);function v(l){c.value=l}function _(l){g.value=l}function p(){if(window.ResizeObserver)B=new ResizeObserver(()=>{y.value=a.value.clientWidth}),B.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),t.onBeforeUnmount(()=>{B&&B.unobserve(a.value)}),(l,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",wha,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"game-time-line__options__option"},[t.createVNode(aca,t.mergeProps(y.value<390?i.value:r.value,{text:s=="Todo"?s:y.value<390?s.substring(0,3):s,"is-active":c.value===s,onClick:u=>v(s)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",kha,[t.createVNode(xha,{"game-data":e.game,"time-line-period":f.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},Sha=q_(Cha,[["__scopeId","data-v-f42d0c90"]]),e3a="",Tha={class:"game-data__header"},Eha={class:"game-data__header__tournament-season-dropdown"},Aha={class:"game-data__header__teams-carousel"},Mha={class:"game-data__body"},Iha={class:"game-data__body__menu"},Pha={class:"game-data__body__menu__contmenuswitch"};$c.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Bha=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Rpe,GSCGameTimeLine:Sha,GscSwitchComponent:iA,GSCLineupsMain:s8e,GSCDatosGSMain:EIe,GSCVideoGame:OUe,ModalEvents:IR,GSCSummaryMain:N2t,GSCTacticaFijaMain:eca,GSCProminentMain:$Bt,GSCComparative:xFt}}),Nha=$i(Object.assign(Bha,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:r}){const i=e,B=ax();Xh.on("socket-connected",()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const D=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),c=t.ref({season:[]}),g=t.ref({}),a=t.ref(!1),y=t.ref({}),f=t.ref(1),n=t.ref(0),v=12e4,_=12e4,p=12e4,l=12e4,o=12e4,s=12e4,u=12e4,d=12e4,h=12e4,m=t.ref(null),b=t.ref(null),w=t.ref(null),x=t.ref([]),S=t.ref(null),C=t.ref(!0),T=t.ref(new Set([1,2])),k=t.ref({}),A=t.ref({minute:"",recent_lapse:0,score:{}}),E=t.ref(0),M=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),I=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),z=t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(i.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:i.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const F=t.ref(0);let R=null;const V=t.ref(null),$=t.ref(0),U=t.ref(N.value[0]),Z=t.ref([]);let q=t.ref("");const W={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},Q=t.computed(()=>{const xe=[];return g.value&&g.value.id&&(xe.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(ze=>{xe.push({id:ze.id,type:ze.type})})),xe}),X=t.computed(()=>{if(i.clientPrivilegesBySeasons){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)return xe.teamId}return 0});function J(){a.value=!1}function ee(xe){const ze=xe.split(",");return!(ze.length<2||ze[1].split(" ").length<2)}function le(xe){m.value=xe}function oe(xe){x.value.push(xe)}function se(xe){S.value=xe}function ce(xe){w.value=xe}function ae(xe){b.value=xe}function ne(xe){if(!ee(xe))return"";const ze=ue(xe);return`${ie(xe)}. ${ze}`}function ie(xe){return xe.split(",")[1].split(" ")[1][0]}function ue(xe){const ze=xe.split(",")[0].split(" ");return ze[0].length<=3&&ze.length>1?`${ze[0]} ${ze[1]}`:ze[0]}async function he(xe){try{const ze=$c.create({headers:{Authorization:`${D.value}`}});k.value={};const De=await ze.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+xe.game_id);if(k.value[xe.home_team.team_id]=[],k.value[xe.home_team.team_id].team={name:xe.home_team.acronym,logo:xe.home_team.logo},k.value[xe.home_team.team_id].goals=[],k.value[xe.home_team.team_id].red=[],k.value[xe.home_team.team_id].yellow=[],k.value[xe.visiting_team.team_id]=[],k.value[xe.visiting_team.team_id].team={name:xe.visiting_team.acronym,logo:xe.visiting_team.logo},k.value[xe.visiting_team.team_id].goals=[],k.value[xe.visiting_team.team_id].red=[],k.value[xe.visiting_team.team_id].yellow=[],De.data.minute!=null&&(A.value={minute:De.data.minute,recent_lapse:De.data.recent_lapse,score:De.data.score}),De.data.plays)for(let Ve=0;Ve<De.data.plays.length;Ve++)De.data.plays[Ve].category_name=="Roja"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].red||(k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].red||(k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].red[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].category_name=="Amarilla"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].yellow||(k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].yellow||(k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].yellow[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute))),De.data.plays[Ve].event_type_name=="Gol"&&De.data.plays[Ve].status==1&&(xe.home_team.team_id==De.data.plays[Ve].team_id?De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):De.data.plays[Ve].category_name=="Autogol"?(ne(De.data.plays[Ve].player_name)in k.value[xe.home_team.team_id].goals||(k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.home_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)):(ne(De.data.plays[Ve].player_name)in k.value[xe.visiting_team.team_id].goals||(k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)]={},k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event=[],k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].name=ne(De.data.plays[Ve].player_name)),k.value[xe.visiting_team.team_id].goals[ne(De.data.plays[Ve].player_name)].event.push(De.data.plays[Ve].minute)))}catch(ze){return Promise.reject(ze)}}function pe(xe){a.value=!0,xe.is_live!=1&&xe.game_status!=0&&(xe.game_status==4||Object.keys(xe.minutes).length>0)?(E.value=1,k.value={plays:xe.minutes,home_team:xe.home_team,visiting_team:xe.visiting_team}):(E.value=0,he(xe))}function me(){R=new ResizeObserver(xe=>{for(const ze of xe)$.value=ze.contentRect.width}),R.observe(V.value)}const be=t.computed(()=>{let xe={};return y.value&&y.value.game_id&&(xe={gameId:y.value.game_id,id:y.value.game_id,seasonId:y.value.season_id,status:y.value.game_status,game_status:y.value.game_status,dateTimeUTC:y.value.date_time_utc,homeTeam:y.value.home_team,awayTeam:y.value.visiting_team,is_live:y.value.is_live,minutes:y.value.minutes}),xe});t.watch(()=>be,(xe,ze)=>{if(B.commit("nextGeneral/updateShowLiveData",!0),Object.keys(xe.value).length>0){xe.value.gameId===ze.value.gameId&&xe.value.is_live!==ze.value.is_live&&(B.commit("nextGeneral/updateGameForAnalysisByProps",{is_live:xe.value.is_live,game_status:xe.value.game_status}),F.value+=1),N.value=[],xe.value.is_live==1||xe.value.game_status==4?N.value=[...I.value]:N.value=[...z.value],!i.isWidget&&(g.value.is_tactic_available==0||xe.value.is_live==1||xe.value.game_status==0)&&N.value.pop(),i.isWidget&&xe.value.is_live==1&&xe.value.awayTeam.team_id==i.teamWidget,U.value=N.value[0];const De=n.value==1?"Destacados":"Destacadas";N.value.forEach(Ve=>{Ve.name===De&&(Ve.name=n.value==1?"Destacadas":"Destacados")}),F.value+=1,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam}),xe.value.is_live==1&&setInterval(()=>{E.value=0,he({game_id:xe.value.gameId,home_team:xe.value.homeTeam,visiting_team:xe.value.awayTeam})},6e4)}},{deep:!0,immediate:!0}),t.watch(()=>B.state.nextGeneral.gameForAnalysis,()=>{B.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0});function we(xe){f.value=xe.is_captured,n.value=xe.is_female,C.value=xe.is_captured!==0,c.value.id!==xe.id&&(c.value=xe,B.commit("gameGlobal/setTournamentType",xe.tournament_type))}function ke(xe){!xe.auxwidget&&Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos||((y.value.is_live||y.value.game_status===0||y.value.game_status===1)&&(xe.gameIdsToFilter=[y.value.game_id]),(y.value.is_live||y.value.game_status===0)&&(xe.liveGameConfig={gameId:y.value.game_id}),r("openmedia",xe))}function Ee(xe){r("onOpenProfile",xe)}function Be(xe){r("openProfileTeam",xe)}function je(xe){r("openProfilePlayer",xe)}function Te(xe){Re(xe),xe=="Estadísticas"&&(q.value="Comparativa")}function Se(){q.value=""}function ye(xe){g.value.id!==xe.id&&(g.value=xe,r("change-season-id",xe.id))}const ge=t.computed(()=>N.value.reduce((xe,ze)=>(i.disabledSectionsIds.includes(ze.id)||Ce.value&&!Ce.value.isVideoTabVisible&&ze.id===2||i.clientPrivilegesBySeasons&&ze.id===7||(C.value||ze.id!==5&&ze.id!==6)&&xe.push(ze.name),xe),[]));function Me(xe){if(y.value.is_live||y.value.game_status===1||y.value.game_status===0){const ze=xe.playingAs.has(y.value.playingAs);return i.clientPrivilegesBySeasons.canPlayVideos&&ze}else{const ze=Oe.value.filter(De=>xe.playingAs.has(De.playingAs));return i.clientPrivilegesBySeasons.canPlayVideos&&ze.length>0}}const Ce=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value&&y.value&&y.value.game_id){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)if(Fe(xe.playingAs),(y.value.is_live||y.value.game_status===1||y.value.game_status===0)&&B.state.nextGeneral.showLiveData){const ze=xe.playingAs.has(y.value.playingAs);return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:y.value.home_team.team_id===xe.teamId,homeTeamDetails:{canPlayVideos:ze,team:y.value.home_team},awayTeamDetails:{canPlayVideos:ze,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}else{const ze=y.value.home_team.team_id===xe.teamId,De=Oe.value.filter(Xe=>xe.playingAs.has(Xe.playingAs));return{seasonAndPrivileges:xe,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&De.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:ze,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&ze&&De.length>0,team:y.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!ze&&De.length>0,team:y.value.visiting_team},isVideoTabVisible:Me(xe)}}Fe(new Set)}return W}return null}),Oe=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value){const xe=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(xe)return Z.value.filter(ze=>ze.game_status===1&&xe.playingAs.has(ze.playingAs))}return[]}return[]});t.watch(ge,()=>{Ce.value&&!Ce.value.canPrivilegesTeamPlayVideos&&U.value.id===2&&Re("Resumen")},{deep:!0,immediate:!0});function Fe(xe){T.value=xe}function Re(xe){if(B.commit("nextGeneral/updateShowLiveData",!0),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}i.isWidget?U.value=N.value.find(ze=>ze.name===xe)||N.value[1]:U.value=N.value.find(ze=>ze.name===xe)||N.value[0]}t.onMounted(()=>{me(),t.nextTick(()=>{i.isSynchronization&&Re("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(R&&R.disconnect(),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let xe of x.value)clearInterval(xe);x.value=[]}R8()});function Ue(xe){if(xe.playingAs||(xe.playingAs=X.value?xe.home_team.team_id===X.value?1:2:0),m.value!=null&&(clearInterval(m.value),m.value=null),b.value!=null&&(clearInterval(b.value),b.value=null),w.value!=null&&(clearInterval(w.value),w.value=null),S.value!=null&&(clearInterval(S.value),S.value=null),x.value.length>0){for(let ze of x.value)clearInterval(ze);x.value=[]}y.value=xe,xe.is_live&&xe.game_status===4?KP():QP()}function Ne(xe){Z.value=xe.map(ze=>{const De={...ze};return X.value&&(De.playingAs=De.home_team.team_id===X.value?1:2),De})}return(xe,ze)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:V},[t.createElementVNode("div",Tha,[t.withDirectives(t.createElementVNode("div",Eha,[t.createVNode(t.unref(KM),{"current-season-id":e.currentSeasonId,onInput:we,onChangeTournaments:we,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(tI),{"current-season-id":e.currentSeasonId,seasons:c.value.seasons,onInput:ye},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",Aha,[t.createVNode(t.unref($ne),{"plays-live":k.value,"info-live":A.value,token:M.value,is_captured:f.value,"await-for-seasons":"",seasons:Q.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(B).state.gameGlobal.tournamentType,onChangeGameCarousel:Ue,onOpenModalEvent:pe,onChangeGamesByClientPrivileges:Ne},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),a.value?(t.openBlock(),t.createBlock(IR,{key:0,width:$.value,onCloseModalEventsLive:J,plays:k.value,game:y.value,type:E.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",Mha,[t.createElementVNode("div",Iha,[t.createElementVNode("div",Pha,[t.createVNode(t.unref(iA),{type:2,buttons:ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":U.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Re},null,8,["buttons","width","selected-option"])])]),be.value&&be.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(U.value.componentName),{key:F.value,game:be.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ae,onIntervalidhighlive:ce,onIntervalidtops:oe,onIntervalidgs:se,subsection:t.unref(q),seasonSelected:g.value,tournamentSelected:c.value,showLineups:C.value,socket:e.socket,"time-live-prominent-data":v,"time-live-highlights-prominent-and-video":_,"time-live-possesion":p,"time-live-video-goals":l,"time-live-video-best-plays":o,"time-live-video-this-game":s,"time-live-video-specific-plays":u,"time-live-comparative-best-players":d,"time-live-comparative-avanced":h,is_captured:f.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Ce.value?Ce.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":T.value,"client-privileges-team-id":X.value,"play-videos-privileges":Ce.value,token:M.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:Se,onOpenmedia:ke,onOnOpenProfile:Ee,onOpenProfileTeam:Be,onOpenProfilePlayer:je,onChangeToTab:Te,onOpenMediaPlayer:ke,onIntervalid:le},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-5c237f88"]]);async function Uu({url:e,options:r={},retries:i=3}){return await $c.get(e,r).then(B=>B).catch(B=>i>0?Uu({url:e,options:r,retries:i-1}):B)}async function SJ({seasonId:e},r=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(r)return SJ({seasonId:e},!1);throw new Error(i)}}async function zha({seasonId:e}){try{return(await Uu({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}async function Oha({seasonId:e}){try{return(await Uu({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(r){return Promise.reject(r)}}function Fha(e,r,i,B,D,c,g=!1){const a=i.map(y=>y===1?2:y===2?1:3);return e.filter(y=>{const f=c&&y[D.teamId]?y[D.teamId]!==c:!1,n=r===1?2:1;return(g||B.includes(y[D.gameId]))&&(!r||(f?n:r)===y[D.playingAs])&&(i.includes(y[D.matchResult])&&y[D.teamId]===c||a.includes(y[D.matchResult])&&y[D.teamId]!==c)})}function TJ(e,r,i,B,D){return r.length===2&&i.length===3&&B.length===6?e:e.filter(c=>r.includes(c[D.playingAs])&&i.includes(c[D.matchResult])&&B.includes(c[D.section]))}async function EJ({seasonId:e}){try{const r=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function Lha({seasonId:e,gameId:r}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${r}`,{data:B}=await Uu({url:i});return B}catch(i){return Promise.reject(i)}}async function Dha({gameId:e}){try{const r=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Uu({url:r})).data.data}catch(r){return Promise.reject(r)}}async function Rha({gameId:e}){try{const r=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Uu({url:r})).data.data||[]}catch(r){return Promise.reject(r)}}const Vha=["categoryId","matchLapse","section","matchResult","playingAs","total"];let OM=null;function AJ(){return OM||(OM=qg(Vha)),OM}async function $ha(e){try{const r=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Uu({url:r})).data}catch(r){return Promise.reject(r)}}async function MJ({seasonId:e,teamId:r}){try{return await Uu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${r}`})}catch(i){return Promise.reject(i)}}async function jha(e){try{const r=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Uu({url:r})}catch(r){return Promise.reject(r)}}async function Uha(e){try{return await Uu({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(r){return Promise.reject(r)}}const Gha={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,r,i,B){return Fha(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],AJ(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const r=e.currentSeasonGames.reduce((i,B)=>{const D={...B};return D.home_team=e.currentSeasonTeams.find(c=>c.team_id===B.home_team),D.visiting_team=e.currentSeasonTeams.find(c=>c.team_id===B.visiting_team),i[B.matchday_abbreviation]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(D):i[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[D]:i[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[D]},i},{});for(let[i,B]of Object.entries(r))r[i]=Object.entries(B).map(([D,c])=>({date:D,games:c})),r[i].sort((D,c)=>D.date<c.date?-1:D.date>c.date?1:0);return r},matchdaysDates(e,r){let i=[];if(r.nextGamesSchedule){let B=Object.keys(r.nextGamesSchedule);for(let D of B){let c=Number(D.replace("M","")),g=r.nextGamesSchedule[D].map(a=>({matchday:c,date:new Date(a.date)}));i=i.concat(g)}}return i},closestMatchDay(e,r){let i=new Date,B=0,D=-new Date(0,0,0).valueOf(),c=r.matchdaysDates,g=c.length;for(let a=0;a<c.length;a++)B=Math.abs(c[a].date-i),B<D&&(g=a,D=B);return c[g]?c[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,r){e.booleanIsLiveGamesModalOpen=r},setBooleanAreLiveGames(e,r){e.booleanAreLiveGames=r},updateSeasonPlays(e,r){e.seasonPlays=r},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateSelectedRound(e,r){e.selectedRound=r}},actions:{async getSeasonPlays({commit:e,rootGetters:r},i=!1){try{const B=await SJ({seasonId:r["filterGeneral/getSeasonId"]});if(i)return B;e("updateSeasonPlays",B)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:r}){try{const i=await EJ({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:r}){try{const i=await $ha({seasonId:r["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:r,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=r("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=r("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function Hha({filter:e}){try{const r=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await Uu({url:r});return i}catch(r){return Promise.reject(r)}}const Wha=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let FM=null;function qha(){return FM||(FM=qg(Wha)),FM}class C6{constructor(){Vc(this,"maximumLiveSection",1);Vc(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Vc(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(r){r>this.maximumLiveSection&&(this.maximumLiveSection=r)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,r,i)}increaseReceivedByOne(r,i,B){B&&(this.setMaximumLiveSection(r),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[r-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,r,i)}increaseTrendLiveAccumulatedByOne(r,i,B){for(let D=i-1;D<r.accumulated.length;D++)r.accumulated[D]+=B}decreaseAccomplishedLiveByOne(r,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[r-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,r,i))}decreaseReceivedLiveByOne(r,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[r-1]>0&&(this.received.totalsLiveTrendLive.sections[r-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,r,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(r,i,B){for(let D=r.accumulated.length-1;D>=i-1;D--)r.accumulated[D]-=B}calculateAvg(r){r&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/r,this.received.avgPostGame=this.received.totalPostGame/r,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,r),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,r),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,r),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,r))}getAvgPostGameTrendLiveAvg(r,i){return r.map(B=>B/i)}calculateRanking(r,i,B,D,c,g,a,y){let f=[];D===3&&r&&r.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?f=Array.from(r.reduce((v,_)=>{const p=_[i.playingAs]===1,l=p?"1":"2",o=v.get(_[i.gameId]);if(o)o[l]?o[l].arrayPlays.push(_):o[l]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const s={numberMatchResult:_[i.matchResult]};p&&(s[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],s)}return v},new Map).values()).reduce((v,_)=>{const p=B.playingAs.length===2?"both":B.playingAs[0].toString();return(p==="both"&&(_[1].numberTeamId===B.teamId||_[2].numberTeamId===B.teamId)||p!=="both"&&_[p].numberTeamId===B.teamId)&&B.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>B.sections.includes(v[i.section])):(f=r?[...r]:[],a&&r&&(f=r.filter(n=>B.playingAs.includes(n[i.playingAs])&&B.matchResult.includes(n[i.matchResult])&&B.sections.includes(n[i.section])))),this.setTeamRanking(f,D,i,B.teamId,g,"accomplished",y)}setTeamRanking(r,i,B,D,c,g,a){let y=null,f=null;i===3&&(y=new Map,f={},r.forEach(_=>{const p=y.get(_[B.gameId]);p?p[_[B.teamId.toString()]]?p[_[B.teamId.toString()]]+=_[B.total]:p[_[B.teamId.toString()]]=_[B.total]:y.set(_[B.gameId],{[_[B.teamId.toString()]]:_[B.total]})}),Array.from(y.values()).forEach(_=>{const[p,l]=Object.keys(_).map(s=>s),o=_[p]+_[l];this.addPassesAvgByTeam(f,p,o?_[p]/o:0),this.addPassesAvgByTeam(f,l,o?_[l]/o:0)}));const n=c.sort((_,p)=>_.team_id-p.team_id).map(_=>{if(i===3){const p=f[_.team_id.toString()];return{teamId:_.team_id,points:p?p.numberTotalPassesAvg/p.numberGamesCount:0,total:p?p.numberTotalPassesAvg:0}}else{const p=r.reduce((l,o)=>o[B.teamId]===_.team_id&&i===o[B.categoryId]?l+o[B.total]:l,0);return{teamId:_.team_id,points:_[`${a}FilterGames`]?p/_[`${a}FilterGames`]:0,total:p}}}).sort((_,p)=>p.points-_.points);this.accomplished.arrayRankings=n;const v=n.findIndex(_=>_.teamId===D);i===3&&(this.accomplished.avgPreGame=n[v].points),this[g].ranking=v+1,this[g].leader=n[0]}addPassesAvgByTeam(r,i,B){r[i]?(r[i].numberGamesCount+=1,r[i].numberTotalPassesAvg+=B):r[i]={numberGamesCount:1,numberTotalPassesAvg:B}}}class Bs{constructor(r,i,B,D,c,g,a,y,f,n){Vc(this,"id","");Vc(this,"generalId",0);Vc(this,"name","");Vc(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Vc(this,"accomplishedCategoryIds",[]);Vc(this,"receivedCategoryIds",[]);Vc(this,"generalCategoriesIds",{accomplished:0,received:0});Vc(this,"specialMention","");Vc(this,"homeTeam",new C6);Vc(this,"visitingTeam",new C6);Vc(this,"isLeagueDataCalculated",!1);Vc(this,"leagueAccomplishedMax",0);Vc(this,"leagueReceivedMax",0);Vc(this,"leagueAccomplishedAvg",0);Vc(this,"leagueReceivedAvg",0);Vc(this,"leagueAccomplishedAccumulator",0);Vc(this,"leagueReceivedAccumulator",0);Vc(this,"homeTeamType","homeTeam");Vc(this,"visitingTeamType","visitingTeam");Vc(this,"betOnly",!1);Vc(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=r||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=D,this.names["0-0"]=D||"",this.names["1-1"]=c||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=y||0,this.betOnly=f||!1,this.isPercent=n||!1}addLeaguePlays(r,i,B){r.length===0||!B||this.isLeagueDataCalculated||(r.forEach(D=>{this.isAccomplishedLeaguePlay(D[i.categoryId])&&(this.leagueAccomplishedAccumulator+=D[i.total]),this.isReceivedLeaguePlay(D[i.categoryId])&&(this.leagueReceivedAccumulator+=D[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(r,i,B){let D="-";for(const[c,g]of Object.entries(this.generalCategoriesIds))r===g&&(D=`${c==="accomplished"?"0":"1"}${D}`),i===g&&(D=`${D}${c==="accomplished"?"0":"1"}`);D.length===3&&(this.mentions[D]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(r,i,B,D,c){!B||!c||r!==this.homeTeamType&&r!==this.visitingTeamType||(B.forEach(g=>{this.isAccomplishedPlay(g[D.categoryId])?this[r].increaseAccomplishedByOne(g[D.section],g[D.total]):this.isReceivedPlay(g[D.categoryId])&&this[r].increaseReceivedByOne(g[D.section],g[D.total])}),this[r].calculateAvg(c))}addLivePlay(r,i,B,D,c=!1,g=!1){(r===this.homeTeamType||r===this.visitingTeamType)&&B[D.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[r].increaseAccomplishedByOne(B[D.section],B[D.total],!0)}subtractLivePlay(r,i,B,D,c){(r===this.homeTeamType||r===this.visitingTeamType)&&(this.isAccomplishedPlay(B[D.categoryId])&&!c?this[r].decreaseAccomplishedLiveByOne(B[D.section],B[D.total]):this.isReceivedPlay(B[D.categoryId])&&c&&this[r].decreaseReceivedLiveByOne(B[D.section],B[D.total]))}isAccomplishedLeaguePlay(r){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>r===B||`${r}_r`===B)}isReceivedLeaguePlay(r){return!!this.receivedCategoryIds.find(i=>r===i)}isAccomplishedPlay(r){return this.generalCategoriesIds.accomplished===r}isReceivedPlay(r){return this.generalCategoriesIds.received===r}calcRankingLeague(r,i,B,D,c,g=!1){this[this.homeTeamType].calculateRanking(r,i,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(r,i,D,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,c,g,this.visitingTeamType)}resetData(){this.homeTeam=new C6,this.visitingTeam=new C6,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(r){return this.generalCategoriesIds.accomplished===r||this.generalCategoriesIds.received===r}}const Yha={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new Bs([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new Bs([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new Bs([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new Bs([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new Bs([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new Bs([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new Bs([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new Bs([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new Bs([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new Bs([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new Bs([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new Bs([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new Bs([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new Bs([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new Bs([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new Bs([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new Bs([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new Bs([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new Bs([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new Bs([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new Bs([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new Bs([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new Bs([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new Bs([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new Bs([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new Bs([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new Bs([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new Bs([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new Bs([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new Bs([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new Bs([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new Bs([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new Bs([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new Bs([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new Bs([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new Bs([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},Xha=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],Zha=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let LM=null;function Jha(){return LM||(LM=qg(Zha)),LM}const Kha=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let DM=null;function Qha(){return DM||(DM=qg(Kha)),DM}function S6(e,r,i){return[i.get(e[r.categoryId])||[],e[r.teamId],e[r.matchResult],e[r.playingAs],e[r.matchLapse],e[r.section],e[r.total]]}function IJ(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function RM(e,r,i){let B=[...r];return e[i.categoryId]===2&&(B[0]=14),e[i.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}const epa=JP(),tpa=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],apa={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:AJ(),indexesTSP:qha(),indexesLS:Jha(),indexesTLP:Qha(),nextGamesDataStructure:Yha,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(r=>r.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return Xha.filter(r=>r.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return TJ(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return TJ(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(r=>r.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(r=>e.homeTeamFilter.playingAs.includes(r[0])).filter(r=>e.homeTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r[0])).filter(r=>e.visitingTeamFilter.matchResult.includes(r[1])).reduce((r,i)=>r+i[2],0)},filledDataStructure(e,r){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,r.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,r.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:r.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,r){return Object.values(r.filledDataStructure).sort((i,B)=>i.priority-B.priority)},statisticData(e,r){for(const i of Object.values(r.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,r){for(const[i,B]of Object.entries(r))e.gameForAnalysis[i]=B},setCurrentTournamentName(e,r){e.currentTournamentName=r},setBetSubcategoriesObjects(e,r){e.betSubcategoriesObjects=r},setRegularSeasonName(e,r){e.regularSeasonName=r},setBetSubcategories(e,r){e.betSubcategories=r},setBetDescription(e,r){e.betDescription=r},setSeasonId(e,r){e.seasonId=Number(r)},setHome(e,r){e.homeTeamInfo=r},setAway(e,r){e.awayTeamInfo=r},setMenuOptionActive(e,r){e.menuOptionActive=r},setPastSeasonId(e,r){e.pastSeasonId=r},setUsePastSeasonId(e,r){e.usePastSeasonId=r,r&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,r){e.showPostMatch=r},setHomeResultGame(e,r){e.homeResultGame=r},setAwayResultGame(e,r){e.awayResultGame=r},updateIsSocketConnected(e,r){e.isSocketConnected=r,r&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&coe(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,r){e.currentSeasonTeams=r,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((B,D)=>{if(D.game_status===1&&(D.home_team===i.team_id||D.visiting_team===i.team_id)){const c=D.score[0]-D.score[1],g=D.home_team===i.team_id;B.push({playingAs:g?1:2,matchResult:c===0?3:g?c>0?1:2:c<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,r){e.currentSeasonGames=r},updateGameId(e,r){e.gameId=r},updateGameForAnalysis(e,r){e.gameForAnalysis=r,e.isLive=!!r.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,r){e.selectedAnalysis=r},updateShowLiveData(e,r){e.showLiveData=r},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,r){e.idAssetSelected=r},updateStats(e,r){e.currentSeasonPlays=r},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:r,needsFormat:i=!1}){if(i){if(!r||!r.local||!r.local.statistics||!r.visit||!r.visit.statistics)return;e.homeTeamFilter=rB(e.homeTeamFilter,r.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=rB(e.visitingTeamFilter,r.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==r.local.statistics.block&&(e.selectedStatisticTypeBlock=r.local.statistics.block)}else e.homeTeamFilter={...r.homeTeamFilter,statistics:0},e.visitingTeamFilter={...r.visitingTeamFilter,statistics:0}},updateFinishedGames(e,r){e.totalSeasonFinishedGames=r},updateHomeTeamPlays(e,r){e.homeTeamPlays=r},updateVisitingTeamPlays(e,r){e.visitingTeamPlays=r},addSpecialMentions(e,r){const i=Object.values(e.nextGamesDataStructure);i.forEach(B=>{for(const D of Object.values(B.subcategories))D.resetMentions()}),i.forEach(B=>{for(const D of r)for(const c of Object.values(B.subcategories))c.addSpecialMention(D[0],D[1],D[2])})},setDefaultFilter(e,r){e.defaultFilter={homeTeamFilter:{...r.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...r.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,r){if(!e.livePlays.has(r[e.indexesTLP.playId])){e.livePlays.set(r[e.indexesTLP.playId],r);const B=S6(r,e.indexesTLP,e.categoriesMap);for(const D of Object.values(e.nextGamesDataStructure))for(const c of Object.values(D.subcategories))c.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);if(rse(B,r))return;let D="";const c=e.gameForAnalysis.home_team===r[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=S6(B,e.indexesTLP,e.categoriesMap),a=RM(B,g,e.indexesTLP),y=S6(r,e.indexesTLP,e.categoriesMap),f=RM(r,y,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const v of Object.values(n.subcategories))B&&(v.subtractLivePlay(D,g[e.indexesTSP.teamId],g,e.indexesTSP,i),a&&v.subtractLivePlay(D,a[e.indexesTSP.teamId],a,e.indexesTSP,i)),v.addLivePlay(c,y[e.indexesTSP.teamId],y,e.indexesTSP,e.isLive,i),f&&v.addLivePlay(c,f[e.indexesTSP.teamId],f,e.indexesTSP,e.isLive,i);e.livePlays.set(r[e.indexesTLP.playId],r)},deleteLiveGamePlay(e,r){const i=!!r[e.indexesTLP.length],B=e.livePlays.get(r[e.indexesTLP.playId]);let D="";if(B){D=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const c=S6(B,e.indexesTLP,e.categoriesMap),g=RM(r,c,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const y of Object.values(a.subcategories))y.subtractLivePlay(D,c[e.indexesTSP.teamId],c,e.indexesTSP,i),g&&y.subtractLivePlay(D,g[e.indexesTSP.teamId],g,e.indexesTSP,i)}},clearLiveTotals(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,r){e.statistics=r},updateOldSeasonId(e,r){e.oldSeasonId=r},addRankingInSubcategories(e,{getters:r,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(c=>{c.homeTeamFilterGames=c.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,c.visitingTeamFilterGames=c.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const B=[],D=new Map;for(const c of Object.values(e.nextGamesDataStructure))for(const g of Object.values(c.subcategories))B.push(g);r.rankingData.forEach(c=>{for(const g of B)if(g.isInGeneralCategory(c[e.indexesLS.categoryId])){D.has(g.id)?D.get(g.id).push(c):D.set(g.id,[c]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,r){e.homeGames=IJ(r)},setVisitingGames(e,r){e.visitingGames=IJ(r)},generateCategoriesMap(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.accomplishedCategoryIds.forEach(B=>{const D=e.categoriesMap.get(B);D?D.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const r of Object.values(e.nextGamesDataStructure))for(const i of Object.values(r.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:r},{command:i}){i==="on"?r("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):r("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},r){try{const g=await Uha({gameId:r.gameId});if(g){var i=[],B=[],D={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},c={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(i=g.data.data.filter(a=>a[1]==r.homeTeam),B=g.data.data.filter(a=>a[1]==r.awayTeam),D=g.data.games,c=g.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",B),e("setHomeGames",D),e("setVisitingGames",c)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:r},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",i.gameInfo),B.push(r("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:r,commit:i},{gameId:B,isTeamsAnalysis:D,currentSeasonId:c,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:y=null,isCupGame:f=!1}){try{let n={},v=e.seasonId!==Number(c);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",c),i("updateGameId",Number(B)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const p=await r("getCurrentSeasonGames",Number(B));if(i("leagueGeneral/updateCurrentSeasonGames",p,{root:!0}),n=p.find(l=>l.game_id===Number(B)),!n&&y&&(n=y),n&&i("updateGameForAnalysis",n),n.game_status!==1&&((g||e.categoriesMap.size===0)&&i("generateCategoriesMap"),f||await r("checkTeamsData",{gameId:B,isFromBet:!!a}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(r("getSeasonStatistics"))),e.usePastSeasonId){const l=await r("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",l,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(l=>n.home_team===l.team_id))&&_.push(r("getCurrentSeasonTeams")),i("setHomeResultGame",n.score[0]),i("setAwayResultGame",n.score[1]),D?n.game_status!==1?(await r("fillStatisticData",{gameId:B,gameinfo:n,promises:_,defaultFilter:a}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(r("fillStatisticDataPostMatch",{game:B,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:r,getters:i,rootGetters:B,state:D},{gameId:c,gameinfo:g,promises:a=[],defaultFilter:y=null}){let f=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&a.push(r("getCurrentLiveGamePlays",c)),a.push(r("getSpecialMentionsByGame",c)),a.push(r("getHomeTeamPlays")),a.push(r("getVisitingTeamPlays")),a.push(r("getCurrentSeasonPlays")),y&&a.push(Hha(y)),f=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),y){const[n]=f.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.params),e("updateFilterAux"),e("updateFilters",{filters:D.defaultFilter,needsFormat:!1}),r("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:r,rootState:i,commit:B},{gameId:D,isFromBet:c}){try{B("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},r){try{const i=await Rha({gameId:r});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:r},i){try{const{teams:B,games:D,past_season_id:c,tournament_id:g}=await Lha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,gameId:i}),a=tpa.find(y=>y.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",B[0]),e("setAway",B[1]),r.usePastSeasonId||e("setPastSeasonId",c),await e("updateCurrentSeasonGames",D),D&&Array.isArray(D)&&e("updateFinishedGames",D.reduce((y,f)=>(f.game_status===1&&(y+=1),y),0)),D}catch(B){return Promise.reject(B)}},async getCurrentSeasonGamesLast({commit:e,state:r}){try{const{games:i,past_season_id:B}=await EJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});return r.usePastSeasonId||e("setPastSeasonId",B),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((D,c)=>(c.game_status===1&&(D+=1),D),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:r}){try{const i=await jha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:r}){try{const i=r.usePastSeasonId?r.pastSeasonId:r.seasonId,B=await Oha({seasonId:i});e("updateSeasonStatistics",B),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:r,getters:i,rootGetters:B}){e.currentSeasonGames.length>0&&r("addRankingInSubcategories",{getters:i,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:r}){try{const i=await MJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:r}){try{const i=await MJ({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId,teamId:r.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:r}){try{const i=await zha({seasonId:r.usePastSeasonId?r.pastSeasonId:r.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:r},i){try{const B=await Dha({gameId:i});e.livePlays=new Map,B.forEach(D=>{e.gameForAnalysis.game_id===D[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===D[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===D[e.indexesTLP.teamId])&&r("addLiveGamePlay",D)})}catch(B){throw new Error(B)}},socket_new({state:e,commit:r},i){const B=i[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("addLiveGamePlay",B)},socket_update({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&r("updateLiveGamePlay",B)},socket_delete({state:e,commit:r},i){const B=i[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&r("deleteLiveGamePlay",B)},exitChannel({state:e,getters:r,rootState:i,rootGetters:B,commit:D}){const c=B["loginGeneral/getPremiumAccount"];r.isLive&&c&&(D("updateShowLiveData",!0),D("clearLiveTotals"),e.livePlays.clear(),epa.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const B of Object.values(i.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const B of Object.values(i.subcategories))B.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function npa(){try{const{data:e}=await Uu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const rpa={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,r){e.booleanIsStatisticModalOpen=r},setTournamentType(e,r){e.tournamentType=r},setSectionRef(e,r){e.sectionRef=r},setSectionAnalytics(e,r){e.sectionAnalytics=r},setSeccionBetsGolTipster(e,r){e.seccionBetsGolTipster=r},setPreviewSectionAnalytics(e,r){e.previewSectionAnalytics=r},setVideoSrc(e,r){e.videoSrc=r},setVideoModalVisibility(e,r){e.isVideoModalVisible=r},setSelectedTournament(e,r){e.selectedTournament=r},setTournaments(e,r){e.tournaments=r.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,r){e.tournamentSelected=r}},actions:{async fetchTournaments({state:e,commit:r}){try{if(e.tournaments.length===0){const i=await npa();r("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function ipa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}async function opa({seasonId:e,localTeamId:r,visitingTeamId:i}){try{const B=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${r}/${i}`;return(await Uu({url:B})).data}catch(B){return Promise.reject(B)}}const PJ=(e,r)=>{let i={};return e.forEach((B,D)=>{D==3&&(r[0]==35||r[0]==54)&&(r[D]==2?r[D]=1:r[D]=2),D==2&&(r[0]==35||r[0]==54)&&(r[D]==1?r[D]=2:r[D]==2&&(r[D]=1)),i[B]=r[D]}),i},BJ=(e,r)=>e.filter(B=>{const D=r.playingAs.includes(B.playing_as),c=r.matchResult.includes(B.match_result),g=r.sections.includes(B.section);return D&&c&&g}),NJ=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(r,i,B){return typeof B>"u"||+B==0?Math[r](i):(i=+i,B=+B,isNaN(i)||!(typeof B=="number"&&B%1===0)?NaN:(i=i.toString().split("e"),i=Math[r](+(i[0]+"e"+(i[1]?+i[1]-B:-B))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+B:B))))}Math.ceil10||(Math.ceil10=function(r,i){return e("ceil",r,i)})})();function zJ(e,r){let i=r*-1;return Math.ceil10(e,i)}const spa={...rpa,...Gha,...apa,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,r,i)=>{const B=e.xGLocalPlays,D="homeTeamFilter",c=i.nextGeneral[D];return BJ(B,c)||[]},playsAway:(e,r,i)=>{const B=e.xGVisitingPlays,D="visitingTeamFilter",c=i.nextGeneral[D];return BJ(B,c)},goalsQtyLocal:(e,r)=>{const i=NJ.find(B=>B.name==="Goles");return r.playsLocal.filter(B=>i.categories.includes(B.category_id)).length},goalsQtyAway:(e,r)=>{const i=NJ.find(B=>B.name==="Goles");return r.playsAway.filter(B=>i.categories.includes(B.category_id)).length},shotsOnGoalQtyLocal:(e,r)=>r.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,r)=>r.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,r)=>{const i=new Set;let B=r.playsLocal.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return zJ(B,2)},xGAway:(e,r)=>{const i=new Set;let B=r.playsAway.reduce((D,c)=>(i.has(c.moment_of_play)||(i.add(c.moment_of_play),D+=c.xG2),D),0);return zJ(B,2)}},mutations:{setTeamSelected(e,r){e.teamSelected=r},setPlays(e,r){e.xGLocalPlays=r.local_team.map(i=>PJ(r.data_headers,i)),e.xGVisitingPlays=r.visiting_team.map(i=>PJ(r.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:r,localTeamId:i,visitingTeamId:B,postMatch:D=!1}){try{let c={};D?c=await opa({seasonId:r,localTeamId:i,visitingTeamId:B}):c=await ipa({seasonId:r,localTeamId:i,visitingTeamId:B}),e("setPlays",c)}catch(c){return Promise.reject(c)}}}}}};function lpa(e){for(const[r,i]of Object.entries(spa))e.hasModule(r)||e.registerModule(r,i)}const cpa={class:"subcategory-group"},dpa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",cpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Is),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},upa=ml(dpa,[["__scopeId","data-v-ae6f3d72"]]),hpa={class:"filter-subcategories"},ppa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",hpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(upa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),T6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),fpa={class:"details__header"},mpa=T6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),gpa={class:"details__header__checkbox"},ypa={class:"details__body"},vpa={class:"details__body__playing-as"},_pa=["onClick"],bpa={class:"details__header"},xpa=T6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),wpa={class:"details__header__checkbox"},kpa={class:"details__body"},Cpa=T6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Spa={class:"details__body__game-section"},Tpa=["onClick"],Epa={class:"details__body"},Apa=T6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Mpa={class:"details__body__game-section"},Ipa=["onClick"],Ppa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__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 r=e;t.useCssVars(n=>({"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 i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",fpa,[mpa,t.createElementVNode("div",gpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",ypa,[t.createElementVNode("div",vpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,_pa))),128))])]),t.createElementVNode("div",bpa,[xpa,t.createElementVNode("div",wpa,[t.createVNode(t.unref(Is),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",kpa,[Cpa,t.createElementVNode("div",Spa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Tpa))),128))])]),t.createElementVNode("div",Epa,[Apa,t.createElementVNode("div",Mpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Ipa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Bpa={class:"filter-field"},Npa=Object.freeze(Object.defineProperty({__proto__:null,default:ml({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",Bpa,[t.createVNode(t.unref(rW),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),zpa={class:"subcategory-group"},Opa={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",zpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Ps),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":D=>B.isSelected=D,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Fpa=yl(Opa,[["__scopeId","data-v-ae6f3d72"]]),Lpa={class:"filter-subcategories"},Dpa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(r,i)=>(t.openBlock(),t.createElementBlock("div",Lpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(Fpa,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),E6=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),Rpa={class:"details__header"},Vpa=E6(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),$pa={class:"details__header__checkbox"},jpa={class:"details__body"},Upa={class:"details__body__playing-as"},Gpa=["onClick"],Hpa={class:"details__header"},Wpa=E6(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),qpa={class:"details__header__checkbox"},Ypa={class:"details__body"},Xpa=E6(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Zpa={class:"details__body__game-section"},Jpa=["onClick"],Kpa={class:"details__body"},Qpa=E6(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),efa={class:"details__body__game-section"},tfa=["onClick"],afa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__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 r=e;t.useCssVars(n=>({"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 i=t.computed(()=>r.playingAs.every(n=>n.isSelected)),B=t.computed(()=>r.gameSections.every(n=>n.isSelected)),D=t.computed(()=>r.gameSections.reduce((n,v)=>(v.value<=3?n.firstHalf.push(v):n.secondHalf.push(v),n),{firstHalf:[],secondHalf:[]})),c=t.computed(()=>({"--border-radius-first-button":`${r.buttonsBorderRadius} 0 0 ${r.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${r.buttonsBorderRadius} ${r.buttonsBorderRadius} 0`}));function g(n){n?r.playingAs.forEach(v=>{v.isSelected=!0}):r.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function a(n){r.playingAs.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function y(n){r.gameSections.filter(v=>v.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function f(n){n?r.gameSections.forEach(v=>{v.isSelected=!0}):r.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(n,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Rpa,[Vpa,t.createElementVNode("div",$pa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",jpa,[t.createElementVNode("div",Upa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.playingAs,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>a(_)},t.toDisplayString(_.name),11,Gpa))),128))])]),t.createElementVNode("div",Hpa,[Wpa,t.createElementVNode("div",qpa,[t.createVNode(t.unref(Ps),{label:"Todos","model-value":B.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",Ypa,[Xpa,t.createElementVNode("div",Zpa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.firstHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,Jpa))),128))])]),t.createElementVNode("div",Kpa,[Qpa,t.createElementVNode("div",efa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.secondHalf,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${p}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:l=>y(_)},t.toDisplayString(_.text),11,tfa))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),nfa={class:"filter-field"},rfa=Object.freeze(Object.defineProperty({__proto__:null,default:yl({__name:"FilterField",setup(e){const r=t.ref(Array.from({length:16},(B,D)=>D+1));function i(){}return(B,D)=>(t.openBlock(),t.createElementBlock("div",nfa,[t.createVNode(t.unref(ZY),{width:"100%","background-color":"#2E3B46",value:r.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));yu.GSCGameData=Nha,yu.connectSocket=KP,yu.disconnectSocket=QP,yu.getSocket=JP,yu.registerStoreModules=lpa,Object.defineProperty(yu,Symbol.toStringTag,{value:"Module"})});
|